From c784a56c0c15969720273e783863b3e1af74abb2 Mon Sep 17 00:00:00 2001 From: "S. Kozyr" Date: Mon, 18 Sep 2023 14:37:42 +0300 Subject: [PATCH] [Android] Replace 'adb shell monkey ...' with 'adb shell am start ...' Signed-off-by: S. Kozyr --- android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index b02d2b75bb..5ca31eec8a 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -306,7 +306,7 @@ android { android.applicationVariants.all { variant -> def task = variant.name.capitalize() project.task(type: Exec, "run${task}", dependsOn: "install${task}") { - commandLine android.getAdbExe(), 'shell', 'monkey', '-p', applicationId, '-c', 'android.intent.category.LAUNCHER', '1' + commandLine android.getAdbExe(), 'shell', 'am', 'start', '-n', "$applicationId/app.organicmaps.DownloadResourcesActivity", '-a', 'android.intent.action.MAIN', '-c', 'android.intent.category.LAUNCHER' } } }