您的位置:首页 > 其它

一个xml引起的三方Camera应用不能使用问题

2014-09-12 17:25 351 查看
一、问题

目前遇到skype应用在Android系统中不能使用Camera问题;从log中看没有任何异常,只是该应用在调用完getCameraInfo后没有在open,也没有startPreview。

二、解决

之前在CameraAPI中添加打印,自始至终没有看到open调用;反编译skype.apk,由于信息不全、代码量太大,也没有头绪。

反编译工具

后通过添加:

system/etc/permissions/android.hardware.camera.front.xml

system/etc/permissions/android.hardware.camera.xml

问题解决,后边在研究。

三、源码位置

frameworks/native/data/etc/android.hardware.camera.front.xml

frameworks/native/data/etc/android.hardware.camera.xml

预编译位置:

device/xxx/xxx6/xxx.mk

PRODUCT_COPY_FILES += \
        $(PREBUILTS_CONFIGS_PATH)/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
        frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
        frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
        frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
        frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
        frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
        frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
        packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐