Skip to content

Conversation

@uael
Copy link
Contributor

@uael uael commented Nov 28, 2023

No description provided.

@uael uael requested review from DeltaEvo and SilverBzH November 28, 2023 07:06
@uael uael force-pushed the uael/adb-log-forwarding branch from 94842c0 to 78b6906 Compare November 28, 2023 07:07
self._adb_shell = subprocess.Popen(['adb', '-s', adb.serial, 'shell'], stdin=subprocess.PIPE)

# This regex match all ANSI escape sequences (colors, style, ..).
ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')

Check warning

Code scanning / CodeQL

Overly permissive regular expression range

Suspicious character range that is equivalent to \[@A-Z\].
self._adb_shell = subprocess.Popen(['adb', '-s', adb.serial, 'shell'], stdin=subprocess.PIPE)

# This regex match all ANSI escape sequences (colors, style, ..).
ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')

Check warning

Code scanning / CodeQL

Overly permissive regular expression range

Suspicious character range that is equivalent to \[0-9:;<=>?\].
Instead of executing an adb shell command for each log line, spawn one
adb shell per android device and write one log command per log to its
stdin. This considerably reduce the forwarding latency.
@uael uael force-pushed the uael/adb-log-forwarding branch from 78b6906 to 68ceab1 Compare November 28, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant