gpt4 book ai didi

android - 权限违规,但 list 不请求短信或通话记录权限

转载 作者:行者123 更新时间:2023-11-29 00:56:19 26 4
gpt4 key购买 nike

由于违反权限,我们的 2 个应用今天在 Play 商店中被下架。有没有人遇到过同样的问题?

注意:我们的应用代码不包含短信或通话记录权限。

Hi Developers at XXX LTD,

After review, [App Name], net.xxx.xxx, has been removed from Google Play due to a policy violation. This app won’t be available to users until you provide us with more information through the Play Console.

Issue: Violation of the Permissions policy

You may only request permissions that are necessary to implement critical features or services currently available in your app. You may not use permissions that give access to user or device data for undisclosed, unimplemented, or disallowed features or purposes. SMS and Call Log Permissions are subject to additional restrictions; in order to use these permissions, you must first receive approval from Google Play.

最佳答案

要调用电话吗?不要使用 CALL_PHONE 权限,而是使用 Dialer intent。

设置电话号码并使用 ACTION_DIAL。

Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:" + phoneNumber));
context.startActivity(intent);

https://proandroiddev.com/no-more-sms-call-log-permissions-now-what-9b8226de7827

ACTION_CALL在 API 级别 1 中添加公共(public)静态最终字符串 ACTION_CALL Activity 操作:对数据指定的人执行调用。

输入:如果没有,则启动一个空的拨号器; else getData() 是要调用的电话号码的 URI 或 tel: 明确电话号码的 URI。

输出:无。

注意:哪些应用可以发起调用会有限制;大多数应用程序应使用 ACTION_DIAL。

注意:此 Intent 不能用于调用紧急号码。但是,应用程序可以使用 ACTION_DIAL 调用紧急号码。

注意:如果您的应用面向 M 及更高版本并声明使用未授予的 Manifest.permission.CALL_PHONE 权限,则尝试使用此操作将导致 SecurityException。

常量值:“android.intent.action.CALL”

https://developer.android.com/reference/android/content/Intent

关于android - 权限违规,但 list 不请求短信或通话记录权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54592324/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com