Skip to content

Commit

Permalink
fix/aldroid_only_search_android_debuggable
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianbuck committed Jan 11, 2023
1 parent 053a7ea commit 8bd2817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.3.6"
version "0.3.7"

desc "This tool transforms Android APKs to make them debuggable and MITMable/Charlesable"
homepage "https://github.com/AppLovin/homebrew-Mobile-Tools"
Expand Down
6 changes: 3 additions & 3 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.3.6
VERSION=0.3.7

usage() {
cat <<EOF
Expand Down Expand Up @@ -322,9 +322,9 @@ EOM

# Set debuggable in the Android Manifest
# TODO: make sure it's correctly inside the application tag
if grep -i "debuggable=\"false\"" "$INPUT_DIRECTORY/AndroidManifest.xml"; then
if grep -i "android:debuggable=\"false\"" "$INPUT_DIRECTORY/AndroidManifest.xml"; then
sed -i "" "s|android:debuggable=\"false\"|android:debuggable=\"true\"|g" "$INPUT_DIRECTORY/AndroidManifest.xml"
elif ! grep -i "debuggable" "$INPUT_DIRECTORY/AndroidManifest.xml"; then
elif ! grep -i "android:debuggable" "$INPUT_DIRECTORY/AndroidManifest.xml"; then
sed -E "s/(<application.*)(>)/\1 android\:debuggable=\"true\" \2 /" "$INPUT_DIRECTORY/AndroidManifest.xml" > "$INPUT_DIRECTORY/AndroidManifest.xml.tmp"
mv "$INPUT_DIRECTORY/AndroidManifest.xml.tmp" "$INPUT_DIRECTORY/AndroidManifest.xml"
fi
Expand Down

0 comments on commit 8bd2817

Please sign in to comment.