- Download and install Android SDK. adb (Android Debugging Bridge) is located at platform-tools/ directory.
- Connect to your android phone using adb.
- On your android phone, turn on USB debugging: Settings -> Applications -> Development -> USB Debugging
- Connect the phone to your Mac using the USB cable.
- Now you can run following adb commands to connect to your phone:
/opt/android-sdk-macosx/platform-tools/adb devices
It should return something like below:$ /opt/android-sdk-macosx/platform-tools/adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 352810040135572 device
- You then using adb commands on your android device, e.g. adb shell to browse the phone's file system.
/opt/android-sdk-macosx/platform-tools/adb -s 352810040135572 shell
- More detail about adb commands.
- NOTE: remember to turn off USB debugging on your phone.
Search This Blog
connect to your android phone using adb on Mac OS X
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment