Closed ideepdave closed 6 years ago
I am also seeing this - and also for the code at https://developer.android.com/things/training/first-device/peripherals#blink_an_led
I have added the permission as a parent of the main
I have toggled Instant Run off and On too, as some Stack Overflow posts have suggested (for a different permission error) to no effect.
@JesseScott Please let me know if you found any solution for this one.. Thanks and regards
Which version of Android Things are being run on your device?
@Fleker Sorry for delayed response Android Things 1.0 it is.
Haha. It was a typo for me - I had USE_PERIPHERAL_ID instead of _IO
You should be able to at the very least manually grant the permission with ADB. Can you see if that resolves the error?
Alright i guess it Should work after manually permission. thanks for your support
Use this Permission settings in Manifest.xml
Facing Problem While running first blink app with RbPi 3
Caused by: java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.USE_PERIPHERAL_IO at android.os.Parcel.readException(Parcel.java:2004) at android.os.Parcel.readException(Parcel.java:1950) at com.google.android.things.pio.IPeripheralManagerClient$Stub$Proxy.GetGpioClient(IPeripheralManagerClient.java:759) at com.google.android.things.pio.GpioImpl.<init>(GpioImpl.java:50) at com.google.android.things.pio.PeripheralManager.openGpio(PeripheralManager.java:197) at com.example.androidthings.simplepio.BlinkActivity.onCreate(BlinkActivity.java:51)