Command to run Android Application via command line
I need to automate the build, deployment and execution of tests on an Android device.
What I got so far is the build and deployment, for which I took the following instructions from QtCreator's compiler output:
qmake.exe -spec android-g++
mingw32-make.exe INSTALL_ROOT=android-build install
androiddeployqt.exe --output android-build --deployment bundled --install --device dc522c8c
adb.exe -s dc522c8c pull /system/bin/app_process %project_path_win%/app_process
adb.exe -s dc522c8c pull /system/lib/libc.so %project_path_win%/libc.so
Does anybody know, which command to use to run the application?
And why does adb.exe copy these two files from the device? The deployment works also without the last two instructions.
you should be able to just run the app with adb?
adb shell am start -n com.package.name/.QtActivity
use your package name of course :)
and I think the files are pulled if the app is already running it need to be uninstalled first, I don't know what happens if you try to install an app with the same package name without uninstalling the old one.. might get an error from ado or it will just overwrite it, you might test it yourself.