-
-
Save gys-dev/c990de3da59128410873e532ce78071d to your computer and use it in GitHub Desktop.
Shell scripts for Android development without needing to use Android Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
package_name=$1 | |
./gradlew assembleDebug | |
adb -d install -r app/build/outputs/apk/app-debug.apk | |
adb shell monkey -p "$package_name" -c android.intent.category.LAUNCHER 1 | |
./logcat.sh "$package_name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
package_name=$1 | |
app_pid=$(adb shell ps | grep "$package_name" | awk '{ print $2 }') | |
adb logcat | grep "$app_pid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment