Internet via USB from PC for Android 5+ (Windows 64) For Linux, a possible solution is here:
Android + PC = Internet (Thnk Post # 73809222)(post: Thnk
Message # 7533 06/01/18, 01:24)
Thanks for starting this issue:
Android + PC = InternetSince all of the above methods from the caps are outdated - for the latest Androyd.
The method which is described below only for Windows 64 bits.
For my part, I added an updated software of a more stable version and an automation program, since the gnirehtet program opens the Internet, you need to manually start and stop each time.So what's needed :
File
gnirehtet-rust-win64-v2.3.zip gnirehtet-rust-win64-v2.3.zip(702.38 KB)
which I tested and seems to work well. If anything, in my post which is higher, there are links to resources where there may be newer versions, but first start the Internet using these versions!
You will also need another ADB utility for the main program, a proven version for the bundle:
minimal_adb_fastboot_v1.4.3.zip minimal_adb_fastboot_v1.4.3.zip(1004.83 KB)
This package is installed in the system, this directory is C: \ Program Files (x86) \ Minimal ADB and Fastboot
from which we copy files:
adb.exe,
AdbWinApi.dll,
AdbWinUsbApi.dllin the folder with the main program -
gnirehtet (which of course you must unpack).
Unzipped archive
gnirehtet-rust-win64 will be a file
gnirehtet.apk , it is installed on the Smartphone with Android. The program label will not appear, but when Internet works with a PC, an icon should appear at the top
(VPN) .
Also, do not forget to allow this program to work.
Gnirehtet in the background and in the startup of the phone.
The phone itself must be transferred when connected via USB to Debug Mode. To do this, you may need to enable options in the Settings Menu ->Developers section: USB debugging.
On the PC side, do not forget to check whether the device driver is installed on the PC, for this, start the following command line:
gnirehtet-rust-win64 \ adb.exe devices, Your device ID should be displayed, otherwise install the driver before.
Perhaps the best method of checking and pre-launching a program is to write this command:
gnirehtet-rust-win64 \ gnirehtet installThe response output of the program at the end should be:
Success At the end, the command line remains to enter:
gnirehtet-rust-win64 \ gnirehtet runor run
gnirehtet-run.cmd The first time on the phone you need to allow this connection.
If everything is OK. The Internet should work only via USB, regardless of whether Mobile Data is turned on or off. If the Mobile Data is enabled, the Internet goes all the same only through a PC.
To turn off the Internet correctly, in the console window of the Gnirehtet on the PC, press CTRL + C, then you can only disconnect the phone so that on the next page. It also worked with the PC connection.
TIP :
Kill every time on the phone when the USB is disconnected, the program is running
Gnirehtet via:
Xposed edge pro, MacroDroid, AutomateIt Pro or the like utilities. This is necessary if you forget to stop the server on the PC or if something goes wrong.
If, however, some programs on Android do not want to work with such a connection, or need to make you think that this is a WiFi connection, install the fix: Hack Connectivity Service 1.4, turn on Wifi Traces Activate Mode.
Automation :
In order not to manually turn on and off the server on a PC each time, you can download the full archive already with a fully equipped program, plus an add-on program that will do all this automatically when the Device is connected to the PC. As well as automatic overload of the program when USB is disconnected (so that everything will also work the next time).
Gnirehtet.rar(4.13 MB)
Put the
Gnirehtet_Controller_Start in autoload and run. To stop the add-on with the server:
Gnirehtet Stop.cmd , stop only server:
gnirehtet-rust-win64 \ gnirehtet-stop.cmd Full description of what and how to do, add. settings in the file:
HELP.txt