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

Commit ca6988e6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update documentation for pm install / pm install-create"

parents c593bc08 91a711ba
Loading
Loading
Loading
Loading
+28 −8
Original line number Diff line number Diff line
@@ -1570,11 +1570,19 @@ public final class Pm {
    private static int showUsage() {
        System.err.println("usage: pm path [--user USER_ID] PACKAGE");
        System.err.println("       pm dump PACKAGE");
        System.err.println("       pm install [-lrtsfd] [-i PACKAGE] [--user USER_ID] [PATH]");
        System.err.println("       pm install-create [-lrtsfdp] [-i PACKAGE] [-S BYTES]");
        System.err.println("               [--install-location 0/1/2]");
        System.err.println("               [--force-uuid internal|UUID]");
        System.err.println("       pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH]");
        System.err.println("       pm install [-lrtsfdg] [-i PACKAGE] [--user USER_ID]");
        System.err.println("               [-p INHERIT_PACKAGE] [--install-location 0/1/2]");
        System.err.println("               [--originating-uri URI] [---referrer URI]");
        System.err.println("               [--abi ABI_NAME] [--force-sdk]");
        System.err.println("               [--preload] [--instantapp] [--full] [--dont-kill]");
        System.err.println("               [--force-uuid internal|UUID] [--pkg PACKAGE] [-S BYTES] [PATH|-]");
        System.err.println("       pm install-create [-lrtsfdg] [-i PACKAGE] [--user USER_ID]");
        System.err.println("               [-p INHERIT_PACKAGE] [--install-location 0/1/2]");
        System.err.println("               [--originating-uri URI] [---referrer URI]");
        System.err.println("               [--abi ABI_NAME] [--force-sdk]");
        System.err.println("               [--preload] [--instantapp] [--full] [--dont-kill]");
        System.err.println("               [--force-uuid internal|UUID] [--pkg PACKAGE] [-S BYTES]");
        System.err.println("       pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH|-]");
        System.err.println("       pm install-commit SESSION_ID");
        System.err.println("       pm install-abandon SESSION_ID");
        System.err.println("       pm uninstall [-k] [--user USER_ID] [--versionCode VERSION_CODE] PACKAGE");
@@ -1613,15 +1621,27 @@ public final class Pm {
        System.err.println("pm install: install a single legacy package");
        System.err.println("pm install-create: create an install session");
        System.err.println("    -l: forward lock application");
        System.err.println("    -r: replace existing application");
        System.err.println("    -r: allow replacement of existing application");
        System.err.println("    -t: allow test packages");
        System.err.println("    -i: specify the installer package name");
        System.err.println("    -i: specify package name of installer owning the app");
        System.err.println("    -s: install application on sdcard");
        System.err.println("    -f: install application on internal flash");
        System.err.println("    -d: allow version code downgrade (debuggable packages only)");
        System.err.println("    -p: partial application install");
        System.err.println("    -p: partial application install (new split on top of existing pkg)");
        System.err.println("    -g: grant all runtime permissions");
        System.err.println("    -S: size in bytes of entire session");
        System.err.println("    --dont-kill: installing a new feature split, don't kill running app");
        System.err.println("    --originating-uri: set URI where app was downloaded from");
        System.err.println("    --referrer: set URI that instigated the install of the app");
        System.err.println("    --pkg: specify expected package name of app being installed");
        System.err.println("    --abi: override the default ABI of the platform");
        System.err.println("    --instantapp: cause the app to be installed as an ephemeral install app");
        System.err.println("    --full: cause the app to be installed as a non-ephemeral full app");
        System.err.println("    --install-location: force the install location:");
        System.err.println("        0=auto, 1=internal only, 2=prefer external");
        System.err.println("    --force-uuid: force install on to disk volume with given UUID");
        System.err.println("    --force-sdk: allow install even when existing app targets platform");
        System.err.println("        codename but new one targets a final API level");
        System.err.println("");
        System.err.println("pm install-write: write a package into existing session; path may");
        System.err.println("  be '-' to read from stdin");