Android M Permissions Model

I read about the new permission model for Android, and I have a question, since I cannot test it right now:

If an app does not target the M Developer Preview, the app continues to use the old permissions model even on M Preview devices.

So, if my application is not aimed at the M Developer Preview, it does not need to be checked every time with the permissions granted, BUT, they also say

Users can revoke permissions at any time from the app Settings screen.

So what happens when a user revokes one of my permissions without targeting the M Developer Preview? they say that unforeseen behavior will occur, but without focusing on version M we won’t get access to the new methods of Android M, therefore, in my opinion, should we use the new model?

+4
source share
1 answer

In short, yes. Sooner or later, we need to switch to a new resolution model, because an outdated application may behave abnormally on the Android M platform if the end user permission is canceled. To handle permissions correctly, we need to switch to the new permission model. To use this permission model, you need to set targetSdkVersion= MNC (as from preview 2). After the final version of M, you must set targetSdkVersion=23 .

Update:

Android 6.0 Marshmallow officially released. For more information check out this link: http://developer.android.com/index.html

+2
source

All Articles