Executes GREP on your Android device, and returns a Pandas DataFrame
Project description
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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adb_grep_search-0.12.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file adb_grep_search-0.12.tar.gz
.
File metadata
- Download URL: adb_grep_search-0.12.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae24df09208f6f0c58b5f0db1c9531b556caff93c7c958306f8e9e97018e02d |
|
MD5 | 24fdafce5af6db3fa2bf856b41c5737b |
|
BLAKE2b-256 | ce6a758ffe5b572974db86db0eb5118692429e65ba7c822e3923ba49b28f8201 |
File details
Details for the file adb_grep_search-0.12-py3-none-any.whl
.
File metadata
- Download URL: adb_grep_search-0.12-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6746cd09194653cd6e70d60e76cd17a881ee3f8523865e2519e76e57d485e1e2 |
|
MD5 | f338ef9ef4ed1c36737bfc08249331b3 |
|
BLAKE2b-256 | d3a3dbfe9864a63cf40bbd165778f3ed59a7d22ee9a57f7c926b5b8fbf8934d2 |