I've installed android on my freerunner. I've to say that it works ! very nice and functional interface, finger friendly, voice, sms, wifi work out of the box. I'm very impressed.

Following the lead from http://lackingrhoticity.blogspot.com/2010/02/how-to-build-adb-android-debugger.html I've decided to build adb to connect to my phone without downloading the precompiled sdk and without checking-out the entire android git repository. It's actually very easy, and I'm sure with a minimal effort, it should be possible to create a debian package. The android instructions give some hints regarding the cross-compilation of android on a x64 machine.

Cutting and pasting from Lacking Rhoticity blog you need to :

$ sudo apt-get install build-essential libncurses5-dev$ git clone git://android.git.kernel.org/platform/system/core.git system/core$ git clone git://android.git.kernel.org/platform/build.git build$ git clone git://android.git.kernel.org/platform/external/zlib.git external/zlib$ git clone git://android.git.kernel.org/platform/bionic.git bionic$ echo "include build/core/main.mk" >Makefile

Now edit build/core/main.mk and comment out the parts labelled

# Check for the correct version of java

and

# Check for the correct version of javac

Since adb doesn't need Java, these checks are unnecessary.

Also edit build/target/product/sdk.mk and comment out the "include" lines after

# include available languages for TTS in the system image


Now, since we are one a x64 machine we need to install the rest of the libraries to cross compile abd. I think this is the minimum you need to successfully build adb

sudo apt-get install libc6-dev-i386 lib32ncurses5-dev ia32-libs g++-multilib

The result should be something like this :

$make out/host/linux-x86/bin/adb============================================PLATFORM_VERSION_CODENAME=RELPLATFORM_VERSION=2.1-update1TARGET_PRODUCT=genericTARGET_BUILD_VARIANT=engTARGET_SIMULATOR=TARGET_BUILD_TYPE=releaseTARGET_ARCH=armHOST_ARCH=x86HOST_OS=linuxHOST_BUILD_TYPE=releaseBUILD_ID=ECLAIR============================================find: `frameworks/base/api': No such file or directory[ ... ]host Executable: adb (out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb)truehost C: acp <= build/tools/acp/acp.chost C++: libhost <= build/libs/host/pseudolocalize.cpphost C: libhost <= build/libs/host/CopyFile.chost StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)ar crs  out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.ohost Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)trueInstall: out/host/linux-x86/bin/acpNotice file: system/core/adb/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/adb.txtNotice file: system/core/libzipfile/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libzipfile.a.txtNotice file: external/zlib/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libunz.a.txtNotice file: system/core/liblog/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txtNotice file: system/core/libcutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcutils.a.txtInstall: out/host/linux-x86/bin/adb

Running abd :

$ADBHOST=192.168.0.202 ./out/host/linux-x86/bin/adb devices* daemon not running. starting it now ** daemon started successfully *List of devices attachedemulator-5554    device

###################################################

$ sudo apt-get install build-essential libncurses5-dev$ git clone https://android.googlesource.com/system/core.git system/core$ git clone https://android.googlesource.com/platform/build.git build$ git clone https://android.googlesource.com/platform/external/zlib external/zlib$ git clone https://android.googlesource.com/platform/bionic.git bionic$ echo "include build/core/main.mk" >Makefile

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)fragment生命周期解析
  2. ubuntu10.10 下安装android 2.2开发环境
  3. 【Gradle】Android(安卓)Gradle 高级自定
  4. Android(安卓)常用的adb命令
  5. Win10 + cygwin64 + ndk 配置ijkplayer a
  6. android之drawable属性
  7. Android(安卓)中的日志工具类
  8. android ImageView 频繁切换图片 OOM
  9. Android检测手机或PAD是否连网
  10. 【Android2D游戏开发之四】Android(安卓)