如何在运行时删除危险权限?

How to remove dangerous permissions at runtime?

Google Play security policy 要求:

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.

我知道如何注册为默认 SMS 处理程序并在运行时请求权限,但是当我的应用不再是默认 SMS 处理程序时,我该如何自行删除这些权限?

您不能自己删除权限,甚至不能真正要求用户删除权限。

我对该要求的解释是您停止使用与这些权限相关联的 API。