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
This commit is contained in:
Winson
2021-04-01 16:02:02 -07:00
committed by Winson Chiu
parent 18d2238fa1
commit 5df2a326e8

View File

@@ -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>]");