CommonInstaller:

- simplify install_apps()
- who cares whether we override a ROM app?
merge-requests/33/head
Christopher Roy Bratusek 4 years ago
parent 3f7d925dce
commit 58914bada6

@ -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"

Loading…
Cancel
Save