What will happen to non-updated applications that execute code requiring permission that the user has allowed in Android 6.0 Marshmallow

I'm curious about the new Android 6.0 Marshmallow feature, which allows users to explicitly set which permissions applications are allowed to use. My question is how this affects existing applications that use the permission set.

For example, a non-updated application [Target-sdk-version <23] showed permission to use the camera, but the user manually disabled it. What happens to the application when it executes code that uses this permission? Is it just a glitch?

I assume that new applications will need to check whether they have permission before they execute the code, which depends on the permission - my question is about applications that do not change to handle these cases.

+4
source share
1 answer

my question is about applications that are not modified to handle these cases.

The assumed assumption is that it targetSdkVersionwill be lower than 23. Anyone who sets targetSdkVersiontheirs to 23 or higher should change their application to allow run-time permissions, since they will never be able to get dangerouspermissions otherwise.

, :

targetSdkVersion 23, , Android 6.0+, : , , .

, , .

, . , , , "", SecurityException. . , , query() ContactsContract ContentProvider, , query() Cursor. , , , . . , , , . , .

+10

Source: https://habr.com/ru/post/1614631/


All Articles