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

Commit 5df2a326 authored by Winson's avatar Winson Committed by Winson Chiu
Browse files

Add domain verify state code explanations to pm help

So that developers don't need to reference external documentation or
code to understand the output.

Bug: 184198118

Test: manual, adb shell pm

Change-Id: Iebb50e68fb4015e9c0d9b7301e3da1e9c5359fc7
parent 18d2238f
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -53,7 +53,16 @@ public class DomainVerificationShell {
    public void printHelp(@NonNull PrintWriter pw) {
        pw.println("  get-app-links [--user <USER_ID>] [<PACKAGE>]");
        pw.println("    Prints the domain verification state for the given package, or for all");
        pw.println("    packages if none is specified.");
        pw.println("    packages if none is specified. State codes are defined as follows:");
        pw.println("        - none: nothing has been recorded for this domain");
        pw.println("        - verified: the domain has been successfully verified");
        pw.println("        - approved: force approved, usually through shell");
        pw.println("        - denied: force denied, usually through shell");
        pw.println("        - migrated: preserved verification from a legacy response");
        pw.println("        - restored: preserved verification from a user data restore");
        pw.println("        - legacy_failure: rejected by a legacy verifier, unknown reason");
        pw.println("        - system_configured: automatically approved by the device config");
        pw.println("        - >= 1024: Custom error code which is specific to the device verifier");
        pw.println("      --user <USER_ID>: include user selections (includes all domains, not");
        pw.println("        just autoVerify ones)");
        pw.println("  reset-app-links [--user <USER_ID>] [<PACKAGE>]");