@@ -10072,9 +10072,11 @@ device_dumpapp() {
1007210072 device_ssh_message
1007310073 device_sshpass
1007410074 echo
10075+ : '
1007510076 warn "The dump apps feature is not actively maintained/supported and may have issues."
1007610077 print "* If you encounter any issue, try going here instead: https://www.reddit.com/r/LegacyJailbreak/wiki/guides/crackingapps"
1007710078 pause
10079+ '
1007810080
1007910081 local dumper_binary=" ipainstaller"
1008010082 local selected2
@@ -10116,7 +10118,21 @@ device_dumpapp() {
1011610118 local check=$?
1011710119 fi
1011810120
10119- local available_apps_json=" $( $ideviceinstaller list --json --user) "
10121+ local available_apps_base=" $( $ideviceinstaller list --user) "
10122+ echo " [" > tmp.json
10123+ echo " $available_apps_base " | while read i; do
10124+ [[ $i == " CFBundleIdentifier" * ]] && continue
10125+ IFS=' , ' read -r CFBundleIdentifier CFBundleShortVersionString CFBundleDisplayName <<< " $i"
10126+ CFBundleShortVersionString=" $( echo " $CFBundleShortVersionString " | tr -d ' "' ) "
10127+ CFBundleDisplayName=" $( echo " $CFBundleDisplayName " | tr -d ' "' ) "
10128+ echo " {\" CFBundleIdentifier\" : \" $CFBundleIdentifier \" ," >> tmp.json
10129+ echo " \" CFBundleShortVersionString\" : \" $CFBundleShortVersionString \" ," >> tmp.json
10130+ echo " \" CFBundleDisplayName\" : \" $CFBundleDisplayName \" }," >> tmp.json
10131+ done
10132+ echo " {}]" >> tmp.json
10133+ $jq ' del(.[-1])' tmp.json > tmp2.json
10134+ local available_apps_json=" $( cat tmp2.json) "
10135+
1012010136 local available_apps=($( echo $available_apps_json | $jq -r ' to_entries[] | .value.CFBundleIdentifier' | tr ' \n' ' ' ) )
1012110137 local all_apps=(" ${available_apps[@]} " )
1012210138 available_apps+=(" Go Back" )
@@ -10155,7 +10171,7 @@ device_dumpapp() {
1015510171 " Clutch" )
1015610172 local ipa
1015710173 if [[ $device_det == 5 ]]; then
10158- $ssh -p $ssh_port root@127.0.0.1 " /tmp/$dumper_binary $( echo $available_apps_json | $jq --argjson i $app_index -r ' to_entries[$i] | .value.CFBundleExecutable ' ) " & > ssh.log
10174+ $ssh -p $ssh_port root@127.0.0.1 " /tmp/$dumper_binary $( echo $available_apps_json | $jq --argjson i $app_index -r ' to_entries[$i] | .value.CFBundleDisplayName ' ) " & > ssh.log
1015910175 ipa=" $( cat ssh.log | grep " /var/root/Documents/Cracked/" | tr -d " \t" ) "
1016010176 else
1016110177 $ssh -p $ssh_port root@127.0.0.1 " /tmp/$dumper_binary -d $selected2 " & > ssh.log
0 commit comments