Skip to content

Instantly share code, notes, and snippets.

@arumoy
Created January 2, 2019 18:00
Show Gist options
  • Save arumoy/84b5ca81669c317b1f3d613dc224a6f2 to your computer and use it in GitHub Desktop.
Save arumoy/84b5ca81669c317b1f3d613dc224a6f2 to your computer and use it in GitHub Desktop.
@echo off
:processargs
SET NUMBER=%1
IF DEFINED NUMBER (
adb shell am start -a android.intent.action.CALL -d tel:%NUMBER%
) ELSE (adb shell input keyevent KEYCODE_ENDCALL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment