这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@orzomaxx

Description

@orzomaxx

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions