Skip to main content

Android Window dumper

Project description

Android Window dumper

Android window dumper cmd window dump-visible-window-views to pandas DataFrame

pip install winandrodumpi

Cython and a C compiler must be installed! The module will be compiled the first time you import it!

import pandas as pd
from cythondfprint import add_printer
from winandrodumpi import parse_window_elements
import numpy as np

add_printer(1)
allparsed = parse_window_elements(
    dump_cmd=[
        "adb",
        "-s",
        "127.0.0.1:5556",
        "shell",
        "cmd window dump-visible-window-views",
    ],
)
alldfs = []
itemindex = 0
for parsed in allparsed:
    try:
        df = pd.DataFrame.from_dict(parsed, orient="index", dtype=object)
        df2 = np.array_split(df, df.loc[~df["id"].isna()].index)
        for item in df2:
            alldfs.append(item.ffill().bfill().assign(aa_itemindex=itemindex))
            itemindex += 1
    except Exception as e:
        print(e)
df = pd.concat(alldfs, ignore_index=True)
print(df)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winandrodumpi-0.10.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winandrodumpi-0.10-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file winandrodumpi-0.10.tar.gz.

File metadata

  • Download URL: winandrodumpi-0.10.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for winandrodumpi-0.10.tar.gz
Algorithm Hash digest
SHA256 6a42cd27a51aae0daa7b87dc3c3919e8e4df6c94ce4cf0c209159717ba7bcfb9
MD5 0c3ffab6d5cdcec8910cc6bbdab66b3d
BLAKE2b-256 e3f4ad30f37db6bfc9efcc010088468c3e3474b1eb31728ba766178d3de3ba84

See more details on using hashes here.

File details

Details for the file winandrodumpi-0.10-py3-none-any.whl.

File metadata

  • Download URL: winandrodumpi-0.10-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for winandrodumpi-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b654dedcea9521c26394849dae1f65be7fe531ff608117d7c8b7febe825d0334
MD5 bbd9899ad1bf8a243b571a8c65acae57
BLAKE2b-256 9e912b77cf19d5bf07160226fc19c05145e8685a215c4b665130a8b113551f8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page