I'm developing a host app for Gear.
Samsung Accessory SDK Programming Guide says :
---------------------
2.4.Permission
To use Accessory, it needs the permission below. If it is not added in the AndroidManifest.xml file, the initialization
will fail with SecurityException.
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
If you don’t add the permission,
- For Samsung device,
Android 4.4.2 (KitKat) and above: SecurityException is thrown and your application won’t work.
Prior to Android 4.4.2 (KitKat): No exception and the application will work properly.
- For other companies,
No exception and the application will work properly.
---------------------
So, I put the required permissions as follows in the AndroidManifest.xml file.
Most Galaxy device is OK, but some device model crash with Security Exception below.
java.lang.SecurityException: com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY permission is required.
Here's our issued device list below.
SM-J500N (Android 5)
SM-J700K (Android 5)
SM-G800F (Android 5)
SM-G531F (Android 5)
Please let me know how to solve this issue relate with these specific device model.
Thank you in advance.