Solution : How to install an .apk file from the windows machine onto the development board

by Ankit » Tue, 20 Jul 2010 22:08:19 GMT


Sponsored Links
 To install Android apk files on to the target (in my case Beagleboard)
from a Windows host, we can use USB-OTG along with RNDIS driver. Below
is the procedure:

   1. Copy the linux.inf file from the Documentation/usb/ folder of
linux 2.6.x source to a folder on Windows
   2. Connect serial port of Beagle board to Windows com port
   3. Connect Beagle board to Windows host using USB-OTG
   4. Install RNDIS driver using linux.inf file when Windows asks for
the driver for the new hardware
   5. Open hyper terminal with configuration of 115200 Baud, 8 bits,
No Parity, 1 Stop Bit & No Flow Control
   6. Restart Beagle Board and execute following commands once U-Boot
prompt is up
          * # mmc init
          * # fatload mmc 0 0x80200000 uImage
          * # setenv bootargs 'console=ttyS2,115200n8 init=/init root=/
dev/mmcblk0p2 rootfstype=ext3 rw  rootdelay=1 nohz=off'
          * # bootm 0x80200000
   7. Once kernel comes up configure the usb0 interface on the target
using
          * # busybox ifconfig usb0 192.168.10.20 netmask
255.255.255.0 up
   8. Configure the new network interface created on the Windows host
with below configuration
          * IP: 192.168.10.10,  net mask: 255.255.255.0,  Gateway:
192.168.10.1,  DNS: 192.168.10.10
   9. Ping to the target from the host to test the connection
  10. Set Windows environment variable from cmd prompt using: set
ADBHOST=192.168.10.20
  11. On Windows host go to Android_SDK\tools folder from the cmd
prompt and execute following commands:
          * adb kill-server
          * adb start-server
          * adb install <path of to be installed .apk file>
  12. Verify the installed .apk file on the Beagle file system at /
data/app folder

-- 



Other Threads

1. Best way for run emulator on headless machnie.

Hi,
I would like to use android emulator on my server (headless machine).
But I need to be able to work in interactive mode. I have few Ideas
how to do this. But "easy" solutions that I tested already have big
latency and I have some questions that has to be answered before I
start working on "harder" solutions.

I tested (somewhat) so far two similar approaches:
1.  use droidex (http://github.com/commonsguy/droidex) and X11
forwording for vision and monkey
(http://android.git.kernel.org/?p=platform/development.git;a=tree;f=cmds/monkey)
for emulating input (I have to write app that will catch mouse
position and key presses and send commands to monkey server)
I think It would be also possible to forward adb connections (for
example with netcat) instead of forwarding X11 connections.

2. Install vnc server on android
(http://code.google.com/p/android-vnc/) use custom kernel for handling
input via vnc or monkey (like in droidex approach).


But all methods are have similar big latency.  I have two ideas for
doing it better:
1. I read that is possible to run qemu with vnc server
(http://qemu-buch.de/cgi-bin/moin.cgi/VNCusage). Is it possible to
mode emulator to use this function?
2. I think I could try to grab raw frames before they are passed to
display and stream with gstreamer. I this option has one more
advantage: it will be much easier to record screen cast video  (my
second goal) then from vnc (however it's not very hard to do it with
vnc). But I'm not sure if I understood source correctly. I think I
should modify 
http://android.git.kernel.org/?p=platform/external/qemu.git;a=blob;f=android/skin/window.c
(probably display_redraw method). Am I right? Or maybe there is better
place?

I will appreciate any help.
best regards,
Maciej Sawicki

--

2. Android market suddenly in english

Was in french since I bought my HTC Magic in France, about two weeks
ago, my android market turned english... what gives?

--

3. Bluetooth Controls on A2DP Devices Control Problems

4. Cashew - personal finance manager for Android

5. JavaScript Execution when the browser is running in background.

6. Music player skips during notifications.

7. http://d.android.com/resources/dashboard/platform-versions.html