How to prevent adb shell from exiting upon Ctrl+C
I found sort of a workaround for this (at least for a rooted phone). If a phone is rooted, busybox is most probably installed. stty is part of busybox.


  stty intr ^x


Redefines Ctrl+X to act as a break command, e.g. what was previously Ctrl+C.