Loading cmds/dumpstate/README.md +16 −12 Original line number Original line Diff line number Diff line Loading @@ -14,7 +14,8 @@ Then incremental ones: mmm -j frameworks/native/cmds/dumpstate 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 mmm -j frameworks/native/cmds/dumpstate device/acme/secret_device/dumpstate/ hardware/interfaces/dumpstate Loading @@ -26,13 +27,16 @@ 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 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. Make sure that the device is remounted before running the above command. * If * If you're working with `userdebug` variant, you may need to run the following to remount your device: 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 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: * If you're working with `eng` variant, you may need to run the following to remount your device: ``` ``` adb root && adb remount adb root && adb remount Loading Loading @@ -82,7 +86,6 @@ Example: adb shell setprop dumpstate.version split-dumpsys && adb shell dumpstate -v adb shell setprop dumpstate.version split-dumpsys && adb shell dumpstate -v ``` ``` Then to restore the default version: Then to restore the default version: ``` ``` Loading @@ -91,8 +94,9 @@ adb shell setprop dumpstate.version default ## Code style and formatting ## Code style and formatting Use the style defined at the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) Use the style defined at the and make sure to run the following command prior to `repo upload`: [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~ git clang-format --style=file HEAD~ Loading Loading
cmds/dumpstate/README.md +16 −12 Original line number Original line Diff line number Diff line Loading @@ -14,7 +14,8 @@ Then incremental ones: mmm -j frameworks/native/cmds/dumpstate 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 mmm -j frameworks/native/cmds/dumpstate device/acme/secret_device/dumpstate/ hardware/interfaces/dumpstate Loading @@ -26,13 +27,16 @@ 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 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. Make sure that the device is remounted before running the above command. * If * If you're working with `userdebug` variant, you may need to run the following to remount your device: 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 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: * If you're working with `eng` variant, you may need to run the following to remount your device: ``` ``` adb root && adb remount adb root && adb remount Loading Loading @@ -82,7 +86,6 @@ Example: adb shell setprop dumpstate.version split-dumpsys && adb shell dumpstate -v adb shell setprop dumpstate.version split-dumpsys && adb shell dumpstate -v ``` ``` Then to restore the default version: Then to restore the default version: ``` ``` Loading @@ -91,8 +94,9 @@ adb shell setprop dumpstate.version default ## Code style and formatting ## Code style and formatting Use the style defined at the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html) Use the style defined at the and make sure to run the following command prior to `repo upload`: [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~ git clang-format --style=file HEAD~ Loading