on android 6.0.1 I am getting this error when trying to use run-as.
⋊> ~ adb shell 14:29:01 shell
The solution for me was the parameter -autolaunch in the Debugger configuration of the project in the field Parameters.
I use Delphi 10.2 with S7 Edge Android 7