mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
nanodroid-overlay: improve
This commit is contained in:
parent
8a3e7f314d
commit
6119a4df81
@ -27,6 +27,9 @@
|
|||||||
* restore NanoDroid-Font settings after OTA update
|
* restore NanoDroid-Font settings after OTA update
|
||||||
* re-remove conflicting GApps after OTA update
|
* re-remove conflicting GApps after OTA update
|
||||||
* shares file list with Uninstaller
|
* shares file list with Uninstaller
|
||||||
|
* NanoDroid-Overlay
|
||||||
|
* when an app is installed in /system/app **and** /system/priv-app it was only pseudo-debloated from /system/app, now the script does not stop if an requested app was found in /system/app, thus pseudo-debloating both instances
|
||||||
|
* this is a rare corner case
|
||||||
* Full package
|
* Full package
|
||||||
* switch to QKSMS 3
|
* switch to QKSMS 3
|
||||||
* Uninstaller
|
* Uninstaller
|
||||||
|
@ -42,6 +42,7 @@ add_override () {
|
|||||||
echo " creating overlay: $(basename ${1})"
|
echo " creating overlay: $(basename ${1})"
|
||||||
mkdir -p "${OVERLAY_PATH}/system/${1}"
|
mkdir -p "${OVERLAY_PATH}/system/${1}"
|
||||||
touch "${OVERLAY_PATH}/system/${1}/.replace"
|
touch "${OVERLAY_PATH}/system/${1}/.replace"
|
||||||
|
echo "$(basename ${1})" >> "${config}"
|
||||||
}
|
}
|
||||||
|
|
||||||
rm_override () {
|
rm_override () {
|
||||||
@ -185,11 +186,10 @@ case ${1} in
|
|||||||
if [ ! -z ${2} ]; then
|
if [ ! -z ${2} ]; then
|
||||||
if [[ -d /system/app/${2} ]]; then
|
if [[ -d /system/app/${2} ]]; then
|
||||||
add_override "app/${2}"
|
add_override "app/${2}"
|
||||||
echo "${2}" >> "${config}"
|
fi
|
||||||
elif [[ -d /system/priv-app/${2} ]]; then
|
|
||||||
|
if [[ -d /system/priv-app/${2} ]]; then
|
||||||
add_override "priv-app/${2}"
|
add_override "priv-app/${2}"
|
||||||
echo "${2}" >> "${config}"
|
|
||||||
else echo "app \"${2}\" is not installed"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -198,9 +198,10 @@ case ${1} in
|
|||||||
if [ ! -z ${2} ]; then
|
if [ ! -z ${2} ]; then
|
||||||
if [[ -f ${OVERLAY_PATH}/system/app/${2}/.replace ]]; then
|
if [[ -f ${OVERLAY_PATH}/system/app/${2}/.replace ]]; then
|
||||||
rm_override "app/${2}"
|
rm_override "app/${2}"
|
||||||
elif [[ -f ${OVERLAY_PATH}/system/priv-app/${2}/.replace ]]; then
|
fi
|
||||||
|
|
||||||
|
if [[ -f ${OVERLAY_PATH}/system/priv-app/${2}/.replace ]]; then
|
||||||
rm_override "priv-app/${2}"
|
rm_override "priv-app/${2}"
|
||||||
else echo "No override for \"${2}\" found"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user