Skip to content

Commit 4349c6b

Browse files
committed
Update
1 parent 2ee1ce4 commit 4349c6b

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

app/src/main/assets/home/etc/start-early.rc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@ if checkonline; then
2222
elif [[ ${PACKAGE_VERSION_NAME//./} == $tagname ]];then
2323
if [[ "$websum" != "$(checksum "$PATH_APK")" ]] && [[ -n $websum ]];then
2424
if [ ! -f $TEMP/update ] && [ -n "$tagname" ];then
25-
showtoast --am "$update_text_6"
2625
echo "$tagname" > $TEMP/update
2726
fi
2827
else
2928
[ -f $TEMP/update ] && rm -f $TEMP/update
3029
fi
3130
else
3231
if [ ! -f $TEMP/update ] && [ -n "$tagname" ];then
33-
showtoast --am "$update_text_6"
3432
echo "$tagname" > $TEMP/update
3533
fi
3634
fi
35+
[ -f $TEMP/update ] && showtoast --am "$update_text_6"
3736
fi
3837
) &
3938

app/src/main/assets/module/ZADD/patch_rom/addon.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ id=patch_rom
44
name=Patch ROM
55
author=Kakathic
66
description=Quick ROM patch
7-
version=2.2
8-
versionCode=122
7+
version=2.3
8+
versionCode=123
99
root=false
1010

1111
# language

app/src/main/assets/module/ZADD/patch_rom/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
Update log:
33

4+
2.3: Fix code
45
2.2: Fix bootloop
56
2.1: Fix bug
67
2.0: Add some code validation commands

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ elif [[ "${vv##*/}" == *ThemeManager* ]];then
6565
Thayvc 0 '.method .*. isAdValid(Lcom/android/thememanager/basemodule/ad/model/AdInfo;)Z' $oi/smali/classes*/com/android/thememanager/basemodule/ad/model/AdInfoResponse.smali
6666
Thayvc 0 '.method .*. isAuthorizedResource()Z' $oi/smali/classes*/com/android/thememanager/basemodule/resource/model/Resource.smali
6767
Thayvc 0 '.method .*. themeManagerSupportPaidWidget(Landroid/content/Context;)Z' $oi/smali/classes*/com/miui/maml/widget/edit/MamlutilKt.smali
68+
unset IFS
6869
Thaythe '>DRM_ERROR_UNKNOWN' '>DRM_SUCCESS' "$(Timkiem DRM_ERROR_UNKNOWN $oi/smali)"
6970
fi
7071
elif [[ "${vv##*/}" == *PersonalAssistant* ]];then
@@ -311,12 +312,14 @@ elif [ "${vv##*/}" == "Settings.apk" ];then
311312

312313
# thông tin
313314
if [ "$(grep -cm1 device_description_cpu "$oi/resources/package_1/res/values/strings.xml")" != 1 ];then
314-
smurl1="$(find $oi/smali/classes*/com/android/settings/device/DeviceParamsInitHelper.smali -type f)"
315+
smurl1="$(Timkiem langType $oi/smali/classes*/com/android/settings/device)"
315316
if [ -f "$smurl1" ];then
316317
IFS=$'\n'
317318
for vnl in $(grep -B 2 -n "langType" "$smurl1" | tac | grep 'move-result-object'); do
319+
echo "Patch: langType ${vnl##*/}"
318320
sed -i "$(echo "$vnl" | cut -d- -f1)a\ const-string $(echo "$vnl" | awk '{print $3}'), \"enUS\"" "$smurl1"
319321
done
322+
unset IFS
320323
fi
321324
Timueelnd="$(find $oi/smali/classes*/com/android/settings/device/DeviceBasicInfoPresenter.smali -type f)"
322325
if [ -f "$Timueelnd" ];then

0 commit comments

Comments
 (0)