diff --git a/common/util_functions.sh b/common/util_functions.sh index 7275681..1c382c8 100644 --- a/common/util_functions.sh +++ b/common/util_functions.sh @@ -8,12 +8,16 @@ LATEFILE=$IMGPATH/.core/service.d/propsconf_late LOGFILE=/cache/propsconf.log MAGISKLOC=/data/adb/magisk BBPATH=$MAGISKLOC/busybox +PRINTSLOC=$MODPATH/prints.sh +PRINTSTMP=/cache/prints.sh +PRINTSWWW="https://raw.githubusercontent.com/Didgeridoohan/MagiskHide-Props-Config/master/common/prints.sh" alias cat="$BBPATH cat" alias grep="$BBPATH grep" -alias sed="$BBPATH sed" -alias tr="$BBPATH tr" alias reboot="/system/bin/reboot" alias resetprop="$MAGISKLOC/magisk resetprop" +alias sed="$BBPATH sed" +alias tr="$BBPATH tr" +alias wget="$BBPATH wget" # MagiskHide props PROPSLIST=" @@ -84,3 +88,15 @@ placeholder_update() { ;; esac } + +download_prints() { + wget -O $PRINTSTMP $PRINTSWWW 2>> $LOGFILE + if [ "$(get_file_value $PRINTSTMP "PRINTSV=")" -gt "$(get_file_value $PRINTSLOC "PRINTSV=")" ]; then + if [ "$(get_file_value $PRINTSTMP "PRINTSTRANSF=")" -ge "$(get_file_value $PRINTSLOC "PRINTSTRANSF=")" ]; then + mv -f $PRINTSTMP $PRINTSLOC + log_handler "Updated prints.sh to v$(get_file_value $PRINTSLOC "PRINTSV=")." + fi + else + rm -f $PRINTSTMP + fi +} \ No newline at end of file diff --git a/system/binpath/props b/system/binpath/props index bf39dfa..ac1aab9 100644 Binary files a/system/binpath/props and b/system/binpath/props differ