Chromium for android 2 源码编译
运行结果:根据下面的指令可以把 browser shell 安装到手机上,这里用的是nexus 7 android 4.2.1截图如下:界面还非常简单,只有一个 地址栏和历史前进后退,不支持 Menu;目前 HTML5 跑分421+11 比 chrome for android 390+11要高
Install prerequisites
The Android SDK/NDK is checked into the chromium tree in $SRC/third_party/android_tools and does not need to be installed. The following script installs other tools needed by the Chrome on Android build.
/./---.///&&//~/Downloads/-6u38--.----///////.6.0//50000---///////.6.0//50000---///////.6.0//50000---///////.6.0//50000------------export=.//.-out/Debug-//.--ContentShell.////-out/Debug-//.--ChromiumTestShell.////-out/Release-# Run with --help to get arguments.# Most useful: use -e to run tests in an emulator; else it assumes you have a phone plugged in.//.# Running a particular test//.--PathUtilTest.BasicTest
Running Instrumentation Tests-out/Release-//.--ContentShell.# Run with --help to get arguments.//.----ContentShellTest-vvv
Rebuilding libchromeview.so for a particular release
In the case where you want to modify the native code for an existing release of Chrome for Android (v25+) you can do the following steps. Note that in order to get your changes into the official release, you'll need to send your change for a codereview using the regular process for committing code to chromium.
- Open Chrome on your Android device and visit chrome://version
- Copy down the id listed next to "Build ID:"
- Go to http://storage.googleapis.com/chrome-browser-components/BUILD_ID_FROM_STEP_2/index.html
- Download the listed files and follow the steps in the readme.