xref: /aosp_15_r20/development/samples/browseable/RuntimePermissions/_index.jd (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker
2*90c8c64dSAndroid Build Coastguard Workerpage.tags="RuntimePermissions"
3*90c8c64dSAndroid Build Coastguard Workersample.group=System
4*90c8c64dSAndroid Build Coastguard Worker@jd:body
5*90c8c64dSAndroid Build Coastguard Worker
6*90c8c64dSAndroid Build Coastguard Worker<p>
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard Worker            This sample shows runtime permissions available in Android M and above.
9*90c8c64dSAndroid Build Coastguard Worker            Display the log on screen to follow the execution.
10*90c8c64dSAndroid Build Coastguard Worker            If executed on an Android M device, an additional option to access contacts is shown
11*90c8c64dSAndroid Build Coastguard Worker            that is declared with optional, M and above only permissions.
12*90c8c64dSAndroid Build Coastguard Worker
13*90c8c64dSAndroid Build Coastguard Worker        </p>
14