![]() Note aapt2 is the newer version of appt, but it is slower in parsing the data from apk files only use aapt2 when you get errors with aapt The first thing you need to do is to get the aapt binary from this repo Sorry, something went was able to make the old script work. I found this repo that has aapt compiled for arm64 (you can remove the busybox part from the script above because they are not needed) Printf "Permissions for app $label having package name $line\n" ĭumpsys package $line | sed -e '1,/grantedPermissions:/d' -e '/^\s*$/,$d' | sort Label=$($aapt d badging $path | grep 'application: label=' | cut -d "'" -f2) Path=$(pm path $line | sed 's/^package://g') # For each package name in the output we just saved, get the app's label using $path and $label, print a line and then finally list the permissions granted to the app Pm list packages | sed 's/^package://g' | sort -o /sdcard/packages.txt # List package name of all the installed apps and save them in the file packages.txt under /sdcard and you can filter based on permission usage There is even a script in the case that you want to run aapt on android provided that you have arm64 aapt. ![]() You can run it inside termux or adb shell,īut you need to find a version of aapt compiled for arm64Īnd if you managed to run appt on android
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |