FORUMS

Unable to grant permissions using adb

7 posts
Thanks Meter: 0
 
By ticatc3, Junior Member on 5th July 2018, 01:01 PM
Post Reply Email Thread
xiaomi mi max 2
I get an error:

adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS

Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
24th July 2018, 07:35 AM |#2  
Poley59's Avatar
Junior Member
Flag Fuengirola
Thanks Meter: 5
 
More
Turn on the USB debugging (Security settings)
15th August 2018, 12:22 AM |#3  
Junior Member
Thanks Meter: 0
 
More
Permissions not allowed
I'm not able to get permission either

./adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS

Operation not allowed: java.lang.SecurityException: Permission android.permission.BATTERY_STATS is not a changeable permission type
29th May 2019, 01:23 PM |#4  
MadK9's Avatar
Senior Member
Flag Bucharest
Thanks Meter: 41
 
More
Quote:
Originally Posted by Poley59

Turn on the USB debugging (Security settings)

The option is enabled and still nothing!
11th June 2019, 02:51 PM |#5  
Senior Member
Thanks Meter: 59
 
More
Quote:
Originally Posted by MadK9

The option is enabled and still nothing!

You have to turn all 3 usb debugging options on for miui.
The Following 3 Users Say Thank You to cpthero For This Useful Post: [ View ] Gift cpthero Ad-Free
4th November 2019, 04:45 PM |#6  
faizybhutta6266's Avatar
Junior Member
Flag Gujranwala
Thanks Meter: 1
 
More
thanks man
Quote:
Originally Posted by cpthero

You have to turn all 3 usb debugging options on for miui.

thanks dear it did worked for my Redmi Note 8 Pro
24th November 2019, 02:10 AM |#7  
Member
Thanks Meter: 11
 
More
Quote:
Originally Posted by cpthero

You have to turn all 3 usb debugging options on for miui.

Where you do that? Im on miui 11 android 9 (redmi note 8 pro)
10th December 2019, 10:06 PM |#8  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by danielofata

Where you do that? Im on miui 11 android 9 (redmi note 8 pro)

In the developers menu, you will find usb debugging and a bit more down the other one. I had to select both to get it working (mi 9t pro on miui 11 android 10)
4th January 2020, 01:58 AM |#9  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by Dxue

In the developers menu, you will find usb debugging and a bit more down the other one. I had to select both to get it working (mi 9t pro on miui 11 android 10)

Hi,

i am struggling with this right now. I got a Note 8 Pro with MIUI Global 11.0.3. I am trying to get BetterBatteryStats to show me what wakes up my phone. When using ADB i get the same error message ticatc3 got.

What exact setting do i need to activate? Most of them want me to "sign in to my Mi Account first" (what the heck for?).

If i knew how to attach a screenshot i would do so.

The Settings i got are:

USB debugging
Install via USB
USB Debugging (Security Settings)
Select debug app

Greetings
The Following User Says Thank You to tschesny For This Useful Post: [ View ] Gift tschesny Ad-Free
7th February 2020, 11:42 AM |#10  
Junior Member
Thanks Meter: 11
 
More
Realme X2 Pro - Color OS6 - USB debugging
Hey,

I just had the same problem with my Realme X2 Pro. USB debugging was not enough. It worked after I activated the bottom most option in the developer options:
"Disable Permission Monitoring" (English) / "Erlaubnisüberwachung deaktivieren" (German)

Just for completeness.
The Following 3 Users Say Thank You to dadri For This Useful Post: [ View ] Gift dadri Ad-Free
9th February 2020, 05:42 PM |#11  
Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by dadri

Hey,

I just had the same problem with my Realme X2 Pro. USB debugging was not enough. It worked after I activated the bottom most option in the developer options:
"Disable Permission Monitoring" (English) / "Erlaubnisüberwachung deaktivieren" (German)

Just for completeness.

thanks !

I was exactly looking for this
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes