We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
adb shell
1 parent 8d8d638 commit 6e9a441Copy full SHA for 6e9a441
packages/cli-platform-android/src/commands/runAndroid/tryLaunchAppOnDevice.ts
@@ -26,13 +26,19 @@ function tryLaunchAppOnDevice(
26
: [packageName, args.mainActivity].filter(Boolean).join('.');
27
28
try {
29
+ // Here we're using the same flags as Android Studio to launch the app
30
const adbArgs = [
31
'shell',
32
'am',
33
'start',
34
'-n',
35
`${packageNameWithSuffix}/${activityToLaunch}`,
36
+ '-a',
37
+ 'android.intent.action.MAIN',
38
+ '-c',
39
+ 'android.intent.category.LAUNCHER',
40
];
41
+
42
if (device) {
43
adbArgs.unshift('-s', device);
44
logger.info(`Starting the app on "${device}"...`);
0 commit comments