adb-grep-search


Nameadb-grep-search JSON
Version 0.12 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/adb_grep_search
SummaryExecutes GREP on your Android device, and returns a Pandas DataFrame
upload_time2022-12-07 00:17:33
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords grep pandas dataframe regex adb android
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Executes GREP on your Android device, and returns a Pandas DataFrame 



```python

pip install adb-grep-search

```



```python

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]



```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/adb_grep_search",
    "name": "adb-grep-search",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "grep,pandas,DataFrame,regex,adb,Android",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ce/6a/758ffe5b572974db86db0eb5118692429e65ba7c822e3923ba49b28f8201/adb_grep_search-0.12.tar.gz",
    "platform": null,
    "description": "\n# Executes GREP on your Android device, and returns a Pandas DataFrame \n\n\n\n```python\n\npip install adb-grep-search\n\n```\n\n\n\n```python\n\nfrom adb_grep_search import ADBGrep\n\nadb_path = \"C:\\\\Users\\\\Gamer\\\\AppData\\\\Local\\\\Android\\\\Sdk\\\\platform-tools\\\\adb.exe\"\n\ndeviceserial = \"localhost:5875\"\n\ngre = (\n\n    ADBGrep(adb_path=adb_path, deviceserial=deviceserial)\n\n    .connect_to_adb()\n\n    .activate_root_grep() # If your device is rooted, su will be activated\n\n)\n\ndf = gre.grep(\n\n    folder_to_search=\"data/data\",\n\n    filetype=\"*.db\",\n\n    regular_expression=r\"CREATE.TABLE\",\n\n    exit_keys=\"ctrl+x\", \n\n    timeout=None,\n\n    remove_control_characters=True,\n\n)\n\nprint(df)\n\n                                               aa_file  ...      aa_regex\n\n0    data/data/com.android.providers.media/database...  ...  CREATE.TABLE\n\n1    data/data/com.android.providers.media/database...  ...  CREATE.TABLE\n\n2    data/data/com.android.providers.media/database...  ...  CREATE.TABLE\n\n3    data/data/com.android.providers.media/database...  ...  CREATE.TABLE\n\n4    data/data/com.android.providers.contacts/datab...  ...  CREATE.TABLE\n\n..                                                 ...  ...           ...\n\n99   data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE\n\n100  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE\n\n101  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE\n\n102  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE\n\n103  data/data/com.roblox.client/databases/google_a...  ...  CREATE.TABLE\n\n[104 rows x 5 columns]\n\n\n\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Executes GREP on your Android device, and returns a Pandas DataFrame",
    "version": "0.12",
    "split_keywords": [
        "grep",
        "pandas",
        "dataframe",
        "regex",
        "adb",
        "android"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3a3dbfe9864a63cf40bbd165778f3ed59a7d22ee9a57f7c926b5b8fbf8934d2",
                "md5": "f338ef9ef4ed1c36737bfc08249331b3",
                "sha256": "6746cd09194653cd6e70d60e76cd17a881ee3f8523865e2519e76e57d485e1e2"
            },
            "downloads": -1,
            "filename": "adb_grep_search-0.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f338ef9ef4ed1c36737bfc08249331b3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6312,
            "upload_time": "2022-12-07T00:17:32",
            "upload_time_iso_8601": "2022-12-07T00:17:32.072093Z",
            "url": "https://files.pythonhosted.org/packages/d3/a3/dbfe9864a63cf40bbd165778f3ed59a7d22ee9a57f7c926b5b8fbf8934d2/adb_grep_search-0.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ce6a758ffe5b572974db86db0eb5118692429e65ba7c822e3923ba49b28f8201",
                "md5": "24fdafce5af6db3fa2bf856b41c5737b",
                "sha256": "fae24df09208f6f0c58b5f0db1c9531b556caff93c7c958306f8e9e97018e02d"
            },
            "downloads": -1,
            "filename": "adb_grep_search-0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "24fdafce5af6db3fa2bf856b41c5737b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4717,
            "upload_time": "2022-12-07T00:17:33",
            "upload_time_iso_8601": "2022-12-07T00:17:33.416976Z",
            "url": "https://files.pythonhosted.org/packages/ce/6a/758ffe5b572974db86db0eb5118692429e65ba7c822e3923ba49b28f8201/adb_grep_search-0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-07 00:17:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "adb_grep_search",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "adb-grep-search"
}
        
Elapsed time: 0.07947s