Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock/linux adb"

(ADB under Linux)
Line 11: Line 11:
  
 
== ADB under Linux ==
 
== ADB under Linux ==
 +
 +
First, install the adb tools:
 +
    sudo apt-get install android-tools-adb
 +
Edit the udev file:
 +
    sudo gedit /etc/udev/rules.d/51-android.rules
 +
paste this line:
 +
    SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666", GROUP="plugdev"
 +
Save and exit gedit.
 +
Now run the following command to let the changes work
 +
    sudo udevadm control --reload-rules
 +
Create the .android folder if it doesn't exsit:
 +
    mkdir -p ~/.android
 +
    sudo gedit ~/.android/adb_usb.ini
 +
Paste at end or in empty file
 +
    0x2207
 +
Save and exit gedit.
 +
 +
Now run the adb command:
 +
    sudo adb kill-server
 +
    sudo adb start-server
 +
Should see device now connected, something like:
 +
    16EM8TBH0Z  device
  
 
== External reference ==
 
== External reference ==
 
* http://linux-rockchip.info/mw/index.php?title=ADB_shell_with_RK3066
 
* http://linux-rockchip.info/mw/index.php?title=ADB_shell_with_RK3066

Revision as of 03:06, 12 March 2014

This page describes how to connect to Radxa Rock running Android via adb(Android Debugging Bridge).

Requirement

  • Radxa Rock running android
  • PC/Laptop running Linux 32bit/64bit(Ubuntu as an example)
  • Micro USB OTG cable

ADB under Linux

First, install the adb tools:

    sudo apt-get install android-tools-adb

Edit the udev file:

   sudo gedit /etc/udev/rules.d/51-android.rules

paste this line:

   SUBSYSTEM=="usb", ATTR{idVendor}=="2207", MODE="0666", GROUP="plugdev"

Save and exit gedit. Now run the following command to let the changes work

   sudo udevadm control --reload-rules

Create the .android folder if it doesn't exsit:

   mkdir -p ~/.android
   sudo gedit ~/.android/adb_usb.ini

Paste at end or in empty file

    0x2207

Save and exit gedit.

Now run the adb command:

   sudo adb kill-server
   sudo adb start-server

Should see device now connected, something like:

   16EM8TBH0Z  device

External reference