Skip to content

Commit 5a5bf86

Browse files
committed
Update
1 parent 08f2f08 commit 5a5bf86

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

app/src/main/assets/module/ZADD/patch_rom/patch-rom.bash

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
3131
elif [ "${vv##*/}" == "MIUIWeather.apk" ];then
3232
if [ "$fix_thoit" == 1 ];then
@@ -720,9 +720,13 @@ fi
720720
}
721721

722722
Thaycn(){
723+
if [ "$4" ]; then
723724
urlsmali="$(find $4 -type f -print -quit 2>/dev/null)"
724725
vcv="$(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

728732
Thayme(){
@@ -735,8 +739,12 @@ done
735739
}
736740

737741
Themme(){
742+
if [ "$2" ]; then
738743
urlsmali="$(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

742750
Thaythe(){
@@ -768,13 +776,17 @@ done
768776
}
769777

770778
Thayivo(){
779+
if [ "$3" ]; then
771780
urlsmali="$(find $3 -type f -print -quit 2>/dev/null)"
772781
if [ "$1" == 1 ];then
773782
textvbs='invoke-static {}, Lcom/xBuild;->isOne()Z'
774783
else
775784
textvbs='invoke-static {}, Lcom/xBuild;->isZero()Z'
776785
fi
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

Comments
 (0)