yashsingh1/xdaforums huggingface dataset:
[Android Software Development] spnk:
Laptop wi-fi

Hey guys!

Just ran into some trouble and was wondering maybe some of you went through this.

I managed to get everything working from the first try, but there seems to be a conflict (or something) between USB tethering and my laptop's wi-fi connection.

When I connect my phone to my laptop and turn on USB tethering, the internet connection on my laptop just freezes and I don't get any traffic in or out, and obviously not getting any on my phone. It's just like the USB tethering overrides my wi-fi connection, thinking that my laptop needs internet from the phone, but I don't need that.

Is there a way to make the wi-fi and usb tethering work simultaneously?

Don't know if you need my tech specs, but here are some:

- laptop is on XP SP3, with an Intel(R) PRO/Wireless 3945ABG card

- phone is a Huawei Ascend G615 (U9508) running on B709 V2.1 BY BATTY86 ROM, unlocked and rooted

And yes, I googled it before posting here. Nothing relevant came out.

Thank you!

P.S. If you're asking youself why don't I connect the phone to the wi-fi network, here's the answer.

You see, my laptop is connected to a public wi-fi network, but because the signal is too weak, my phone doesn't see it. Usually for my phone I use a monthly mobile data plan, but this time I ran out of it sooner than before. And I just made a clean install of a new ROM and wanted to download some apps from the Play Store.
[Android Software Development] a1b2c99:
connectivity hack is now working after reinstall. but playstore download are very slow. while in browser download speed is 150kbps.

I m using Xperia Neo V using Cyanogen based 4.1.2 rom
[Android Software Development] strifej:
Hm.. everything except http traffic works. I can get whatsapp and wechat, but all browsers don't work, nor does reddit, etc. Any ideas? I tried the hackconnectivity with both force wifi and force mobile. I connected to 3g first, then enabled force mobile, then turn off 3g, reverse tether.

Definitely better than nothing as I can talk to others now, but would like browser/other if possible.

Thx
[Android Software Development] capslock66:
Can you send the log ?
[Android Software Development] totalnoob34:
Hello, I am having a strange problem on i9100 running CM11. The service keeps getting killed and restarted, so internet is unusable. Any suggestion?

EDIT: FOund the trouble, I had to update . But still, i get no connection on the phone, despite the pc client says it's connected and shows some traffic.. I suspect it's my internet connection
[Android Software Development] tichs:
Firewall Errors with Apps/ Full Speed

Hi Capslock, Some app pop up erros, Firewall is blocking the app from working, How can I disable the firewall and allow all ports?

Also It's not full speed, My internet is about 100 Mbps and I get about 38 Mbps max on the device. Please fix this
[Android Software Development] RAMBO29:
Thanks!

Was looking for this since long.had to kill the service and adb once and start again. Now works flawlessly,thanks!
[Android Software Development] Fusionalex:
Will this (have to) be updated for Lollipop? And do you think you could somehow find a way to do the Wifi spoof thing without xposed since ART won't support xposed?
[Android Software Development] kennytung:
Hi,

Please help me, I can connect but cannot access internet in my phone.
[Android Software Development] KaiStone:
Internet connection is not stable. Im using LG-G2 with Stock ROM.

After a while, my device cannot connect to the internet. Sometimes the connection comes back after about 30-60 seconds. Sometimes I have to Disconnect and Connect again to have network.

Sometimes I only connect about 5 secs and connection lost, sometimes 10 mins.

I think the reason may be number of connections (packets). The harder I was using multi-apps at once (Chrome, Google, Facebook,...), sooner internet was lost.

Sorry for my bad English.
[Android Software Development] capslock66:
Firewall problem on your PC...
[Android Software Development] atulclassic:
not able to run on lollipop

usb tunnel not able to gain root access on lollipop with SuperSu 2.17
[Android Software Development] jojo110033:
Even i am facing the same issue. I even used CF-Auto root which is coming with latest package 2.20.
[Android Software Development] KrissSo:
Run as background service or with no user logged on?

Hi,

I've been using your app with success for a few months, my tablet being used as a wired remote to pilot my home cinema and my NAS (the tablet is mounted in a wall). So, many thanks for it.

One limitation though is your windows app is a GUI application and so requires a user to be connected. Would it be possible to run it as a pure windows service (= separating the UI from the service itself) ? Else, do you have any idea on how to run it without any user being logged on? I'm currently experimenting with windows scheduled tasks, but I can't get my way (it sometimes work, sometimes not and I've not managed to find the reason).

Edit: actually, would you agree to split the windows app into 2 pieces, a GUI frontend and a normal command-line exe (all the works would be done by the command-line one, and the GUI would simply pilote it). That would not changed anything for people used to the GUI and that would also allow your app to be managed by 3rd party apps (as a service like for my use, or integrated for other usage). Looks pretty cool but is that feasible?

Regards,

Kriss
[Android Software Development] Mariner_1712:
Youtube and any Google app refuses to load on my phone when reverse tethered, connectivity hack and all!! I'm running an LG G2.

EDIT:More context.

My PC is running Windows 8.1 x64

I run Avast Firewalls on both my phone and PC.

I can successfully connect to the Internet on my phone through the USB according to the OP instructions, but any app that relies on Google or is made by Google (specifically things like Play Store and YouTube) will not load on their own.

Now, I can access anything online through my browser, YouTube included, so I am fairly confident that Avast mobile security isn't the culprit. I've tried switching the DNS options in the provided tool to no avail.
[Android Software Development] Al Arsyadi:
[MENTION=3083768]capslock66[/MENTION] android reverse thetering cant detect my device (redmi note, miui v5), i have ticked usb debugging on my device. also i already install driver for my device.

please help me..
[Android Software Development] capslock66:
It's a driver problem, not reverse tethering.
[Android Software Development] capslock66:
I understand the problem, but it's quite complex to do it and will take a long time :(

I am too busy on other projects for now.
[Android Software Development] Kakkoister:
Hey, thanks for the awesome software, it works really well!

I have a question, how would I go about connecting to a server I have running on my Android device, while using this method?

Normally, over Wifi, the device has its own IP, so I can just connect directly to that, but there doesn't seem to be one in this case, since it's part of my computer I guess.

Is there a way I can give my device an IP that my computer can see?
[Android Software Development] KrissSo:
Can I help? I'm a c# developper (and C++ a long time ago) with good knowledge in system & network
[Android Software Development] DragonHunt3r:
Cool app, have been using it for a while but it seems that it has been broken on Android 5 which is recently released D:
[Android Software Development] rht_sg:
I am running 4.2 based PACman rom on my good old Desire S.

and my wifi which seemed to be working on this rom for some months, suddenly stopped working !

though u mention that this might not work on roms below 4.3, but I was pleasantly surprised to find that this did work for me !!!

:)
[Android Software Development] mohsan87:
Google Play Store is not working after enabling "Hack Tool" also
[Android Software Development] capslock66:
Can't help without log...
[Android Software Development] ULTIMATESAM:
did u enable hack tool in xposed and reboot? mine is working fine.
[Android Software Development] Faisal_khan:
Some apps not working

Some apps doesn't connect to the internet. Like the kick ass torrent app. Is their a way to work these apps out?
[Android Software Development] ajay131:
My Device is detected but unable establish a connection. Here is a log:-
[Android Software Development] Aadarsh Gupta:
Thank you very much.! Its great..:good:
[Android Software Development] sam619:
not working in lollipop. please update this app
[Android Software Development] taka no me:
How do i make this work on custom rom?

I am on Mokee rom 4.4.4.. the device connects, I granted superuser also .. everything is perfect but internet is not working..

Also in device name it shows "c54e... unauthorised"

Please help me :"(
[Android Software Development] capslock66:
Thanks for the debug information.

I need more help to fix it...

I suspect we don't have the same version of some kernel files (ps)

Can you unzip the attached file ?

It contains a new version version of the android package.

- Put it in the same folder as the windows installation folder (replace existing)

- Run the tool.

- Click uninstall (package version is the same, so we need to uninstall)

- Click connect

- Send me the log

Thanks in advance
[Android Software Development] capslock66:
Well, I am not a kernel expert. On XDA, or other site, you will find informations on how to root and install kernel appropriate to your device. I have 2 android and no knowledge of other one.

for galaxy s : http://xdaforums.com/forumdisplay.php?f=656

for acer a500 : http://xdaforums.com/forumdisplay.php?f=1133

if your tablet cpu is a tegra , you can take a look at http://www.tegraowners.com/

Better is to make a search on google
[Android Software Development] hruskozrout:
Looks like working, after first try I have some issues after reconect the cable.

Attached debug info for first and second try, hope that help you.

Thanks for the fix, I really appreciate your work!
[Android Software Development] capslock66:
I more appreciate good feedback :)

I posted the 2.19 as a temporary fix (wich also remove many unneeded traces)

But I just understand the problem now : you have busybox installed and the normal linux 'ps' command is replaced by the busybox ps command.

I will post a 2.20 version in a couple of hours.

Thanks again
[Android Software Development] capslock66:
Version 2.20 posted.

I hope "connection" problems is over now.

Thanks for your feedback.
[Android Software Development] simmer14:
version 2.20 not working for me version 2.18 was working flawless for me can u upload it for me..

v2.20 is showing check connection status always..

also androidtool.exe [pc] is crashing on windows 7 32bit
[Android Software Development] barath_000:
2.20

2.20 not working..,:(
[Android Software Development] capslock66:
did you tested older version before ?

can you send here the log ?
[Android Software Development] Magnumutz:
At last, a version that's working for me :)

2.20 IS working!

The only thing that isn't working is the Market download... it attempts downloads, but doesn't complete them.

Still better than nothing :)

Xperia Play, stock 2.3.4 ROM, DooMLorD's v10 kernel @ 1.6GHz

Later Edit: seems like it crashes after a few minutes...

Even Later Edit: Nevermind, now i get stuck on the "Check connection status..." message.

W/I Connecting to device. This may take a few seconds
W/I ==> Check if a device is connected
W/I adb.exe -s 434235413143564C4B43 devices
W/I List of devices attached
W/I 434235413143564C4B43	device
W/I Ok
W/I ==> Checking android package
W/I Installed package version : 2.20
W/I Current package version : 2.20
W/I ==> Check if usb port is available
W/W Warning : port not available
W/I ==> Prepare connection (Adb Forward)
W/I Ok
W/I ==> Check again if usb port is available
W/I Ok
W/I ==> Start android service
A/I TTBroadcastReceiver start service
A/I TTBroadcastReceiver OnReceive done
A/I SocketService.onStart start
A/I closeUsbServerSocket()
A/I closeUsbServerSocket() done
A/I SocketService.onStart done
A/I initShell : busybox = /data/data/service.tracetool/app_bin/busybox19
A/I Usbthread.run()
A/E UsbThread.run() : Error while opening ServerSocket : Address already in use
A/E UsbThread.run() loop error. firstByte : -2
A/E UsbThread.run() loop error. Exception : null
A/I UsbThread.run() -> closeAllServers()
A/I get process id /data/data/service.tracetool/app_bin/redsocks
W/I Ok
W/I ==> Ensure connection is closed before open it
W/I Ok
W/I Wait for android connection ready
A/I closeUsbServerSocket()

A/I closeUsbServerSocket() done
[Android Software Development] capslock66:
I think you use a poor cable. Very short disconnection is detected by the windows client but not by the android part.

You can click uninstall before connect to clean android. (you have to accept again superuser at next reconnect)

I will try to fix it.
[Android Software Development] capslock66:
Some android don't have a linux usb0 interface.

(samsung nexus s with ics 4.0.3)

Theses lines can be presents in the log :

A/E Error running command :

A/E /data/data/service.tracetool/app_bin/busybox19 ifconfig usb0 up

A/E ifconfig: SIOCGIFFLAGS: No such device

If you have this problem, can you unpack the "scripts.zip" it in the installation folder, replacing older files. (maybe make a backup before)

and tell me if that work.
[Android Software Development] barath_000:
2.20

for me 2.17 & 2.18 works flawlessly...
[Android Software Development] capslock66:
Log for 2.20 is correct. Some datas are exchanged (at least DNS).

Don't see any problem
[Android Software Development] barath_000:
but unable to connect ..

connection problem in phone
[Android Software Development] aware_of_vacuity:
the scripts.zip got browsing working for me on my gsm galaxy nexus (4.0.3).

however my main reason for using your program was to download music from google music for offline use, which still doesn't work.

i guess because the phone thinks it's offline, it doesn't even attempt to initiate the download.

thanks for your work though! i'm sure this program will come in handy anyway :)
[Android Software Development] BitteredBro:
Hi.

After following the steps on the OP . The app on the PC and the phone show there is a connection runnig but I can't make any program use it. Am I doing something wrong? I really would like to use this aplication.
[Android Software Development] capslock66:
Just take a look at the post 211.

Download scripts.zip file and unzip in the installation folder overwriting existing one.

Next version will handle this problem
[Android Software Development] cosmos10040:
did u see my post? the phone says connected, but then on the status, it would say not connected or not started. i dont know what i am doing wrong here.
[Android Software Development] vj_dustin:
quite some progress here.. :D

tried d latest version yesterday and no troubles for me..

Browsing works, and surprisingly even Dropbox was working (it didnt work earlier), but alas market downloading still a dream..

anyhow, great work capslock.. :D
[Android Software Development] taka no me:
Thanks!

Each and every problem solved :)

Works like a charm on my Redmi 1s (cyanogenmod 11)
[Android Software Development] noelandliam:
I have tried this on both my Samsung note 3 and my wife's Samsung note 3 neo. The program could not recognize any of them. Debug messages as follows:

01-22 13:31:08:608 W/E RunProcessCommand Timeout for : adb.exe devices

01-22 13:31:09:615 W/E ADB is unstable. Please press "kill ADB" on the tools tab and restart the tool

01-22 13:31:09:616 W/E ApplicationEvents Exception

01-22 13:31:09:616 W/E Access violation at address 005CF83D in module 'AndroidTool.exe'. Read of address 00000059

Server List at 01-22 13:31:15:230

DNS List

Screenshot of Device Manager also attached. Would be grateful if you could help me make this work. Thanks.
[Android Software Development] capslock66:
Better is reboot the pc when adb is unstable
[Android Software Development] noelandliam:
Have tried this a lot of times, with no luck :(
[Android Software Development] Tarrnation:
Was not able to get the Google Play Store to actually download/install anything using the "Hack Connectivity Service" module. However, I managed to get it working with the "Fake Wifi Connection" module found here:

http://repo.xposed.info/module/com.lemonsqueeze.fakewificonnection

Just thought I would share for those who are having similar issues. :)
[Android Software Development] jime1:
unknown issue !

I use to connect with this successfully a time ago !!

But now when I try it , I gets connected but I wont be able to access internet on my phone ( htc pico cm11 kk4.4.4 )

[IMG="donno why"]http://s6.postimg.org/xo81mxf5t/art_3_19.jpg[/IMG]

every thing went on smoothly... but in the end it leads me nowhere !!!

OP: please provide help on this 1
[Android Software Development] jime1:
[MENTION=3083768]capslock66[/MENTION] :

you have to help me no this 1 bro !! http://xdaforums.com/showpost.php?p=58714754&postcount=2189

It stopped working again . :(
[Android Software Development] jime1:
[MENTION=3083768]capslock66[/MENTION] : Log.txt attached in my previous post
[Android Software Development] eywan:
If u using adaway, try disable that 1st n try again. Mine working after i disable adaway
[Android Software Development] FaiTCRaH:
is this working on Lollipop 5.0.2?
[Android Software Development] hamid3pnn:
thanks but i can't update kaspersky with this or hacked wifi, because it want gprs
[Android Software Development] atulclassic:
uninstall USB tunnel from device and install again..most probably DNS will refresh and will work ok
[Android Software Development] jime1:
Did what you said, but no luck

leave it bro ..

I'll have to sell 1 of my organs and then buy a wifi router ..

good bye folks.

take care.
[Android Software Development] ZeroLive:
Here is that same way as in the picture , to using CM12 - 5.0.2 - Galaxy Tab P6200L , do not understand why this is happening , I'm doing as he speaks in the tutorial.
[Android Software Development] atulclassic:
because this is yet to work on lollipop
[Android Software Development] capslock66:
Screen shot don't help.

Send here the log on the debug tab.

Note : Don't work on lolipop, because the xposed framework don't work yet on this system.
[Android Software Development] cesardemi:
How is Reverse Tethering related to Xposed Feamework? So far it never was a requirement and never malfunctioned if xposed was not installed... All I see on mine is that the adb commands can't manage to run the final script on the device...
[Android Software Development] capslock66:
Some applications like google play want a "working wifi" to start download.

You can search the market without it. Reverse tethering forward all request to target sites.

Xposed is needed to simulated a working wifi in that case.

The Xposed module just say "yes : Wifi is available". All the stuff is made by the program

What commands are not working ?
[Android Software Development] jime1:
I've attached a Log.txt file in my previous post.
[Android Software Development] cesardemi:
You're right, that's the connectivity hack. The thing is I never ever needed it for make reverse tethering work (at least on my i9100 with 4.4.4), and I've been able to download apps, update them, download any file, including torrent downloads... now I have a Moto G 2014 with 5.0.2 stock and I run into this issue.

The issue I'm having I described it in the Q&A thread: http://xdaforums.com/showpost.php?p=58631636&postcount=41

Particularly, the error I'm getting is like this:

02-04 10:21:37:853 L/E Error running command :
02-04 10:21:37:853 L/E /data/data/service.tracetool/app_bin/proxy_socks.sh start
02-04 10:21:37:854 L/E error: only position independent executables (PIE) are supported.

So I'm assuming is some kind of trouble on running this kind of scripts via ADB on Lollipop and should not be tied to anything about Xposed Framework.

Any ideas? Thanks for your response.
[Android Software Development] capslock66:
Hi,

As I mentionned in the above thread, I didn't know that thread was started. I receive only event from this thread...

I don't have yet lolipop device, so I can't test.

Once I can convert my A500 device to lolipop, I will come back to reverse tethering development.

PIE is a know problem on 5.0.

Xposed module will receive an update soon.
[Android Software Development] capslock66:
Telling me that will not help you at all :(

I don't receive any cent for support !

I am not behind this thread every days. I am no more working on this tool. Tool development is not dead at all, just sleeping a bit.

But, ......

from your trace : 02-08 20:00:21:827 L/D Hack Connectivity Service. Package version : 1.4, mode : -1, trace : -1

just enable the module on Xposed then restart.

Next time, better is to read correctly the main thread (Faq line 2)
[Android Software Development] jime1:
module is enabled.

I did every thing accordingly, still it wont work
[Android Software Development] cesardemi:
You mean the connectivity hack module? Unless dev of Xposed Framework manages to make the entire framework to work on Lollipop, that's gonna be a dead end... From what I read, he still is standing by on that project and couldn't yet finish to figure out how to make it work correctly with ART :(
[Android Software Development] capslock66:
Xposed for lolipop is nearly ready

I am working on a major update on the xposed module
[Android Software Development] cesardemi:
Yes, sorry for the outdated reply. By the time I replied that, my latest check on Xposed working on Lollipop was from a couple days before and I didn't know the alpha version was ready (which I installed yesterday and have it working with Network Traffic module on stock rom, flawlessly :) )

I will check today how the Reverse Tethering works with the Xposed module, but I wonder if I won't keep getting the same PIE error message...
[Android Software Development] loran_t:
Will you update it for Android 5?
[Android Software Development] capslock66:
I am waiting for a stable android 5 version formy a500

Xposed framework for android 5 is still in beta
[Android Software Development] cesardemi:
I can help you testing it if you want :) I have a Moto G 2014 with a pretty stable release (5.0.2). Only problem I have with Reverse Tethering app is regarding the "PIE executables"...
[Android Software Development] ste22032:
Great news!! Thanks :).
[Android Software Development] Jeewan Deep:
Need help..!!!

I am not sure but....

Can i use Reverse tethering on Grand Prime....!!!!

the thing is i have rooted the phone nd wana use it i reverse tethering but.. . . can use it for whats app (chatning only) and fb (posting only nd msgng)

Cant download from playstore.... .!!!! It has 4.4.4 nd i have used Reverse tethering on Micromax A114 before so.. . . ds is my new handset nd wana do it here as wel.. . .plz help..!!!:(

have read ur .. .. 1st post but.. its confusing me.. .. .so.. asked.. .
[Android Software Development] capslock66:
See Troubleshooting (Faq) on first thread. (especially the first 2 points )
[Android Software Development] Jeewan Deep:
((( 1. Android 4.3 and upper : You must connect your phone/tablet to a working wifi or 3g once after each boot before using reverse tethering !!!

2. To allow download play store : You must install the Connectivity hack (see Connectivity hack section) before connect . )))

1st point ..!!!! does it mean that i have to use wifi/3g nd just switch it on/off ....

or... to switch it on nd connect it to a network then off.... nd dn use tethering..?????

2nd part i have the Hack connectivity
[Android Software Development] capslock66:
1. It's only one time after each boot : this initialize some stuff on android I can't do myself.

Just turn on 3G or wifi to a working network then you can turn off if necessary (may be left open)

2. Ensure the hack is "enabled" in the xposed interface. If not enabled it, reboot and of course connect one time to a working network (3g/wifi)
[Android Software Development] mytohn:
Working find with my HTC Desire 816

Working with

Browser

Instagram

Facebook

Hope it work for all application in future as

Playstore

Youtube

Great Job Thanks