Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2b4929b authored by Dianne Hackborn's avatar Dianne Hackborn Committed by The Android Open Source Project
Browse files

am ade3ecad: Implement issue #1783881 (manifest option for adb-install-on

Merge commit 'ade3ecad'

* commit 'ade3ecad':
  Implement issue #1783881 (manifest option for adb-install-only apps)
parents 7118a2cf ade3ecad
Loading
Loading
Loading
Loading
+0 −424
Original line number Diff line number Diff line
@@ -31801,97 +31801,6 @@
>
</field>
</class>
<interface name="IPackageInstallObserver"
 abstract="true"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<implements name="android.os.IInterface">
</implements>
<method name="packageInstalled"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageName" type="java.lang.String">
</parameter>
<parameter name="returnCode" type="int">
</parameter>
<exception name="RemoteException" type="android.os.RemoteException">
</exception>
</method>
</interface>
<class name="IPackageInstallObserver.Stub"
 extends="android.os.Binder"
 abstract="true"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<implements name="android.content.pm.IPackageInstallObserver">
</implements>
<constructor name="IPackageInstallObserver.Stub"
 type="android.content.pm.IPackageInstallObserver.Stub"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</constructor>
<method name="asBinder"
 return="android.os.IBinder"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="asInterface"
 return="android.content.pm.IPackageInstallObserver"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="obj" type="android.os.IBinder">
</parameter>
</method>
<method name="onTransact"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="code" type="int">
</parameter>
<parameter name="data" type="android.os.Parcel">
</parameter>
<parameter name="reply" type="android.os.Parcel">
</parameter>
<parameter name="flags" type="int">
</parameter>
<exception name="RemoteException" type="android.os.RemoteException">
</exception>
</method>
</class>
<class name="InstrumentationInfo"
 extends="android.content.pm.PackageItemInfo"
 abstract="false"
@@ -33041,36 +32950,6 @@
<parameter name="appInfo" type="android.content.pm.ApplicationInfo">
</parameter>
</method>
<method name="installPackage"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageURI" type="android.net.Uri">
</parameter>
<parameter name="observer" type="android.content.pm.IPackageInstallObserver">
</parameter>
<parameter name="flags" type="int">
</parameter>
</method>
<method name="installPackage"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageURI" type="android.net.Uri">
</parameter>
</method>
<method name="isSafeMode"
 return="boolean"
 abstract="true"
@@ -33344,17 +33223,6 @@
 visibility="public"
>
</field>
<field name="FORWARD_LOCK_PACKAGE"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="GET_ACTIVITIES"
 type="int"
 transient="false"
@@ -33531,270 +33399,6 @@
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_ALREADY_EXISTS"
 type="int"
 transient="false"
 volatile="false"
 value="-1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_CONFLICTING_PROVIDER"
 type="int"
 transient="false"
 volatile="false"
 value="-13"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_DEXOPT"
 type="int"
 transient="false"
 volatile="false"
 value="-11"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_DUPLICATE_PACKAGE"
 type="int"
 transient="false"
 volatile="false"
 value="-5"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_INSUFFICIENT_STORAGE"
 type="int"
 transient="false"
 volatile="false"
 value="-4"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_INVALID_APK"
 type="int"
 transient="false"
 volatile="false"
 value="-2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_INVALID_URI"
 type="int"
 transient="false"
 volatile="false"
 value="-3"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_MISSING_SHARED_LIBRARY"
 type="int"
 transient="false"
 volatile="false"
 value="-9"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_NO_SHARED_USER"
 type="int"
 transient="false"
 volatile="false"
 value="-6"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_OLDER_SDK"
 type="int"
 transient="false"
 volatile="false"
 value="-12"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_REPLACE_COULDNT_DELETE"
 type="int"
 transient="false"
 volatile="false"
 value="-10"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_SHARED_USER_INCOMPATIBLE"
 type="int"
 transient="false"
 volatile="false"
 value="-8"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_UPDATE_INCOMPATIBLE"
 type="int"
 transient="false"
 volatile="false"
 value="-7"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_BAD_MANIFEST"
 type="int"
 transient="false"
 volatile="false"
 value="-101"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME"
 type="int"
 transient="false"
 volatile="false"
 value="-106"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID"
 type="int"
 transient="false"
 volatile="false"
 value="-107"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING"
 type="int"
 transient="false"
 volatile="false"
 value="-105"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES"
 type="int"
 transient="false"
 volatile="false"
 value="-104"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_MANIFEST_EMPTY"
 type="int"
 transient="false"
 volatile="false"
 value="-109"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_MANIFEST_MALFORMED"
 type="int"
 transient="false"
 volatile="false"
 value="-108"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_NOT_APK"
 type="int"
 transient="false"
 volatile="false"
 value="-100"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 type="int"
 transient="false"
 volatile="false"
 value="-103"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION"
 type="int"
 transient="false"
 volatile="false"
 value="-102"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_SUCCEEDED"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="MATCH_DEFAULT_ONLY"
 type="int"
 transient="false"
@@ -33850,17 +33454,6 @@
 visibility="public"
>
</field>
<field name="REPLACE_EXISTING_PACKAGE"
 type="int"
 transient="false"
 volatile="false"
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="SIGNATURE_FIRST_NOT_SIGNED"
 type="int"
 transient="false"
@@ -101178,23 +100771,6 @@
<parameter name="appInfo" type="android.content.pm.ApplicationInfo">
</parameter>
</method>
<method name="installPackage"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageURI" type="android.net.Uri">
</parameter>
<parameter name="observer" type="android.content.pm.IPackageInstallObserver">
</parameter>
<parameter name="flags" type="int">
</parameter>
</method>
<method name="isSafeMode"
 return="boolean"
 abstract="false"
+22 −437
Original line number Diff line number Diff line
@@ -7346,6 +7346,17 @@
 visibility="public"
>
</field>
<field name="testOnly"
 type="int"
 transient="false"
 volatile="false"
 value="16843378"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="text"
 type="int"
 transient="false"
@@ -34179,6 +34190,17 @@
 visibility="public"
>
</field>
<field name="FLAG_TEST_ONLY"
 type="int"
 transient="false"
 volatile="false"
 value="512"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="FLAG_UPDATED_SYSTEM_APP"
 type="int"
 transient="false"
@@ -34594,97 +34616,6 @@
>
</field>
</class>
<interface name="IPackageInstallObserver"
 abstract="true"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<implements name="android.os.IInterface">
</implements>
<method name="packageInstalled"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageName" type="java.lang.String">
</parameter>
<parameter name="returnCode" type="int">
</parameter>
<exception name="RemoteException" type="android.os.RemoteException">
</exception>
</method>
</interface>
<class name="IPackageInstallObserver.Stub"
 extends="android.os.Binder"
 abstract="true"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<implements name="android.content.pm.IPackageInstallObserver">
</implements>
<constructor name="IPackageInstallObserver.Stub"
 type="android.content.pm.IPackageInstallObserver.Stub"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</constructor>
<method name="asBinder"
 return="android.os.IBinder"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="asInterface"
 return="android.content.pm.IPackageInstallObserver"
 abstract="false"
 native="false"
 synchronized="false"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="obj" type="android.os.IBinder">
</parameter>
</method>
<method name="onTransact"
 return="boolean"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="code" type="int">
</parameter>
<parameter name="data" type="android.os.Parcel">
</parameter>
<parameter name="reply" type="android.os.Parcel">
</parameter>
<parameter name="flags" type="int">
</parameter>
<exception name="RemoteException" type="android.os.RemoteException">
</exception>
</method>
</class>
<class name="InstrumentationInfo"
 extends="android.content.pm.PackageItemInfo"
 abstract="false"
@@ -35847,36 +35778,6 @@
<parameter name="appInfo" type="android.content.pm.ApplicationInfo">
</parameter>
</method>
<method name="installPackage"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageURI" type="android.net.Uri">
</parameter>
<parameter name="observer" type="android.content.pm.IPackageInstallObserver">
</parameter>
<parameter name="flags" type="int">
</parameter>
</method>
<method name="installPackage"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageURI" type="android.net.Uri">
</parameter>
</method>
<method name="isSafeMode"
 return="boolean"
 abstract="true"
@@ -36150,17 +36051,6 @@
 visibility="public"
>
</field>
<field name="FORWARD_LOCK_PACKAGE"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="GET_ACTIVITIES"
 type="int"
 transient="false"
@@ -36348,281 +36238,6 @@
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_ALREADY_EXISTS"
 type="int"
 transient="false"
 volatile="false"
 value="-1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_CONFLICTING_PROVIDER"
 type="int"
 transient="false"
 volatile="false"
 value="-13"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_DEXOPT"
 type="int"
 transient="false"
 volatile="false"
 value="-11"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_DUPLICATE_PACKAGE"
 type="int"
 transient="false"
 volatile="false"
 value="-5"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_INSUFFICIENT_STORAGE"
 type="int"
 transient="false"
 volatile="false"
 value="-4"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_INVALID_APK"
 type="int"
 transient="false"
 volatile="false"
 value="-2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_INVALID_URI"
 type="int"
 transient="false"
 volatile="false"
 value="-3"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_MISSING_SHARED_LIBRARY"
 type="int"
 transient="false"
 volatile="false"
 value="-9"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_NEWER_SDK"
 type="int"
 transient="false"
 volatile="false"
 value="-14"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_NO_SHARED_USER"
 type="int"
 transient="false"
 volatile="false"
 value="-6"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_OLDER_SDK"
 type="int"
 transient="false"
 volatile="false"
 value="-12"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_REPLACE_COULDNT_DELETE"
 type="int"
 transient="false"
 volatile="false"
 value="-10"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_SHARED_USER_INCOMPATIBLE"
 type="int"
 transient="false"
 volatile="false"
 value="-8"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_FAILED_UPDATE_INCOMPATIBLE"
 type="int"
 transient="false"
 volatile="false"
 value="-7"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_BAD_MANIFEST"
 type="int"
 transient="false"
 volatile="false"
 value="-101"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME"
 type="int"
 transient="false"
 volatile="false"
 value="-106"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID"
 type="int"
 transient="false"
 volatile="false"
 value="-107"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING"
 type="int"
 transient="false"
 volatile="false"
 value="-105"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES"
 type="int"
 transient="false"
 volatile="false"
 value="-104"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_MANIFEST_EMPTY"
 type="int"
 transient="false"
 volatile="false"
 value="-109"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_MANIFEST_MALFORMED"
 type="int"
 transient="false"
 volatile="false"
 value="-108"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_NOT_APK"
 type="int"
 transient="false"
 volatile="false"
 value="-100"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_NO_CERTIFICATES"
 type="int"
 transient="false"
 volatile="false"
 value="-103"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION"
 type="int"
 transient="false"
 volatile="false"
 value="-102"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="INSTALL_SUCCEEDED"
 type="int"
 transient="false"
 volatile="false"
 value="1"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="MATCH_DEFAULT_ONLY"
 type="int"
 transient="false"
@@ -36678,17 +36293,6 @@
 visibility="public"
>
</field>
<field name="REPLACE_EXISTING_PACKAGE"
 type="int"
 transient="false"
 volatile="false"
 value="2"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="SIGNATURE_FIRST_NOT_SIGNED"
 type="int"
 transient="false"
@@ -114686,25 +114290,6 @@
<parameter name="appInfo" type="android.content.pm.ApplicationInfo">
</parameter>
</method>
<method name="installPackage"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="packageURI" type="android.net.Uri">
</parameter>
<parameter name="observer" type="android.content.pm.IPackageInstallObserver">
</parameter>
<parameter name="flags" type="int">
</parameter>
<parameter name="installerPackageName" type="java.lang.String">
</parameter>
</method>
<method name="isSafeMode"
 return="boolean"
 abstract="false"
+25 −19
Original line number Diff line number Diff line
@@ -540,6 +540,9 @@ public final class Pm {
        case PackageManager.INSTALL_FAILED_NEWER_SDK:
            s = "INSTALL_FAILED_NEWER_SDK";
            break;
        case PackageManager.INSTALL_FAILED_TEST_ONLY:
            s = "INSTALL_FAILED_TEST_ONLY";
            break;
        case PackageManager.INSTALL_PARSE_FAILED_NOT_APK:
            s = "INSTALL_PARSE_FAILED_NOT_APK";
            break;
@@ -584,9 +587,9 @@ public final class Pm {
        String opt;
        while ((opt=nextOption()) != null) {
            if (opt.equals("-l")) {
                installFlags |= PackageManager.FORWARD_LOCK_PACKAGE;
                installFlags |= PackageManager.INSTALL_FORWARD_LOCK;
            } else if (opt.equals("-r")) {
                installFlags |= PackageManager.REPLACE_EXISTING_PACKAGE;
                installFlags |= PackageManager.INSTALL_REPLACE_EXISTING;
            } else if (opt.equals("-i")) {
                installerPackageName = nextOptionData();
                if (installerPackageName == null) {
@@ -594,6 +597,8 @@ public final class Pm {
                    showUsage();
                    return;
                }
            } else if (opt.equals("-t")) {
                installFlags |= PackageManager.INSTALL_ALLOW_TEST;
            } else {
                System.err.println("Error: Unknown option: " + opt);
                showUsage();
@@ -821,38 +826,39 @@ public final class Pm {
        System.err.println("       pm list permissions [-g] [-f] [-d] [-u] [GROUP]");
        System.err.println("       pm list instrumentation [-f] [TARGET-PACKAGE]");        
        System.err.println("       pm path PACKAGE");
        System.err.println("       pm install [-l] [-r] [-i INSTALLER_PACKAGE_NAME] PATH");
        System.err.println("       pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] PATH");
        System.err.println("       pm uninstall [-k] PACKAGE");
        System.err.println("       pm enable PACKAGE_OR_COMPONENT");
        System.err.println("       pm disable PACKAGE_OR_COMPONENT");
        System.err.println("");
        System.err.println("The list packages command prints all packages.  Use");
        System.err.println("the -f option to see their associated file.");
        System.err.println("The list packages command prints all packages.  Options:");
        System.err.println("  -f: see their associated file.");
        System.err.println("");
        System.err.println("The list permission-groups command prints all known");
        System.err.println("permission groups.");
        System.err.println("");
        System.err.println("The list permissions command prints all known");
        System.err.println("permissions, optionally only those in GROUP.  Use");
        System.err.println("the -g option to organize by group.  Use");
        System.err.println("the -f option to print all information.  Use");
        System.err.println("the -s option for a short summary.  Use");
        System.err.println("the -d option to only list dangerous permissions.  Use");
        System.err.println("the -u option to list only the permissions users will see.");
        System.err.println("permissions, optionally only those in GROUP.  Options:");
        System.err.println("  -g: organize by group.");
        System.err.println("  -f: print all information.");
        System.err.println("  -s: short summary.");
        System.err.println("  -d: only list dangerous permissions.");
        System.err.println("  -u: list only the permissions users will see.");
        System.err.println("");
        System.err.println("The list instrumentation command prints all instrumentations,");
        System.err.println("or only those that target a specified package.  Use the -f option");
        System.err.println("to see their associated file.");
        System.err.println("or only those that target a specified package.  Options:");
        System.err.println("  -f: see their associated file.");
        System.err.println("");
        System.err.println("The path command prints the path to the .apk of a package.");
        System.err.println("");
        System.err.println("The install command installs a package to the system.  Use");
        System.err.println("the -l option to install the package with FORWARD_LOCK. Use");
        System.err.println("the -r option to reinstall an exisiting app, keeping its data.");
        System.err.println("the -i option to specify the installer package name.");
        System.err.println("The install command installs a package to the system.  Options:");
        System.err.println("  -l: install the package with FORWARD_LOCK.");
        System.err.println("  -r: reinstall an exisiting app, keeping its data.");
        System.err.println("  -t: allow test .apks to be installed.");
        System.err.println("  -i: specify the installer package name.");
        System.err.println("");
        System.err.println("The uninstall command removes a package from the system. Use");
        System.err.println("the -k option to keep the data and cache directories around");
        System.err.println("The uninstall command removes a package from the system. Options:");
        System.err.println("  -k: keep the data and cache directories around.");
        System.err.println("after the package removal.");
        System.err.println("");
        System.err.println("The enable and disable commands change the enabled state of");
+6 −0

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ package android.content.pm;

/**
 * API for installation callbacks from the Package Manager.
 *
 * @hide
 */
oneway interface IPackageInstallObserver {
    void packageInstalled(in String packageName, int returnCode);
Loading