Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
added notices for the broken features
Browse files Browse the repository at this point in the history
  • Loading branch information
Al4ise authored Jul 25, 2021
1 parent 998bc0c commit b0b6781
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions azule
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,16 @@ case $(uname) in
}

DecryptBinary () {
"$AZULE/usr/bin/unfairplay" "$1" "$1" &>/dev/null
"$AZULE/usr/bin/unfairplay" "$1" tmp &>/dev/null
if [ "$?" = "0" ]; then
mv tmp "$1"
else
echo "Couldn't decrypt $1"
return 1
rm -f tmp
fi
}
iOS=1
else
jq="jq"
insert_dylib="insert_dylib"
Expand Down Expand Up @@ -99,6 +107,10 @@ case $(uname) in

DecryptBinary () {
flexdecrypt "$1" --output "$1" &>/dev/null
if [ "$?" != "0" ]; then
echo "Couldn't decrypt $1"
return 1
fi
}
iOS=1
fi
Expand Down Expand Up @@ -270,8 +282,8 @@ while getopts :n:i:o:c:b:f:d:x:p:huSmelCv args; do
echo " -C Disables Automatic cleanup"
echo " -S Fakesigns iPA for use with AppSync"
echo " -e Removes App Extensions"
echo " -x [Apple ID] [Password] Fetch and decrypt iPA [iOS Only]"
echo " -l Attempt to decrypt app [iOS Only] (Potentially broken)"
echo " -x [Apple ID] [Password] Fetch and decrypt iPA [iOS Only] (Broken)"
echo " -l Attempt to decrypt app [iOS Only] (Potentially Broken)"
echo " -h Print this help menu"
echo
echo "Examples:"
Expand Down Expand Up @@ -319,7 +331,7 @@ if [ -z $run ]; then
)

if [ -n "$iOS" ]; then
arguements+=( "Fetch iPA" "Attempt to decrypt App (Potentially Broken)" )
arguements+=( "Attempt to decrypt App (Potentially Broken)" )
fi

arguements+=( "Done" )
Expand Down Expand Up @@ -542,7 +554,6 @@ if [ -n "$iOS" ]; then
fi
fi


if [ -n "$files" ]; then
executable="Payload/$(basename Payload/*.app)/$(ExtractPlistValue CFBundleExecutable Payload/*.app/Info.plist string)"
Verbose "App executable is $executable" "Couldn't set app executable" -v
Expand Down Expand Up @@ -666,7 +677,7 @@ if [ -n "$files" ]; then
if [[ "$l" =~ "$x" ]]; then
if [[ "$l" =~ "$i" ]]; then
"$install_name_tool" -id @rpath/"$i" Payload/*.app/Frameworks/"$i" &>/dev/null
tid=$(( $tid + $? ))
tid=$(( $tid + $ ? ))
break
else
"$install_name_tool" -change "$l" @rpath/"$x" Payload/*.app/Frameworks/"$i" &>/dev/null
Expand Down

0 comments on commit b0b6781

Please sign in to comment.