Skip to content

Commit

Permalink
feat/aldroid_remove_null_resource_meta_tags_from_manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianbuck committed Aug 21, 2023
1 parent e8a70b5 commit 64256c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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.7"
version "0.3.8"

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

usage() {
cat <<EOF
Expand Down Expand Up @@ -347,6 +347,11 @@ EOM
sed -i "" "s|<locale-config>|<locale-config xmlns:android=\"http:\/\/schemas.android.com\/apk\/res\/android\">|g" "$INPUT_DIRECTORY/res/xml/locales_config.xml"
fi

#remove meta data with @null values
if grep -iE "<meta-data[^>]+android:resource=\"@null\"" "$INPUT_DIRECTORY/AndroidManifest.xml"; then
sed -E -i "" "s|<meta-data[^>]+android:resource=\"@null\"/>||g" "$INPUT_DIRECTORY/AndroidManifest.xml"
fi

return 0
}

Expand Down

0 comments on commit 64256c8

Please sign in to comment.