Flutter debug 模式下https网络抓包

本文使用的是dio网络框架

使用Fiddler或者Charles设置代理抓包。

static void initHttp() {
if (dio == null) {
dio = Dio();
}
bool inProduction = bool.fromEnvironment(“dart.vm.product”);
if (inProduction) {
return;
}
(dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = (client) {
client.findProxy = (uri) {
return “PROXY 192.168.1.100:8888”;
};
client.badCertificateCallback =
(X509Certificate cert, String host, int port) {
return true;
};
};
}

Nexus Root Toolkit v2.1.9 解锁 root 刷TWRP

给大家推荐一个专门适配Nexus系列、Piexl系列的工具,非常方便。Nexus Root Toolkit v2.1.9

支持的机型有:

· Galaxy Nexus: GSM Models (both yakju and non-yakju builds)
· Galaxy Nexus: CDMA/LTE Verizon Models
· Galaxy Nexus: CDMA/LTE Sprint Models
· Nexus S: Worldwide, i9020t and i9023 Models
· Nexus S: 850MHz, i9020a Models
· Nexus S: Korea, m200 Models
· Nexus S 4G: d720 Models
· Nexus 7: Asus Tablet
· Nexus 7 3G: Asus Tablet
· Nexus 7 v2 (2013): Asus Tablet
· Nexus 7 v2 (2013) LTE: Asus Tablet
· Nexus 10: Samsung Tablet
· Nexus 4: LG Phone
· Nexus 5: LG Phone
· Nexus 5X: LG Phone
· Nexus 9: HTC Wifi Tablet
· Nexus 9: HTC LTE Tablet
· Nexus 6: Motorola Phone
· Nexus 6P: Huawei Phone
· Nexus Player: Google Device
· Nexus Pixel C: Google Tablet