Jump to content
zjn0505

adb workflow for Android developers

Recommended Posts

ADB or Android Debug Bridge is linked to Alfred with this workflow.

 

adb%20alfred.png

 

GitHub release

 

I created this workflow because Android developers like me may need to connect to multiple devices at the same time, and it's painful to add `-s {serial}` every time when using adb for a simple feature.

 

Alfred Workflow is a great tool to show lists and options.

 

So here it is:

 

screenshot%2000%20alfred%20flow.png

 

 

Dependencies:

  • adb
  • aapt (optional, for showing local apk info before installation)

 

Features:

One keyword `adb`

 

  •  To list all connected devices.
  • `adb connect`, `adb disconnect`, `adb reset` are also in this level. 
  • WiFi devices will be saved for next time quick connection

screenshot%2001%20list%20devices.png

  • Select one devices for its operations
  • Input commands like "shell dumpsys -l | grep wifi" in this level, to execute directly in terminal

screenshot%2002%20show%20device%20option

  • Select "Show app list" to list installed apk, select one for further operations including force stop, launch, clear data and uninstall.

screenshot%2003%20show%20package%20optio

  • Select "Install apk" to search in local drive for apk files or folders to be (bulk) installed.
  • Currently installed version will be shown, and install operation "-t", "-d", "-g" are supported

screenshot%2004%20show%20install%20optio

 

References:

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×