Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
/ adbw Public archive

Android Debugging Bridge Wrapper - Run adb commands against all attached devices

License

Notifications You must be signed in to change notification settings

Obsidian-StudiosInc/adbw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

adbw.sh

License Build Status Build Status

adb wrapper script to run adb against multiple devices. See the following examples for usage

Examples

Each of the following will launch a new konsole window per device. Presently using konsole in KDE but can be modified for other.

Example use for commands

adbw.sh -t logcat
adbw.sh -t shell

Or you can use in a script such as the following example.

Example use in script

#!/bin/bash
# Author William L. Thomson Jr.
#        wlt@o-sinc.com
#
# Distributed under the terms of The GNU Public License v3.0 (GPLv3)

# Sample to build, then push an app to all attached devices :)

build() {
        ./gradlew clean
        ./gradlew build
}

push() {
	# Sourcing is best as it keeps all devices in variables
	# Alternatively add adbw.sh to PATH env variable ( slower )
        source /home/wlt/scripts/adbw.sh

        adbw shell am force-stop com.android.app
        adbw shell pm clear com.android.app
        adbw uninstall com.android.app
        adbw install app/build/outputs/apk/app-debug.apk
}

if [[ "${1}" ]]; then
        "${1}"
else
        build
        push
fi

About

Android Debugging Bridge Wrapper - Run adb commands against all attached devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages