Android tests fail on Travis with ShellCommandUnresponsiveException-ThrowExceptions

Exception or error: We’re seeing a lot of build failures on the first and even second execution of pull requests for our Android project on Travis. However, if we restart the exact same build enough times it eventually passes. Here’s what the error looks like on failures: :onebusaway-android:connectedAndroidTest 09:48:14 E/Device: Error during shell execution: null …

shell – Android: How to Know if any application is already installed in android device using adb?-ThrowExceptions

Exception or error: I’ve to install an android app with package name like “com.xyz.game” using adb. I want to automate the process using shell script. The process will be like if app is already installed, uninstall it(with command adb uninstall com.xyz.game) and install using “adb install game.apk” otherwise simple “adb install game.apk”. How can I …

android – Is it possible to simulate a GCM receive from the adb shell / am command line? I'm getting an error-ThrowExceptions

Exception or error: I’m trying to simulate as if the device is receiving a GCM push message by using adb and the command line. I’ve tried this command to broadcast a GCM intent: adb shell am broadcast -c com.myapp -a com.google.android.c2dm.intent.RECEIVE -e data “SomeData” This triggers a “Permission denial” log line though: 09-19 12:23:34.820 725-787/? …