senzhk / ADBKeyBoard

Android Virtual Keyboard Input via ADB (Useful for Test Automation)
GNU General Public License v2.0
1.22k stars 299 forks source link

ADB_INPUT_B64 seems not working now #39

Closed 0v0 closed 3 years ago

0v0 commented 4 years ago

As tested on my latest device, this broadcast seems not working.

But ADB_INPUT_TEXT works for Ascii letters.

So I cannot input unicode characters by now.

senzhk commented 4 years ago

I tested again with the apk in the latest build,

adb shell am broadcast -a ADB_INPUT_B64 --es msg echo -n '你好嗎? Hello?' | base64

it works on my device (Android Q)

Please provide more information.

senzhk commented 4 years ago

it works on Android R too. (verified)

0v0 commented 4 years ago

it works on Android R too. (verified)

Thank you for the reply. I found the failure resulted from the adbutils policy on parsing parameter in shell method. It has a special handling on non-ascii characters.

senzhk commented 3 years ago

ic, I never use any python library, so please try using adb shell in console.