简体   繁体   中英

How to remove dangerous permissions at runtime?

Google Play security policy requires that:

Apps must be actively registered as the default SMS handler before prompting users to accept any of READ_SMS, WRITE_SMS, SEND_SMS, RECEIVE_SMS permissions and must immediately stop the use of the permission when it's no longer the default handler.

I know how to register as default SMS handler and request the permissions at runtime, but how do I remove those permissions myself when my app is no longer the default SMS handler?

You cannot remove permissions yourself, or even really ask the user to remove permissions.

My interpretation of that requirement is that you stop using APIs that are tied to those permissions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM