Let Android believe it is connected to internet Possible Duplicate:
  How to set up reverse tethering over USB?  




Is there a way to do this?

I'm trying to reverse tether my Android phone. I'd like it to use my PC connection. Many guides on the net say that I should root my phone, but I don't want to do that.

What I would like to happen:


connect Android to the Internet via wireless
attach to PC via USB, in "tethering usb mode"
PC is already connected to the Internet in another way (cable)
when I disconnect the wireless connection on the Android phone, then the Android phone uses the connection of my PC


With no internet connection on my phone I can't connect successfully to the PC.
So, I'd like to know if there is a way to let the Android device believe it is connected to the Internet.

I'm using Ubuntu 11.04
You haven't specified if you have wireless capability in your computer. Assuming you have one or can manage wireless in your computer then you can take the following steps to share the computer's Internet via ad-hoc wireless connection.

First create an ad-hoc connection in your computer so that your phone can connect to it. You can follow this guide for that.

After that you have to enable Internet connection sharing in your computer. Follwo this guide for that.

Now from your Android phone search for the ad-hoc network you created and connect to it. Internet should work fine.

One more thing I should mention is that when I tried the same for my cousin it didn't work. The phone couldn't see the ad-hoc network. She had Windows 7 in her computer. But after little Googling and using 3rd party software for ad-hoc connection in the computer, everything worked.