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.

gnirehtet can not run as service in Android

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18

github_iconTop GitHub Comments

3reactions
Biswa96commented, Dec 21, 2019

@XylverXVI Added the APK only https://github.com/Biswa96/gnirehtet-miui/releases. Download the server side binary from gnirehtet release page.

3reactions
timea-techgirlcommented, Nov 16, 2019

But enabling USB Debugging Security Settings requires to create MI account.

😕

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect your Computers' Internet to your Android phone ...
This guide is intended to help you share Internet connection from your PC to your Android smartphone/tablet via USB cable. This technique is...
Read more >
Gnirehtet not working in background - Manjaro Linux Forum
I am trying to run gnirehtet (reverse tethering program to give internet to android phones via USB) on startup. If I run it...
Read more >
How To Share Internet From PC To Android With Open ...
This tip is about the how To Share Internet From PC To Android With Open-Source Gnirehtet. So read this free guide, How To...
Read more >
Genymobile - Bountysource
I am not asking for to VPN services to run at once on Android, I know that doesn't ... RuntimeException: Unable to start...
Read more >
network access via gnirehtet reverse tether does not work
I suspect what's happening is that F-droid sees that there is no wifi connection or data service, and so does not even try...
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