USB reverse tethering = Cellphone gets network connection from PC via
USB.

I know how to do USB reverse tethering except for one problem: Many
Android apps will check network connection using the code below before
doing any useful work:

ConnectivityManager connectivityManager =
ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo info = connectivityManager.getActiveNetworkInfo();

The problem is that, when using USB reverse tethering, the above code
will report no network connection. However, there IS a network
connection (which is the USB reverse tethering itself), and ping, wget
and all programs not doing this stupid check work well.

So the question is: How can I hack the system to let this network
connection check return success (so that I can fool these apps)?

BTW. I use Cyanogenmod 7. And any solution specific to this MOD is
also welcome.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to