Android

From SoftwareGuy
Jump to navigation Jump to search

Installing[edit | edit source]

Eclipse Windows Linux

Links[edit | edit source]

Eclipse Install

2.3.4 porting guide

Eclipse-Android SDK

Android SDK without using Eclipse [1]

Source download[edit | edit source]

http://source.android.com/source/downloading.html

http://code.google.com/p/rowboat/wiki/Source

<pre> $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo </pre>

<pre> $ repo init -u https://android.googlesource.com/platform/manifest</pre> <pre> $ repo init -u https://gitorious.org/rowboat/manifest.git -m rowboat-donut.xml $ repo init -u https://gitorious.org/rowboat/manifest.git -m rowboat-eclair.xml $ repo init -u https://gitorious.org/rowboat/manifest.git -m rowboat-froyo.xml $ repo init -u https://gitorious.org/rowboat/manifest.git -m rowboat-gingerbread.xml $ repo init -u https://gitorious.org/rowboat/manifest.git -m rowboat-gingerbread-dsp.xml $ $ repo sync </pre>

http://code.google.com/p/rowboat/wiki/ConfigureAndBuild

Building[edit | edit source]

follow the following link to build the code with a few exceptions:

http://code.google.com/p/rowboat/wiki/ConfigureAndBuild

Looks like we now want to install sun-java6-jdk. <pre> $ sudo apt-get install sun-java6-jdk </pre>

The following is not necessary apparently.

To get and install the sun-java5-jdk you have to add a couple paths to the apt respository base: <pre> $ sudo update-java-alternatives -l $ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse" $ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse" $ sudo apt-get update $ sudo apt-get install sun-java5-jdk $ sudo update-java-alternatives -l </pre>

Now build: <pre> $ make TARGET_PRODUCT=beagleboard TARGET_BUILD_VARIANT=tests OMAPES=3.x </pre>

Tweaks to build on ubuntu 11.10+[edit | edit source]

in frameworks/base/libs/utils/Android.mk <pre> -LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) +LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive </pre>

in build/core/combo/HOST_linux-x86.mk <pre> -HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0 +HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 </pre>

Configuration[edit | edit source]

Adding a network i/f[edit | edit source]

This link may also be useful Advanced Networking

A Cisco/Linksys USB300M will install as eth0. The drivers for this device are in the kernel apparently.

<pre> netcfg eth0 dhcp setprop net.dns1 <dns server ip> </pre>

From the following link google_groups

Add the following at the end of init.rc file. Do not add oneshot option.

<pre> service startEth0 /system/bin/starteth0.sh </pre>

Create the file /system/bin/starteth0.sh. <pre> #!/system/bin/sh

       #next line just needed if you want to use adb by ethernet
       setprop service.adb.tcp.port 5555
       netcfg eth0 dhcp
       setprop net.dns1 <dns server ip>

</pre>

That should be enough. I only have one issue with the dns server that sometimes it does not set and I have to enter the command manually.

If you want to connect adb by ethernet: <pre> export ADBHOST=xx.xx.xx.xx //Beagle IP adb kill-server adb start-server </pre>

if you want to configure a static ip address: <pre> ifconfig eth0 192.168.1.1 netmask 255.255.255.0 route add default gw 192.168.1.1 </pre>


Main_Page Main Thermo Previous (Thermo)