How to get the source code of Chromium for Android

家住魔仙堡 提交于 2019-12-03 15:59:41

You can build content shell alone using "make -j4 content_shell_apk" instead of building the full bundle. This will give you content_shell.apk which can be installed on to any android device which runs 4.0 or higher. If you want to make an eclipse project for content shell then you have to collect all necessary src files and resource files from chromium source tree.

src files:
base/android/java/src/org/chromium/*
media/base/android/java/src/org/chromium/*
ui/android/java/src/org/chromium/*
content/public/android/java/src/org/chromium/*
content/shell/android/java/src/org/chromium/*
net/android/java/src/org/chromium/*

res files:
content/shell/android/res/*
pak file:
out/Release/content_shell/assets/*

native libs:
out/Release/content_shell/libs/armeabi-v7a/*

"At this time, a full compile does not build the browser. It only builds unit test bundles. As more code becomes available in the public Chromium source, more targets will be added."

Taken from the same page, i think here is your answer.

Ken

Firstly, you can definitely build a full browser as these instructions. You will have an apk file named "ChromePublic.apk". If you just want to test WebView, you can only build "WebView Shell" or "Content Shell" for your purpose.

Secondly, it's nearly impossible to import Chromium project to Eclipse IDE, because it's so complex for Eclipse can understand. You can edit the source code by Notepad++, then rebuild project as above instructions. If you just want to have "WebView Shell" project, this link maybe help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!