Google I/O 2015 - Android M Permissions

Google for Developers · 39K views · 2015 · 32:39

Open on YouTube

Software (other)Consumer devices & gadgetstalkdated

Why Stack Overflow recommends it

Stack Overflow users link it as the official reference when answering questions about Android 6.0 runtime permissions, such as when to request them, how revocation restarts the app, and what happened to the INTERNET permission.

Recommended by 4 people across 4 different months, 2015 to 2016.

What it is

A Google I/O 2015 session by Ben Poiesz introducing the new runtime permissions model in Android M (6.0), the first change to Android's permission system since launch. It covers what changes for developers, how it affects apps, and how to keep the user experience good while protecting privacy.

What people said

Recommends Yanislav Mihaylov · 2015-06 · Stack Overflow · on “INTERNET permissions in Android M”

Please check this video from Google IO - [this video] There is no more Internet permission - the app will have by default access to the internet. Their idea is that if you don't have access to the device data then you can not do anything dangerous Kind Regards

Recommends Emanuel Moecklin · 2015-07 · Stack Overflow · on “Android M - How to determine if the user checked "Never ask again" when denying my app's runtime permission request?”

@Fraid: looks like they added this with preview #2 of Android M: [LINK] and it's probably what I was looking for. I can't test it right now but will do so next week. If it does what I hope it does, you can post it as an answer and get some reputation. In the meantime this might help others: [this video]

Recommends Estel · 2015-08 · Stack Overflow · on “When to ask for READ_EXTERNAL_STORAGE on android 6.0 (Marshmallow)”

You should consider watching this video [this video] from I/O that talks about some best practices. If using these permissions is required for the core functionality of your app then you should request them following a warm welcome when the app is first loaded. If it's secondary functionality that some users might never encounter, then it's better to do so only after the user tries to use that functionality.

Recommends Andrew Brooke · 2016-02 · Stack Overflow · on “Android M permission of the tested READ_PHONE_STATE(dangerous permissions)”

Nope, from 6.0 onward we have to ask the user directly. If you're more curious about why this is the direction Android is going, you might watch this video from Google: [this video]

Cites Vyshakh Amarnath · 2015-09 · Stack Overflow · on “Application is getting killed after enable/disable permissions from settings on Android M nexus 6”

If you have background process or services running in the background , then if user revokes permission from settings , the process gets restarted. This shouldn't affect your activity unless your activity context is tied to your service.The speaker in Google IO 2015- [this video] does tell about process restart ,etc....

Cites rekire · 2015-12 · Stack Overflow · on “Handle permissions change while in app”

I read somewhere that your app gets killed when the user changes the permissions on Android-M so you can be sure that this won't change while your app is running. It will been killed when this changes. As reference check this video: [this video]

Cites FeleMed · 2016-01 · Stack Overflow · on “Android M - Permission settings redirect (INTENT ACTION)”

ACTION_APPLICATION_DETAILS_SETTINGS worked, thanks. On the second question, here: [this video] at around 27:30 the speaker said that if your permissions haven't been denied before you can intent directly to the app permissions, can't find the documentation though.

Cites Mantosh Kumar · 2016-09 · Stack Overflow · on “Working example of getting permission from a Service in Android Marshmallow?”

I am aware about the changes introduced in Android 6.0/SDKVersion 23 regarding the run-time permission. There is already discussion and talks on this topic in the below post which talks about the various aspects of new permission model. "How to request permissions from a Service in Android Marshmallow" [LINK] Google I/O 2015 - Android M Permissions [this video] "Mother, May I?" Asking for Permissions (Android Dev Summit 2015) [LINK] After going thorough these article,I believe below is suggested to "workaround" (as Service doesnot have UI support)this problem. Check permission checkSelfPermission () in the context of Service . Notify it to status bar in case the permission is denied. User would n