diff --git a/Formula/aldroid.rb b/Formula/aldroid.rb index 4b1f096..692b1eb 100644 --- a/Formula/aldroid.rb +++ b/Formula/aldroid.rb @@ -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" diff --git a/aldroid b/aldroid index 122c680..70a9535 100755 --- a/aldroid +++ b/aldroid @@ -10,7 +10,7 @@ # Example Usage: ./aldroid.sh d com.applovin.enterprise.apps.demoapp # -VERSION=0.4.0 +VERSION=0.4.1 usage() { cat <&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) # ;;