I can't enable WRITE_SECURE_SETTINGS for an app over ADB - Oppo Find X Questions & Answers

I'm using the Chinese Find X, and when I try to give permission to an app to use WRITE_SECURE_SETTINGS via ADB.
I enter this:
adb shell pm grant it.simonesestito.ntiles android.permission.WRITE_SECURE_SETTING
and am met with:
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
I have never had this problem with a phone, Chinese ROM or not.
I also tried enabling immersive mode, and received:
Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
I couldn't find anything on Google. Can anybody help me out?
tyia

The more you dig into Chinese rom, the sooner you will find that Chinese android sys is not android, it's AnZhuo......
Apparently, the permission is removed for this operation.

You have to turn off the last security option in dev mode on your X. Did not remeber the name.

dragon-tmd said:
You have to turn off the last security option in dev mode on your X. Did not remeber the name.
Click to expand...
Click to collapse
hi, same problem here. Where can I find the "last security option" - what does it mean? DonĀ“t have any idea to solve it

In developer options, enable "USB Debugging (Security settings). If you do not know how to enable developer options in android, search google.

last option in dev mode : Disable permission monitoring

abidalishakir.khan said:
In developer options, enable "USB Debugging (Security settings). If you do not know how to enable developer options in android, search google.
Click to expand...
Click to collapse
Thank you, sir. Spot on!

Worked on realme 3 pro too.!!
stutoni said:
last option in dev mode : Disable permission monitoring
Click to expand...
Click to collapse
Thanks sir/ma'am ??

stutoni said:
last option in dev mode : Disable permission monitoring
Click to expand...
Click to collapse
Thanks! Worked on my Reno 10x Zoom.

stutoni said:
last option in dev mode : Disable permission monitoring
Click to expand...
Click to collapse
Thanks, you save my day

Thanks
abidalishakir.khan said:
In developer options, enable "USB Debugging (Security settings). If you do not know how to enable developer options in android, search google.
Click to expand...
Click to collapse
This has helped all the devices running ColourOS like my Realme U1. Thanks anyway

stutoni said:
last option in dev mode : Disable permission monitoring
Click to expand...
Click to collapse
cheers man i was wondering why i kept having issues with battery_stats for my reno z and this fixed it.

abidalishakir.khan said:
In developer options, enable "USB Debugging (Security settings). If you do not know how to enable developer options in android, search google.
Click to expand...
Click to collapse
thanks. It worked on a Mi Note 10 lite

erase & format....
Good morning/noon/afternoon and evening... Just asking if there is a easy way to activate the oppo find x PAFM00 version after erasing data and reformat then the device lock and forgot the oppo id to activate? thanks...

thanks from oppo F9 users

stutoni said:
last option in dev mode : Disable permission monitoring
Click to expand...
Click to collapse
Thank you so much.

stutoni said:
last option in dev mode : Disable permission monitoring
Click to expand...
Click to collapse
Thank you. Spot on!
I kept getting this error, despite enabling USB debugging, and able to connect with adb shell. And by disabling the permission monitoring setting, I can change the Android settings now, and this is for Realme C2.

adityakar said:
Thanks! Worked on my Reno 10x Zoom.
Click to expand...
Click to collapse
Didn't work for my oppo f9 pro ,COLORos ,also have disable permission monitoring but still same issue I don't know why I tried to grant permission once before after enabling that disable permission monitoring option and it worked but am doing that again after a couple of days but idk why it doesn't work even after enabling that option now,btw I am trying to use root tiles in quick settings and through adb I wanna grant the permissions to use root needing tiled to be enabled

Kang saab6 said:
Didn't work for my oppo f9 pro ,COLORos ,also have disable permission monitoring but still same issue I don't know why I tried to grant permission once before after enabling that disable permission monitoring option and it worked but am doing that again after a couple of days but idk why it doesn't work even after enabling that option now,btw I am trying to use root tiles in quick settings and through adb I wanna grant the permissions to use root needing tiled to be enabled
Click to expand...
Click to collapse
did you find a solution?

Related

Missing Developer Options Setting? Help please!

Apologize in advance for the noob struggle but I searched the forums for this and found nothing.
I am a new owner of a Tablet Z, love it but want to make Chrome behave like a desktop browser by default. Have found many places to describe how to do this but they all rely on ADB. ADB relies on USB debugging being turned on. All directions call for going to "Settings->Developer Options" and turnign on USB debugging. However on my Xperia Tablet Z (SW version is Android 4.3 build 10.4.1.B.0.109 if that helps) there is NO "Developer Options" anywhere in the Settings list. I have patiently gone through every option on the device and it plain does not exist. Do I need to boot in some special mode to see it?
maypo said:
Apologize in advance for the noob struggle but I searched the forums for this and found nothing.
I am a new owner of a Tablet Z, love it but want to make Chrome behave like a desktop browser by default. Have found many places to describe how to do this but they all rely on ADB. ADB relies on USB debugging being turned on. All directions call for going to "Settings->Developer Options" and turnign on USB debugging. However on my Xperia Tablet Z (SW version is Android 4.3 build 10.4.1.B.0.109 if that helps) there is NO "Developer Options" anywhere in the Settings list. I have patiently gone through every option on the device and it plain does not exist. Do I need to boot in some special mode to see it?
Click to expand...
Click to collapse
multiple tap on the Build number under the about tablet will bring the developer options ....
MikeViller said:
multiple tap on the Build number under the about tablet will bring the developer options ....
Click to expand...
Click to collapse
Thank you! Holy cow how mysterious can you get.
At any rate, that worked but now when I try to actually download the chrome command line text file to the root filesystem using adb I don't have permissions to do the copy. I get:
c:\Android-SDK\sdk\platform-tools>adb push /chrome-command-line /data/local/chrome-command-line
failed to copy '/chrome-command-line' to '/data/local/chrome-command-line': Permission denied
Anyone know how to modify permissions so ADB will be able to perform this copy?

mobile data dis/enable via shell command in marshmallow

Until Android 6.o arrived you had this command:
Code:
svc data enable
to enable mobile data. That does not work anymore on marshmallow.
Is there any way to solve that in marshmallow?
I need that in my tasker profiles for perfect automation.
I searched with goole a long time and found nothing.
Thanks in advance!
Can you paste here the error?
Did you try to set SELinux to permissive mode?
throwaway-throwaway said:
Can you paste here the error?
Did you try to set SELinux to permissive mode?
Click to expand...
Click to collapse
sorry I can't.. as this feature is mandatory I installed a Lollipop Rom. I can't remember the error.. sorry

How to: Enable Power Saver Mode

For those that don't know, here's how to enable Power saver mode on the vzw model.
You need:
Root
Root browser/ root explorer/ etc.
Navigate to system/ customize/ CID/ Default.xml. scroll about 1/3 of the way down until you find "def_hide_ui_powersaver" >1</item<item> and change value to "0".
Reboot device, then go to home screen, long press to add widget, select shortcuts, then down to power saver. This will put a shortcut to the power saver menu that is hidden from us.
Note that you must mount R/W or the edit will not work. This will not enable the quick setting or for it to show up in the regular power options menu but this will work for now.
Good luck
Thanks to aer0zer0 for pointing me in the right direction.
I can verify that this can also be enabled on unrooted devices as well. Credit goes to user l7777 in this post: http://forum.xda-developers.com/verizon-htc-10/help/verizon-version-missing-options-t3376634.
For the powersaver mode, try this from a computer with working ADB
Code:
Code:
adb shell "settings list secure | grep power"
If it returns something that looks like this
Code:
Code:
hide_ui_user_powersaver=1
Then try
Code:
Code:
adb shell "settings put secure hide_ui_user_powersaver 0"
This does not require root if done from a computer. It will require root if done from a terminal on the device. This is what works on an M9 running Marshmallow. It may or may not work on the 10. You can also try
Code:
Code:
adb shell "settings list secure"
To get a list of all the settings.
Click to expand...
Click to collapse
I had to restart my phone after making the change in ADB. The only thing that doesn't seem to work correctly is when I click on the Battery Saver Mode to edit the settings, I will receive an error message. The Battery Saver Mode will turn on and off with no issue.
Must have missed that one. I went through that post a couple days ago. Guess this will work for those that can't or don't know how to setup and use adb
Sent from my HTC6545LVW using Tapatalk
Evocm7 said:
For those that don't know, here's how to enable Power saver mode on the vzw model.
You need:
Root
Root browser/ root explorer/ etc.
Navigate to system/ customize/ CID/ Default.xml. scroll about 1/3 of the way down until you find "def_hide_ui_powersaver" >1</item<item> and change value to "0".
Reboot device, then go to home screen, long press to add widget, select shortcuts, then down to power saver. This will put a shortcut to the power saver menu that is hidden from us.
Note that you must mount R/W or the edit will not work. This will not enable the quick setting or for it to show up in the regular power options menu but this will work for now.
Good luck
Thanks to aer0zer0 for pointing me in the right direction.
Click to expand...
Click to collapse
If it is like the M9 on marshmallow, after making that edit, if you factory reset it, the menu option should appear in the standard menu. its alot easier to either put it in as a shortcut, or use xtended settings, and add it to the power menu, or gravity box, and add custom quicksetting tiles (1 of which being battery, it will also show battery temp and mAh remaining).
Once we get a deodexed based, or even a stock odex flash, we can make those edits prior to flash and it will be in the menu as normal
edit, i also believe if you edit the next line (120) def_hide_ui_user_powersaver and set it to 0, this is what will enable the menu on factory reset
Note that this survives reboot and/or power recycle. Using the adb approach for unrooted handsets, got it working on both my own and a test device.
UPDATE: So far as I can tell, the latest OTA to 1.19.605.22 breaks this ability.
hgoldner said:
Note that this survives reboot and/or power recycle. Using the adb approach for unrooted handsets, got it working on both my own and a test device.
UPDATE: So far as I can tell, the latest OTA to 1.19.605.22 breaks this ability.
Click to expand...
Click to collapse
Can confirm that the latest update definitely does break this ability (no root). =(
im_high_tech said:
Can confirm that the latest update definitely does break this ability (no root). =(
Click to expand...
Click to collapse
I think the only way to do this is to write to \system; so for those who don't want to flash a custom ROM or write to \system, it's out of reach for now.
And especially galling because the 10's on all the other carriers have the feature. Verizon kills it.
@andybones has it in the stock deodex base, but if you are working off of the odex base, the easiest way is probably gravitybox, and using the QS tile to toggle it (still requires root). Just make sure you are using systemless xposed to not touch the system partition as @hgoldner pointed out, if you need it.
by stock base, i mean OTA to 1.19.605.22
Battery Saver Mode Settings
You can change the power saver mode settings if you install the apk from apk mirror http://www.apkmirror.com/apk/htc-corporation/power/
klarthur said:
I can verify that this can also be enabled on unrooted devices as well. Credit goes to user l7777 in this post: http://forum.xda-developers.com/verizon-htc-10/help/verizon-version-missing-options-t3376634.
I had to restart my phone after making the change in ADB. The only thing that doesn't seem to work correctly is when I click on the Battery Saver Mode to edit the settings, I will receive an error message. The Battery Saver Mode will turn on and off with no issue.
Click to expand...
Click to collapse
This modification can be done using Magisk, without editing /system. You need to cache-mount the edited default.xml using Magisk, and Magisk mount the patched SystemUI.apk and HtcPowerManager.apk from @andybones' deodexed stock ROM. HUUUGE thanks to @Captain_Throwback for helping me figure this out and tolerating all-too-frequent stupid mistakes getting to this point, and, of course, none of this would be possible without the amazing efforts of @topjohnwu in creating Magisk in the first place.
I will post detailed instructions if someone is interested.
jackebuehner said:
You can change the power saver mode settings if you install the apk from apk mirror http://www.apkmirror.com/apk/htc-corporation/power/
Click to expand...
Click to collapse
I just tried installing this on my stock, non-rooted Verizon HTC 10 and it didn't give me any new options for power saver mode. I installed the most recent version from apk mirror and then rebooted. Everything looks the same. I'm on version 3.057.92923
Sent from my HTC6545LVW using Tapatalk
Chewieez said:
I just tried installing this on my stock, non-rooted Verizon HTC 10 and it didn't give me any new options for power saver mode. I installed the most recent version from apk mirror and then rebooted. Everything looks the same. I'm on version 3.057.92923
Sent from my HTC6545LVW using Tapatalk
Click to expand...
Click to collapse
You have to follow the steps in post #2 before installing the APK does anything. The APK just makes it so that power saver mode settings doesn't crash.
jackebuehner said:
You have to follow the steps in post #2 before installing the APK does anything. The APK just makes it so that power saver mode settings doesn't crash.
Click to expand...
Click to collapse
I believe he is referencing the fact that not all of the available settings are shown. From screenshots of the book on the HTC one there should be settings for what power saver does.
CPU
Display
Vibration
Data connection
Useful settings. I would like to be able to turn down the processor without turning off data.
mrbacks said:
I believe he is referencing the fact that not all of the available settings are shown. From screenshots of the book on the HTC one there should be settings for what power saver does.
CPU
Display
Vibration
Data connection
Useful settings. I would like to be able to turn down the processor without turning off data.
Click to expand...
Click to collapse
You'll likely need a custom kernel for that, which means root access and either unlocked bootloader or S-OFF. Once you're in that boat, you'll need Magisk to clear Safety.net. It's not otherwise doable on pure unrooted stock. FWIW, if you are rooted, you can use @flar2's ElementalX kernel which is quite good, especially when used with the helper app allowing you to tweak all settings.

I want to root my t-mobile coolpad rogue 3320A but have no computer

I have a t-mobile coolpad rogue 3320A that I want to root but I have no computer so if anyone has any ideas how to root it I'm all ears....would going to the library be a good idea?
Thanks
-Blade
WarmasterBlade said:
I have a t-mobile coolpad rogue 3320A that I want to root but I have no computer so if anyone has any ideas how to root it I'm all ears....would going to the library be a good idea?
Thanks
-Blade
Click to expand...
Click to collapse
Don't worry about the library. You can root without a PC using the KingRoot.apk. Hers what you need to do.
Download the KingRoot apk from here:
http://androidmtk.com/download-kingroot-application
1)if you haven't already done so, enable developer options in your settings by going to the "about" tab in settings, scroll down to "build number" and tap on it 7 times to enable developer options.
2) enable USB debugging in developer options
3) enable OEM boot loader unlock in developer options
6) enable unknown sources in Settings-Security-Unknown Sources
7) install KingRoot apk
8) run KingRoot
9)Bam! You are rooted. You can also install BusyBox.
Let me know if this works for you.
Sent from my Nexus 6 using XDA-Developers mobile app
fast69mopar said:
Don't worry about the library. You can root without a PC using the KingRoot.apk. Hers what you need to do.
Download the KingRoot apk from here:
1)if you haven't already done so, enable developer options in your settings by going to the "about" tab in settings, scroll down to "build number" and tap on it 7 times to enable developer options.
2) enable USB debugging in developer options
3) enable OEM boot loader unlock in developer options
6) enable unknown sources in Settings-Security-Unknown Sources
7) install KingRoot apk
8) run KingRoot
9)Bam! You are rooted. You can also install BusyBox.
Let me know if this works for you.
Sent from my Nexus 6 using Developers mobile App
I've done that but now the games I wanted to root won't load should I'm going to restart my phone and see if that works but if not what should I do?
Click to expand...
Click to collapse
Another problem
I can't access the play store or anything else how do I reinstall my stuff now
Oh nevermind
WarmasterBlade said:
I can't access the play store or anything else how do I reinstall my stuff now
Click to expand...
Click to collapse
Oh nevermind I figgured it out. The app reset my clock I fixed it alls good my apps should work now too
Glad you're back up and running. Good work.
Sent from my Nexus 6 using XDA-Developers mobile app
Please help
Softbricked my Coolpad Rogue 3320a with SuperSU.
My only options to fix are:
1. Finding someone with a 3320a who is willing to dump their working system.img and upload it for me, so I can download it and fastboot flash the working system.img, to overwrite my corrupted system.
2. Waiting for stock rom to be released.
3. Smashing it with a Hammer.
Someone please be kind/Knowledgeable enough to help.

How To Guide Call recording working in GT 2 pro ( no root )

Finally i found a method to record call on realme gt 2 pro global gdpr version, who is persistent at boot. No root, no bootloader unlock.
Step one : install setedit from play store and add op_voice_recording_supported_by_mcc with 1 value to global settings. You have to give Setedit write secure rights with adb
Step two : install phone apk below.
That's it. Start Google dialer and make a call. Still works after reboot.
Not working : automatic call recorder, you have to press record button when you're in call.
Notice: if you don't see record button in Google dialer , is normal, just press back button to see realme dialer.
This should work on all color os 3 device.
Recorded call are in internal memory / music/ recordings/ call recordings folder.
ENJOY !!
No working... No see
Which apk needs to be installed for step two?
NVM I figured it out
Not working, it has changed the dialer but instead of recording button I have a "contacts" button and when I press it nothing happens.
Please uninstall phone from installed apps and install again.
criszz said:
Please uninstall phone from installed apps and install again.
Click to expand...
Click to collapse
Same, tried also to reboot but nothing
No permission to add a new line in Global Table
RazvanelTM said:
No permission to add a new line in Global Table
Click to expand...
Click to collapse
Same here, I've added the option in the system table maybe that's why it is not working
Yes, you must provide write secure rights for setedit with adb to edit in global.
Updated first post with that.
criszz said:
Yes, you must provide write secure rights for setedit with adb to edit in global.
Updated first post with that.
Click to expand...
Click to collapse
How can do? Have any tutorials?
manu81cba said:
How can do? Have any tutorials?
Click to expand...
Click to collapse
By default, for your protection, Android prevents you from modifying the SECURE and GLOBAL tables. If you have Android Jellybean or later, you can remove this protection from an ADB shell using the command "pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS". On earlier versions, you can only remove this protection on a rooted device by installing SetEdit to the system partition.
All working flawless now I can confirm that
Not working when giving the permission in adb
RazvanelTM said:
Not working when giving the permission in adb
Click to expand...
Click to collapse
Try to activate first in the developers options this one: "Disable permission monitoring"
shootemdown371 said:
Try to activate first in the developers options this one: "Disable permission monitoring"
Click to expand...
Click to collapse
It worked, thanks!
Now it's confirmed to work and we must think how to enable automatically record for all calls. People who said not working without knowing, please edit your post.
In setedit ...you know what need change for active the volte ?
Thank you very much it's working for me!
PS for those unfamiliar with SetEdit can also use this in adb after disabling permission monitoring:
adb shell settings put global op_voice_recording_supported_by_mcc 1
Just must be applied after every restart ( that is what i read )
Nice post, thanks for sharing. Any solution for Xiaomi Redmi Note 10S, Global ROM MI?
Also working on the regular gt2

Categories

Resources