I am porting an existing application to an instant app that requires a camera permission to run. On Pixel 2 device and Samsung S8 the permission dialogue gets shown and I can request the permission. On the Pixel 1 Device the dialogue does not get shown and the Permission grant result is immediately returning -1
in onActivityResult
.
All of the devices run Android 8.0.0
I tried a full grandle sync, clean, deleting the instant app, installing the full version and deinstalling it, completely removing the instant app support for the device and re-enabling it, restarting the device, invalidating Android Studios cache and add the clear the cache flags to the run configuration as described here Android Instant Apps not running on Pixel .
If I access the permission settings by category, the application is listed, with the camera permission set to off. If I grant the permission there, and return to the screen the camera permission is again disabled. In the application details the instant app is shown as that it does not require any permissions.
Are the permission settings for instant apps cached in some location on the device ? How can I purge that cache ?
Installing the latest Android 8.0.0 security update on the Pixel phone resolved the issue. Permissions were asked again.