失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > android默认安装位置 修改Android手机的软件默认安装位置

android默认安装位置 修改Android手机的软件默认安装位置

时间:2018-10-22 07:42:55

相关推荐

android默认安装位置 修改Android手机的软件默认安装位置

如无意外,一般来说,android 手机的默认安装位置应该是手机内存,因为考虑到如输入法的软件需要常驻使用。

但对于手机 Room 较小的手机,自然是把如游戏等非关键程序安装在 SD 卡好,留出更多的空间给系统使用。

对于装有 ADT 的电脑来说,使用 ADB shell 即可修改手机的软件默认安装位置。

$ adb shell

$ pm setInstallLocation 2

InstallLocaion 的取值及意义如下:

0: auto

1: internal

2: external

Update (-09-18)

不知是不是 4.0 后的更改还是 3.0 开始的,shell 命令有所不同了,简单来说就是从驼峰式改为了unix shell 风格

pm get-install-location: returns the current install location.

0 [auto]: Let system decide the best location

1 [internal]: Install on internal device storage

2 [external]: Install on external media

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

References

如果觉得《android默认安装位置 修改Android手机的软件默认安装位置》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。