Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] pm clear --cache-only not working #192

Open
AlexeiCrystal opened this issue Mar 2, 2025 · 3 comments
Open

[bug] pm clear --cache-only not working #192

AlexeiCrystal opened this issue Mar 2, 2025 · 3 comments

Comments

@AlexeiCrystal
Copy link

AlexeiCrystal commented Mar 2, 2025

The pm clear --cache-only command does not work. On my device it clears all application data, not just the cache. This is most likely due to the fact that the pm clear command with the --cache-only attribute does not exist.

Upd: I have searched the internet and this command doesn't work for many people, but there are some that do, maybe this command has appeared on newer sdk. Maybe we should add to the commands their mini SDK versions for execution.

Device: Redmi note 9 Pro
Android: 12
SDK: 31
MIUI: 14
REGION: GLOBAL

@DP-Hridayan
Copy link
Owner

DP-Hridayan commented Mar 2, 2025 via email

@DP-Hridayan
Copy link
Owner

I have looked into it and the command is only clearing the cache NOT THE DATA. I have tried with several apps but only the cache was cleared.

@AlexeiCrystal
Copy link
Author

But on my device, it clears all the app data. I have tried with different apps. Maybe it depends on android version and maybe something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants