gpt4 book ai didi

android - 将应用程序安装到 sd 卡(外部存储)

转载 作者:太空宇宙 更新时间:2023-11-03 12:09:58 28 4
gpt4 key购买 nike

我试图将 android 应用程序的默认安装位置设置到我的 sd 卡(外部存储)中。所以我尝试了这些命令,

adb shell pm getInstallLocation(这显示 0[auto])

所以我运行这个命令让它成为 sd 卡

adb shell pm setInstallLocation 2

我再次运行它以查看命令是否成功运行。

adb shell pm getInstallLocation(这显示 2[外部)

但在所有这些之后,我的应用程序仍在安装到内部存储器中,并且我的手机出现内存空间不足的问题。我们将不胜感激。

最佳答案

您是否尝试过在 manifest.xml 文件中使用 installLocation="PreferredExternal"选项?

如果您尝试这样做,您的应用将安装在外部存储中。

关于android - 将应用程序安装到 sd 卡(外部存储),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14559640/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com