简体   繁体   中英

How runtime permissions are handled in Android instant app?

Android N Developer preview introduced a new feature called Android Instant Apps .

I read basic information about this topic and here is my understanding:

Android Instant Apps enables Android apps to run instantly, without requiring full scale app installation. that means suppose user discovered an app from search, social media, messaging or other deep links, they can directly access Activity belonging to this App,and use functionality within the app, without going to Google Play store , clicking Install App etc. thus bypassing app installation flow.

But then, suppose the Activity which is getting installed through Instant apps requires a Dangerous permission to work, when it will be invoked?

Basically, how android runtime permissions are to be handled in Android instant apps?

As per the Instant Apps FAQ :

How do permissions work in Android Instant Apps?

Android Instant Apps uses the runtime permissions model introduced in Android 6.0. If an app supports the permission model introduced in Android 6.0 (API level 23), it does not require any additional work to become an Instant App that runs on older devices.

No matter what device an Instant App is used on, it will always use the runtime permissions model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM