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

Comments

1 participant
@d4rken
Owner

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 d4rken added the enhancement label Apr 17, 2017

@d4rken

This comment has been minimized.

Owner

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