android - Adds permissions to my app make not compatible with a lot of devices -


i add (app update) permissions google play app

<uses-permission android:name="com.android.vending.billing" /> <uses-permission android:name="android.permission.system_alert_window" /> <uses-permission android:name="android.permission.camera" /> <uses-permission android:name="android.permission.rec" /> <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" /> <uses-feature android:name="android.hardware.camera.front" /> 

i have 6 physical devices test. test app in 6 devices in device debug mode, upload app play store update app version.

now app updated in play store. download play store in devices. in 3/6 devices can´t download app because in play store error device not compatible. if run app in devices manually installing apk app works correctly.

why can´t download app in devices, app work ok on them?

samsung galaxy tab 3

samsung galaxy tab 4

lg-e410

min. , target don´t change in update:

<uses-sdk     android:minsdkversion="8"     android:targetsdkversion="22" /> 

enter image description here

it happening because of this:

<uses-feature android:name="android.hardware.camera.front" /> 

that restrict app installed on devices declare have front facing camera. lge lg-e410 has single, rear facing camera.

if not absolutely require front-facing camera, should remove this. if using old camera class, can pull camerainfo , check if specific camera instance front or rear facing. if using newer camera2 api, can enumerate cameras using cameramanager , cameracharacteristics each , tell if front or rear facing.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -