gnirehtet: gnirehtet can not run as service in Android
After running the relay server with javaw -jar relay.jar
, I ran the command adb -s %serial% shell am startservice -a com.genymobile.gnirehtet.START --esa dsnServers 8.8.8.8
in command prompt. But that gave some error.
Starting service: Intent { act=com.genymobile.gnirehtet.START (has extras) } Error: Requires permission android.permission.WRITE_SECURE_SETTINGS
My smartphone is Redmi 3S with MIUI8 and Android 6.0.1. What is that error? How do I solve that?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18
@XylverXVI Added the APK only https://github.com/Biswa96/gnirehtet-miui/releases. Download the server side binary from gnirehtet release page.
This can be bypassed if a device has root. First, run the following commands:
adb shell
su
setprop persist.security.adbinstall 1
If you also want to enable “USB debugging (Security settings)”, for granting permissions, simulating UI input, etc. via ADB, run the following command too:
setprop persist.security.adbinput 1
Next, we need to edit the file,
/data/data/com.miui.securitycenter/shared_prefs/remote_provider_preferences.xml
Add the following line to the XML file (with all the other ones, before the closing </map> tag, or change it to true if the line is already there):
<boolean name="security_adb_install_enable" value="true" />
Reboot your device.
I want to reverse tethering with only adb.exe command line tool and not with relay.jar and not with .APK. Is that possible?