2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

CommonInstaller: support installing bzip2 compressed APKs

This commit is contained in:
Christopher Roy Bratusek 2019-07-07 21:41:30 +02:00
parent 41ab8e38aa
commit d2ae7dbb64

View File

@ -1314,9 +1314,12 @@ nanodroid_install_apk () {
echo " installing app: ${app}"
echo " from: ${source}"
echo " into: ${dest} [${dest_apk}]"
cp "${source}" "${dest}/${dest_apk}" || \
cp "${source}.bz2" "${dest}/${dest_apk}.bz2" || \
error "failed to install ${source} to ${dest}"
bzip2 -d "${dest}/${dest_apk}.bz2" || \
error "failed to decompress ${dest}/${dest_apk}.bz2"
installinfo_add "${dest}/${dest_apk}"
nanodroid_install_lib "${dest}/${dest_apk}" "${2}"