Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`adb shell input` returns `Killed` response without any input registered

Tags:

I am trying to simulate touches on my Xiaomi Mi Max 2. I tried monkeyrunner but failed, so I am trying adb. However, each command is returned by Killed response and no touch/key is pressed. What does it mean?

enter image description here

like image 317
Luke Vo Avatar asked Apr 14 '18 07:04

Luke Vo


1 Answers

I used to get this on a Xiaomi device with MIUI we used for development.

When sending input commands using adb I could not see any output and the adb command completed with SIGEXIT.

When I tried to manually issue it in an adb shell (on the device), I would see a killed output.

Solved by enabling USB debugging (Security setting) (Note that this is not the standard USB debugging setting, which was already enabled) in the Developer options. This required a number of confirmation steps, and once enabled, the input commands worked.

setting to enable and the warning

like image 183
MasterAM Avatar answered Oct 11 '22 21:10

MasterAM