Hi googlersI am a 3rd-app RD, and I‘m working on a projectwhere I need to wrap a custom view (just like android webview with a diffenent package, aka com.custom.myview)。and I repo&clone a upstream chromium code, set system_webview_package_name with custom package (just like system_webview_package_name = "com.mycompany.webview")then I choose a WebView variant and build my own webview.apk with package com.mycompany.webviewautoninja -C out/Default system_webview_apkorautoninja -C out/Default monochrome_public_apkautoninja -C out/Default trichrome_webview_apkBecause my company is not a device vendor or OEMs like HUAWEI or Samsung, my company just a traditional APP developer,So I can't custom and modify AOSP framework and config config_webview_packages.xml, set webview provider freelyEven more, I can't sign myown webview.apk with platform key, and can't reflash custom system image。In the situation above, How can I wrap my own com.custom.myview, and build and install mywebview.apk(com.mycompany.webview), and make these work fine and smoothly in all android devicez with user image or user-debug, eng image.
BTW, I have the follow ideas according chromium architecture1. I just wrap my customview(com.custom.myview) based content API and content shell----but content shell is just a demo, have little fuction2. I wrap my customview based chrome for android-----maybe wrap customview base chrome for andriod have heavy workload
3. I wrap my customview based AOSP webview and android_webview in chromium src----can I just build android_webview as aar, or can I move webview code to android_webview, and then build mywebview.apk
4. I just skip glue layer and use only the lower level interfaces like AwContents, and wrap myview, just like instrumentation shell does, AwTestContainerViewcurrently I'm working with fourth idea, based AwContentswebview_instrumentation_apk , this embeds a copy of the AwContents (webview's internal core) in the apk rather than using the system webview
Maybe, my question mentioned above is a little confused,In other words, Whether it is reasonable towards the fourth idea that based AwContents, or what about the remaing three ideas.Any help and proposal would be appreciated!
--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/06742626-f3a8-4064-8973-967b62fa4b5an%40chromium.org.
Toby , Thanks a lot for your detailed explanation and proposal。BTW, There is just only one app that will use my-customview。But what about WebLayer, a new embedding API? https://source.chromium.org/chromium/chromium/src/+/master:weblayer/README.md?originalUrl=https:%2F%2Fcs.chromium.org%2FAs we know, Weblayer is built on top of src/content which is a sibli ng or chrome and webview.it is powerful enough to build a model browser, include all the same web platform features as chrome, as fast and secure as chrome。3rd Apps can embed WebLayer such as they embed WebView。But as Christian said in https://groups.google.com/a/chromium.org/g/weblayer-dev/c/TYeAdtuo-QUWebLayer is currently an experimental API we develop for internal projects ,we make no guarantees of the stability at this time。What's the current situationthe and milestone of weblayer,how long does it take to stabilize ?Maybe I can just choose weblayer, emded weblayer into my app, when weblayer is stabilize 。
Hi Everyone,
I was hunting for a similar output, where the WebView standard version will be part of app.
Not sure if there are any recent work arounds on this which are officially supported.
I tried the same like building possible variants of WebView from Chromium Code using provided documents.
autoninja -C out/Default monochrome_public_apk
autoninja -C out/Default trichrome_webview_apk
autoninja -C out/Default system_webview_apk
Still once the build is developed, there is no other way to integrate with existing apk.
We can handle more app load time and also fine if there are any app size changes. The use-case of the application is critical enough to require independent in-app integrated sdk but requires more modular approach like an aar or jar file of the browsers.
If the WebView can be integrated with less frequent updates as the security is not very critical issue.
Looking to know your understanding and guidance on how it can be done.
Thanks