Skip to content

Commit

Permalink
fixes bfdecrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise committed Dec 26, 2021
1 parent 46554fb commit ac5686a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ cleanup () {
rm -rf "$dir"
rm -rf "$empty_dir"
cd "$rootdir" || exit
if [ -z "$exit_code" ]; then
exit_code=0
fi
if [ -n "$ignore_errors" ]; then
exit_code=0
else
Expand Down Expand Up @@ -556,7 +559,7 @@ if [ -n "$drun" ]; then
while read -r i; do
if [ "$(ExtractPlistValue MCMMetadataIdentifier "$i")" = "$ipadir" ]; then
bfplist="$(find "$(dirname "$i")"/*.app/ -maxdepth 1 -name Info.plist)"
currentv="$(ExtractPlistValue CFBundleVersion "$bfplist")"
currentv="$(ExtractPlistValue CFBundleShortVersionString "$bfplist")"
break
fi
done < <(find /var/containers/Bundle/Application -name .com.apple.mobile_container_manager.metadata.plist)
Expand All @@ -565,6 +568,7 @@ if [ -n "$drun" ]; then
if [[ "$latestv" != "$currentv" && "$ignore_outdated" != "11" ]] || [ -n "$force_update" ]; then

network_check

# VARIABLE CHECK
if [ -z "$appleid" ]; then while
printf 'Apple ID: '
Expand Down Expand Up @@ -656,6 +660,9 @@ if [ -n "$drun" ]; then
find /var/mobile/Containers/Data/Application/ -name decrypted-app.ipa -exec rm -rf "{}" \; &>/dev/null

# BFDECRYPT SETUP
if [ ! -f /var/mobile/Library/Preferences/com.level3tjg.bfdecrypt.plist ]; then
echo -n > /var/mobile/Library/Preferences/com.level3tjg.bfdecrypt.plist
fi
if ! [[ "$(ExtractPlistValue selectedApplications /var/mobile/Library/Preferences/com.level3tjg.bfdecrypt.plist key)" =~ $ipadir ]]; then
cp /var/mobile/Library/Preferences/com.level3tjg.bfdecrypt.plist "$dir/$tweakid/bfbackup.plist"
plutil -key selectedApplications -array /var/mobile/Library/Preferences/com.level3tjg.bfdecrypt.plist >/dev/null
Expand Down Expand Up @@ -998,7 +1005,6 @@ if [ -n "$files" ]; then
if [[ "${lib_dylibs[*]}" =~ $l ]]; then
for i in "${!inject[@]}"; do
if [ "$l" == "${inject[i]}" ]; then
echo "Unsetting ${inject[i]}"
unset "inject[i]"
fi
done
Expand Down

0 comments on commit ac5686a

Please sign in to comment.