Let’s create a simple Automator app to make installing apk files a little easier.
- Download the Android SDK for Mac and extract it to an Android folder in your home directory.
- Launch Automator and create a new application.
- Add an action “Run Shell Script” with a sh shell.
- Paste this command: ~/Android/android-sdk-mac/platform-tools/adb install -r “$1″
- Add another two actions shown below if you want a feedback from the script.
- Save the application to the Applications folder.
- Associate apk files with your new application.
Now you can install Android apps by double clicking on apk files.
Download: Automator App.
Update: adb now stored by default in platform-tools folder, please check location of adb file on your computer. You can also drag adb file from Finder to Automator to insert the complete path.
In case of problems, open Terminal app and run command adb devices. You should see an id of your Android device. If no device listed, try the following:
- Reconnect USB cable.
- Toggle USB Debugging option off and on again.
- Run commands adb kill-server and then adb start-server.