Skip to main content

โ„น๏ธ APK Info Tools

Utilities to recover information from APKs.


apk_packageโ€‹

Gets the package name of an APK.

ArgumentDescription
APKAPK file path
apk_package "/system/app/Example.apk"
package=$(apk_package "/sdcard/app.apk")
ui_print "Package: $package"

apk_mainโ€‹

Gets the main launchable activity of an APK.

ArgumentDescription
APKAPK file path
apk_main "/system/app/Example.apk"
activity=$(apk_main "/sdcard/app.apk")
ui_print "Activity: $activity"

apk_iconโ€‹

Gets the icon path inside an APKโ€™s "res" folder.

ArgumentDescription
APKAPK file path
apk_icon "/system/app/Example.apk"
icon=$(apk_icon "/sdcard/app.apk")
ui_print "Icon: $icon"

find_apkโ€‹

Finds APKs by package in a path.

ArgumentDescription
PKGPackage(s) to find
PATHSearch path
-rRecursive (partial match)
-ioInclude overlays
-isInclude splits
-ooOnly overlays
-osOnly splits
-fsFollow symlinks
-l NLimit results to N
find_apk "com.android.systemui" "com.android.settings" /system
find_apk -r "com.google" /system
find_apk -oo /vendor
apk_path=$(find_apk "com.android.systemui" /system_ext)
ui_print "SystemUI: $apk_path"
note

Its performance depends proportionally to the amount of APKs in the path. Ideal to search for apks that are not installed or if the device is NOT BOOTED.


find_installed_apkโ€‹

Finds installed APKs by package in the system registry.

ArgumentDescription
PKGPackage(s) to find
-rRecursive (partial match)
-noExclude overlays
-ooOnly overlays
-eEnabled apps only
-dDisabled apps only
-eoEnabled overlays only
-doDisabled overlays only
-debugLog skipped apps
find_installed_apk "com.android.systemui" "com.android.settings"
find_installed_apk -r "com.google"
find_installed_apk -oo
apk_path=$(find_installed_apk "com.android.systemui")
ui_print "SystemUI: $apk_path"
note

It is the most efficient way to search apps but it works only if the device is BOOTED and only if the app is installed.