gnirehtet: Error: Requires permission android.permission.WRITE_SECURE_SETTINGS
XiaoMi4 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
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 35
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.
I had the same problem on OnePlus 8t, and the solution was to go to the Developer Settings on the phone and enable: Developer Options > Apps > Disable permission monitoring
On my OnePlus Nord 2T 5G (Android 12, OxygenOS 12.1), I also had to tick
Developer options > Disable permission monitoring
along with USB Debugging to get past a similar exception.P.S.: apologies for reviving this old issue.
Great, thank you 👍 So I close the issue.
error
Please test enabling “security settings” in developer options: https://github.com/appium/appium/issues/13802#issuecomment-587802222
@yashrajtalan Your procedure requires MI account in Xiaomi Redmi phones. You just remove
android.permission.WRITE_SECURE_SETTINGS
in manifest file (mentioned in #40).