yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] mzet:
you have to have binary pppd-mod from first post in your $PATH on your phone and rooted phone with iptables of course
[G1 Android Development] skyjumper:
Ah, didnt even notice the first post had a file. Been looking to do this for some time. Thanks to whoever all helped to get it working.
[G1 Android Development] addisu:
Hello,

I have been trying your method without success. The phone and the computer can ping each other but no connection to the internet. Using wireshark I can't see anything on the eth0 when I try to ping from the phone. All I see is stuff from ppp0 and the loop back. What am I doing wrong?

Thanks
[G1 Android Development] virdi:
ethernet-over-usb

First, I appreciate juanmasg's initiaive on this much needed feature. thanks!

CyanogenMod thread at http://xdaforums.com/showthread.php?t=539744 talks about experimental ethernet-over-usb functionality (see CHANGELOG for 3.9.1). I don't know how it will be used but it seems he's trying to get it to work. juanmasg can talk to cyanogen for current status and a possible integration of his methodology into his ROMs. I am monitoring his thread for any update on this feature and I just sent a tweet to cyanogen about this. he's a great developer!
[G1 Android Development] nasofe:
With your script .I got these output

Setting up...

Starting PPP daemon...

Establishing connection...

[: 16: unexpected operator

Connected.

And it didn't work.Do you have any ideas?
[G1 Android Development] nasofe:
Sorry for my poor English.

I use a route and the route's ip is 192.168.0.1 ,the computer's ip is 192.168.2.

I think it cause the problem but I don't know how to edit your scipt to make it works.
[G1 Android Development] highlandsun:
Hmm. Does anyone know the correct parameters to use the actual "adb ppp" command? I've searched all over the web and nobody has posted any example of how to use this command with the G1. What is the name of the tty device that we should use? etc. etc...
[G1 Android Development] highlandsun:
Never mind, I see it now in the adb source code. It's a bit useless as-is, but a small tweak would make it pretty useful. If it was changed to return an interactive_shell() session, and then invoke "pppd notty" in that session, then invoke pppd on the host, it would be a simple means of tethering over USB. The only other thing you'd need is to set up the appropriate NAT rules on either side, depending on whether you want the G1 to share the PC's network, or vice versa.

Too bad pppd insists on setting up a pseudo-tty for itself, there's no need for a tty device driver in scenarios like this.
[G1 Android Development] highlandsun:
OK, this is the patch I made to adb to make its ppp command work the way I want.

With that, invoke adb like this:

adb ppp foo notty 192.168.2.1:192.168.2.2

The <tty> parameter is no longer used; everything past the "foo" is just passed as arguments to the local pppd.

Once this is done you can set up NAT forwarding on whichever side you want.

And yes, I know this isn't a clean patch. I should make this a new command instead of usurping the existing ppp command, since presumably the original command is still useful to somebody out there. But this was just a quick hack to see if it would work, and it works great. This saves a lot of the CPU overhead of ssh / port forwarding / etc...
[G1 Android Development] highlandsun:
To use the G1's network from the PC, issue these commands on the G1:

# enable routing

sysctl net.ipv4.ip_forward=1

# enable nat

iptables -t nat -I POSTROUTING -s 192.168.2.1 -j MASQUERADE -o rmnet0

(Use tiwlan0 if you want to use the G1's wifi. Not sure why you'd need to do this if the PC already has its own wifi.)

And then set the default route on the PC

route add -net default gw 192.168.2.2

I got about 15-20KB/sec download using EDGE, and about 65KB/sec download using 3G. You may want the "usepeerdns" option in your pppd options, otherwise you'll have to edit /etc/resolv.conf yourself and copy the nameservers from the G1's /system/etc/resolv.conf

To use the PC's network from the G1, just swap the appropriate parameters around. E.g.,

Issue these commands on the PC:

# enable routing

sysctl net.ipv4.ip_forward=1

# enable nat

iptables -t nat -I POSTROUTING -s 192.168.2.2 -j MASQUERADE -o eth0

And issue this command on the G1

route add -net default gw 192.168.2.1
[G1 Android Development] zioalex:
ppp over adb on G2

Hi guys,

I've take your example to do the same on my G2.

I've found some problem and some solution.

This is the script I used:

#!/bin/sh
ADB=/opt/Android/android-sdk-linux_x86-1.5_r3/tools/adb

echo "Setting up..."
$ADB shell "echo 1 > /proc/sys/net/ipv4/ip_forward"
$ADB forward tcp:12000 tcp:12000
$ADB shell "killall pppd-mod" &> /dev/null
echo "Starting PPP daemon..."
$ADB shell "pppd-mod noauth pty 'nc -l -p 12000 '" &
sleep 5
echo "Establishing connection..."
/usr/sbin/pppd noauth nodeflate pty "nc localhost 12000" ipparam vpn 192.168.0.2:192.168.0.1

while [ "`/sbin/ifconfig | grep 192.168.0.1`" == "" ]; do
sleep 1
done
$ADB shell "iproute add default dev ppp0" &
$ADB shell "iproute del default via 192.168.1.1 dev tiwlan0" &
echo "Connected."

But there is a problem on G2. If the system doesn't believe to be connected (WIFI or 3G) although it can go in internet through the ppp connection it doesn't go on internet.

So to fool it I've created a WIFI connection, not suitable for internet, and then deleted ( in the script ) the default route to tiwlan0.

Somebody know if is possible to believe to Android that it is connected when it isn't?

Bye
[G1 Android Development] IOmega666:
im on archlinux and i wanna do this :S how can i ?

i follow the guid in the first page but cant get to it :S when i do the last step on the linux host it says that nc its not a commmand .
[G1 Android Development] IOmega666:
anyone plzzz ????
[G1 Android Development] zioalex:
Hi dear,

I don't know archlinux...

However the problem in your situation is that you have to install netcat too.

But if you need more help please tell us which problem you encounter with more detail.

Bye

Zioalex
[G1 Android Development] IOmega666:
gonna try installing netcant and comment, thx !!!!
[G1 Android Development] IOmega666:
i've installed netcat, got no error of nc its not a command but then this happens when im in the final step :

[juampy@archlinux tools]$ sudo pppd nodetach noauth nodeflate pty "nc localhost 12000" ipparam vpn 192.168.0.1:192.168.0.254

Couldn't get channel number: Input/output error

what im doing wrong ?
[G1 Android Development] IOmega666:
anyone plzz ?
[G1 Android Development] zioalex:
Have you used the ppp-mod of the first post?

This is a MUST.
[G1 Android Development] gyurman:
Sum please

Hello, I'm sorry, but I don't understand. Can anybody sum it again?

I get same error than IOmega666 on #21

My questions?

which script working on g1 an ubuntu between? I want pc network use in G1.

juanmasg on #1

But which pppd need to change to pppd-mod? Is this pppd-mod version for G1, eh? But I think i need to push to /system/bin? If yes, how can I do?

If I use the mzet on #3

Where I need put the pppd-mod?

highlandsun on #14

How can I use this adb ppp foo notty 192.168.2.1:192.168.2.2 ? What need put to the foo space? What can I do with commandline.dif.txt?

And what mean the ip address 192.168.2.1:192.168.2.2 Can you think maybe my pc is on another ip?

Sorry for my english. Please somebody sum it.
[G1 Android Development] jkmbprg:
Hi to all. I could get this sort of working on G1 with Cyanogen 4.2.71. When I typed the commands carefully into both Android and the PC, I could then ping from Android to anywhere on the Internet.

But I could not make any of the Android applications connect, even if I used the above mentioned trick to start a WiFi first. The Android Browser reported it could not connect and at the same time all the adb connections froze, so I had to restart the adb server...

Something is not very stable, probable adb.

My aim was to enable me to use my G1 at work, where we have an http proxy, which Android so far cannot handle, as far as I know. So I planned to connect my G1 to the laptop via USB and run another http proxy on my laptop that would look transparent from the G1 but would connect to our proxy at work. But it looks I will have to wait...

Thanks to everybody.
[G1 Android Development] BigK:
The code seems to run fine but I could not get the Internet through my phone. Is it because of my IP was wrong. Can anyone explain more how to get it to work, pls? Thanks in advance...

In Ubuntu host:

Code:

# forward 12000/tcp

adb forward tcp:12000 tcp:12000

# enable routing

sysctl net.ipv4.ip_forward=1

# enable nat

iptables -t nat -I POSTROUTING -s 192.168.1.254 -j MASQUERADE -o wlan0

In the android device:

Code:

# execute pppd listening in 12000/tcp

pppd-mod nodetach noauth pty "nc -l -p 12000" defaultroute

In Ubuntu host:

Code:

# execute pppd connected to 12000/tcp

pppd nodetach noauth nodeflate pty "nc localhost 12000" ipparam vpn 192.168.1.1:192.168.1.254
[G1 Android Development] zioalex:
Hi BigK

What do you mean that the ip is wrong?

Do you ping the 192.168.1.1 and 192.168.1.254?

Have you set the right DNS in /etc/resolv.conf ?

Bye

Zio
[G1 Android Development] BigK:
Help plzzzz

Thank you a lot for your reply, zioalex. I did set permission for /etc/resolv.conf by

$ chmod a+x /etc/resolv.conf

I can ping to 192.168.1.1 (gateway's ip address), 192.168.1.6 (my laptop ip address), 192.168.1.254 (my laptop's forward ip address). What is in /etc/resolv.conf? Here is what I have:

4.2.2.2

4.2.2.6

I can also ping to those addresses. I can ping to google's ip address (66.102.7.103, 66.102.7.103) but the speed is super slow. I think my DNS server on my phone does not work. How can I enable DNS server? I tried to access google from my phone but it does not work as well.

Is there any better way out there?

Please help.... I appreciate any help..
[G1 Android Development] zioalex:
You don't need to change the permission of /etc/resolv.conf .

But you could need to change the content with the default DNS of your provider.

Just do cat /etc/resolv.conf on your pc and copy the content

I don't know if you have my same problem...The ppp connection doesn't become operative and fully funcional if android doesn't feel another real connection ( like wifi ).

However try to change your resolv.conf.

Bye

Alex
[G1 Android Development] BigK:
Help plzzzz if you can

Thank you, Alex, for your reply. I tried to change my resolv.conf but it was unsuccessful.

Maybe it needs a real connection. My device does not have Wifi. Hopefully, somebody can workaround this issue.
[G1 Android Development] el_Salmon:
Hi,

How do you apply this patch to the adb command? Please, I'd like to know the procedure step by step for a Linux environment. Thank you!
[Touch Diamond, MDA Compact IV General] Darkdreamers:
Im trying to install this on my diamond touch, using the following thread http://xdaforums.com/showthread.php?t=403325,

the first way it seems to install but wont run the second way doesnt do anything.

can someone please help on this
[Touch Pro, Fuze General] gmischenko:
Ever since I installed the AT&T leaked test ROM, my Fuze beeps twice when connecting on calls (right before the phone vibrates on connection). It only happens on outgoing calls that I make. I installed the new official AT&T ROM and it still beeps.

I've searched out there and found that some people had this problem with the HTC Wing. Alas, that registry fix does not work on my Fuze (cannot find the same key that they reference). I know other people are having this same issue (I've seen comments) but no one seems to have a solution.

Any ideas?

Thanks!
[Touch Pro, Fuze General] gmanfuzing:
lol i wouldn't call it an issue , id mess with advanced config , im sure i saw something to do with the vibrating function there so maybe theres a beeping one too.
[Touch Pro, Fuze General] gmischenko:
it's seriously the most annoying beeping sound I've ever heard on a phone...and it's loud! I seriously want my phone to stop doing this - so annoying.
[Touch Pro, Fuze General] gmischenko:
Solution

So an update to my issue and how it was resolved.

At some point earlier this year I received a text message from an international phone number that I did not recognize (either Canada or Mexico I can't remember). There was no body to the text message, just blank delivered to my phone. I think this happened in late January or February. It was at this time, or shortly thereafter, that my phone starting "beeping" upon connecting phone calls. At the time, I had been trying different ROMs on my phone and believed it to be a ROM issue but it never went away, even with the new updated official ROM.

Fast forward to last week. I was looking over my detailed phone bill online and I noticed a line item called "OFFRCHSTDCMROAM" for which I was being charge $4.99 per month. I went back and looked through my billing history to see how far back this went and it first appeared on my bill in February. I called AT&T customer service to have the charge removed and my account credited for the past few months. They were more than willing to do this as neither they nor I had any idea what this charge was for.

Immediately after I get off the call with them I made a phone call and...no beep! Whatever that service was, it was the culprit in causing my phone to beep whenever it connected on outgoing phone calls. Now that's gone so is the beeping. So, if anyone else has this beeping problem they should check their detailed bill for this mysterious charge.
[Tilt, TyTN II, MDA Vario III General] abhishek jain:
Hi all,

I have Tilt and I am very fond of messaging.

I was having a conversation through SMS with a frnd and when i was replying to one of his SMSs, all of a sudden hung a lil bit and all the SMS of his has gone.

Then later i checked, some people and sites who are regular with their SMS (3-5 SMS in day), those SMS are also gone but not the complete thread is being deleted.

I am not able to understand the pattern.

Is it like that each thread can contain only a specific number of SMSs.

And earlier i thought this might be a problem with my handset or s/w, but today one of my frnd who uses HTC 3400, had the same prob.

Kindly help. I had more than 1000 SMS in it.

Softwares installed:

SPB Pocket mobile shell 3

kaiser tweak

google maps

web cam plus

Regards,

Abhishek
[Tilt, TyTN II, MDA Vario III General] ASCIIker:
while you are looking for a solution, i suggest you backup all your text messages using "pim backup"...search for it on xda

this way, you will have a backup that you can restore in case the situation gets worse and your device starts "forgetting" even more text messages
[Tilt, TyTN II, MDA Vario III General] wensan312:
Yes, i am encounter the same problem too, where my sms been deleted automatically after soft reset my phone. Why it can be happen? any way to solve this?:)

Phone: Dopod 810

OS : WM6.0
[Tilt, TyTN II, MDA Vario III General] abhishek jain:
thanx buddy for the suggestion, but i believe ,anyones fate would not have fallen pathetically sick as mine. I had all the backups, but my hard disk also crashed.

anyways ..... still looking for a solution ... i believe theres a hidden bug in WM6.0 n 6.1

But it is hard to believe that no one till date has not escalated this issue.

Hope to find a resolution for it.

Cheers !!! (Hope if WM allowed us to)
[Touch Diamond, MDA Compact IV General] Darkdreamers:
ok i ve ben try ll day to get this to work i been using the file suggested on this thread

http://xdaforums.com/showthread.php?t=403325

ive tried both ways, the second way does naff all

the first way seems to install it but then the program wont open

ive tried looking through all the forums but just cant seem to find an answer can some one help please and give me a direct answer
[Touch Pro2, Tilt 2 Windows Mobile General] itm:
Has anyone found a 16Gb MicroSD card which is compatible with the TP2?
[Touch Pro2, Tilt 2 Windows Mobile General] Corell:
aren't all the micro sdhc cards compatible with TP2? i'm planning on ordering a 16gb card when delivery date approaches for my decive. altho i think the class2 might be too slow for tomtom7 in the long run.
[Touch Pro2, Tilt 2 Windows Mobile General] Codeaction:
I'm for sure it can. At home the touch pro 2 is packed up with a (real) free 16 micro sdhc card.
[Touch Pro2, Tilt 2 Windows Mobile General] billu:
I have a 16 GB card installed and can confirm it works. (Dane Elec one)
[Touch Pro2, Tilt 2 Windows Mobile General] ratchetjaw:
Also using one i bought from best buy no issues at all
[Touch Pro2, Tilt 2 Windows Mobile General] aeon101:
Using 16GB Kingston card and working perfectly on my TP2. No difference in speed of reading in comparison with previous Touch HD with 8GB card.

Dan
[Touch Pro2, Tilt 2 Windows Mobile General] thedudelasse:
I've tried a 16gb Sandisk. Speed category 4. Works without a hitch.

______________________________________________

Check out my full in-depth videoreview of the Touch Pro2:

http://www.fuzemobility.com/excellent-htc-touch-pro-ii-video-review/
[Touch Pro2, Tilt 2 Windows Mobile General] xmoo:
Same here, I tried my card on a proto deviece and it worked.
[Touch Pro2, Tilt 2 Windows Mobile General] Jamiewalshe:
got a sandisk 16gb class 6 in my phone, works wonderfully. very speedy.
[Touch Pro2, Tilt 2 Windows Mobile General] Corell:
could you please post a link to where it was bought? thanks :)
[Touch Pro2, Tilt 2 Windows Mobile General] mallman:
works great for me
[Touch Pro2, Tilt 2 Windows Mobile General] Jamiewalshe:
amazon uk :)
[Touch Pro2, Tilt 2 Windows Mobile General] Corell:
*BLEEP* nevermind :)

thanks
[Touch Pro2, Tilt 2 Windows Mobile General] bwnotredame06:
http://www.amazon.com/Transcend-Class-microSDHC-Memory-TS16GUSDHC6/dp/B001PLIG5Y
[Touch Pro2, Tilt 2 Windows Mobile General] vasra:
How about 32GB SDHC. Anybody tried yet?

Or Class 10 16GB SDHC?
[Touch Pro2, Tilt 2 Windows Mobile General] Corell:
maybe i missed something, but what brand made a 32gb micro sdhc already?
[Touch Pro2, Tilt 2 Windows Mobile General] mx4life:
Yeah same here, I have never seen a 32GB microSD..?

I'm using a Class 2 16GB microSDHC. Works great for me. Got it free with the phone
[Touch Pro2, Tilt 2 Windows Mobile General] vasra:
Ah, ok. There isn't 32GB microSDHC yet on the market. Just plain SDHC.
[Touch Pro2, Tilt 2 Windows Mobile General] Corell:
i'll be ordering me a 16gb card soon (before the phone arrives atleast), but i can't quite make up if a class2 card will be too slow for tomtom running smoothly.
[Touch Pro2, Tilt 2 Windows Mobile General] tkalli:
I installed an A-Data 16GB, Class 6 storage card in my Touch Pro2.

Works fine.

Faster than the Class 2 SanDisk it replaced.

Access to storage card is faster.

Programs installed on storage card respond faster.

In my opinion, the overall performance of the Class 6 cards is

faster than the Class 2 cards.

:)

​
[Touch Pro2, Tilt 2 Windows Mobile General] Ahmes:
Using the phone with a "Team 16gb class 6" card.. Works fine..
[Touch Pro2, Tilt 2 Windows Mobile General] Kork:
Class 4 SanDisk 16 GB card works fine as well.
[Touch Pro2, Tilt 2 Windows Mobile General] asalhan:
I'm currently using a SANDISK 16GB card no problems with it. I believe its the faster HC version.
[Touch Pro2, Tilt 2 Windows Mobile General] gehzumteufel:
Class 10 does not exist. See below from the SD Association.

That isn't personal experience or opinion. That is fact. Here is the reason why:

That is direct from the SD Association. ;)

http://www.sdcard.org/developers/tech/speed_class/
[Touch Pro2, Tilt 2 Windows Mobile General] henh:
i have a 16GB class6 SanDisk & a 16GB class2 Lexar, i don't feel a different in speed between the 2 for TT7
[Touch Pro2, Tilt 2 Windows Mobile General] henh:
double posted, sorry
[Touch Pro2, Tilt 2 Windows Mobile General] radiowc:
If I am not mistaken, those classes speeds only refer to your write NOT read. So you won't see different if you are listening to MP3, etc.
[Touch Pro2, Tilt 2 Windows Mobile General] gehzumteufel:
While this is the case, read speed is rarely (read: only on piece of **** cards) if ever slower than the transfer speed.
[Touch Pro2, Tilt 2 Windows Mobile General] dwny:
I've been using my 16gb card since the TILT with no issue.

After looking at the diagram above, I discovered I have a SanDisk Class 2 card.

Didn't know anything about classes till tonite. Just learned something...thanks
[Touch Pro2, Tilt 2 Windows Mobile General] kungfubass1961:
i have a 16 gig on my dash 3G and works great, was going to get a 32gig, am sure the T2 can rock with a 16gig with no problamo but have to say with a 32gig T2 would fly high,
[Touch Pro2, Tilt 2 Windows Mobile General] mdalacu:
I have ADATA 16Gb Class 6 and it's faster then Kingstone 8Gb Class 4 in listing folders and files from it in the device (Total Commander).
[Touch Pro2, Tilt 2 Windows Mobile General] blast0id:
see signature...
[Touch Pro2, Tilt 2 Windows Mobile General] Thanoz:
4 > 8gB

I went from the standard supplied 4gB to buying an 8gB.

When first using I made an exact copy from ther 4gB to the 8gB, so no extra files / dirs... On the 8gB I noticed slower response to all things having to do with the SD, lags, and also stutters and pauses during music as well as movie playback every once in a while; did not have these on the 4gB (with same amount of files / directories). Also the "loading/busy" windows icon showed up twice as much over the top of for instance a movie in CorePlayer.

Filing the 8gB up with more extra files didn't make any more noticable extra slowdown for me

Let's say going from the 4 to 8 Gb gave an overall 15% more nagging and lagging, Likely going from standard 4 to 16 might cause a 30% nag/lag opposed to your standard SD? Hypothetically speaking of course... Or maybe even 4 times the nag/lag :rolleyes: gheheh, but let's not hope so...
[Touch Pro2, Tilt 2 Windows Mobile General] raveztaylor:
Keeping My Fingers Crossed!!!

I started out using a 2gb card for my Tilt 2 and everything worked great but when I purchased a Polaroid 16gb class 2 Micro SD card, I noticed a significant drop in performance on my Tilt 2. I began to get lock ups when trying to access all things associated with the card (ie: stored photos, documents, etc.) Even my touch flo would be less responsive.

When I put the 2gb back in the TIlt 2, everything went back to working flawless.

I have since then ordered a A-Data 16 gb Class 6 Micro SD card after returning the Polaroid Class 2 hoping that the class 6 will do the trick. Should arrive on Wed. keeping my fingers crossed!!!

any one experience any similar issues???
[Touch Pro2, Tilt 2 Windows Mobile General] automechnic077:
I just got my 16gb no name cheapie from hong kong micro sd card for my tp2 in the mail. I spent numerous hours setting it up with the programs I wanted on it music and such. I had used it for about an hour or so and all the sudden the phone went crazy.. somehow the card corrupted it self im guessing cause the phone no longer recognized it or anything on it.. I removed the card and put it in my card reader to my laptop nothing was on it but a mess of folders all with the name ".." I thought maybe I had done something wrong so I formatted it and tried again. same thing happened the next day. I now reverted back to my 8gb sandisk and havent had any problems with it.. I guess its a get what you pay for kinda deal. Maybe there is something I can do I would think flash memory is flash memory but I guess they have their diffrences. Just wanted to share my .02 on my experience I would like to get another 16gb because bigger is better but ill wait it out and see what is to come next