android adb 安装位置,用adb命令修改手机默认安装位置到SD卡

这篇博客介绍了如何通过DOS命令行使用ADB工具查看设备列表,并详细阐述了如何使用adbshell和pm命令来修改Android设备的默认安装位置到外部SD卡,以扩展应用程序的存储空间。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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      - 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.

原文:http://blog.youkuaiyun.com/zi413293813/article/details/43966181

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值