Connecting Samsung S3 S5 to Ubuntu for debugging Android Apps

Some things did not change since the early coding days with Linux and Android Phones , you still need to tinker with system files to allow USB access to the phone. Without the below steps you get “no permission” and offline errors in the Android Device Monitor.

Android Phone Settings

  1. Out-of-the-box the phone does not allow debugging. You need to find the developer options under phone settings and specifically allow USB debugging.

    Debug Options

    Debug Options

Ubuntu Settings

  1. Find the vendor and product ID
    Connect the phone and execute lsusb in a terminal

    Connected USB devices

    Connected USB devices

  2. Create a file vi /etc/udev/rules.d/51-android.rules as root user
    Below sample works for Samsung S3
    Enter your username.

    # SAMSUNG S3
    SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="sven"
    
  3. Reload udev with sudo udevadm control –reload
  4. Start Android Device Manager

    Android Device Manager

    Android Device Manager

Advertisements

One thought on “Connecting Samsung S3 S5 to Ubuntu for debugging Android Apps

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s