ソースコード
[MenuItem( MENU_ITEM_ROOT + "/アプリ起動" )]
private static void LaunchApp()
{
var adbPath = $"{AndroidExternalToolsSettings.sdkRootPath}/platform-tools/adb";
var packageName = "com.hoge.fuga";
var activityName = "com.google.firebase.MessagingUnityPlayerActivity";
var startInfo = new ProcessStartInfo
{
FileName = adbPath,
Arguments = $@"shell am start -n ""{packageName}/{activityName}""",
UseShellExecute = false,
CreateNoWindow = true,
};
using var process = Process.Start( startInfo );
process!.Start();
process.WaitForExit();
}