yashsingh1/xdaforums huggingface dataset:
[Android Software Development] capslock66:
IM+ ?

I don't have this tool, but this is a messenger like application.

You can download application from market using IM+ ?
[Android Software Development] pranoy407:
Lol no... I meant I downloaded "IM" for android from market inorder to provide you log files... Hope you understand... my english not so good :P

EDIT : to make it easy... forget about "IM+" I downloaded an app from market and at the same time that red colour higlighted text appeared... now got it ?
[Android Software Development] capslock66:
Oups , I feel stupid ... :rolleyes:

Can you retry the test, taking the ports (80,443,...) counter before and after

start downloading. Then send me the results.

I want to be sure the market use the usb route and not the 3g.

I will check the log tonight
[Android Software Development] pranoy407:
Sorry... couldn't understand... How can I change port ?
[Android Software Development] albert emmer:
i must say...THANK YOU VERY MUCH CAPSLOCK!

you r awesome!

worked on my samsung galaxy tab 10.1 with android 3.2

1) worked with browser but somehow cant use flash e.g. youtube page.

2) worked with youtube app
[Android Software Development] LiquidDragon:
So everything works great! I had some issues at first with DNS resolution as I was trying to use the Google DNS servers.

I was wondering if its possible to set this up with a wi-fi hotspot. I think I would just need to create an iptables entry to redirect the traffic on the wireless interface. Does anyone know if this is possible?
[Android Software Development] albert emmer:
my laptop is connected to wireless hotspot, and my tablet is connected to the hotspot through my laptop using this tool. so i can say yes it works.

now im looking around to make my tablet connect to my laptop wirelessly
[Android Software Development] lynxnoon:
works on my HTC Desire S but kinda lags...

using Virtous Quattro RC3 ROM

not bad

thanks;)
[Android Software Development] capslock66:
You don't have to change port.

On the first page on the tool, you have the list of ports like that :

Name...............Status

--------------------------------

53 (domain)......A->H :500, H->A : 800

80 (http) .........A->H :700, H->A : 5000

A->H is the number of bytes send from android to Internet (upload)

H->A is the number of bytes send from internet to android (download)

So Android send 700 bytes to host on the http port (80) and received 5000 bytes

Write theses numbers just before clicking "accept" button on android market

Compare these numbers after end of download.

The difference will be the size of the application.

Note that other applications downloading data may interfere a bit.

Can you send me theses values before and after download (with the application name you download, like IM+) ?
[Android Software Development] capslock66:
Everything is good in this log. Android is well connected and an application try to use the DNS.

But the tool don't receive answer from the DNS.

I see that you selected the first DNS adress : "10.5.48.1".

Try another one ! The 8.8.8.8 should work

(disconnect and reconnect between tests)
[Android Software Development] pranoy407:
Ok ! So I took screenshots before and after downloading.

Downloaded "Drag Racing" from market of file size : 8.44MB

EDIT : Uploaded it here

Before http://twitpic.com/8k8zib/full

After http://twitpic.com/8k8zib/full
[Android Software Development] capslock66:
WORK !

the difference is 8857847 bytes so more or less 8.44 MB.

I will now try to understand the configuration.

Can you remember me the model and kernel of your android?

Thanks.
[Android Software Development] pranoy407:
Samsung Galaxy Ace

Kernel version : 2.6.35.7-perf-CL562111 ketut@A0A110 #1 :)
[Android Software Development] LiquidDragon:
Did you have to change anything on the config files? I can get my laptop to connect to the hotspot on my phone but it's not able to pass any traffic to the internet.

Also, is you hotspot using a different LAN address? Mine is using 192.168.43.0/24 and the phone's tether is on 192.168.1.0/24?
[Android Software Development] albert emmer:
no I don't change anything. I just follow the instruction as mentioned here. fyi the hotspot I'm using is not password protected. maybe you should try another hotspot. about the address I will tell later as I'm not using my laptop right now

Sent from my GT-P7510
[Android Software Development] capslock66:
I don't detect any problem on the log.

I uploaded a new version 2.24 with a new button "check dns".

That will not solve the problem, but will check the differents DNS.

You should select the dns with 'Ok' status.
[Android Software Development] albert emmer:
bro, I don't see link for 2.24v...

Sent from my GT-P7510
[Android Software Development] cosmos10040:
i dont see that link...
[Android Software Development] capslock66:
Strange. I was sure to upload it and add a comment.

Edit : Ok, was friday, a long work day.
[Android Software Development] capslock66:
New version 2.25

- less traces

- added upload / download / connections columns

- some bug fixes
[Android Software Development] albert emmer:
thanks bro..consistently worked with my galaxytab 10.1.

another thing to try: can you somehow make data download for gameloft game working with your tool?

Sent from my GT-P7510 using Capslock66's Reverse Tethering v2.25
[Android Software Development] simmer14:
bro any update on connection masking ? the app is already working flawlessly and is 100% stable imho :S
[Android Software Development] mudkipstar:
Been following you since you started your work on codeproject. Bro I think you are coming close to succeeding in making the market download work hahas. I think you should put your app on the market for $$. Hahas. I want to donate to you send me a PM if you want!!.
[Android Software Development] michaelmotes:
Thanks,

One suggestion, I would like to minimize to system tray. It's not a real big deal, as I can just shell your program and hide or show its window with the parent program.

I attached the "AndroidReverseTetherCloak". Just place it in the same directory as AndroidTool.exe and open it. But, this functionality should be built-in.
[Android Software Development] Nightwish2:
Isn't there a easyer way to connect a razr to existing internet connection of a pc? My old HD2 with a android-rom could do this without any software or root or so.. just connect and voila. So I wonder this does not work at all with a much newer razr!!!:confused:
[Android Software Development] pranoy407:
Some HTC devices has got this function out of the box... So dont expect such feature from your razr for now :)

---------- Post added at 11:16 AM ---------- Previous post was at 11:14 AM ----------

For an update :

I just activated a GPRS plan and tried market downloading after reverse tethering and strange thing is that it still works for me.
[Android Software Development] capslock66:
Not difficult at all to do it. Added in planning
[Android Software Development] capslock66:
I also would like to put a $$ version on the market.

The problem is the windows part. I can't put it on the market.

It's also on planing.
[Android Software Development] Pablo87:
It was a virus ! PC was infected with Worm.Conflicter.

Now it's working perfect !!

Thanks mate !!

:)
[Android Software Development] lmike6453:
Thanks! I really needed this for large game downloads
[Android Software Development] simmer14:
connection masking will solve this or market fix ;)
[Android Software Development] capslock66:
But how to do "connection masking" ?

Anyone has an url that I can use ?
[Android Software Development] simmer14:
i really have no clue about it and i do not find any faq or anythign related to this..

may be first you have to look in how data connection is made ? damn i'm getting mad here bro :rolleyes::rolleyes::rolleyes:
[Android Software Development] michaelmotes:
I don't know what is meant by connection masking, I would have though that meant hiding the connection, not making it show, which is what we need to make the market et al work. As an aside, a google search for 'connection masking' returns this thread as the top result. haha

I have been trying to find a way to force the market to work and I think that a rewrite of the ConnectivityService class is in order. See this thread: http://mobisocial.stanford.edu/news/2011/03/let-wifi-and-3g-connection-work-together-by-hacking-connectivityservice-java/

It details bypassing the connectivityservice message loop in order to allow wifi and 3g to coexist.

I believe if we, or me, rewrote the methods

getActiveNetworkInfo()
getActiveNetworkInfoForUID(int)
getNetworkInfo(int)
getNetworkInfo(int,int)

to check some sort of flag, such as mForceConnect, that we could add along with a new public method setForceConnect(boolean) that we could have those 4 functions return a falsified NetworkInfo when mForceConnect was true. The 4 methods would get the NetworkInfo structure as normal, but before returning it, they would take the NetworkInfo, say mNetworkInfo, and

mNetworkInfo.setDetailedState(DetailedState.CONNECTED, null, null);

, if we had enabled mForceConnect. This would fix a lot of apps as those four functions are a common way an app checks for a connection.

This woudl require recompiling services.jar and pushing it to the proper folder, as detailed in the above link, but that wouldn't be so bad and I suppose an app with superuser permissions could do this automatically.

ConnectivityService.java
[Android Software Development] simmer14:
i'm trying this will post the result imho this won't work..

what we want is to see our device the reverse usb connection as the data network or as wifi,wifi won't be easy but data network could be masked i think...
[Android Software Development] bruceas:
DNS "not responding"

If i select one of the two dns listed and click "Check Dns" the response is "not responding". Why?

If i ping the DNS address, it will response.

In "Debug" windows ther is nothing.

Thanks, bye.
[Android Software Development] ksrao_iete:
disconnects if idle sometimes

nice work bro.. its a revolution....and its working great on opera or dolphin browser..

I m using Motorola Defy...and i recommended all the members of my forum in facebook motorola defy to use this tool, few of them are delighted

suddenly the connection gets lost if not using for 5 minutes or so on phone. then i have to again close application on phone and then on PC then replug USB cable , then relaucch tool > connect it works again..

for now something is better than nothing... I hope developers will look in this problem.
[Android Software Development] capslock66:
That means that the server response but not implement DNS service

So it's perhaps a proxy server.

Check your internet explorer internet settings to see if you have a proxy.

Proxy is on my TODO list...
[Android Software Development] capslock66:
Automatic reconnection is on my TODO list
[Android Software Development] capslock66:
I will make a try and see if I can use it.

Thanks for the links.
[Android Software Development] bruceas:
Yes there's a Proxy. I will wait.

Thanks.
[Android Software Development] speed_bot:
cmd is able to detect my device when i open android tool.exe it doent detect my device...i have usb debugging enabled...samsung galaxy fit.....rooted..i am attaching the screen shots can anyone help me......
[Android Software Development] capslock66:
Device is offline !

I don't know exactly what that means, but to resolve it, you must reboot your pc and/or your device.

I will display a message in next version when I detect "offline" device.
[Android Software Development] mamunjoy:
Works in SAmsung GALAXY Y... fine

Thanks....its awesome...plz develop it more.....Works in my Samsung GALAXY Y... fine. can access Market....but download error
[Android Software Development] speed_bot:
tried rebooting...both pc and phone have installed drivers too..but noo use.......
[Android Software Development] capslock66:
Can you try with another usb cable ?

re installing drivers is not necessary
[Android Software Development] simmer14:
your device is permanently in offline mode hmm...

remove your battery reinsert it and then switch on ur phone...

btw try installing android cammander and see if u get the same error..
[Android Software Development] speed_bot:
i don have another usb cable...somehow got the device online.....
[Android Software Development] speed_bot:
should i install android commander in pc..or in phone and how to check it....it is not showing offline now.....
[Android Software Development] speed_bot:
android commander is detecting my device...how to fix this now?
[Android Software Development] indtram:
cannot access Market...........When accessing Market.....It wants to use wifi....and enables wifi....

any tips ???

thanxxx
[Android Software Development] speed_bot:
wait for the next beta......
[Android Software Development] simmer14:
this is not a beta !

@ op

bro please kindly take a look here :)

http://developer.android.com/reference/android/net/ConnectivityManager.html
[Android Software Development] capslock66:
Reverse tethering status and Market download.

I understand why Market download don't work.

It's a google implementation problem.

The application want to have an active 3G or Wifi network interface. (ConnectivityManager)

Some market applications are tagged "Wifi" only.

So, I can't fix this problem. Modifying the low level android system like "michaelmotes" propose may work, but it probably must be done for each android version.

I will continue to investigate (without conviction).

If a developer can generate a Service.jar enabling traces in ConnectivityService class, he can send it to me.

If you can activate the wifi or the 3G BEFORE starting reverse tethering,

all the data will goes to the usb.

Tips : You can connect to some wifi hotspot not protected by a key. It's only when you want to surf that the hotspot ask you a user/password. But, at this point, we have an 'active' connection. Market download should work.

I will now focus on other task on the planing : stability, automatic re-connection, proxy,...
[Android Software Development] capslock66:
I worked at lot a hours on this api.

This his an high level API to call low level functions

The low level implementing java source is ConnectivityService, as you written a few post before.

Did you compiled a working service.jar ?

If yes, can you send me the project source (eclipse).

I don't know what other java sources must be copied into the jar.

The Jar itself contains a classes.dex file, not classic .class files

I am not sure the service.jar is the same for all android version (2.x, 3.x, 4.x)
[Android Software Development] speed_bot:
what about my problem any solution :(:(:(:(
[Android Software Development] capslock66:
I will start soon automatic reconnection.

But if the device goes offline, I can't help you.

It's a google problem with the 'ADB' program
[Android Software Development] speed_bot:
my device is not showing offline now.....check the screens i have attached in my previous post...only androidtool.exe is not detecting my device at all......please help me......
[Android Software Development] simmer14:
it is not possible bro.. if android commander is working then androidtool should work to because both of them use the sameway inorder to make a connection to the phone..
[Android Software Development] speed_bot:
so no solution from my problem ah?
[Android Software Development] albert emmer:
try these:

1. reinstall usb driver for your phone.

2. uninstall usbtunnel in your phone.

3. connect your phone via usb, run the tool.

4. check superuser permission. make sure follow all steps mentioned by capslock.

5. if u have ASDK in your pc, try to not using its adb.exe. use adb that comes with the tool.

just curious..your phone is rooted or not?
[Android Software Development] capslock66:
Can you send again screenshot of both command prompt that show device online and the tool ?

If you start the tool before plugin the cable, the device is not displayed.

Click refresh button to scan devices.

Do you have multiple version of ADB.exe ?

run the "adb devices" command on the same path as the tool.
[Android Software Development] speed_bot:
ya my device is rooted with usb debugging enabled....at first the adb wasnt working in cmd like if i type adb in cmd it used to how invalid command...i copied the given adb.exe to my users root dirctory...and cmd detected adb as a command...i am using the one provided not the one in android sdk..............i started the usb tool after connecting the device with usb tunnel open in the device...
[Android Software Development] capslock66:
You started "adb devices" from the f:\users\kishore folder, having result.

but you specified the f:\users\kishore\ReverseTethering_2.25\adb.exe in config

Then I suppose you have some version of ADB.exe, with maybe a PATH to one of them.

I think it's the origin of the problem. Remove all other adb.exe , except in the tool folder.

You MUST reboot the pc to ensure ADB service is not running.

I will create a new version with some more traces this weekend.
[Android Software Development] speed_bot:
the adb in the kishore/folder is the same given in the tool..i just copied and pasted it....the one i have configured is also the same from tool directory...if i delete the adb from kishore folder it doesnt recognize adb as a command
[Android Software Development] maxesxp:
confirmed working on the g2x :) thanks :)
[Android Software Development] capslock66:
You are in the f:\users\kishore folder

to go to the tool folder, enter this command first :

cd ReverseTethering_2.25

The prompt will be :

f:\users\kishore folder\ReverseTethering_2.25>

then check devices :

Adbdevices

I will post a new version this week that display more traces in the "debug" tabsheet
[Android Software Development] speed_bot:
i did excatly as mentioned with device connected and i ended up like this........
[Android Software Development] michaelmotes:
Ajay, not sure if you tried this already, but have you opened AndroidTool.exe by right clicking and selecting "Run As Adminstrator"?

I see you're running Windows 7, which really likes to sandbox everything.
[Android Software Development] vienti:
My Device Lg P500| 2.3.7 Cyanogen 7.1

Not download on apps market

W/I Connecting to device. This may take a few seconds
A/I TTBroadcastReceiver start service

A/I SocketService.onStart start
A/I UsbThread : Waiting for the host to connect
W/I Wait for android connection ready. If nothing happens now, close the program and retry
W/I Waiting for connection. If nothing happens now, close the program and retry
A/I UsbThread : Host connected

W/D ------------------------------------------------------------
W/D Android Superuser may ask you to accept rights.
W/D Check your android and accept "Superuser Request" now if needed !!!
W/D If connection stop here and Superuser don't apears ,you phone or tablet is probably not rooted
W/I interfaces before script startlo(UP) 127.0.0.1, dummy0(DOWN), rmnet0(DOWN), rmnet1(DOWN), rmnet2(DOWN), usb0(UP), sit0(DOWN), ip6tnl0(DOWN)
W/I no route
A/D

A/D wifi or 3g card adress : ""
A/D Interface to use : "usb0"
A/D Old route adress to disable : ""
A/D adress to use : "192.168.1.2"
A/I don't care if you see errors here, it depends of your kernel.
A/E Error running command :
A/E /data/data/service.tracetool/app_bin/iptables_armv5 -t nat -A INPUT -p icmp -j LOG --log-uid --log-level debug --log-prefix "MYPREROUTING " --log-ip-options
A/E iptables: No chain/target/match by that name.
A/D no default route to delete
W/I interfaces after script startlo(UP) 127.0.0.1, dummy0(DOWN), rmnet0(DOWN), rmnet1(DOWN), rmnet2(DOWN), usb0(UP) 192.168.1.2, sit0(DOWN), ip6tnl0(DOWN)
W/I route : destination : 192.168.1.0, gateway : *, output : usb0
W/I route : destination : default, gateway : 192.168.1.2, output : usb0
W/I
W/I Connection done
W/D A->H : Create server port : 443
A/W Socks5Server [Thread-75_Session] : Create TCP server 443
A/I --------- Script : Tcp port start : 443 / 42102
A/I DownloadManager : Initiating request for download 16

A/W DownloadManager : Aborting request for download 16: no network connection available

Server List
https (443) : A->H : 3573 ,H->A : 30709

DNS List
195.34.224.1
195.34.224.2
8.8.8.8[default]
[Android Software Development] speed_bot:
i tried even that with nothing positive :confused::confused:
[Android Software Development] capslock66:
It's a Market behaviour : He want an active Wifi or 3G network connection.
[Android Software Development] capslock66:
Is F: a network drive ?

If yes, copy the folder to a local drive (c: or d:)

Don't forget to change the configuration.

Since you don't a special ADB, just enter ADB.exe

Can you also try on another PC ?
[Android Software Development] speed_bot:
i dont know whats a network drive....f is the drive in which i have my os installed.........i copied the reverse tethering file to c opened cmd in that folder and i tried but same result...i will try on a different pc and what is special adb?just curious
[Android Software Development] baradharajan:
hi, i am using a sony arc s, i am used version 2.25

my deveice gets conneted using the software but i am not able to browse any site or use market.

find below the debug log.

W/I Connecting to device. This may take a few seconds

A/I TTBroadcastReceiver start service

A/I SocketService.onStart start

A/I UsbThread : Waiting for the host to connect

W/I Wait for android connection ready. If nothing happens now, close the program and retry

W/I Waiting for connection. If nothing happens now, close the program and retry

A/I UsbThread : Host connected

W/D ------------------------------------------------------------

W/D Android Superuser may ask you to accept rights.

W/D Check your android and accept "Superuser Request" now if needed !!!

W/D If connection stop here and Superuser don't apears ,you phone or tablet is probably not rooted

W/I interfaces before script startlo(UP) 127.0.0.1, dummy0(DOWN), rmnet0(DOWN) 223.237.243.83, rmnet1(DOWN), rmnet2(DOWN), rmnet3(DOWN), rmnet4(DOWN), rmnet5(DOWN), rmnet6(DOWN), rmnet7(DOWN), rmnet_sdio0(DOWN), rmnet_sdio1(DOWN), rmnet_sdio2(DOWN), rmnet_sdio3(DOWN), rmnet_sdio4(DOWN), rmnet_sdio5(DOWN), rmnet_sdio6(DOWN), rmnet_sdio7(DOWN), usb0(UP), sit0(DOWN), ip6tnl0(DOWN)

W/I no route

A/D

A/D wifi or 3g card adress : ""

A/D Interface to use : "usb0"

A/D Old route adress to disable : ""

A/D adress to use : "192.168.1.2"

A/I don't care if you see errors here, it depends of your kernel.

A/E Error running command :

A/E /data/data/service.tracetool/app_bin/iptables_armv5 -t nat -A INPUT -p icmp -j LOG --log-uid --log-level debug --log-prefix "MYPREROUTING " --log-ip-options

A/E iptables: No chain/target/match by that name.

A/D no default route to delete

W/I interfaces after script startlo(UP) 127.0.0.1, dummy0(DOWN), rmnet0(DOWN) 223.237.243.83, rmnet1(DOWN), rmnet2(DOWN), rmnet3(DOWN), rmnet4(DOWN), rmnet5(DOWN), rmnet6(DOWN), rmnet7(DOWN), rmnet_sdio0(DOWN), rmnet_sdio1(DOWN), rmnet_sdio2(DOWN), rmnet_sdio3(DOWN), rmnet_sdio4(DOWN), rmnet_sdio5(DOWN), rmnet_sdio6(DOWN), rmnet_sdio7(DOWN), usb0(UP) 192.168.1.2, sit0(DOWN), ip6tnl0(DOWN)

W/I route : destination : 192.168.1.0, gateway : *, output : usb0

W/I route : destination : default, gateway : 192.168.1.2, output : usb0

W/I

W/I Connection done

Server List

DNS List

16.110.135.52

16.110.135.51

regrards,

M.Baradharajan
[Android Software Development] capslock66:
I don't see any errors on the log.

The server list is empty. No connections was made.

Are you using special android network program like firewall, ssh tunnel, ... ?