Thursday, October 30, 2014

Steps to set-up Keon, ZTE Open and Tarako devices on Linux operating system using Android ADB Tool

This tutorial explains, how we can connect Keon, Tarako, ZTE Open (FirefoxOS Device) on Linux (Ubuntu 14.04 / Linux Mint v17) operating systems, so that we can easily push a FxOS application on the mobile device. 

Steps:
A. Install ADB Tool
   Open a terminal window and type:

   $ sudo apt-get install android-tools-adb android-tools-fastboot

   -------------------------------------------------------------------------------------------------------------------

B. Configure usb connectivity of the device 
  B1)  Open a terminal window and type:

   $ sudo nano /etc/udev/rules.d/51-android.rules

B2) And enter following lines into the file:

SUBSYSTEM==”usb”, ATTR{idVendor}==”05c6″, ATTR{idProduct}==”8013″, MODE=”0666″
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1782", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"

B3) Type Ctrl + X to exit from the text editor, then answer Y or yes to save changes.

B4) Change permission of the file using following command:

  $ sudo chmod a+r /etc/udev/rules.d/51-android.rules

B5) Create Tarako device configuration file.

  $ sudo nano ~/.android/adb_usb.ini

B6) Type the following one line:

  0x1782

B7) Type Ctrl + X to exit from the text editor, then answer Y or yes to save changes.

B8) Restart the usb service using following command:

   $ sudo service udev restart

B9) Connect Mobile phone using USB cable to the computer.

   -------------------------------------------------------------------------------------------------------------------

C. Configure Mobile Phone 

C1) In the mobile phone, go to "Settings -> Device information -> More information -> Developer "

C2) Set Remote debugging option value to ADB and Devetools.

C3) Also enable "Console enabled" option from the list of Developer settings.

   -------------------------------------------------------------------------------------------------------------------

D. Restart adb service as root

Type following commands in the Terminal:

  $  adb kill-server

  $ sudo adb start-server

   -------------------------------------------------------------------------------------------------------------------

E. Detect connected mobile devices to the computer

Type following command in the Terminal:

  $ adb devices

It should detect FxOS device connected to your computer/laptop. 


Hope this tutorial helps!