question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Requires permission android.permission.WRITE_SECURE_SETTINGS

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:30

github_iconTop GitHub Comments

55reactions
yashrajtalancommented, Apr 25, 2017

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.

3reactions
rom1vcommented, May 1, 2017

Great, thank you 👍 So I close the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found