Skip to content

Commit 17bc692

Browse files
committed
Update
1 parent 833b07b commit 17bc692

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/addon/patch_rom/index.bash

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ home() {
6666
6767
<group title="'$reminder_notes'">
6868
<action title="'$title_framework_patch'" summary="Android 12+">
69-
<param name="FILE" option-sh="'$pathsh' search framework.jar services.jar miui-services.jar" multiple="true" value-sh="glog toolbox_patch_os" required="true" desc="'$string_text_1': '$PTSH'/***, /sdcard/TREE/APK" />
70-
<param name="fix_apksign" label="'$label_fix_apksign'" desc="'$required_files_text': framework.jar, services.jar, §(Xiaomi: miui-services.jar)" type="bool" />
69+
<param name="FILE" option-sh="'$pathsh' search framework.jar services.jar miui-services.jar" multiple="true" value-sh="glog toolbox_patch_os" required="true" desc="'$string_text_1': Project/'$PTSH', '${PTAD/$SDCARD_PATH/\/sdcard}'" />
70+
<param name="fix_apksign" label="'$label_fix_apksign'" desc="'$required_files_text': framework.jar, services.jar, miui-services.jar" type="bool" />
7171
<param name="tool_box" label="'$label_fix_toolbox'" desc="'$required_files_text': framework.jar, services.jar" type="bool" />
7272
<param name="fix_enforce" label="'$label_fix_enforce'" desc="'$required_files_text': miui-services.jar" type="bool" />
7373
<set>
@@ -78,7 +78,7 @@ home() {
7878
</action>
7979
8080
<action title="'$title_cn_global'" summary="Xiaomi, Android 12+">
81-
<param name="FILE" option-sh="'$pathsh' search miui-framework.jar miui-services.jar PowerKeeper.apk MiuiSystemUI.apk Settings.apk" value-sh="glog fix_noti_patch_os" multiple="true" desc="'$string_text_1': '$PTSH'/***, /sdcard/TREE/APK" required="true"/>
81+
<param name="FILE" option-sh="'$pathsh' search miui-framework.jar miui-services.jar PowerKeeper.apk MiuiSystemUI.apk Settings.apk" value-sh="glog fix_noti_patch_os" multiple="true" desc="'$string_text_1': Project/'$PTSH', '${PTAD/$SDCARD_PATH/\/sdcard}'" required="true"/>
8282
<param name="fix_noti" label="'$label_fix_noti'" desc="'$required_files_text': miui-framework.jar, miui-services.jar, PowerKeeper.apk, MiuiSystemUI.apk" type="bool" />
8383
<param name="settings_infor" label="'$global_mod_text_1'" desc="'$required_files_text': Settings.apk" type="bool" />
8484
<param name="settings_show" label="'$global_mod_text_2'" desc="'$required_files_text': Settings.apk" type="bool" />
@@ -92,8 +92,8 @@ home() {
9292
</set>
9393
</action>
9494
95-
<action title="'$title_ime'" summary="Xiaomi">
96-
<param name="FILE" option-sh="'$pathsh' search miui-framework.jar miui-services.jar *FrequentPhrase.apk MiuiSystemUI.apk Settings.apk" value-sh="glog fix_key_patch_os" multiple="true" desc="'$string_text_1': '$PTSH'/***, /sdcard/TREE/APK§Note: MiuiSystemUI.apk (global)" required="true"/>
95+
<action title="'$title_ime'" summary="Xiaomi" warn="Note: MiuiSystemUI.apk (global)">
96+
<param name="FILE" option-sh="'$pathsh' search miui-framework.jar miui-services.jar *FrequentPhrase.apk MiuiSystemUI.apk Settings.apk" value-sh="glog fix_key_patch_os" multiple="true" desc="'$string_text_1': Project/'$PTSH', '${PTAD/$SDCARD_PATH/\/sdcard}'" required="true"/>
9797
<param name="ime_app" placeholder="com.google.android.inputmethod.latin" desc="'$desc_ime_app'" type="text" value-sh="glog ime_app" required="true"/>
9898
<param name="ime_color" placeholder="#f0f3f8" desc="'$desc_color_light'" type="text" value-sh="glog ime_color" required="true"/>
9999
<param name="ime_color_dark" placeholder="#1e1f21" desc="'$desc_color_dark'" type="text" value-sh="glog ime_color_dark" required="true"/>
@@ -110,7 +110,7 @@ home() {
110110
</action>
111111
112112
<action title="'$title_many_patch'" summary="Xiaomi, Android 12+">
113-
<param name="FILE" option-sh="'$pathsh' search services.jar miui-services.jar PowerKeeper.apk miui-framework.jar" value-sh="glog fix_manyo_patch_os" multiple="true" desc="'$string_text_1': '$PTSH'/***, /sdcard/TREE/APK" required="true"/>
113+
<param name="FILE" option-sh="'$pathsh' search services.jar miui-services.jar PowerKeeper.apk miui-framework.jar" value-sh="glog fix_manyo_patch_os" multiple="true" desc="'$string_text_1': Project/'$PTSH', '${PTAD/$SDCARD_PATH/\/sdcard}'" required="true"/>
114114
<param name="fix_screen" label="'$label_fix_screen'" desc="'$required_files_text': miui-services.jar, services.jar" type="bool" />
115115
<param name="fix_fps" label="'$label_fix_fps'" desc="'$required_files_text': PowerKeeper.apk" type="bool" />
116116
<param name="fix_reset_theme" label="'$label_fix_reset_theme'" desc="'$required_files_text': miui-framework.jar" type="bool" />
@@ -124,7 +124,7 @@ home() {
124124
</action>
125125
126126
<action title="'$title_app_patch'" summary="Xiaomi">
127-
<param name="FILE" option-sh="'$pathsh' search *PersonalAssistant*.apk MIUIWeather.apk Joyose.apk Provision.apk MIUIGallery.apk *SecurityCenter.apk *ThemeManager.apk" value-sh="glog fix_manyo_patch_os" multiple="true" desc="'$string_text_1': '$PTSH'/***, /sdcard/TREE/APK" required="true"/>
127+
<param name="FILE" option-sh="'$pathsh' search *PersonalAssistant*.apk MIUIWeather.apk Joyose.apk Provision.apk MIUIGallery.apk *SecurityCenter.apk *ThemeManager.apk" value-sh="glog fix_manyo_patch_os" multiple="true" desc="'$string_text_1': Project/'$PTSH', '${PTAD/$SDCARD_PATH/\/sdcard}'" required="true"/>
128128
<param name="fix_themes" label="'$label_fix_themes'" desc="'$required_files_text': ThemeManager.apk" type="bool" />
129129
<param name="fix_appvault" label="'$label_fix_appvault'" desc="'$required_files_text': PersonalAssistant.apk" type="bool" />
130130
<param name="fix_thoit" label="'$label_fix_thoit'" desc="'$required_files_text': MIUIWeather.apk" type="bool" />
@@ -145,7 +145,7 @@ home() {
145145
<lock>
146146
[ "$ROT" == 0 ] && echo "'$root_warrn'" || echo 0
147147
</lock>
148-
<param name="kill_apk_list" title="'"$param1_title"'" option-sh="'$pathsh' list_apk_file" value-sh="glog kill_apk_list" required="true" label="'"$param1_label"'" desc="'$string_text_1': '$PTSH'/***, /sdcard/TREE/APK" />
148+
<param name="kill_apk_list" title="'"$param1_title"'" option-sh="'$pathsh' list_apk_file" value-sh="glog kill_apk_list" required="true" label="'"$param1_label"'" desc="'$string_text_1': Project/'$PTSH', '${PTAD/$SDCARD_PATH/\/sdcard}'" />
149149
<param name="open_app" label="'$open_app_text_2'" value-sh="glog open_app_bool" type="switch" />
150150
<param name="dem_giay" value-sh="glog dem_giay 60" label="'"$param2_label"'" type="seekbar" min="5" max="300" desc="'"$param2_desc"'" />
151151
<param name="kill_customize" label="'"$param3_label"'" value-sh="glog kill_customize" type="text" placeholder="com.android.systemui" desc="'"$param3_desc"'" />

.github/addon/patch_rom/language.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ quick_custom_text="Tùy chỉnh nhanh"
8989
diss_ovelsy_text="Vô hiệu hóa overlay"
9090
move_pangu_text="Di chuyển mục pangu vào system"
9191
move_miext_text="Di chuyển các mục trong mi_ext"
92-
label_fix_enforce="Xoá mã hóa enforceVersionPolicy"
92+
label_fix_enforce="Loại bỏ hạn chế enforceVersionPolicy"
9393
elif [ "$LANGUAGE-$COUNTRY" == "hu-HU" ]; then
9494
project_text="Projekt"
9595
save_text="Mentés ide:"

app/src/main/assets/home/etc/tool-tree.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,14 @@ Update() {
374374
text_desc_size="$sizes_text: $(cat $TEMP/update | coverbyte)"
375375
else
376376
if [ "$(unzip -qp "$PATH_APK" assets/beta 2>/dev/null)" == 1 ]; then
377-
websums="$(xem $link_url/tags/beta)"
377+
websums="$(xem $link_url/tags/beta 2>/dev/null)"
378378
tagname="${PACKAGE_VERSION_NAME//./}"
379379
else
380-
websums="$(xem $link_url/latest)"
380+
websums="$(xem $link_url/latest 2>/dev/null)"
381381
tagname="$(echo "$websums" | jq -r .tag_name | sed -e 's|\.||g' -e 's|V||')"
382382
fi
383383
websum="$(echo "$websums" | jq -r .assets[0].digest | cut -d: -f2)"
384-
filesum="$(checksum "$PATH_APK")"
384+
filesum="$(checksum "$PATH_APK" 2>/dev/null)"
385385
websize="$(echo "$websums" | jq -r '.assets[0].size')"
386386
text_desc_size="$sizes_text: $(coverbyte $websize 2>/dev/null)"
387387
if [[ ${PACKAGE_VERSION_NAME//./} == $tagname ]]; then

0 commit comments

Comments
 (0)