commands: { copy_before: { from: "out/soong/.intermediates/external/toybox/toybox/linux_glibc_x86_64/toybox" to: "tools/out/bin/toybox" executable: false } copy_before: { from: "out/soong/.intermediates/platform_testing/utils/shell-as/shell-as-test-app/android_common/shell-as-test-app.apk" to: "out/soong/.intermediates/platform_testing/utils/shell-as/shell-as-test-app/android_common/shell-as-test-app.apk" } chdir: true command: "CC_ARCH=x86_64 CC_NATIVE_BRIDGE= CC_MULTILIB=lib64 CC_OS=android && ( echo '#include '; echo '#include '; echo ''; echo 'namespace shell_as {'; echo 'const uint8_t kTestAppApk[] = {'; __SBOX_SANDBOX_DIR__/tools/out/bin/toybox xxd -i < __SBOX_SANDBOX_DIR__/out/soong/.intermediates/platform_testing/utils/shell-as/shell-as-test-app/android_common/shell-as-test-app.apk; echo '};'; echo 'void GetTestApk(uint8_t **apk, size_t *length) {'; echo ' *apk = (uint8_t*) kTestAppApk;'; echo ' *length = sizeof(kTestAppApk);'; echo '}'; echo '} // namespace shell_as';) > __SBOX_SANDBOX_DIR__/out/test-app-apk.cpp" copy_after: { from: "out/test-app-apk.cpp" to: "out/soong/.intermediates/platform_testing/utils/shell-as/shell-as-test-app-apk-cpp/android_x86_64_silvermont/gen/test-app-apk.cpp" } input_hash: "0d78c2136da03b5fae4a7d786856260befb5c7defa8d7aed3f55b5dc9a0dc8b5" env: { name: "PATH" inherit: true } env: { name: "JAVA_HOME" inherit: true } env: { name: "TMPDIR" inherit: true } env: { name: "RBE_log_dir" inherit: true } env: { name: "RBE_platform" inherit: true } env: { name: "RBE_server_address" inherit: true } env: { name: "RBE_exec_root" inherit: true } env: { name: "OUT_DIR" value: "out" } dont_inherit_env: true }