summaryrefslogtreecommitdiffstats
path: root/cmds/pm
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-08-11 13:33:45 +0100
committerNarayan Kamath <narayan@google.com>2014-08-13 12:41:19 +0100
commit4903f64ba2478849e6c401f42f5a77c1d4f9f7df (patch)
treeace15042e8025593f37f0f87444d60120e623c22 /cmds/pm
parentdd0b7d083fd7a176c8cba151469d34ec69803a70 (diff)
downloadframeworks_base-4903f64ba2478849e6c401f42f5a77c1d4f9f7df.zip
frameworks_base-4903f64ba2478849e6c401f42f5a77c1d4f9f7df.tar.gz
frameworks_base-4903f64ba2478849e6c401f42f5a77c1d4f9f7df.tar.bz2
Persist the cpuAbiOverride setting.
If an app is installed with an ABI override (adb install -r --abi) we should remember this so that we don't revert to the scan derived ABI on the next reboot. bug: 16476618 Change-Id: I6085bc0099eb613dd9d3b07113c7c13859780697
Diffstat (limited to 'cmds/pm')
-rw-r--r--cmds/pm/src/com/android/commands/pm/Pm.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java
index c5e91e3..15152e5 100644
--- a/cmds/pm/src/com/android/commands/pm/Pm.java
+++ b/cmds/pm/src/com/android/commands/pm/Pm.java
@@ -1703,6 +1703,10 @@ public final class Pm {
throw new IllegalArgumentException("Missing ABI argument");
}
+ if ("-".equals(abi)) {
+ return abi;
+ }
+
final String[] supportedAbis = Build.SUPPORTED_ABIS;
for (String supportedAbi : supportedAbis) {
if (supportedAbi.equals(abi)) {