Let me know the exact functionality you need, and I'll write it for you.

For example, a typical feature could be:

# Example: Pull all installed APKs from a connected device function backup_apks() cut -d':' -f2) adb pull $apk_path apk_backup/$pkg.apk done