Skip to main content

Executes GREP on your Android device, and returns a Pandas DataFrame

pip install adb-grep-search
from adb_grep_search import ADBGrep

adb_path = "C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe"

deviceserial = "localhost:5875"

gre = (

    ADBGrep(adb_path=adb_path, deviceserial=deviceserial)

    .connect_to_adb()

    .activate_root_grep() # If your device is rooted, su will be activated

)

df = gre.grep(

    folder_to_search="data/data",

    filetype="*.db",

    regular_expression=r"CREATE.TABLE",

    exit_keys="ctrl+x", 

    timeout=None,

    remove_control_characters=True,

)

print(df)

                                               aa_file  ...      aa_regex

0    data/data/com.android.providers.media/database...  ...  CREATE.TABLE

1    data/data/com.android.providers.media/database...  ...  CREATE.TABLE

2    data/data/com.android.providers.media/database...  ...  CREATE.TABLE

3    data/data/com.android.providers.media/database...  ...  CREATE.TABLE

4    data/data/com.android.providers.contacts/datab...  ...  CREATE.TABLE

..                                                 ...  ...           ...

99   data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE

100  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE

101  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE

102  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE

103  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE

[104 rows x 5 columns]

Release files for adb-grep-search 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adb-grep-search 0.12
File Size Uploaded
adb_grep_search-0.12.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adb-grep-search 0.12
File Interpreter ABI Platform
adb_grep_search-0.12-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / adb_grep_search-0.12.tar.gz

Download URL adb_grep_search-0.12.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fae24df09208f6f0c58b5f0db1c9531b556caff93c7c958306f8e9e97018e02d
BLAKE2b-256 checksum
How to use checksums
ce6a758ffe5b572974db86db0eb5118692429e65ba7c822e3923ba49b28f8201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / adb_grep_search-0.12-py3-none-any.whl

Download URL adb_grep_search-0.12-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6746cd09194653cd6e70d60e76cd17a881ee3f8523865e2519e76e57d485e1e2
BLAKE2b-256 checksum
How to use checksums
d3a3dbfe9864a63cf40bbd165778f3ed59a7d22ee9a57f7c926b5b8fbf8934d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page