androidthings / doorbell

Cloud-based photo doorbell with companion app
Apache License 2.0
297 stars 133 forks source link

Manually grant camera permissions #4

Closed riggaroo closed 7 years ago

riggaroo commented 7 years ago

Hi there, I am running this sample, but I had to manually grant the camera permission as I was getting the "No Permission" error on DoorbellActivity.

adb shell pm grant com.example.androidthings.doorbell android.permission.CAMERA

Do you perhaps know why permission was not granted at install time? After granting the permission the sample worked for me.

jdkoren commented 7 years ago

You have to reboot the device after installing the app. This is a known issue with Developer Preview 1. From the release notes:

Dangerous permissions requested by apps are not granted until the next device reboot. This includes new app installs and new elements in existing apps.

riggaroo commented 7 years ago

Thanks for the information! 👍