How do I debug Android on Mac?

If you just connect your Android device to you Mac with a USB cable, your Mac will not recognize the device as a Windows computer does. Instead, to get your Android device connected to your Mac, turn the Android's debugging mode on before connecting via USB.

  1. 1.

    Press the "Menu" button on your Android device and tap "Settings."

  2. 2.

    Tap "Applications," then "Development."

  3. 3.

    Tap "USB Debugging."

  4. 4.

    Connect your Android device to your Mac with the USB cable.

  • Using Windows
  • Using Mac

Using Windows

Notes:

  • Ensure that the Developer options is enabled on your Android device (Settings > About Device > Tap on Build Number 7 times and Developer Options will be visible in your Settings menu). Enable USB Debugging on your device (Developer Options > USB Debugging).
  • The device must not be locked and should be active.


Follow the steps below to obtain debug-logs from Android devices on your Windows PC.
  1. On your Windows Computer, download and Install Android SDK.
  2. Once the installation completes, Android SDK will launch automatically. Select and Install Android Platform Tools.
  3. Connect your Android device to your Windows PC via USB cable.
  4. Open a new command prompt session with administrator privileges, change the working directory to the path where Android SDK is installed (cd [path where Android SDK resides]/platform-tools).
  5. First, run the following command
  6. Next, run the command to list the devices connected to your PC. Note down the device id of your device.
  7. Run,

    adb.exe logcat-vthreadtime[device id]>C:\android-debug.log


    Enter the device id obtained in the previous step in place of [device id].
  8. Perform any actions on your Android device.
  9. To stop the adb process, press Ctrl + C on the command prompt window.
  10. The debug data can be viewed from c:\android-debug.log file.

In case your machine does not recognize your device, try the following:

  • Unplug and replug your device.
  • Enable Verify apps over USB option (Settings > System > Developer Options > Debugging).
  • Check if the device notification bar displays the message USB debugging connected.
  • Select Revoke USB debugging authorizations to revoke access to all computers you’ve previously authorized (Settings > System > Developer Options > Debugging).

Using Mac

Notes:

  • Ensure that the Developer options is enabled on your Android device (Settings > About Device > Tap on Build Number 7 times and Developer Options will be visible in your Settings menu). Enable USB Debugging on your device (Developer Options > USB Debugging).
  • The device must not be locked and should be active.


Follow the steps below to obtain debug-logs from Android devices on your Mac device.

On your Mac device, download and Install Android SDK.

  1. On your Mac device, download and install Android SDK. Once the installation completes, Android SDK will launch automatically. Select and Install Android Platform Tools.
  2. Connect your Android device to your Mac device via USB cable.
  3. Open a new Terminal, change the working directory to the path where Android SDK is installed (cd [path where Android SDK resides]/platform-tools).
  4. First, run the following command
  5. Next, run the command to list the devices connected to your PC. Note down the device id of your device.
  6. Run,

    ./adb logcat-vthreadtime[device ID]>/tmp/android-debug.log


    Enter the device id obtained in the previous step in place of [device id].
  7. Perform any actions on your Android device or reproduce any issue you encountered.
  8. To stop the adb process, press Ctrl + C on the Terminal window.
  9. The debug data can be viewed from android-debug.log file.

Can I control Android phone from Mac?

Control Android Device from Mac with Remote Desktop App You can then launch the app on your Mac and enter the IP address of your Android device. 2. Once you're connected, you can start controlling your Android device from your Mac. You can use the mouse and keyboard to control the device and access the file system.

How do I debug my Android from my computer?

Enable USB debugging on your Android phone.
Open the Settings app..
Select System..
Scroll to the bottom and select About phone..
Scroll to the bottom and tap Build number 7 times..
Return to the previous screen to find Developer options near the bottom..
Scroll down and enable USB debugging..

How do I access Android system files on Mac?

How to use it.
Download the app..
Open AndroidFileTransfer.dmg..
Drag Android File Transfer to Applications..
Use the USB cable that came with your Android device and connect it to your Mac..
Double click Android File Transfer..
Browse the files and folders on your Android device and copy files..

How do I debug my Android?

Enabling USB-Debugging.
On the Android device, open the settings..
Tap Developer Settings. The developer settings are hidden by default. ... .
In the Developer settings window, check USB-Debugging..
Set the USB mode of the device to Media device (MTP), which is the default setting..