[Android] Replace 'adb shell monkey ...' with 'adb shell am start ...'

Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
Sergiy Kozyr 2023-09-18 14:37:42 +03:00 committed by Roman Tsisyk
parent 68a15ccd2f
commit c784a56c0c

View file

@ -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'
}
}
}