Ressources documentaires pour Mandriva Linux et les Logiciels Libres

Installing applications to your Androïd phone from your computer using Mandriva

Sometimes it can be useful to be able to install Androïd packages ( apk ) from your computer. This could be useful if you don’t have 3G/wifi access on your phone, or no Google accounts configured. For this, you will have to install the Androïd SDK and use the adb tool. Here is the procedure.

Phone configuration

  1. Allow to install applications from unknown sources ( i.e not from Androïd market ) : Settings -> Applications -> [x] Unknown Source
  2. Turn on USB debugging : Settings -> Applications -> Development -> [x] USB debugging

Computer configuration

  1. Now  add an udev rule to allow Linux to recognize your phone. For this you need the USB vendor Id which can be found in android developer page :
  2. Now that you have your USB Vendor Id, create as root the udev rule named 51-android.rules in /etc/udev/rules.d. Replace XXXX by your USB Vendor Id : echo ‘SUBSYSTEM== »usb », SYSFS{idVendor}== »XXXX », MODE= »0666″‘ > /etc/udev/rules.d/51-android.rules
  3. If you plan to do Androïd development, install the java SDK : urpmi java-1.6.0-sun-devel
  4. Download the Androïd SDK from SDK page
  5. Once done, as root extract the archive to the /opt directory : tar -zxvf android-sdk_*-linux_x86.tgz -C /opt
  6. Now start the Android SDK and AVD Manager to install the missing SDK components and notably the adb tool by starting the android executable located in the tools directory : /opt/android-sdk-linux_x86/tools/android
  7. Once started, go to Available packages -> Android Repository, and select [x] Android SDK Platform-tool, then click on [Install selected] and accept the license agreement.
  8. Now you can close the Android SDK and AVD Manager.
  9. Add a symlink to the adb executable in /usr/local/bin to allow adb to be in your PATh : ln -s /opt/android-sdk-linux_x86/platform-tools/adb /usr/local/bin/
  10. check that your device is detected with the following command : adb devices

Application installation

  1. Download your apk file.
  2. Install your apk file with the following command : adb install -r myapkpackage.apk
  3. You can download apk packages from sites like :


2 Commentaires

  1. 09/04/2011    

    Opps, I’m stuck in the computer configuration in the number 6?

    • darkmind's Gravatar darkmind

      Are you sure about thre fact that the SDK files have been extracted in /opt ?
      Can you see the files in the /opt/android-sdk-linux_x86/tools/android directory ? you should see the adb executable

Répondre à darkmind Annuler la réponse.

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *


My Tweets