1.打开DOS命令行 ,输入adb,回车,可查看命令帮助。
2.adb devices 回车,显示设备列表:
每个设备实例的输出都有如下固定的格式:
[serialNumber] [state]
022BTF7N43047029 device
037c708040609357 device
adb -s 022BTF7N43047029 shell 回车,进入要操作的设备(当只有一个设备时,可直接输入 adb shell进入)
(adb shell 命令意思: run remote shell interactively
adb shell <command> - run remote shell command)
3.输入pm回车,可查到信息:
pm set-install-location: changes the default install location.
NOTE: this is only intended for debugging; using this can cause
applications to break and other undersireable behavior.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media
4.输入命令:pm set-install-location 2,修改设备默认安装到SD卡。over.
时间: 2024-09-30 14:25:43