GitHub: https://github.com/JackyAndroid
Gold: https://gold.xitu.io/user/562dc7cc60b20fc9817962a2
- Google browser android version of the source program
- This project is a world-class android architecture
- Clarify the project business logic can completely fit for domestic company engineer
- This project will follow up and update Google browser kernel version for a long time, welcome to the star
If you are using AndroidStudio above 2.0 version and open instant run function, suggested to debug after closing (instant run will modify on the Application of the result in chrome provider context reference error)
Refer to official and other tutorial compile chromium source code, and can generate chrome apk
Using AndroidStudio debugging Chromium Android
- Android Studio as a development environment, from Chromium for Android from chrome module source code, to join the Android project.
- Native code in the chromium environment to build, as so file to join the Android project
- Basic module (base, the content, net, etc.) in the chromium environment to build into a jar package, then add to the Android project
- content, chrome, UI modules such as resource file to join an Android library project
Because namespace problems, such as the content of the module resources namespace is org.chromium.content,the chrome module namespace is org.chromium.chrome, so need to build different Android library project, specify different package name.
app/libs ----------- chromium/src/out/gnbuild/lib.java
app/src/main/aidl ----------- chromium/src/chrome/android/java/src/android/support/customtabs/*.aidl
app/src/main/assets ----------- chromium/src/out/gnbuild/
app/src/main/java ------------ chromium/src/chrome/android/java/src
app/src/main/jniLibs ----------- chromium/src/out/gnbuild/
app/src/main/res(app module init res)
libraries/androidmedia_res ----------- chromium/src/third_party/android_media/java/res
libraries/chrome_res ----------- chromium/src/chrome/android/java/res & chromium/src/chrome/android/java/res_chromium
libraries/content_res ----------- chromium/src/content/public/android/java/res
libraries/datausagechart_res --------- chromium/src/third_party/android_data_chart/java/res
libraries/ui_res ---------- chromium/src/ui/android/java/res
- Pak and dat files need to be added to the assets directory, and cannot be compressed
- Aidl files added to the main/aidl
- The current build chromium version is 55.0.2883.99
- Because some Java file is through the C compiler generated, there is the chromium/src/out directory or exist in the jars.If according to corresponding relation between the above updated version missing files, please go to the out/directory search, add corresponding files according to the namespace.There are some temporary generated XML resource file also need the out/directory on copy to the corresponding resource module.
The project is inspiration from the 365 browser
Copyright 2016 Jacky Wang<[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.