2

If a user installs an app with some permissions in Lollipop, and then updates to Marshmallow,

will the permissions of the app be granted or will them all be revoked by default and permission granting window be needed again?

The app is build with Android M as target sdk

F.E. My app has a process that runs on the background and requires a permission, the Lollipop user installs the app and it goes ok, but then updates the phone to Marshmallow.

Will the app process fail until the user grants the permission?

htafoya
  • 18,261
  • 11
  • 80
  • 104

1 Answers1

1

The app is build with Android M as target sdk

Yes, you need to update your app to request the user for the permissions as required by your app otherwise your app may crash.

If your app's target sdk would have been less than 23, then your app would work without any issues.

Shadab Ansari
  • 7,022
  • 2
  • 27
  • 45
  • Right, your app will request the permission again, but will the OS grant it, since it granted the permission to the previous version of the app? – Dan Dascalescu Nov 29 '16 at 19:33