2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00

uninstaller: restore font in system mode when changed using NanoDroid-Font

This commit is contained in:
Christopher Roy Bratusek 2018-04-08 19:59:37 +02:00
parent 0cfac068df
commit 07ce9d604f

View File

@ -167,6 +167,18 @@ system_mode_uninstall () {
ui_print " << using: ${1}" ui_print " << using: ${1}"
system_list=${1} system_list=${1}
if test -h /system/fonts/Roboto-Regular.ttf; then
CUSTOM_FONT="$(basename $(readlink /system/fonts/Roboto-Regular.ttf) .ttf)"
ui_print " << Detected NanoDroid-Font (${CUSTOM_FONT})"
ui_print " < Restoring original Font"
if [ -f /system/xbin/nanodroid-font ]; then
/system/xbin/nanodroid-font -r
elif [ -f /system/bin/nanodroid-font ]; then
/system/bin/nanodroid-font -r
fi
fi
# services.jar needs special treament # services.jar needs special treament
if grep -q /system/framework/services.jar ${system_list}; then if grep -q /system/framework/services.jar ${system_list}; then
if [ -f /sdcard/nanodroid_backups/services.jar ]; then if [ -f /sdcard/nanodroid_backups/services.jar ]; then