Skip to content

Commit

Permalink
fix/aldroid_sign
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianbuck committed Oct 2, 2024
1 parent 0430d24 commit 6892ea2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Formula/aldroid.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Aldroid < Formula
version "0.4.0"
version "0.4.1"

desc "This tool transforms Android APKs to make them debuggable and MITMable/Charlesable"
homepage "https://github.com/AppLovin/homebrew-Mobile-Tools"
Expand Down
18 changes: 14 additions & 4 deletions aldroid
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Example Usage: ./aldroid.sh d com.applovin.enterprise.apps.demoapp
#

VERSION=0.4.0
VERSION=0.4.1

usage() {
cat <<EOF
Expand Down Expand Up @@ -899,9 +899,19 @@ case $SUBCOMMAND in
if [ -z $1 ]; then
echo >&2 "ERROR: please provide input apk!"
exit 1
APK_OUT=$OUT_OPT_ARG
elif [[ -n $OUT_OPT_ARG ]]; then
if is_out_path_like_file; then
fi

# Strip APK file name of any extension
APK_NAME_WITH_EXT=$(basename "$1")
APK_NAME="${APK_NAME_WITH_EXT%.*}"

# Set output paths
# defaults to just put it in the current working directory
APK_OUT="${APK_NAME}_resigned.apk"

sign_apk "$1" "$APK_OUT"
echo "Signed APK at $APK_OUT"
;;
# TODO: support an install action which pushes obbs too?
# install)
# ;;
Expand Down

0 comments on commit 6892ea2

Please sign in to comment.