一个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
目前遇到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
相关文章推荐
- 使用网上流传的一个数据库连接池在Proxy.newProxyInstance处引起 java.lang.ClassCastException 问题的解决方法
- 使用网上流传的一个数据库连接池在Proxy.newProxyInstance处引起 java.lang.ClassCastException 问题的解决方法
- java工程项目里,在一个包里面,不能出现同名的类名,这问题是刚接触java才会遇到的,特别是新手一般都没有建立包,而是使用默认的,易出现同名的类名,导致eclipse提示错误
- Android系统wifi之p2p(wifi直连)配置文件权限导致应用不能使用wifi问题
- 域名引起的IE cookie不能使用的问题
- 不能使用 Manyou 应用的问题大集合
- 一个页面使用两次timepicker.js引起的Maximum call stack size exceeded问题解决办法及bug修复
- java工程项目里,在一个包里面,不能出现同名的类名,这问题是刚接触java才会遇到的,特别是新手一般都没有建立包,而是使用默认的,易出现同名的类名,导致eclipse提示错误
- tping一个好用的TCP检测工具,外加win7 x64下解决msvcr71.dll丢失引起tping无法使用的问题
- 解决win8使用内置管理员不能打开应用商城、天气等问题
- 由无线网卡引起的USB存储类设备不能使用问题
- 使用网上流传的一个数据库连接池在Proxy.newProxyInstance处引起 java.lang.ClassCastException 问题的解决方法
- 关于main.xml中使用ImageView引起Missing contentDescription attribute on image 的问题
- 【android】strings.xml中要注意的一个小问题和使用strings.xml中的资源时要注意的小问题
- 项目中使用Spring时配置web.xml的listener侦听接口不能初始化的问题
- 使用Collections.emptyMap()引起的一个奇怪的问题
- VMWARE 非正常关机引起虚拟机不能使用问题
- Android使用xml定义带背景Button(解决ImageButton不能加文字的问题)
- 分享一个连接,python扩展包下载地址分享包括numpy,scipy等,解决了win8系统不能使用这些扩展包的问题!
- 共享内存内使用指针引起的一个问题。