We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I tried to run /system/bin/dumpsys batterystats on my device, I got this:
/system/bin/dumpsys batterystats
Permission Denial: can't dump OppoBatteryStatsService from from pid=5147, uid=10349 due to missing android.permission.PACKAGE_USAGE_STATS permission
Termux app does not request android.permission.PACKAGE_USAGE_STATS permission, so this command fails
android.permission.PACKAGE_USAGE_STATS
Run /system/bin/dumpsys batterystats
Command works properly
The text was updated successfully, but these errors were encountered:
Have you granted Termux android.permission.DUMP with adb shell pm grant com.termux android.permission.DUMP?
android.permission.DUMP
adb shell pm grant com.termux android.permission.DUMP
Sorry, something went wrong.
Yes
865f29d
Added: Request android.permission.PACKAGE_USAGE_STATS permission
81368bf
The permission can be granted from `Android Settings` -> `System` -> `Usage Access`. Closes termux#2269
ac48992
No branches or pull requests
Problem description
When I tried to run
/system/bin/dumpsys batterystats
on my device, I got this:Permission Denial: can't dump OppoBatteryStatsService from from pid=5147, uid=10349 due to missing android.permission.PACKAGE_USAGE_STATS permission
Termux app does not request
android.permission.PACKAGE_USAGE_STATS
permission, so this command failsSteps to reproduce the behavior.
Run
/system/bin/dumpsys batterystats
What is the expected behavior?
Command works properly
System information
The text was updated successfully, but these errors were encountered: