diff options
| author | 2021-05-10 07:17:00 +0000 | |
|---|---|---|
| committer | 2021-06-02 19:33:33 +0000 | |
| commit | 2db6ff2c70c2d6e88ed8059f679bd9d264c65009 (patch) | |
| tree | f20b4a15e70ee957de8828ef8adb4a09e0a614d6 | |
| parent | 72cd5f15528e6b930fadfdef1d79722ea7ff02e7 (diff) | |
OMS: update shell command --help
Include the 'fabricate' sub-command.
Correct the instructions for how to limit 'dump' output to a given
field.
Bug: 189963636
Test: adb exec-out cmd overlay -h
Change-Id: I154783ff6bb9c6c8a1377685aec770c7fe8ad178
| -rw-r--r-- | services/core/java/com/android/server/om/OverlayManagerShellCommand.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/services/core/java/com/android/server/om/OverlayManagerShellCommand.java b/services/core/java/com/android/server/om/OverlayManagerShellCommand.java index ba1bf933ca58..89939a31321f 100644 --- a/services/core/java/com/android/server/om/OverlayManagerShellCommand.java +++ b/services/core/java/com/android/server/om/OverlayManagerShellCommand.java @@ -35,12 +35,9 @@ import android.os.ShellCommand; import android.os.UserHandle; import android.util.TypedValue; -import com.android.internal.util.ArrayUtils; - import java.io.PrintWriter; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -103,9 +100,8 @@ final class OverlayManagerShellCommand extends ShellCommand { out.println(" Print debugging information about the overlay manager."); out.println(" With optional parameters PACKAGE and NAME, limit output to the specified"); out.println(" overlay or target. With optional parameter FIELD, limit output to"); - out.println(" the value of that SettingsItem field. Field names are"); - out.println(" case insensitive and out.println the m prefix can be omitted,"); - out.println(" so the following are equivalent: mState, mstate, State, state."); + out.println(" the corresponding SettingsItem field. Field names are all lower case"); + out.println(" and omit the m prefix, i.e. 'userid' for SettingsItem.mUserId."); out.println(" list [--user USER_ID] [PACKAGE[:NAME]]"); out.println(" Print information about target and overlay packages."); out.println(" Overlay packages are printed in priority order. With optional"); @@ -129,6 +125,11 @@ final class OverlayManagerShellCommand extends ShellCommand { out.println(" Load a package and print the value of a given resource"); out.println(" applying the current configuration and enabled overlays."); out.println(" For a more fine-grained alternative, use 'idmap2 lookup'."); + out.println(" fabricate [--user USER_ID] [--target-name OVERLAYABLE] --target PACKAGE"); + out.println(" --name NAME PACKAGE:TYPE/NAME ENCODED-TYPE-ID ENCODED-VALUE"); + out.println(" Create an overlay from a single resource. Caller must be root. Example:"); + out.println(" fabricate --target android --name LighterGray \\"); + out.println(" android:color/lighter_gray 0x1c 0xffeeeeee"); } private int runList() throws RemoteException { |