@@ -26,7 +26,7 @@ elif [ "${vv##*/}" == "Joyose.apk" ];then
2626 patgpu=" $( Timkiem GPUTUNER_SWITCH $oi /smali/classes) "
2727 sed -i " ` grep -nA2 GPUTUNER_SWITCH $patgpu | grep -m1 getString | cut -d- -f1` i\ const/4 v0, 0x1 \n return v0" $patgpu || about " Error: GPUTUNER_SWITCH"
2828 sed -i " ` grep -nA2 SUPPORT_UGD $patgpu | grep -m1 getString | cut -d- -f1` i\ const/4 v0, 0x1 \n return v0" $patgpu || about " Error: SUPPORT_UGD"
29- Thayvc -v ' method public run()V' $( Timkiem " job exist, sync local" $oi /smali)
29+ # Thayvc -v '. method public run()V' $(Timkiem "job exist, sync local" $oi/smali)
3030 fi
3131elif [ " ${vv##*/ } " == " MIUIWeather.apk" ]; then
3232 if [ " $fix_thoit " == 1 ]; then
720720}
721721
722722Thaycn (){
723+ if [ " $4 " ]; then
723724urlsmali=" $( find $4 -type f -print -quit 2> /dev/null) "
724725vcv=" $( echo " $1 " | head -n1 | sed ' s|/|\\/|g' ) "
725726[ -f " $urlsmali " ] && sed -i " /$vcv /,/\.end method/ s|sget-boolean \(.*\), $2 |sget-boolean \1, $3 |" " $urlsmali " && echo " Patch: ${urlsmali##*/ } " || about " Error: $urlsmali "
727+ else
728+ about " Warning: Path not found: $4 "
729+ fi
726730}
727731
728732Thayme (){
@@ -735,8 +739,12 @@ done
735739}
736740
737741Themme (){
742+ if [ " $2 " ]; then
738743urlsmali=" $( find $2 -type f -print -quit 2> /dev/null) "
739744[ -f " $urlsmali " ] && echo " $1 " >> " $urlsmali " && echo " Patch: ${urlsmali##*/ } " || about " Error: $urlsmali "
745+ else
746+ about " Warning: Path not found: $2 "
747+ fi
740748}
741749
742750Thaythe (){
@@ -768,13 +776,17 @@ done
768776}
769777
770778Thayivo (){
779+ if [ " $3 " ]; then
771780urlsmali=" $( find $3 -type f -print -quit 2> /dev/null) "
772781if [ " $1 " == 1 ]; then
773782textvbs=' invoke-static {}, Lcom/xBuild;->isOne()Z'
774783else
775784textvbs=' invoke-static {}, Lcom/xBuild;->isZero()Z'
776785fi
777786[ -f " $urlsmali " ] && sed -i " s|${2// \[ / \\ [} |$textvbs |" " $urlsmali " && echo " Patch: ${urlsmali##*/ } " || about " Error: $urlsmali "
787+ else
788+ about " Warning: Path not found: $3 "
789+ fi
778790}
779791
780792# hiện tại
0 commit comments