Android Things permission com.google.android.things.permission.MANAGE_INPUT_DRIVERS not found

浪尽此生 提交于 2019-12-01 06:41:19

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:

  1. Reboot the device after the first installation. This will grant the permission on restart.
  2. Install the APK manually using adb install -g <APK> the first time. This flag grants all requested permissions on install, so you can avoid the reboot.
  3. Upgrade to Android Studio 3.0, which will automatically grant these permissions on install for you so you don't need to do either #1 or #2.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!