platform_build_soong/scripts
Jingwen Chen 2d61a7d005 bazel apex: clean up gen_ndk_usedby_apex.sh to work in bazel sandbox.
This script is responsible for generating <module>_using.txt, which is a
file containing all NDK symbols used by the shared libraries in an APEX.

This script doesn't work as-is in the bazel sandbox; namely it tries to
create tmp directories in read only input dirs, for example:

"mkdir: cannot create directory 'bazel-out/android_target-fastbuild-ST-7fe6d3cd3905/bin/packages/modules/adb/apex/com.android.adbd_staging_dir/tmpUnzipped': Permission denied"

The staging dir inputs are also symlinks, so the `find` call needs a new
-L flag to follow symlinks.

This CL fixes that by using a tmpdir, and also refactors the script to
be less fragile.

I'm not a fan of the camelCase, but I'll save that for another change.

Test: presubmits
Bug: 239081455
Bug: 257226023
Fixes: 257226023
Change-Id: I1d0fe93c47c92d046e72c0ab32014a5dc8bbd597
2022-11-07 08:38:01 +00:00
..
check_boot_jars
hiddenapi Remove Python enables identical to global defaults. 2022-09-18 01:30:19 +00:00
Android.bp Add a host tool to create an APEX bundle 2022-09-21 13:27:49 +09:00
archive_repack.sh
build-apex-bundle.py Add a host tool to create an APEX bundle 2022-09-21 13:27:49 +09:00
build-ndk-prebuilts.sh Generate soong.variables for ndk build 2022-02-23 12:16:48 +00:00
build-rustdocs.sh
build_broken_logs.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
check_do_not_merge.sh
construct_context.py
construct_context_test.py
conv_linker_config.py
diff_build_graphs.sh
freeze-sysprop-api-files.sh
gen-java-current-api-files.sh
gen-kotlin-build-file.py
gen-sysprop-api-files.sh
gen_java_usedby_apex.sh
gen_ndk_backedby_apex.sh
gen_ndk_usedby_apex.sh bazel apex: clean up gen_ndk_usedby_apex.sh to work in bazel sandbox. 2022-11-07 08:38:01 +00:00
get_clang_version.py
get_clang_version_test.py
jar-args.sh
jar-wrapper.sh
jars-to-module-info-java.sh
jsonmodify.py Merge changes Ibcf908d9,I786ab152 2022-07-12 13:07:28 +00:00
jsonmodify_test.py Adding support to conditionally replace a value 2022-07-12 11:53:07 +01:00
lint_project_xml.py
lint_project_xml_test.py
list_image.sh Recursively list Android image contents. 2022-04-20 20:02:11 -07:00
manifest.py
manifest_check.py Revert "manifest_check.py: add uses-libraries propagaged via dex..." 2022-06-13 09:06:44 +00:00
manifest_check_test.py
manifest_fixer.py Overriding placeholder version in updatable apks 2022-08-03 12:05:14 +01:00
manifest_fixer_test.py Overriding placeholder version in updatable apks 2022-08-03 12:05:14 +01:00
microfactory.bash Add prebuilts/ to microfactory includes 2022-10-19 11:11:45 -04:00
ninja_rsp.py
OWNERS Remove obsolete script for building unbundled Mainline targets. 2022-09-21 11:50:08 +01:00
package-check.sh
rbc-run Always build mk2rbc/rbcrun 2022-03-29 14:55:17 -07:00
reverse-deps.sh
rustfmt.toml Update rustfmt.toml to 2021 edition 2022-02-10 16:55:01 +11:00
setup-android-build.sh
setup_go_workspace_for_soong.sh
strip.sh
system-clang-format
system-clang-format-2
test_config_fixer.py Updates test_config_fixer to also work for SuiteApkInstaller 2022-04-20 10:36:58 -07:00
test_config_fixer_test.py Updates test_config_fixer to also work for SuiteApkInstaller 2022-04-20 10:36:58 -07:00
toc.sh
transitive-deps.sh
unpack-prebuilt-apex.sh
update_out