We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 672c3ec commit 4bcb2ccCopy full SHA for 4bcb2cc
scripts/packaging.sh
@@ -40,8 +40,13 @@ _packaging() {
40
if [[ "${ANDROID_VERSION}" -lt 11 ]]; then
41
releasetools_prefix="${ANDROID_BUILD_TOP}"/build/tools/releasetools/
42
fi
43
+
44
+ local releasetool_flags=(-k "${KEYS_DIR}"/releasekey)
45
+ if [[ -n "${RELEASETOOL_EXTRA_FLAGS}" ]]; then
46
+ releasetool_flags=("${releasetool_flags[@]}" "${RELEASETOOL_EXTRA_FLAGS}")
47
+ fi
48
set +eu
- if ! "${releasetools_prefix}"ota_from_target_files "${RELEASETOOL_EXTRA_FLAGS}" -k "${KEYS_DIR}"/releasekey \
49
+ if ! "${releasetools_prefix}"ota_from_target_files "${releasetool_flags[@]}" \
50
"${OUT}"/signed-target_files.zip \
51
"${OUT}"/"${PACKAGE_NAME}" 2>&1 | tee --append "${LOGS_DIR}"/"${BUILD_DATE}"/packaging.txt
52
then
0 commit comments