on android 6.0.1 I am getting this error when trying to use run-as.
⋊> ~ adb shell 14:29:01 shell
In Visual Studio, App properties, Android Options, changing the debugger from C++ to .Net(Xamarin) seems to have fixed the problem for a mixed C++/C# app.