Error: Requires permission android.permission.WRITE_SECURE_SETTINGS
See original GitHub issueXiaoMi4 Android 6.0 MIUI8
$ ./gnirehtet rt
Starting gnirehtet...
'adb' reverse tcp:31416 tcp:31416
'adb' shell am startservice -a com.genymobile.gnirehtet.START
Starting service: Intent { act=com.genymobile.gnirehtet.START }
Error: Requires permission android.permission.WRITE_SECURE_SETTINGS
'java' -jar relay.jar
2017-04-06 17:31:05.886 I Main: Starting server...
Stopping gnirehtet...
'adb' shell am startservice -a com.genymobile.gnirehtet.STOP
Starting service: Intent { act=com.genymobile.gnirehtet.STOP }
Error: Requires permission android.permission.WRITE_SECURE_SETTINGS
[Edit by @rom1v] Solution: https://github.com/Genymobile/gnirehtet/issues/302#issuecomment-973850470
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:30
Top Results From Across the Web
How to set the Permission WRITE_SECURE_SETTINGS in ...
The best solution for this is, simply go to developer option and turn on the option disable permission monitoring, so now if you...
Read more >I can't enable WRITE_SECURE_SETTINGS for an app over ADB
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...
Read more >Write secure settings permission - MFlisar
1. Enable developer mode: go to android settings => about phone and look for the build number option. · 2. Enable USB debugging:...
Read more >Write Secure Settings Permission - Tasker for Android
To use this, Tasker needs to be granted permission to Write Secure Settings on your device ... Install the Tasker Permissions app and...
Read more >Realme 3 Pro : Error : java.lang.SecurityException: Permission ...
I am getting below error when try to automate calculator or Amazon app in my Real device(Realme 3 Pro) with USB debugging mode...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue seems to be resolved by heading over to Developer Options on MIUI, and enabling the following: USB debugging -Debug mode when USB is connected Install via USB -Allow installing apps via USB USB debugging (Security Settings)- Allow granting permissions and simulating input via USB debugging
The first was already enabled, and I installed the apk file manually so I didn’t need the second option.
I’m guessing the issue can be pinned down to the last option, which allows granting the necessary permissions. @CoderBuck please confirm.
Thank you @rom1v for this amazing app. This is a worthy free replacement for ReverseTethering NoRoot.
Great, thank you 👍 So I close the issue.