D-Chip IMX6 android系统增加打电话app的方法

        IMX6的android系统默认是为平板设计的,所以其中的打电话app开始没有给编译到系统里面的。现在很多手持PDA可能需要用到此功能,以下说明一下怎么在imx6的android系统中增加打电话app的方法:

        以android4.3或者android4.4.2为例:

       (1)imx6/sabresd_6dq.mk
        RODUCT_COPY_FILES += \
        frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
        frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
        frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
+       frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
        frameworks/native/data/etc/android.hardware.faketouch.xml:system/etc/permissions/android.hardware.faketouch.xml \
        frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
        frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \

     如上面红色字体部分,在imx6的android源码中找到sabresd_6dq.mk此文件,增加以上红色字体部分语句。


      (2)/sabresd_6dq/required_hardware.xml
     <feature name="android.hardware.location" />
     <feature name="android.hardware.location.network" />
+   <feature name="android.hardware.telephony" />
+   <feature name="android.hardware.telephony.gsm" />

     <feature name="android.hardware.wifi" />
     <feature name="android.hardware.touchscreen" />
     <feature name="android.hardware.touchscreen.multitouch" />

      找到sabresd_6dq目录的文件,增加以上部分。

     (3)/sabresd_6dq/overlay/frameworks/base/core/res/res/values/config.xml

     <bool name="config_showNavigationBar">true</bool>
 
     <!-- This device is not "voice capable"; it's data-only. -->
-    <bool name="config_voice_capable">false</bool>
+    <bool name="config_voice_capable">true</bool>

 

     找到对应config.xml文件,修改config_voice_capable为true。


以上测试平台为珠海鼎芯科技的IMX6Q开发板。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值