Catalog PyPI
PACKAGE EXPLORERView in registry

adbescapes

PyPI

Makes strings compatible for adb shell input text ...

adbescapekeyboard
Versions collected1
Direct dependencies2From release 0.10
Last observed20 Oct, 19:12 UTC

README

Version 0.10 documentation

Makes strings compatible for "adb shell input text ..."

The string escape functions use numba under the hood - that means the first run is very slow (compile time)

pip install adbescapes



from adbescapes import ADBInputEscaped



adb_path = "C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe"

deviceserial = "localhost:5555"

adbk = ADBInputEscaped(adb_path=adb_path, deviceserial=deviceserial)

adbk.connect_to_device()

adbk.activate_debug()

adbk.escape_text_and_send(

    "'ąćęłń'\tóśźż\nĄĆĘŁŃÓŚŹŻ\n\"Junto à Estação de \nCarcavelos;\"" "äöüÄÖÜß",

    respect_german_letters=False,

    exit_keys="ctrl+x",

)



adbk.escape_text_and_send_with_delay(

    """



    "Müller\n&Ärger,ändern,\nKüche,Übung, Köchin, Öl\ngroß 



    """,

    delay=(0.01, 0.2),

    respect_german_letters=True,

    exit_keys="ctrl+x",

)







debug output:



input text \'aceln\'\ \ \ \ oszz

input keyevent 66

input text ACELNOSZZ

input keyevent 66

input text \"Junto\ a\ Estacao\ de\ 

input keyevent 66

input text Carcavelos\;\"aouAOUb

input keyevent 66

input keyevent 66

sleep 0.072

input text \ 

sleep 0.103

input text \ 

sleep 0.109

input text \ 

sleep 0.066

input text \ 

sleep 0.159

input text \"

sleep 0.134

input text M



....



Result

Debug

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1021 Feb 20232

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
hansalemaos/adbescapes

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:12 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:5a7e158b3658fb3a0484cae9474ca241b71697dcc1bcff960836ba6dd708e6de