美文网首页
开发者必备手机nexus 5x 开发环境预备

开发者必备手机nexus 5x 开发环境预备

作者: 灵风_spirit | 来源:发表于2021-07-14 11:39 被阅读0次

开发者必备手机nexus 5x 开发环境预备

选择nexus手机的理由

NexusPixel系列都是谷歌的“亲儿子”,原生android系统,做开发测试时奇奇怪怪的问题碰到的几率小。

渠道

某宝或者某鱼上多的是,价格大约200-400不算贵,性能不需要太好,做开发来讲16G ROM够用了

系统版本

Android 8.1.0

系统版本重刷可参考:

https://github.com/r0ysue/AndroidSecurityStudy/blob/master/FRIDA/A01/README.md

系统时间设置

一定要检查系统时间是否为正确的当前时间,否则会导致网络访问异常。

因为时间不对,https请求的证书验证会提示过期或者无效,导致请求异常

“已连接,但无法使用互联网” 提醒去除

连接wifi后,wifi会提示“已连接,但无法使用互联网”。

因为连接wifi后,系统会自动去访问一个Google的站点进行网路测试,如果访问成功那说明wifi可用。

众所周知由于某些原因在大陆地区肯定是无法访问谷歌的站点的,所以wifi图标上会出现一个叹号或者一个×号。

但是访问百度还是可以的,说明网速是有的,只是这个提醒很烦。

那如何去掉这个提醒呢,可以通过adb执行如下命令:

settings put global captive_portal_detection_enabled 1
settings put global captive_portal_mode 1
settings put global captive_portal_use_https 0
settings put global captive_portal_server connect.rom.miui.com
settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204

然后开启飞行模式再关闭飞行模式(让网络模块重启),不出意外的话,提醒已消失不见。

参考 :https://www.jianshu.com/p/2144d837163d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

root权限

root权限获取可参考 https://github.com/r0ysue/AndroidSecurityStudy/blob/master/FRIDA/A01/README.md

xposed框架

这个看个人情况,根据需要安装

相关文章

网友评论

      本文标题:开发者必备手机nexus 5x 开发环境预备

      本文链接:https://www.haomeiwen.com/subject/chkypltx.html