Home > Google Android, Ubuntu Geek > Ubuntu 9.10 and Android: how to install *.apk directly to your mobile

Ubuntu 9.10 and Android: how to install *.apk directly to your mobile

Today morning I had strong feeling to blog around the Android, again :). Well I haven’t  found  a lot of information about how to develop directly on Ubuntu 9.10. Here are couple of steps how to deploy your  *.apk directly to your Android devices.

Official information from Google

If you’re developing on Ubuntu Linux, you need to add a rules file that contains a USB configuration for each type of device you want to use for development. Each device manufacturer uses a different vendor ID. The example rules files below show how to add an entry for a single vendor ID (the HTC vendor ID). In order to support more devices, you will need additional lines of the same format that provide a different value for the SYSFS{idVendor} property. For other IDs, see the table of USB Vendor IDs, below.

  1. Log in as root and create this file: /etc/udev/rules.d/51-android.rules.For Gusty/Hardy, edit the file to read:  ( I’ve used this ONE)
    SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"For Dapper, edit the file to read:
    SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
  2. Now execute:
    chmod a+r /etc/udev/rules.d/51-android.rules

Issue has risen up when you try command #adb devices to confirm you correctness. You received such stressed message which you have to face .

#adb devices
List of devices attached
????????????    no permissions

Solution is pretty simple you need to restart the server with ROOT permissions -> follow these commands.

#adb kill-server
#sudo  <destination> adb start-server
#adb devices

You should received valid identification of the mobile by using command #adb devices again, such us
List of devices attached
HT9C4P808877   device

Now, you can run up Phone USB debugging mode and extend you manifest file in following manner
AndroidManifest.xml file, add android:debuggable="true" to the <application> element

Your Eclipse IDE is ready for option Debug As -> … Devices Chooser <your devices> -> OK
I hope it helps, Enjoy!

  1. miragemiko
    June 9, 2010 at 11:43 am

    before you start following steps … close Eclipse

  1. No trackbacks yet.

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

%d bloggers like this: