gpt4 book ai didi

android - PlayStore 不断拒绝应用更新以获得 MANAGE_EXTERNAL_STORAGE 权限,并且应用描述也没有更新

转载 作者:行者123 更新时间:2023-12-04 23:40:53 25 4
gpt4 key购买 nike

我的应用程序帮助用户管理whatsapp贴纸link to app并且它在第一个版本中支持 SDK30,但是在该版本之后,当我尝试更新新版本的应用程序 Playstore 时,我的应用程序状态被拒绝,我尝试了多次,我已经在应用程序描述甚至应用程序中提到了权限的原因在请求许可时,但我的应用程序没有更新,我的应用程序的简短描述和长描述都没有更新。
我也填写了敏感许可表,每当我尝试发布新版本时谷歌发送给我

Publishing Status App Status: Rejected

Your app has been rejected and wasn't published due to a policyviolation. If you submitted an update, the previous version of yourapp is still available on Google Play.

Issue: Access to device storage not required

The feature you identified does not require unrestricted access todevice storage. There are other privacy friendly options for accessingfiles in shared storage, such as using the system file picker, or,depending on the use case, you can follow the recommendations forreceiving data from other apps listed here.

Please update your app so that the feature uses a privacy friendlyalternative and remove All Files Access (MANAGE_EXTERNAL_STORAGE)permission.

Policy: All Files Access Permission

Files and directory attributes on a user's device are regarded aspersonal and sensitive user data subject to the Personal and SensitiveInformation policy and the following requirements:

Apps should only request access to device storage which is criticalfor the app to function, and may not request access to device storageon behalf of any third-party for any purpose that is unrelated tocritical user-facing app functionality. Android devices runningAndroid "R" (Android 11) or later, will require theMANAGE_EXTERNAL_STORAGE permission in order to manage access in sharedstorage. All apps that target R or later and request broad access toshared storage ("All files access") must successfully pass anappropriate access review prior to publishing. Apps allowed to usethis permission must clearly prompt users to enable "All files access"for their app under "Special app access" settings. For moreinformation on the R requirements, please see this help article.

Read more about Use of All Files Access Permission See Android storageuse cases and best practices and how to open files using storageaccess framework Address this issue in the Play Console. Issue: Nota core feature

The feature you identified that is dependent on this permission doesnot appear to be critical to the core functionality of your app.

Core functionality is defined as the main purpose of the app. Withoutthis core functionality, the app is "broken" or rendered unusable. Thecore functionality, as well as any core features that comprise thiscore functionality, must all be prominently documented and promoted inthe app's description.

Please update your app so that the feature does not use thispermission or ensure that the core functionality is prominentlydocumented and promoted in the app's description and resubmit your appon Play Developer console.

Policy: All Files Access Permission

Files and directory attributes on a user's device are regarded aspersonal and sensitive user data subject to the Personal and SensitiveInformation policy and the following requirements:

Apps should only request access to device storage which is criticalfor the app to function, and may not request access to device storageon behalf of any third-party for any purpose that is unrelated tocritical user-facing app functionality. Android devices runningAndroid "R" (Android 11) or later, will require theMANAGE_EXTERNAL_STORAGE permission in order to manage access in sharedstorage. All apps that target R or later and request broad access toshared storage ("All files access") must successfully pass anappropriate access review prior to publishing. Apps allowed to usethis permission must clearly prompt users to enable "All files access"for their app under "Special app access" settings. For moreinformation on the R requirements, please see this help article.

Read more about Use of All Files Access Permission See Android storageuse cases and best practices Address this issue in the Play Console.
Issue: Need to use Media Store API

You have requested access to All Files Access permission but itappears that your app's core feature requires access to only MediaFiles. With the MediaStore API, apps can contribute and access mediathat's available on an external storage volume without the need forthe access all files permission.

Please update your app so that the feature uses Media Store APIs andremove All Files Access (MANAGE_EXTERNAL_STORAGE) permission.

Policy: All Files Access Permission

Files and directory attributes on a user's device are regarded aspersonal and sensitive user data subject to the Personal and SensitiveInformation policy and the following requirements:

Apps should only request access to device storage which is criticalfor the app to function, and may not request access to device storageon behalf of any third-party for any purpose that is unrelated tocritical user-facing app functionality. Android devices runningAndroid "R" (Android 11) or later, will require theMANAGE_EXTERNAL_STORAGE permission in order to manage access in sharedstorage. All apps that target R or later and request broad access toshared storage ("All files access") must successfully pass anappropriate access review prior to publishing. Apps allowed to usethis permission must clearly prompt users to enable "All files access"for their app under "Special app access" settings. For moreinformation on the R requirements, please see this help article.

Read more about Use of All Files Access Permission See Android storageuse cases and best practices and how to access media files from sharedstorage Address this issue in the Play Console.

最佳答案

使用 MANAGE_EXTERNAL_STORAGE这不是一个好主意,除非您的应用程序是文件管理器、防病毒软件或清洁器应用程序。但是,在您的情况下,您只需要访问特定文件夹,即 /sdcard/emulated/0/WhatsApp .我们仍然有一个解决方法,可以通过 Storage Access Framework 授予此文件夹的完全访问权限。文件夹选择器。
您可以通过 Intent.ACTION_OPEN_DOCUMENT_TREE 强制用户选择 WhatsApp 文件夹, 然后用 ContentResolver#takePersistableUriPermission() 保存权限状态.但是编写自己的代码来处理这个问题可能需要付出很多努力。
我建议你使用SimpleStorage .因为它更简单:

class MainActivity : AppCompatActivity() {

private val storageHelper = SimpleStorageHelper(this)

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

storageHelper.onStorageAccessGranted = { _, root ->
Toast.makeText(
this,
"Folder ${root.getAbsolutePath(this)} is accessible now.",
Toast.LENGTH_SHORT
).show()
}

btnRequestStorageAccess.setOnClickListener {
// Force the user to select directory /sdcard/emulated/0/WhatsApp
// The access will be granted once the user selected this folder,
// and then you can explore this directory.
storageHelper.requestStorageAccess(
requestCode = REQUEST_CODE_STORAGE_ACCESS,
initialRootPath = StorageType.EXTERNAL,
expectedStorageType = StorageType.EXTERNAL,
expectedBasePath = "WhatsApp"
)
}
}

override fun onSaveInstanceState(outState: Bundle) {
storageHelper.onSaveInstanceState(outState)
super.onSaveInstanceState(outState)
}

override fun onRestoreInstanceState(savedInstanceState: Bundle) {
super.onRestoreInstanceState(savedInstanceState)
storageHelper.onRestoreInstanceState(savedInstanceState)
}
}
这个答案可能不符合你的期望,但你可以试试这个替代方案。

关于android - PlayStore 不断拒绝应用更新以获得 MANAGE_EXTERNAL_STORAGE 权限,并且应用描述也没有更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68139593/

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