首页
社区
课程
招聘
[原创]开发者必备手机nexus 5x 开发环境预备
2021-7-14 11:31 2651

[原创]开发者必备手机nexus 5x 开发环境预备

2021-7-14 11:31
2651

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

选择nexus手机的理由

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

系统版本

Android 8.1.0

 

系统版本重刷可参考:

 

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

系统时间设置

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

 

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

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

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

 

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

 

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

 

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

 

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

1
2
3
4
5
6
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框架

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


[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
点赞1
打赏
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回