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]: Missing android.permission.PACKAGE_USAGE_STATS permission #2269

Closed
ErrrorMaxx opened this issue Sep 12, 2021 · 2 comments
Closed

[Bug]: Missing android.permission.PACKAGE_USAGE_STATS permission #2269

ErrrorMaxx opened this issue Sep 12, 2021 · 2 comments

Comments

@ErrrorMaxx
Copy link

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 fails

Steps to reproduce the behavior.

Run /system/bin/dumpsys batterystats

What is the expected behavior?

Command works properly

System information

  • Termux application version: 0.117
  • Android OS version: 11
  • Device model: Realme 7
@agnostic-apollo
Copy link
Member

Have you granted Termux android.permission.DUMP with adb shell pm grant com.termux android.permission.DUMP?

@ErrrorMaxx
Copy link
Author

Yes

AdamMickiewich pushed a commit to VolyaTeam/dzida-app that referenced this issue Aug 8, 2022
The permission can be granted from `Android Settings` -> `System` -> `Usage Access`.

Closes termux#2269
shrihankp pushed a commit to reisxd/termux-app that referenced this issue Oct 20, 2022
The permission can be granted from `Android Settings` -> `System` -> `Usage Access`.

Closes termux#2269
@termux termux deleted a comment Feb 15, 2024
@termux termux deleted a comment Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants