diff options
author | Nandana Dutt <nandana@google.com> | 2019-02-18 02:55:39 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-02-18 02:55:39 -0800 |
commit | 406ad255bf6e6041765c6ff5dc06c25f99270334 (patch) | |
tree | d2c3a5788211aa235178e971c0513dd062551d10 | |
parent | 48ea00fbd7f7f6673fa3375f9f27f8bf39e9f6c8 (diff) | |
parent | 0119e28e9e7694e9398af8de92ead519e3806933 (diff) | |
download | native-temp-124234733-master.tar.gz |
Merge "dumpstate: format readme"temp-124234733-master
am: 0119e28e9e
Change-Id: I4d736a374a5c3405f1ecc0e85a4965c1e1f7ddd3
-rw-r--r-- | cmds/dumpstate/README.md | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/cmds/dumpstate/README.md b/cmds/dumpstate/README.md index 1bf55e4dec..c818c05117 100644 --- a/cmds/dumpstate/README.md +++ b/cmds/dumpstate/README.md @@ -14,7 +14,8 @@ Then incremental ones: mmm -j frameworks/native/cmds/dumpstate ``` -If you're working on device-specific code, you might need to build them as well. Example: +If you're working on device-specific code, you might need to build them as well. +Example: ``` mmm -j frameworks/native/cmds/dumpstate device/acme/secret_device/dumpstate/ hardware/interfaces/dumpstate @@ -26,17 +27,20 @@ mmm -j frameworks/native/cmds/dumpstate device/acme/secret_device/dumpstate/ har mmm -j frameworks/native/cmds/dumpstate && adb push ${OUT}/system/bin/dumpstate system/bin && adb push ${OUT}/system/lib64/*dumpstate*.so /system/lib64/ && adb shell am bug-report ``` -Make sure that the device is remounted before running the above command. -* If you're working with `userdebug` variant, you may need to run the following to remount your device: +Make sure that the device is remounted before running the above command. * If +you're working with `userdebug` variant, you may need to run the following to +remount your device: - ``` +``` adb root && adb remount -R && adb wait-for-device && adb root && adb remount - ``` -* If you're working with `eng` variant, you may need to run the following to remount your device: +``` - ``` - adb root && adb remount - ``` +* If you're working with `eng` variant, you may need to run the following to + remount your device: + + ``` + adb root && adb remount + ``` ## To build, deploy, and run unit tests @@ -82,7 +86,6 @@ Example: adb shell setprop dumpstate.version split-dumpsys && adb shell dumpstate -v ``` - Then to restore the default version: ``` @@ -91,8 +94,9 @@ adb shell setprop dumpstate.version default ## Code style and formatting -Use the style defined at the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) -and make sure to run the following command prior to `repo upload`: +Use the style defined at the +[Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) and +make sure to run the following command prior to `repo upload`: ``` git clang-format --style=file HEAD~ |