[安卓ADB命令]使用shell更改手机分辨率和DPI
[scode type="green"]
更改分辨率wm size 1080x1920
更改DPIwm density 480
[/scode]
[scode type="yellow"]
恢复默认分辨率wm size reset
恢复默认DPIwm desity reset
[/scode]
[scode type="green"]
更改分辨率wm size 1080x1920
更改DPIwm density 480
[/scode]
[scode type="yellow"]
恢复默认分辨率wm size reset
恢复默认DPIwm desity reset
[/scode]
查看安卓手机CPU类型armeabi,armeabi-v7a,还是arm64-v8a
[scode type="yellow"]
1.armeabiv-v7a: 第7代及以上的 ARM 处理器。2011年15月以后的生产的大部分Android设备都使用它.
2.arm64-v8a: 第8代、64位ARM处理器,很少设备,三星 Galaxy S6是其中之一。
3.armeabi: 第5代、第6代的ARM处理器,早期的手机用的比较多。
4.x86: 平板、模拟器用得比较多。
5.x86_64: 64位的平板。
[/scode]
手机开启USB调试后,连上电脑,在Terminal中输入命令:
[scode type="green"]adb shell getprop ro.product.cpu.abi[/scode]
[scode type="green"]
网上很多是小米手机无效的,小米手机4/小米手机2sc实测可用:
adb shell input keyevent 26
没用的知识又增加了 ::aru:knife::
[/scode]
[scode type="yellow"]
[安卓ADB命令]打开浏览器访问指定网页/下载文件。
[/scode]
[scode type="green"]
am start -a android.intent.action.VIEW -d http://m.anjian.com/download/MobileAnjian3.2.9.apk
tips:自行替换下载地址,下载的文件在手机存储目录 Download 文件夹内
[/scode]
[scode type="green"]
am start -a android.intent.action.VIEW -d http://baidu.com
[/scode]