Current collected state Current
Observed since 20 Oct, 19:12 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Parses the output from 'uiautomator events' in real time and converts it to a list of lists / pandas DataFrame.
https://www.youtube.com/watch?v=KtO5h6XospU
EventRecord class for recording events from an Android device using ADB.
This class provides a way to capture events from an Android device using ADB (Android Debug Bridge).
It can parse and display event data in both standard output and Pandas DataFrame formats.
Args:
adb_path (str): The path to the ADB executable.
device_serial (str): The serial number of the target Android device.
print_output (bool, optional): Whether to print event data to the console. Default is True.
print_output_pandas (bool, optional): Whether to print event data as Pandas DataFrames. Default is False.
convert_to_pandas (bool, optional): Whether to convert event data to Pandas DataFrames. Default is False.
parent1replacement (str, optional): A character used to replace temporarily opening square brackets '[' in event data. Default is "\x80".
parent2replacement (str, optional): A character used to replace temporarily closing square brackets ']' in event data. Default is "\x81".
Methods:
start_recording(**kwargs): Starts recording events from the device.
Attributes:
stop: Stops the event recording if True
results (list): A list of lists containing parsed event data.
resultsdf (list): A list of Pandas DataFrames containing parsed event data. (if installed)
Example usage
from adbeventparser import EventRecord
sua = EventRecord(
adb_path=r"C:\Android\android-sdk\platform-tools\adb.exe",
device_serial="127.0.0.1:5555",
print_output=True,
print_output_pandas=False,
convert_to_pandas=False,
parent1replacement="\x80",
parent2replacement="\x81",
)
sua.start_recording()
# to stop
# sua.stop=True
# the data as a list of lists
# sua.results
# the data as pandas (if installed)
# sua.resultsdf
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.10 | 4 Nov 2023 | 4 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:12 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b26e2565578ccf61be76bbf87c20a8beea3073617805c6a5dd76210a80913ba5