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

CommonInstaller:

- simplify install_apps()
- who cares whether we override a ROM app?
This commit is contained in:
Christopher Roy Bratusek 2020-09-08 21:55:28 +02:00
parent 3f7d925dce
commit 58914bada6

View File

@ -1201,11 +1201,8 @@ install_apps () {
print_info " << with applications"
APP_STRING=" <<>"
INSTALL_APPS=$(grep -v "^#" "${cfg_apps}")
for app in ${INSTALL_APPS}; do
if [[ -d /system/app/${app} && ! -d ${MAGISKBASE}/modules/${MODID}/system/app/${app} ]]; then
print_info " ++ app: ${app} already provided by ROM"
elif [[ -d "${INSTALLER}/system/app/${app}" ]]; then
grep -v "^#" "${cfg_apps}" | while read app; do
if [ -d "${INSTALLER}/system/app/${app}" ]; then
print_info " ++ ${app}"
nanodroid_install_apk ${app}
else print_info " ++ app: ${app} missing"