File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "
3736fi
3837) &
3938
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ id=patch_rom
44name=Patch ROM
55author=Kakathic
66description=Quick ROM patch
7- version=2.2
8- versionCode=122
7+ version=2.3
8+ versionCode=123
99root=false
1010
1111# language
Original file line number Diff line number Diff line change 11
22Update log:
33
4+ 2.3: Fix code
452.2: Fix bootloop
562.1: Fix bug
672.0: Add some code validation commands
Original file line number Diff line number Diff 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
7071elif [[ " ${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
You can’t perform that action at this time.
0 commit comments