Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.4k stars 587 forks source link

cannot install apk #420

Open Riduidel opened 2 years ago

Riduidel commented 2 years ago

I've just downloaded gnirehtet v. 2.5 for Windows zip, unzipped and tried to run it on a Samsung Galaxy Tab A7 model 2020 running Android 11 tablet, and

C:\Users\nicolas-delsaux>gnirehtet start
2021-12-10 08:23:37.910 INFO Main: Checking gnirehtet client...
2021-12-10 08:23:38.176 INFO Main: Installing gnirehtet client...
Invalid APK file: gnirehtet.apk
2021-12-10 08:23:38.195 ERROR Main: Execution error: Command adb ["install", "-r", "gnirehtet.apk"] returned with value -1

What can I do to have it working ?

For reference, I have adb installed

C:\Users\nicolas-delsaux>adb --version
Android Debug Bridge version 1.0.32
Revision eac51f2bb6a8-android

And the tablet is visible

C:\Users\nicolas-delsaux>adb devices -l
List of devices attached
R9TR60HWTQJ            device product:gta4lwifieea model:SM_T500 device:gta4lwifi
rom1v commented 2 years ago
adb install -r gnirehtet.apk

?

Riduidel commented 2 years ago
C:\Users\nicolas-delsaux\command-line-tools>adb install -r gnirehtet.apk
473 KB/s (23901 bytes in 0.049s)
Success

Seemed to work!

Unfortunatly, I wanted to use your excellent program with spacedesk for screen extension, and (I don't know yet why) spacedesk doesn't work, althgouh spacedesk client connects to server through TCP/IP, I guess (but possibly sends UDP discovery packets) - I'm not good enough in network programming to fully understand all the details ...

rom1v commented 2 years ago

Oh, try to execute gnirehtet start from the gnirehtet directory.

Riduidel commented 2 years ago

ok, I've understood My command-line-tools folder is in my %PATH% and I run the first steps from another folder, which resulted in the apk missing. I would suggest you both

(but all these are just user suggestions, thanks anyway for your fast help)