- ✨ Java / C++ / Android / Linux
- ✨ Openwrt / Debian / Wireguard / IPv6
- 🔭 Looking for a job in China or Remote
wuruxu / crwebview Goto Github PK
View Code? Open in Web Editor NEWexport android webview sdk from chromium
export android webview sdk from chromium
RT,想自己编译一个浏览器,加载 Floccus 插件来同步 PC 浏览器上的书签,谢谢
Hi! I'd love to learn more about this project. I'm leading a team building a browser on top of Android System Webview and we're interested in adding Chrome extension support. Would you be willing to answer a few questions? Thanks!
Your example app not loading the extension.
Please create an example app that load an extension because you example extension that is skyblue is also not loading.
i have change only the path
mBrowserContext.loadExtension(getObbDir().getAbsolutePath());
I/.mask.crwebvie: Late-enabling -Xcheck:jni E/.mask.crwebvie: Unknown bits set in runtime_flags: 0x8000 I/Perf: Connecting to perf service. I/FeatureParser: can't find beryllium.xml in assets/device_features/,it may be in /system/etc/device_features W/.mask.crwebview: type=1400 audit(0.0:8976875): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=14058 scontext=u:r:untrusted_app:s0:c175,c260,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 E/libc: Access denied finding property "ro.vendor.df.effect.conflict" W/Looper: Slow Looper main: Long Msg: seq=2 plan=01:33:47.261 late=2ms wall=1617ms running=1512ms runnable=19ms h=android.app.ActivityThread$H w=110 E/Perf: Fail to get file list io.mask.crwebview E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array D/ForceDarkHelper: updateByCheckExcludeList: pkg: io.mask.crwebview activity: io.mask.crwebview.AwShellActivity@1ebb27a I/chatty: uid=11199(io.mask.crwebview) identical 4 lines D/ForceDarkHelper: updateByCheckExcludeList: pkg: io.mask.crwebview activity: io.mask.crwebview.AwShellActivity@1ebb27a D/cr_BrowserStartup: [BrowserStartupControllerImpl.java:435] Initializing chromium process, singleProcess=true I/cr_LibraryLoader: Successfully loaded native library I/cr_CachingUmaRecorder: Flushed 4 samples from 4 histograms. W/chromium: [WARNING:resource_bundle_android.cc(77)] failed to load locale.pak W/chromium: [WARNING:aw_resource_bundle.cc(30)] Failed to load locale .pak from apk. E/chromium: [ERROR:rtl.cc(147)] Failed to set the ICU default locale to . Falling back to en-US. V/cr_ClankAccessibility: [BrowserAccessibilityState.java:249] Enabled accessibility services list updated. I/chromium: [INFO:shell_extension_system.cc(38)] ShellExtensionSystem ShellExtensionSystem /data/user/0/io.mask.crwebview/app_webview/Default E/chromium: [ERROR:simple_file_enumerator.cc(21)] opendir /data/user/0/io.mask.crwebview/cache/WebView/Default/HTTP Cache/Code Cache/js: No such file or directory (2) E/chromium: [ERROR:simple_index_file.cc(614)] Could not reconstruct index from disk I/chromium: [INFO:aw_browser_context.cc(551)] AwBrowserContext InitExtensionSystem extension_system_ 0x7a000366c0 D/ForceDarkHelper: updateByCheckExcludeList: pkg: io.mask.crwebview activity: io.mask.crwebview.AwShellActivity@1ebb27a I/chatty: uid=11199(io.mask.crwebview) identical 1 line D/ForceDarkHelper: updateByCheckExcludeList: pkg: io.mask.crwebview activity: io.mask.crwebview.AwShellActivity@1ebb27a W/chromium: [WARNING:shell_extension_loader.cc(51)] Warnings loading extension at /storage/emulated/0/Android/obb/io.mask.crwebview: W/chromium: [WARNING:shell_extension_loader.cc(54)] Unrecognized manifest key 'author'. W/chromium: [WARNING:shell_extension_loader.cc(54)] Unrecognized manifest key 'browser_action'. W/chromium: [WARNING:shell_extension_loader.cc(54)] Unrecognized manifest key 'commands'. W/chromium: [WARNING:shell_extension_loader.cc(54)] Unrecognized manifest key 'minimum_chrome_version'. W/chromium: [WARNING:shell_extension_loader.cc(54)] Unrecognized manifest key 'short_name'. W/chromium: [WARNING:shell_extension_loader.cc(54)] Unrecognized manifest key 'storage'. W/chromium: [WARNING:shell_extension_loader.cc(54)] Manifest version 2 is deprecated, and support will be removed in 2023. See https://developer.chrome.com/blog/mv2-transition/ for more details. W/chromium: [WARNING:shell_extension_loader.cc(54)] Permission 'contextMenus' is unknown or URL pattern is malformed. W/chromium: [WARNING:shell_extension_loader.cc(54)] Permission 'privacy' is unknown or URL pattern is malformed. W/chromium: [WARNING:shell_extension_loader.cc(54)] Permission 'tabs' is unknown or URL pattern is malformed. W/chromium: [WARNING:shell_extension_loader.cc(54)] Permission 'webNavigation' is unknown or URL pattern is malformed. I/chromium: [INFO:aw_content_browser_client.cc(351)] AwContentBrowserClient OnWebContentsCreated 0x7a001a0000 I/chromium: [INFO:shell_extension_host_delegate.cc(19)] ShellExtensionHostDelegate OnExtensionHostCreated I/chromium: [INFO:shell_extension_system.cc(175)] ExtensionService content_verifier return nullptr I/chromium: [INFO:aw_browser_context.cc(577)] AwBrowserContext LoadExtension /storage/emulated/0/Android/obb/io.mask.crwebview ID:pkdpohcofjjegcaecmjgacbcmjdlilfe I/chromium: [INFO:aw_content_browser_client.cc(351)] AwContentBrowserClient OnWebContentsCreated 0x7a001a0c00 W/chromium: [WARNING:resource_bundle.cc(1154)] locale resources are not loaded W/chromium: [WARNING:resource_bundle.cc(1154)] locale resources are not loaded
当把进行这个设置后setDomStorageEnabled(true),如果网站页面使用了getItem存储的api,那么app就会崩溃
english:
When setDomStorageEnabled(true) is set, the app will crash if the website page uses the api stored by getItem
W/System.err: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/chromium/media/R$raw;
W/System.err: at org.chromium.media.MediaServerCrashListener.startListening(MediaServerCrashListener.java:61)
W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
W/System.err: at android.os.MessageQueue.next(MessageQueue.java:335)
W/System.err: at android.os.Looper.loop(Looper.java:193)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8060)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.chromium.media.R$raw" on path: DexPathList[[dex file "/data/data/com.ckj.demox/code_cache/.overlay/base.apk/classes4.dex", zip file "/data/app/~~yIusEbnAt3voV0vXB-Yc1A==/com.ckj.demox-b13EYhtJ3kxq7JS5hosm-w==/base.apk"],nativeLibraryDirectories=[/data/app/~~yIusEbnAt3voV0vXB-Yc1A==/com.ckj.demox-b13EYhtJ3kxq7JS5hosm-w==/lib/arm64, /data/app/~~yIusEbnAt3voV0vXB-Yc1A==/com.ckj.demox-b13EYhtJ3kxq7JS5hosm-w==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]
W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
W/System.err: ... 8 more
A/chromium: [FATAL:jni_android.cc(306)] Please include Java exception stack in crash report
A/libc: Fatal signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x7a8b254974 in tid 20252 (com.ckj.demox), pid 20252 (com.ckj.demox)
Hello
How to compile the crwebview project yourself?
Where exactly to put the BUILD.gn file and make the build?
Chineese:
你好
如何自己编译crwebview工程?
将 BUILD.gn 文件放在哪里并进行构建?
Thanks you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.