應用程式的預設安裝位置以及是否可移動取決於該程式的開發者的配置

**.apk的AndroidManifest.xml 中

<manifest xmlns:android="HTTP://schemas.android.com/apk/res/android"

android:versionCode="1"
android:installLocation="auto"
android:versionName="1.0">

 

android:installLocation 的值有三個 internalOnly ,auto,preferExternal

 android:installLocation 值為internalOnly 或不存在時,該應用程式不允許移動到SD 卡中。

 android:installLocation 值為auto,preferExternal 時,允許應用程式在 SD卡與記憶體中相互移動

adb shell 中可以使用 pm setInstallLocation 2 命令更改安裝位置。2代表的是強制安裝在sd,0代表自動,1代表強制裝在記憶體

arrow
arrow

    狼翔月影 發表在 痞客邦 留言(0) 人氣()