Android的USB反向圈养:如何骗过应用程序 [英] Android USB reverse tethering: How to fool the apps
问题描述
USB反向圈养=手机会从PC通过USB网络连接。
USB reverse tethering = Cellphone gets network connection from PC via USB.
我知道该怎么做USB反向圈养除了一个问题:在做任何有用的工作之前,使用下面的code许多Android应用程序将检查网络连接:
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();
问题在于,使用USB反向圈养的时候,上面的code将报告没有网络连接。然而,有一个网络连接(也就是USB反向圈养本身),并平,wget和所有的程序没有做这个愚蠢的检查工作做好。
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。我用的CyanogenMod 7,而具体的任何解决这个MOD也是欢迎的。
BTW. I use Cyanogenmod 7. And any solution specific to this MOD is also welcome.
推荐答案
这可能是你在找什么
的http://blog.mathieu.carbou.me/post/60454997009/reverse-usb-tethering-with-android-22
This is probably what you're looking for
http://blog.mathieu.carbou.me/post/60454997009/reverse-usb-tethering-with-android-22
也有这个项目:
HTTP://www.$c$cproject.com/kb/android/usbportforwarding的.aspx
There is also this project:
http://www.codeproject.com/kb/android/usbportforwarding.aspx
和还Android市场(有偿,有免费试用)上的应用程序:
https://market.android.com/details?id=com.littlelan .ReverseTether.Trial
And also an app on the Android market (paid, with free trial):
https://market.android.com/details?id=com.littlelan.ReverseTether.Trial
这篇关于Android的USB反向圈养:如何骗过应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!