โน๏ธ APK Info Tools
Utilities to recover information from APKs.
apk_packageโ
Gets the package name of an APK.
Argument | Description |
---|---|
APK | APK 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.
Argument | Description |
---|---|
APK | APK 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.
Argument | Description |
---|---|
APK | APK 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.
Argument | Description |
---|---|
PKG | Package(s) to find |
PATH | Search path |
-r | Recursive (partial match) |
-io | Include overlays |
-is | Include splits |
-oo | Only overlays |
-os | Only splits |
-fs | Follow symlinks |
-l N | Limit 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.
Argument | Description |
---|---|
PKG | Package(s) to find |
-r | Recursive (partial match) |
-no | Exclude overlays |
-oo | Only overlays |
-e | Enabled apps only |
-d | Disabled apps only |
-eo | Enabled overlays only |
-do | Disabled overlays only |
-debug | Log 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.