platform_build_soong/scripts
Jooyung Han 04329f131a Add jsonmodify tool
This tool is used to modify apex_manifest.json when building apex
module.

Here's the usage:

usage: jsonmodify [-h] [-o output] [-v path value] [-s path value]
                     [-r path] [-a path [value ...]]
                     [input]

positional arguments:
  input                 JSON file

optional arguments:
  -h, --help            show this help message and exit
  -o output, --out output
                        write result to a file. If omitted, print to stdout
  -v path value, --value path value
                        set value of the key specified by path. If path
                        doesn't exist, creates new one.
  -s path value, --replace path value
                        replace value of the key specified by path. If path
                        doesn't exist, no op.
  -r path, --remove path
                        remove the key specified by path. If path doesn't
                        exist, no op.
  -a path [value ...], --append_list path [value ...]
                        append values to the list specified by path. If path
                        doesn't exist, creates new list for it.

Bug: 138695532
Test: m jsonmodify
Test: echo {} | jsonmodify -v name hello -a list.nested a b c
{
  "name": "hello",
  "list": {
    "nested": [
      "a",
      "b",
      "c"
    ]
  }
}

Change-Id: I2cd043c614b3ad2306a0c27ccee302633c6d2525
2019-08-02 00:08:05 +09:00
..
Android.bp Add jsonmodify tool 2019-08-02 00:08:05 +09:00
OWNERS Move system-clang-format to a central location. 2019-01-22 13:27:45 -08:00
TEST_MAPPING Add manifest_check tool 2019-05-24 13:43:27 -07:00
build-ndk-prebuilts.sh Allow NDK APIs to be marked as drafts. 2018-11-28 09:52:12 -08:00
build_broken_logs.go Remove BUILD_BROKEN_ANDROIDMK_EXPORTS 2019-05-25 17:13:55 -07:00
diff_build_graphs.sh Have diff_build_graphs.sh print the number of lines in the diff 2017-11-29 12:54:43 -08:00
gen-java-current-api-files.sh Refine error messages in case of missing api files 2019-03-20 15:33:06 +09:00
gen-kotlin-build-file.sh Don't hide *.kotlin_module in turbine dependencies 2019-05-08 14:30:12 -07:00
gen_sorted_bss_symbols.sh Add sort_bss_symbols_by_size property for shared libs 2019-07-29 13:25:55 -07:00
jar-args.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jar-wrapper.sh Allow jar wrapper to take quoted arguments 2019-07-16 11:12:04 -07:00
jars-to-module-info-java.sh Add license headers to all go and shell files 2017-11-17 23:05:26 +00:00
jsonmodify.py Add jsonmodify tool 2019-08-02 00:08:05 +09:00
manifest.py Add manifest_check tool 2019-05-24 13:43:27 -07:00
manifest_check.py Add manifest_check tool 2019-05-24 13:43:27 -07:00
manifest_check_test.py Add manifest_check tool 2019-05-24 13:43:27 -07:00
manifest_fixer.py Touch up manifest if there's no source code. 2019-06-03 10:51:42 -07:00
manifest_fixer_test.py Touch up manifest if there's no source code. 2019-06-03 10:51:42 -07:00
mergenotice.py Notice support for APEX 2019-03-21 08:05:50 +09:00
microfactory.bash Add a unified status reporting UI 2018-07-12 14:15:31 -07:00
package-check.sh Check package restrictions for Java libs. 2019-04-08 14:02:14 +01:00
setup_go_workspace_for_soong.sh Add robolectric-shadows to setup_go_workspace_for_soong.sh 2019-04-08 05:46:07 +00:00
strip.sh Use double dashes before llvm-strip arguments 2019-07-19 16:41:51 +00:00
system-clang-format system-clang-format: Add Standard: Cpp11 2019-07-10 15:04:04 -07:00
system-clang-format-2 system-clang-format: Add Standard: Cpp11 2019-07-10 15:04:04 -07:00
toc.sh Enable toc support for Darwin and Windows 2018-09-10 23:12:11 -07:00