diff options
author | Jeff Sharkey <jsharkey@android.com> | 2015-04-18 20:23:13 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2015-04-18 21:11:58 -0700 |
commit | 529f91fc8e7e884ef19bef8eb3e4e3a1d69336f4 (patch) | |
tree | 463b7b5d9175e98402939a2bbfebd4f30899feac /cmds/pm/src | |
parent | 355df8f16ae4c428997d88ba86f1ce07e5eca35e (diff) | |
download | frameworks_base-529f91fc8e7e884ef19bef8eb3e4e3a1d69336f4.zip frameworks_base-529f91fc8e7e884ef19bef8eb3e4e3a1d69336f4.tar.gz frameworks_base-529f91fc8e7e884ef19bef8eb3e4e3a1d69336f4.tar.bz2 |
Always send volume UUID with installd commands.
Since packages can be moved to other volumes, all relevant commands
to installd now require an explicit volume UUID parameter.
Bug: 20275577
Change-Id: Ie84f5bc43c7aada5800b8d71692c7928b42b965e
Diffstat (limited to 'cmds/pm/src')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index b43c462..d5cc8cc 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -1691,9 +1691,13 @@ public final class Pm { showUsage(); return 1; } + String volumeUuid = nextArg(); + if ("internal".equals(volumeUuid)) { + volumeUuid = null; + } ClearDataObserver obs = new ClearDataObserver(); try { - mPm.freeStorageAndNotify(sizeVal, obs); + mPm.freeStorageAndNotify(volumeUuid, sizeVal, obs); synchronized (obs) { while (!obs.finished) { try { @@ -1884,7 +1888,7 @@ public final class Pm { System.err.println(" pm set-install-location [0/auto] [1/internal] [2/external]"); System.err.println(" pm get-install-location"); System.err.println(" pm set-permission-enforced PERMISSION [true|false]"); - System.err.println(" pm trim-caches DESIRED_FREE_SPACE"); + System.err.println(" pm trim-caches DESIRED_FREE_SPACE [internal|UUID]"); System.err.println(" pm create-user [--profileOf USER_ID] [--managed] USER_NAME"); System.err.println(" pm remove-user USER_ID"); System.err.println(" pm get-max-users"); |