04329f131a
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 |
||
---|---|---|
.. | ||
Android.bp | ||
build-ndk-prebuilts.sh | ||
build_broken_logs.go | ||
diff_build_graphs.sh | ||
gen-java-current-api-files.sh | ||
gen-kotlin-build-file.sh | ||
gen_sorted_bss_symbols.sh | ||
jar-args.sh | ||
jar-wrapper.sh | ||
jars-to-module-info-java.sh | ||
jsonmodify.py | ||
manifest.py | ||
manifest_check.py | ||
manifest_check_test.py | ||
manifest_fixer.py | ||
manifest_fixer_test.py | ||
mergenotice.py | ||
microfactory.bash | ||
OWNERS | ||
package-check.sh | ||
setup_go_workspace_for_soong.sh | ||
strip.sh | ||
system-clang-format | ||
system-clang-format-2 | ||
TEST_MAPPING | ||
toc.sh |