2010年3月5日 星期五

Build Andorid environment setting

Ubuntu Linux (64-bit x86)

This has not been as well tested. Please send success or failure reports to android-porting@googlegroups.com.

The Android build requires a 32-bit build environment as well as some other tools:
  • Required Packages:
    • Git, JDK, flex, and the other packages as listed above in the i386 instructions:
    • JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with @Override.
    • Pieces from the 32-bit cross-building environment
    • X11 development
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
  • Set the system to use the right version of java by default:

    $ sudo update-java-alternatives -s
    java-1.5.0-sun
  • X11: Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:

    $ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so

Android DNS search priority

code frameworks/base/core/java/android/net/MobileDataStateTracker.java

default code

mDnsPropNames = new String[] {
"net.rmnet0.dns1",
"net.rmnet0.dns2",
"net.eth0.dns1",
"net.eth0.dns2",
"net.eth0.dns3",
"net.eth0.dns4",
"net.gprs.dns1",
"net.gprs.dns2",
"net.ppp0.dns1",
"net.ppp0.dns2"};

}

2010年2月12日 星期五

uuid for block device

claud@claud-desktop:~$ sudo blkid
[sudo] password for claud:
/dev/sda1: UUID="0E20C84620C8368D" TYPE="ntfs"
/dev/sda2: UUID="904ACCCB4ACCAF72" TYPE="ntfs"
/dev/sda5: UUID="2A84C32184C2EE7F" LABEL="?????" TYPE="ntfs"
/dev/sda6: UUID="644e3f61-bbbf-4893-99c8-8446f4e4531c" TYPE="swap"
/dev/sda7: UUID="f5cd54bd-1489-49ba-9c47-d1cb6ad34e6f" TYPE="ext4"
/dev/sda8: UUID="f2d635b7-a02b-45dd-ae3e-4601652a9dd1" TYPE="ext4"
claud@claud-desktop:~$