diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2010-03-19 14:36:49 -0700 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2010-03-22 10:49:49 -0700 |
commit | e99bb5f10b90736d10cee9729b56cba156fc0921 (patch) | |
tree | 2977919e3fb3e0fcfeb5954240a2ee37abb55617 /cmds/pm | |
parent | cbf953ed09b036441d90e14b0723a2ea417b3f35 (diff) | |
download | frameworks_base-e99bb5f10b90736d10cee9729b56cba156fc0921.zip frameworks_base-e99bb5f10b90736d10cee9729b56cba156fc0921.tar.gz frameworks_base-e99bb5f10b90736d10cee9729b56cba156fc0921.tar.bz2 |
Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.
Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
Diffstat (limited to 'cmds/pm')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index cfc2e75..659d70f 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -92,11 +92,6 @@ public final class Pm { return; } - if ("mountsd".equals(op)) { - runMountSd(); - return; - } - if ("uninstall".equals(op)) { runUninstall(); return; @@ -646,37 +641,6 @@ public final class Pm { } } - private void runMountSd() { - String opt; - boolean mount = false; - while ((opt=nextOption()) != null) { - if (opt.equals("-m")) { - String mountStr = nextOptionData(); - if (mountStr == null) { - System.err.println("Error: no value specified for -m"); - showUsage(); - return; - } - if ("true".equalsIgnoreCase(mountStr)) { - mount = true; - } else if ("false".equalsIgnoreCase(mountStr)) { - mount = false; - } else { - System.err.println("Error: no value specified for -m"); - showUsage(); - return; - } - } - } - - try { - mPm.updateExternalMediaStatus(mount); - } catch (RemoteException e) { - System.err.println(e.toString()); - System.err.println(PM_NOT_RUNNING_ERR); - } - } - class PackageDeleteObserver extends IPackageDeleteObserver.Stub { boolean finished; boolean result; @@ -866,7 +830,6 @@ public final class Pm { System.err.println(" pm path PACKAGE"); System.err.println(" pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f] PATH"); System.err.println(" pm uninstall [-k] PACKAGE"); - System.err.println(" pm mountsd [-m true/false]"); System.err.println(" pm enable PACKAGE_OR_COMPONENT"); System.err.println(" pm disable PACKAGE_OR_COMPONENT"); System.err.println(""); |