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开发板。