@@ -778,10 +778,13 @@ if [ "$(glog hide_show)" == 1 ];then
778778 echo " <group>"
779779 show_sett
780780 echo " </group>"
781+ else
782+ desc_rom=" $folder_text : $( glog PTSD | sed " s|$SDCARD_PATH |\/sdcard|" ) "
783+ desc_rom1=" $projects_text : $PTSH "
781784fi
782785
783786xml_print ' <group>
784- <action icon="' ` urlpng decode_img` ' " desc="' " $folder_text : $( glog PTSD | sed " s| $SDCARD_PATH |\/sdcard| " ) " ' ">
787+ <action icon="' ` urlpng decode_img` ' " desc="' $desc_rom ' ">
785788<title>' $decompile_text ' </title>
786789<param name="cboxk" value-sh="glog dkhdh" label="' $deleted_file_text ' " type="checkbox" />
787790<param name="xoa_oat_boot" value-sh="glog xoa_oat_boot" label="' $xoaoat_text_1 ' " type="switch" />
@@ -803,7 +806,7 @@ checktime
803806</set>
804807</action>
805808
806- <action icon="' ` urlpng build_img` ' " desc="' " $projects_text : $PTSH " ' ">
809+ <action icon="' ` urlpng build_img` ' " desc="' $desc_rom1 ' ">
807810<title>' $build_text ' </title>
808811<param name="boolbox" value-sh="glog boolboxdjh" label="' $deleted_project_text ' " type="checkbox" />
809812<param name="IMAGES" desc="' $builds_text_1 ' " multiple="true" options-sh="findfile 0 $SDH/$PTSH" required="true"/>
@@ -925,13 +928,16 @@ if [ "$(glog hide_show_apktool)" == 1 ];then
925928 echo " <group>"
926929 show_apkset
927930 echo " </group>"
931+ else
932+ desc_apk=" $folder_text : $( glog PTAD | sed " s|$SDCARD_PATH |\/sdcard|" ) "
933+ desc_apk1=" $projects_text : $PTAH "
928934fi
929935
930936xml_print '
931937<group>
932938<action icon="' ` urlpng apk_decom` ' ">
933939<title>' $decompile_text ' </title>
934- <desc>' $folder_text ' : ' $( glog PTAD | sed " s| $SDCARD_PATH |\/sdcard| " ) ' </desc>
940+ <desc>' $desc_apk ' </desc>
935941<param name="dexlibk" label="' $option_text ' " value-sh="glog dexlibk 2" option-sh="echo -e ' " '0|$decom_apk_text_3 \n1|$default_text \n2|Baksmali 3.0.9'" ' " desc="' $decom_apk_text_12 ' "/>
936942<param name="mutiresk" label="' $option_text ' " value-sh="glog mutiresk 1" option-sh="echo -e ' " '0|$decom_apk_text_3 \n1|$default_text \n2|$decom_apk_text_5 '" ' " desc="' $decom_apk_text_11 ' "/>
937943<param name="xoa_debug_info" value-sh="glog xoa_debug_info 1" label="' $decom_apk_text_7 ' " type="switch" />
@@ -951,7 +957,7 @@ checktime
951957</set>
952958</action>
953959
954- <action icon="' ` urlpng apk_build` ' " desc="' $projects_text : $PTAH ' ">
960+ <action icon="' ` urlpng apk_build` ' " desc="' $desc_apk1 ' ">
955961<title>' $build_text ' </title>
956962<param name="xoatm" label="' $deleted_project_text ' " type="bool" value-sh="glog xoatm 0" />
957963<param name="sign" desc=" " value-sh="glog sign default" option-sh="cd $ETC/key; ls -1d *.pk8 | sed ' " 's|.pk8||'" ' " label="' $sign_text ' "/>
@@ -981,13 +987,16 @@ if [ "$(glog hide_show_apex)" == 1 ];then
981987 echo " <group>"
982988 show_apkset
983989 echo " </group>"
990+ else
991+ desc_apkd=" $folder_text : $( glog PTAD | sed " s|$SDCARD_PATH |\/sdcard|" ) "
992+ desc_apkd1=" $projects_text : $PTAH "
984993fi
985994
986995xml_print '
987996<group>
988997<action icon="' ` urlpng apk_decom` ' ">
989998<title>' $decompile_text ' </title>
990- <desc>' $folder_text ' : ' $( glog PTAD | sed " s| $SDCARD_PATH |\/sdcard| " ) ' </desc>
999+ <desc>' $desc_apkd ' </desc>
9911000<param name="FILE" desc="' $apex_text_2 ' " multiple="true" options-sh="findfile 12 $PTAD" required="true"/>
9921001<set>
9931002IFS=$' " '\n'" '
@@ -1001,7 +1010,7 @@ checktime
10011010</set>
10021011</action>
10031012
1004- <action icon="' ` urlpng apk_build` ' " desc="' $projects_text : $PTAH ' ">
1013+ <action icon="' ` urlpng apk_build` ' " desc="' $desc_apkd1 ' ">
10051014<title>' $build_text ' </title>
10061015<param name="gobo_apex" value-sh="glog gobo_apex" label="' $deleted_project_text ' " type="checkbox" />
10071016<param name="SIGNS" value-sh="glog signs_apex com.android.example.apex" desc=" " options-sh="cd $ETC/key/4096; ls -1d *.pem | sed ' " 's|.pem||'" ' " label="' $sign_text ' " />
@@ -1031,16 +1040,19 @@ Utiliapk(){
10311040mkdir -p $PTAD & > /dev/null &
10321041
10331042if [ " $( glog hide_show2) " == 1 ]; then
1034- echo " <group>"
1035- show_apkset
1036- echo " </group>"
1043+ echo " <group>"
1044+ show_apkset
1045+ echo " </group>"
1046+ else
1047+ desc_apks=" $folder_text : $( glog PTAD | sed " s|$SDCARD_PATH |\/sdcard|" ) "
1048+ desc_apks1=" $projects_text : $PTAH "
10371049fi
10381050
10391051xml_print '
10401052<group>
10411053<action icon="' ` urlpng apk_decom` ' ">
10421054<title>' $decompile_text ' </title>
1043- <desc>' $folder_text ' : ' $( glog PTAD | sed " s| $SDCARD_PATH |\/sdcard| " ) ' </desc>
1055+ <desc>' $desc_apks ' </desc>
10441056<param name="type_apk" value-sh="glog type_apk xml" desc="' $decom_apk_text_8 ' " label="' $option_text ' " >
10451057<option value="xml">' $decom_apk_text_1 ' </option>
10461058<option value="json">' $decom_apk_text_2 ' </option>
@@ -1065,7 +1077,7 @@ checktime
10651077</set>
10661078</action>
10671079
1068- <action icon="' ` urlpng apk_build` ' " desc="' $projects_text : $PTAH ' ">
1080+ <action icon="' ` urlpng apk_build` ' " desc="' $desc_apks1 ' ">
10691081<title>' $build_text ' </title>
10701082<param name="xoatm" label="' $deleted_project_text ' " type="bool" value-sh="glog xoatm 0" />
10711083<param name="sign" desc=" " value-sh="glog sign default" option-sh="cd $ETC/key; ls -1d *.pk8 | sed ' " 's|.pk8||'" ' " label="' $sign_text ' "/>
@@ -1088,70 +1100,6 @@ checktime
10881100</set>
10891101</action></group>
10901102
1091- <group>
1092- <action icon="' ` urlpng merge_apk` ' " warning="' $apk_mager_text_1 ' ">
1093- <title>' $apk_mager_text_2 ' </title>
1094- <param name="FILE" multiple="multiple" option-sh="findfile 9 $PTAD | grep -E ' " '\(apks\)|\(apkm\)|\(xapk\)'" ' " required="true" />
1095- <set>
1096- IFS=$' " '\n'" '
1097- for v in $FILE; do
1098- echo "' $more_text_4 ' $FILE"
1099- echo
1100- apkeditor m -f -i "$PTAD/$v" -o "$PTAD/out/$v" 2>&1 | sed -e "1,/__/d"
1101- echo
1102- done
1103- checktime
1104- </set>
1105- </action></group>
1106-
1107- <group>
1108- <action icon="' ` urlpng restore_sign` ' ">
1109- <title>' $restore_apk_text_3 ' </title>
1110- <param name="FILE" title="' $restore_apk_text_1 ' " value-sh="glog apk_restore_sign" option-sh="findfile 10 $PTAD" required="true" label="' $option_text ' "/>
1111- <param name="FILE2" title="' $restore_apk_text_2 ' " value-sh="glog apk_restore_sign2" option-sh="findfile 10 $PTAD" required="true" label="' $option_text ' "/>
1112- <set>
1113- slog apk_restore_sign "$FILE"
1114- slog apk_restore_sign2 "$FILE2"
1115- echo "' $more_text_4 ' $FILE"
1116- echo
1117- apkeditor d -f -t sig -i "$PTAD/$FILE" -sig "$TMP/signatures_dir" 2>&1
1118- echo
1119- apkeditor b -f -t sig -i "$PTAD/$FILE2" -sig "$TMP/signatures_dir" -o "$PTAD/out/$FILE2" 2>&1
1120- rm -fr "$TMP/signatures_dir"
1121- </set>
1122- </action></group>
1123-
1124- <group>
1125- <action icon="' ` urlpng apk_distur` ' " warning="' $distur_apk_text_1 ' ">
1126- <title>' $distur_apk_text_2 ' </title>
1127- <param name="FILE" multiple="multiple" option-sh="findfile 10 $PTAD" required="true" />
1128- <set>
1129- IFS=$' " '\n'" '
1130- for v in $FILE; do
1131- echo "' $more_text_4 ' $FILE"
1132- echo
1133- apkeditor p -skip-manifest -f -i "$PTAD/$v" -o "$PTAD/out/$v" 2>&1 | sed -e "1,/__/d"
1134- echo
1135- done
1136- checktime
1137- </set>
1138- </action>
1139-
1140- <action icon="' ` urlpng apk_restore` ' " warning="' $apk_restore_text_1 ' ">
1141- <title>' $apk_restore_text_2 ' </title>
1142- <param name="FILE" multiple="multiple" option-sh="findfile 10 $PTAD" required="true" />
1143- <set>
1144- IFS=$' " '\n'" '
1145- for v in $FILE; do
1146- echo "' $more_text_4 ' $FILE"
1147- echo
1148- apkeditor x -fix-types -f -i "$PTAD/$v" -o "$PTAD/out/$v" 2>&1 | sed -e "1,/__/d"
1149- echo
1150- done
1151- checktime
1152- </set>
1153- </action></group>
1154-
11551103<group>
11561104<page icon="' ` urlpng use_apktool` ' " config-sh="$ETC/tool-tree.rc Apktools" >
11571105<title>' $use_apktool_text ' </title>
@@ -1197,7 +1145,71 @@ if [ "$menu_id" == "v1" ];then
11971145[ "$(glog hide_show_apex)" == 1 ] && slog hide_show_apex 0 || slog hide_show_apex 1
11981146fi
11991147</handler>
1200- </page></group>'
1148+ </page></group>
1149+
1150+ <group>
1151+ <action icon="' ` urlpng apk_distur` ' " warning="' $distur_apk_text_1 ' ">
1152+ <title>' $distur_apk_text_2 ' </title>
1153+ <param name="FILE" multiple="multiple" option-sh="findfile 10 $PTAD" required="true" />
1154+ <set>
1155+ IFS=$' " '\n'" '
1156+ for v in $FILE; do
1157+ echo "' $more_text_4 ' $FILE"
1158+ echo
1159+ apkeditor p -skip-manifest -f -i "$PTAD/$v" -o "$PTAD/out/$v" 2>&1 | sed -e "1,/__/d"
1160+ echo
1161+ done
1162+ checktime
1163+ </set>
1164+ </action>
1165+
1166+ <action icon="' ` urlpng apk_restore` ' " warning="' $apk_restore_text_1 ' ">
1167+ <title>' $apk_restore_text_2 ' </title>
1168+ <param name="FILE" multiple="multiple" option-sh="findfile 10 $PTAD" required="true" />
1169+ <set>
1170+ IFS=$' " '\n'" '
1171+ for v in $FILE; do
1172+ echo "' $more_text_4 ' $FILE"
1173+ echo
1174+ apkeditor x -fix-types -f -i "$PTAD/$v" -o "$PTAD/out/$v" 2>&1 | sed -e "1,/__/d"
1175+ echo
1176+ done
1177+ checktime
1178+ </set>
1179+ </action></group>
1180+
1181+ <group>
1182+ <action icon="' ` urlpng merge_apk` ' " warning="' $apk_mager_text_1 ' ">
1183+ <title>' $apk_mager_text_2 ' </title>
1184+ <param name="FILE" multiple="multiple" option-sh="findfile 9 $PTAD | grep -E ' " '\(apks\)|\(apkm\)|\(xapk\)'" ' " required="true" />
1185+ <set>
1186+ IFS=$' " '\n'" '
1187+ for v in $FILE; do
1188+ echo "' $more_text_4 ' $FILE"
1189+ echo
1190+ apkeditor m -f -i "$PTAD/$v" -o "$PTAD/out/$v" 2>&1 | sed -e "1,/__/d"
1191+ echo
1192+ done
1193+ checktime
1194+ </set>
1195+ </action></group>
1196+
1197+ <group>
1198+ <action icon="' ` urlpng restore_sign` ' ">
1199+ <title>' $restore_apk_text_3 ' </title>
1200+ <param name="FILE" title="' $restore_apk_text_1 ' " value-sh="glog apk_restore_sign" option-sh="findfile 10 $PTAD" required="true" label="' $option_text ' "/>
1201+ <param name="FILE2" title="' $restore_apk_text_2 ' " value-sh="glog apk_restore_sign2" option-sh="findfile 10 $PTAD" required="true" label="' $option_text ' "/>
1202+ <set>
1203+ slog apk_restore_sign "$FILE"
1204+ slog apk_restore_sign2 "$FILE2"
1205+ echo "' $more_text_4 ' $FILE"
1206+ echo
1207+ apkeditor d -f -t sig -i "$PTAD/$FILE" -sig "$TMP/signatures_dir" 2>&1
1208+ echo
1209+ apkeditor b -f -t sig -i "$PTAD/$FILE2" -sig "$TMP/signatures_dir" -o "$PTAD/out/$FILE2" 2>&1
1210+ rm -fr "$TMP/signatures_dir"
1211+ </set>
1212+ </action></group>'
12011213}
12021214
12031215Addon (){
0 commit comments