I use RPi3 with Android Things 0.5.1. Although I have in my AndroidManifest.xml
the permission:
<uses-permission android:name="com.google.android.things.permission.MANAGE_INPUT_DRIVERS" />
I get the exception:
java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.MANAGE_INPUT_DRIVERS
Anybody got working this permission on 0.5.1?
That permission is currently marked as a dangerous permission, which would typically require granting at runtime by the user on standard Android. In Android Things, these permissions are granted automatically, but only on device boot. You need to do one of the following to give that permission to your app:
adb install -g <APK>
the first time. This flag grants all requested permissions on install, so you can avoid the reboot.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With