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

can't grant BATTERY_STATS DUMP PACKAGE_USAGE_STATS #917

Open
jlmxyz opened this issue Jul 1, 2023 · 1 comment
Open

can't grant BATTERY_STATS DUMP PACKAGE_USAGE_STATS #917

jlmxyz opened this issue Jul 1, 2023 · 1 comment

Comments

@jlmxyz
Copy link

jlmxyz commented Jul 1, 2023

running android 12 /e/os

enabled adb debugging and adb root debugging

tried : just grant the permissions
adb root
adb -d shell pm grant com.askven.betterbatterystats android.permission.BATTERY_STATS
adb -d shell pm grant com.askven.betterbatterystats android.permission.DUMP
adb -d shell pm grant com.askven.betterbatterystats android.permission.PACKAGE_USAGE_STATS
adb -d shell settings put global hidden_api_policy 1

still get the message

tried : move as system app
adb root
adb remount
adb shell
cd /data/app/
find -name "betterbatterystats"
cd
-- the apk is not named com.askven.betterbatterystats but base.apk
mkdir /system/app/com.askven.betterbatterystats
mv * /system/app/com.askven.betterbatterystats
chown -R root /system/app/com.askven.betterbatterystats
chgrp -R root /system/app/com.askven.betterbatterystats
tried also to fix some perms to looks like the installed as system app
exit
adb reboot

still get the message : Neither user 10172 not current process.....

tried to redoo pm grant commands.... nothing... what I'm doing wrong?

@Jrribas
Copy link

Jrribas commented Jul 3, 2023

Hello,
same thing is happening to me.
Using Alphadroid. Could that be the problem?

Edit: Nevermind, I was using the wrong package name!

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

No branches or pull requests

2 participants