PCleaner Permissions & Sensitive Access
Last updated
Overview
PCleaner (com.phosphene.cleaner, version 0.1.0, minSdk 26, targetSdk 36) is an on-device storage cleaner. Two permissions need a Play Console declaration: All files access (MANAGE_EXTERNAL_STORAGE) and the Accessibility API. Usage access, uninstall requests, notifications and boot completion are explained below for reviewers but do not need a separate form. The app does not request QUERY_ALL_PACKAGES, location, contacts, camera, microphone, SMS or call log permissions.
| Permission | Declaration needed | Granted through |
|---|---|---|
MANAGE_EXTERNAL_STORAGE (Android 11+) |
Yes, All files access form | Settings, All files access, toggled by the user |
READ_EXTERNAL_STORAGE (up to Android 12L), WRITE_EXTERNAL_STORAGE (up to Android 10) |
No | Runtime dialog on older Android versions |
Accessibility service CacheCleanerService |
Yes, Accessibility API form | Settings, Accessibility, toggled by the user |
PACKAGE_USAGE_STATS |
No form; explained in listing and app | Settings, Usage access, toggled by the user |
REQUEST_DELETE_PACKAGES |
No | System uninstall confirmation per app |
POST_NOTIFICATIONS, RECEIVE_BOOT_COMPLETED |
No | Runtime dialog (Android 13+); install time |
INTERNET, ACCESS_NETWORK_STATE, AD_ID |
No form; Advertising ID declared as “Yes” | Install time |
All files access declaration
Core use case to select: file management and device storage clean-up. PCleaner’s core purpose is to find and remove unwanted files across all of shared storage.
Usage description for the form:
PCleaner is a storage cleaner. Its core features scan all of shared storage to find large files, exact duplicates, look-alike photos and videos, screenshots, junk files, empty folders, folders left behind by uninstalled apps, and media saved by messaging and social apps such as WhatsApp and Telegram (including their folders under Android/media). It shows the results with sizes and previews, and deletes only the files the user selects and confirms. All scanning, hashing and image fingerprinting happens on the device; no file, file name or scan result is uploaded.
Why scoped storage, MediaStore and the Storage Access Framework are not enough:
- MediaStore only exposes media and some downloads. Duplicate documents, archives, APKs, leftovers, empty folders and other junk are not visible through it, and deleting media owned by other apps requires a separate confirmation for every batch.
- Junk and leftover detection needs to walk the real folder tree and inspect folders created by other apps and by apps that have since been uninstalled. Scoped storage hides these.
- The Storage Access Framework requires the user to pick folders one at a time and cannot grant access to the root of storage or to the Download folder on Android 11 and later, which makes a whole-device duplicate or large-file scan impossible.
- Messaging-app media lives in other apps’ folders; a cleaner must read and delete there to be useful.
Where the user grants it: in onboarding and whenever a scan screen needs it, the app explains the access and opens Android’s All files access page for PCleaner, where the user turns it on. Onboarding shows:
All files access Find large files, duplicates, look-alike images, WhatsApp media and junk, and delete the ones you choose.
The onboarding screen is introduced with: “PCleaner works entirely on your phone. Allow these so every feature works — you can change them any time in Settings.”
Accessibility API declaration
What the service is: “PCleaner cache cleaner” (com.phosphene.cleaner.accessibility.CacheCleanerService), declared with isAccessibilityTool="false". It is not an accessibility tool for users with disabilities.
What it does: Android does not let apps clear other apps’ caches. When the user starts a clean, the service opens each selected app’s App info page in Android Settings, navigates to its storage section and presses the system “Clear cache” button, then moves to the next app and returns to PCleaner with a summary of space freed.
Why the Accessibility API is required: it is the only way to press the system “Clear cache” button on the user’s behalf. There is no public API for clearing another app’s cache since Android 6.0, and the alternative is for the user to open and tap through Settings for every app manually.
User-initiated only: the service runs only after an explicit user action:
- tapping “Clean cache” (or a rewarded “clean all apps once” offer) on the App cache screen;
- tapping the one-tap home-screen widget;
- tapping a scheduled auto-clean “due” notification or “Clean now” on the Auto-clean screen. Scheduled folders never clean by themselves; the schedule only posts a notification.
The service is switched off between cleans. When a clean is started and the service is off, the app sends the user to PCleaner’s switch in Accessibility settings; the clean starts once it is turned on, and the service calls disableSelf() when the clean ends, or after 90 seconds with nothing to do. This also keeps payment and banking apps, which refuse to work while a third-party accessibility service is on, working normally.
Data handling: the service reads only the Settings and App info windows it opens (it ignores windows from any other package) to find labels and buttons and to read the cache size shown. It watches for the notification shade, incoming calls and alarms only to pause or step aside. It does not collect, store or transmit any data, does not read messages, passwords or other apps’ content, does not log keystrokes and does not change any settings other than pressing “Clear cache”.
Accessibility service description shown by Android (accessibility_description):
PCleaner uses this service only when you tap “Clean cache”, or when an auto-clean folder you set up is due (after you unlock your phone, with 5 seconds to skip). It opens each selected app’s settings page and taps the system “Clear cache” button for you. It does not read your personal data or send anything off the device.
Prominent disclosure shown in the app
Shown before the user first turns the service on (from the App cache screen, the Auto-clean screen and onboarding), with the buttons “Continue” and “Not now”. The service cannot be reached from the app without accepting it. Text, exactly as shown:
One-tap cache clean
To clear cache for you, PCleaner uses an Accessibility service. During a clean it opens each selected app’s settings page and presses the system “Clear cache” button.
It is on only while cleaning: for each clean you switch it on, it cleans, and it turns itself off right after — so payment and banking apps keep working.
It never reads your messages, passwords or screen content and never collects data.
Next: tap “PCleaner cache cleaner”, turn it on and tap Allow.
On Android 13 and later this line is added:
If the switch is greyed out: open PCleaner’s App info → ⋮ menu → “Allow restricted settings”, then try again.
Usage access
PACKAGE_USAGE_STATS is granted by the user in Settings, Usage access. The app uses it only to call StorageStatsManager for app, data and cache sizes, so it can show which apps hold the most cache and measure how much a clean freed. It does not read usage history, screen time or which apps the user opens. Onboarding explains: “See how much space and cache each app uses. Android only shares app sizes with apps that have this.”
Request delete packages
REQUEST_DELETE_PACKAGES lets the app open Android’s standard uninstall prompt for apps the user picks in the Storage, Apps screen. Android asks the user to confirm each uninstall; the app cannot remove anything silently.
Notifications and boot
POST_NOTIFICATIONS: tells the user when a scheduled auto-clean folder is due (the user taps to run it or skips it) and how much space a clean freed. Onboarding explains: “Tells you when a scheduled auto-clean is due, and how much space it freed.”RECEIVE_BOOT_COMPLETED: re-arms the user’s auto-clean schedule after a reboot, an app update, or a time or time-zone change. Nothing is cleaned at boot.
Package visibility
The app declares <queries> for launchable apps (to list apps and their cache sizes), the Settings App info screen, and a fixed list of 23 messaging and social apps (for example WhatsApp, Telegram, Instagram, Facebook, Snapchat, Signal and ShareChat) so it can show their media folders only when they are installed. It does not use QUERY_ALL_PACKAGES.
Demo video script
Record on a physical phone running Android 13 or later, in English, 60 to 120 seconds, uploaded as an unlisted YouTube video and linked in both declarations.
- Fresh install. Launch PCleaner and show the onboarding screen with the All files access, Usage access, Cache cleaner and Notifications explanations.
- Tap Allow next to All files access. Show Android’s All files access page for PCleaner and turn it on. Return to the app.
- Open Large files, then Duplicates. Show results, select a few files, tap delete, show the confirmation dialog and confirm. Say or caption: “Files are scanned and deleted on the device; nothing is uploaded.”
- Open App cache. Grant Usage access when asked and show app cache sizes.
- Select two or three apps and tap “Clean cache”. Show the full “One-tap cache clean” prominent disclosure and tap Continue.
- Show Android’s Accessibility settings, tap “PCleaner cache cleaner”, turn it on and tap Allow.
- Show the service opening each app’s App info page and pressing “Clear cache” automatically, then returning to PCleaner with the space-freed summary.
- Open Accessibility settings again to show the service has turned itself off.
- Show the Auto-clean screen with a folder and schedule, then the “due” notification and tapping it to start a clean, to show that scheduled cleans still need a user tap.
- Optionally show the home-screen widget starting a clean after a tap.