[Java for Android App Development] quro13:
I wrote an app to lock the phone's screen, it requires using AccessibilityService API.

When I submit this app to play console, they return this issue: (attached file is the original)

App Status: Rejected​

Your app has been rejected and wasn't published due to the policy issue(s) listed below. If you submitted an update, the previous version of your app is still available on Google Play.

Issue found: Missing prominent disclosure​

We were unable to approve your app because we could not locate prominent disclosure of your use of the AccessibilityService API in your app.

Please update your app so that the prominent disclosure meets all the requirements as defined in the User Data Policy.

About the Accessibility API Policy​

The Accessibility API cannot be used to:

Change user settings without their permission or prevent the ability for users to disable or uninstall any app or service unless authorized by a parent or guardian through a parental control app or by authorized administrators through enterprise management software.

Work around Android built-in privacy controls and notifications or

Change or leverage the user interface in a way that is deceptive or otherwise violates Play Developer Policies.

The accessibility API is not designed and cannot be requested for remote call audio recording.

The use of the Accessibility API must be documented in the Play Store listing.

Apps with a core functionality intended to directly support people with disabilities are eligible to use the IsAccessibilityTool to appropriately publicly designate themselves as an accessibility app. Apps not eligible for IsAccessibilityTool may not use the flag and must meet prominent disclosure and consent requirements as outlined in the User Data policy as the accessibility related functionality is not obvious to the user. Please refer to the AccessibilityService API help center article for more information.

Apps must use limited, more narrowly scoped APIs and permissions in lieu of the Accessibility API when possible to achieve the desired functionality.

Additionally, follow these steps to bring your app into compliance: Read more about AccessibilityService API Capability and Prominent Disclosure best practices

Action required: Submit an updated app for review​

Here's what to do to help get your app on Google Play:

Make sure to read the applicable policies or requirements listed below:

Accessibility API Policy

Make appropriate changes to your app (if possible), and be sure to address the issue described above. You may also want to check your app's store listing for compliance, if applicable.

Double check that your app is compliant with all other Developer Program Policies.

If you made changes to your app bundle, store listing, or APK, please sign in to your Play Console and submit the update(s).

==================

And this is my Full Description of my app in Play Console:

There is only one function here: Turn off the screen and lock it, then you can unlock the phone by using Fingerprint or Pattern , it does not requires passwords to unlock.

For android 11+.

*Hold down the app's icon to pop up the menu -> choose "Read me" to open screen that show prominent disclosure of using of the AccessibilityService API in this app.

How to use:

- Install application

- Go to phone Settings -> Apps -> QLockScreen -> Tap on 3 dots (top right conner) -> Choose "allow restricted settings"

- Go to phone Settings ->Accessibility -> QLockScreen -> Turn on "Use QScreenLock"

Now, everytime you open app, the phone will turn off the screen and lock.

Permissions:

- This application use AccessibilityService API to have right to lock your phone screen.

- This application does not collect or store any data.

1. Why does this app need to use the Accessibility Services API?

- For App functionality only: This application use AccessibilityService API to have right to lock your phone screen.

2. Does this app collect and/or share personal or sensitive data using the accessibility capabilities?

- No.

This video show how to view "read me" screen, which contains all about app and requiret permission (I also post it in App content -> Sensitive permissions and APIs in Play Console):

https://photos.app.goo.gl/Q9KPG1iu7XZV1DpB8

My app's screenshot:

View attachment 5838739View attachment 5838741View attachment 5838743

Please let me know how to solve this issue.

Thanks a lot.