Maybe this is useful not only to me but also for others (it took me a while to figure it out…)
The following cmd (on windows) allows to remotely start an installed akp.
adb shell am start -n [bundle-identifier]/com.unity3d.player.UnityPlayerNativeActivity
so in case you want to implement your own build pipeline in c#, you can use it:
//adb install -r myproject.apk
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = “adb”;
p.StartInfo.Arguments = string.Format(“install -r {0}”, _myApk);
p.Start();
p.WaitForExit();
}
// adb shell am start -n com.myproject.name/com.unity3d.player.UnityPlayerNativeActivity
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = “adb”;
p.StartInfo.Arguments = string.Format(“shell am start -n {0}/com.unity3d.player.UnityPlayerNativeActivity”, _bundleIdentifier);
p.Start();
}