From 9d1ff8272239aae0a6c760fa509e44daa4f1bb06 Mon Sep 17 00:00:00 2001 From: Didgeridoohan Date: Tue, 20 Mar 2018 19:31:57 +0100 Subject: [PATCH] Automatic prints list updating --- common/util_functions.sh | 20 ++++++++++++++++++-- system/binpath/props | Bin 27609 -> 27739 bytes 2 files changed, 18 insertions(+), 2 deletions(-) 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 bf39dfa5a32d62557785242d428def94e7cb0468..ac1aab99337f19416d0af3a255bbe1e605e8e217 100644 GIT binary patch delta 136 zcmcb4o$>Y!#trWjtb8(yOBBjdi;6Sz^AvOy%2YJcQ%mC0GILVn%Mx=+Qx#MKf;{~~ zf_?m*6_g;%Fk2Yw(NcKg0dqkv lu9W=pyqx^Rl=y<8%)FA~$qSgwCkuqLOcr1kTYNK)7XV>mFo^&F delta 126 zcmcb8gYo8d#trWjCg=HbO}_6gIoVrLaPof@wg~Uk)B=UfJcZoMycC6!jKmU!Odu*& zNX#iutSnYYN-Zu?D9Kmi;^gE^P0q+yP%14>RY+7w%gjqpEh;F=%qvmIO-%%nY57G8 cmHDMb3Mr{&naQb}y%mFPCl;_Rj*jOA0Ny|?`v3p{