honeynet / droidbot

A lightweight test input generator for Android. Similar to Monkey, but with more intelligence and cool features!
MIT License
791 stars 230 forks source link

Quotation marks being inserted around username and password fields #139

Open Sultan-Aloufi opened 2 years ago

Sultan-Aloufi commented 2 years ago

Greetings,

wanted to report a weird issue I encountered using droidbot. It will include quotation marks around the username and password fields from the json script when it encounters a login screen in the app.

I'm using a pixel 2 on android 11. I tried android 10 and its the same issue. It could be a pixel 2 specific issue but I don't have other devices to test on.

Would be appreciated if this issue can be looked at.

yuanchun-li commented 2 years ago

Sorry for the late reply. Could you provide the script that ran into this issue?

pammalPrasanna commented 1 year ago

Hi @Sultan-Aloufi, @yuanchun-li I solved this problem by removing the double quotes from the below line. input_cmd = "am broadcast -a DROIDBOT_INPUT_TEXT --es text \"%s\" --ei mode %d" % (text, mode) to input_cmd = "am broadcast -a DROIDBOT_INPUT_TEXT --es text %s --ei mode %d" % (text, mode)

in file adapter\droidbot_ime.py