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

Android O: Determing private data size not possible without root #844

Open
d4rken opened this issue Apr 17, 2017 · 1 comment
Open

Android O: Determing private data size not possible without root #844

d4rken opened this issue Apr 17, 2017 · 1 comment

Comments

@d4rken
Copy link
Owner

@d4rken d4rken commented Apr 17, 2017

The previous reflection call for getPackageSizeInfo no longer works on Android O.

There are now new APIs:
https://developer.android.com/reference/android/app/usage/StorageStatsManager.html
https://developer.android.com/reference/android/app/usage/StorageStats.html

They require the user to grant manual permission though.

Note: this API requires the permission android.permission.PACKAGE_USAGE_STATS, which is a system-level permission that will not be granted to normal apps. However, declaring the permission expresses your intention to use this API and an end user can then choose to grant this permission through the Settings application.

Also see:

@d4rken d4rken added this to the Next Tasks milestone Apr 17, 2017
@d4rken
Copy link
Owner Author

@d4rken d4rken commented Apr 17, 2017

Next update will start marking entries with 2,0 GB > and in Details 2,0 GB + Unknown if SD Maid isn't sure about the size.

Future update will implement setup pages to ask for the PACKAGE_USAGE_STATS permission and then make use of that.

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

Successfully merging a pull request may close this issue.

None yet
1 participant