前提:基本会玩android source code
1.类似360手机助手/qq手机助手的pc端工具总自动弹出,非常反感
2.source code 中vi system/core/adb/adb.h
#if ADB_HOST_ON_TARGET
/* adb and adbd are coexisting on the target, so use 5038 for adb
* to avoid conflicting with adbd's usage of 5037
*/
# define DEFAULT_ADB_PORT 5038
#else
# define DEFAULT_ADB_PORT 5037
#endif
修改为:
#if ADB_HOST_ON_TARGET
/* adb and adbd are coexisting on the target, so use 5038 for adb
* to avoid conflicting with adbd's usage of 5037
*/
//# define DEFAULT_ADB_PORT 5038
# define DEFAULT_ADB_PORT 6038
#else
//# define DEFAULT_ADB_PORT 5037
# define DEFAULT_ADB_PORT 6037
#endif
3.add vendor_id:
(android_ubuntu使用adb) to array builtInVendorIds ; in file: system/core/adb/usb_vendors.c
3.安装 mingw
4.make win_sdk