Project: titanium
Issue TIMOB-14982: Android Build: Run Hook
* run (TIMOB-10763 CLI: Android: "run" hook for Android apps) ** validate NEW! *** verify --device exists ** post-compile *** if --build-only **** exit, do not start adb (TIMOB-12034 CLI: Building for android with '-b' -build only flag starts the daemon & waits for the device after building the app) *** else **** verify --device still exists **** support multiple devices (TIMOB-7053 Tooling: Android - when using Run on Device provide support for multiple devices) **** wait for device **** install the app (adb install) ***** if install fails with error INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES, adb uninstall the app, then try again (TIMOB-8665 Android: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES when installing different app with same app id) **** if installed successfully, then "adb shell am start" **** adb forward debugger and profiler
Story points: 5