Activity Finder
Resolve Android app display names (labels) to their launch activities via adb and aapt.
Installation
pip install activity-finder
Or install from source:
git clone https://github.com/jaxonister/activity_finder.git
cd activity_finder
pip install -e .
Prerequisites
- Python >= 3.10
- Android SDK Platform Tools (
adbon PATH) - Android SDK Build Tools (
aapt). SetAAPT_PATHenv var, or ensure it's discoverable viaANDROID_HOME.
Usage
CLI
# Search by label
activity-finder "Keep"
# With custom aapt path
activity-finder --aapt /path/to/aapt "WeChat"
# Disable cache
activity-finder --no-cache "Keep"
# Verbose output
activity-finder -v "Keep"
Python API
from activity_finder import AppInfoFinder, AppCache
cache = AppCache(db_path="apps.db")
finder = AppInfoFinder(cache=cache)
# Fuzzy match: "云盘" matches "中国移动云盘", "百度网盘", etc.
results = finder.resolve_label_to_package("云盘")
for r in results:
print(f"{r['label']} {r['package']} {r['activity']}")
cache.close()
How It Works
- Lists all installed packages via
adb shell pm list packages - Pulls each APK and reads labels via
aapt dump badging - Matches labels against the keyword (substring/fuzzy match)
- Returns all matching apps with label, package name, and launch activity
- Caches results in SQLite to speed up subsequent searches
License
MIT
Metadata
Release files for activity-finder 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| activity_finder-0.1.2.tar.gz | 9.9 kB | Without provenance | Details for activity_finder-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| activity_finder-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for activity_finder-0.1.2-py3-none-any.whl |
Total release size: 17.3 kB
Release files / activity_finder-0.1.2.tar.gz
| Download URL | activity_finder-0.1.2.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e9624e10f2cfed2f7cb7ed26f49cc11b0e46774074feb12546cdae69c78aabb
|
|
BLAKE2b-256 checksum How to use checksums |
3eabe53887f1ba007990580d64ea8ea49b5111405c1926f477031459f76805b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / activity_finder-0.1.2-py3-none-any.whl
| Download URL | activity_finder-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cadbb704f88e17dfe0917474891cd438927ff8d3fe8e7893ae8fad8e9cea7ba2
|
|
BLAKE2b-256 checksum How to use checksums |
8488131190b8bd66ad67fc1706272af0dc72c3f12a4a5d5320a4cd5e3953d356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for activity-finder 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.