New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build a Cromite SystemWebView #159
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
Making a webview is indeed a very good idea, and it would be very nice if it could be used without overlay like bromite or mulch |
bromite or mulch webview needing also a change of config_webview_packages.xml. It's for all custom webview the same. First is always integration in a custom rom or GSI. the name (and key) of the custom webview must be added in config_webview_packages.xml. OK, you can put that xml in an overlay, like LOS is doing. But I'm not sure, that it will work it you will but the overlay in a finished build. attached the xml for my webview (you must rename it from txt to xml) |
For Rooted Android OR Non-Rooted ? |
If you want push an overlay and webview.apk to your device, you will need root and system RW |
This comment was marked as off-topic.
This comment was marked as off-topic.
OK, that are old files and I don't know what they have done. If you will use this way you should better contact the developer of theses hacked apk's. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
You overestimate the openness of the source code, because there are a lot of people, not programmers, who can't read code, and even if you are a programmer, how many programmers do you think read other people's code, well, you can make an application and I'm sure that at least 60% of people who download something either don't know or don't even want to. To answer your question - no, I'm not sure, but at least on webview 113 I could remove the permission for an application to access the Internet, since 114 version there are problems with this. And to add to my answer, I'm not sure about any opensource and I don't think anyone should believe in it. In our world at least 2 things are overrated: opensouce and democracy. ©Me |
For current time, (temporary) Chrome Custom Tabs may be solution. |
I repeat, no intention to compile the webview, at least until I understand its usefulness.
think of it the other way around, it only takes 1 programmer capable of reading code to find a keylogger in an opensource project |
agree to 100%. But the problem is, that these cracked webview apks are not FOSS anymore. |
By license ? |
I don't know much about your opensourse, so I'll ask the question "What will this programmer do if he sees such a keylogger or something else?". Can he file a request to shut down the project? And if he can, as I say, there are a lot of people who don't understand all this, the project can be closed, and the application is already installed and a person just thinks that updates are not released, but the application is beautiful, it works - so I'll use it, it's a two-way street, as far as I'm concerned, just like if you download an application from the playmarket and believe the programmer or the Google protection itself. I've pissed off all my friends that there are better alternatives, which are without trackers and without all the tinsel, even the programmer among them is 1 and all of them did not care whether they are watched or not, not a reason to judge them all, but the trend is clearly there. |
FOSS= Free Open Source Software. The sources must be available for everyone and much more. Read wiki about GPL. to 4. --> People which are using Mulch or Bromite webview are using it, because it is default in their custom ROM/GSI or installing it with an MagisK module. All other ways a breaking the rules and as I have written before: Noone knows what is all hacked in the apk, because the sources of this new created apk are not available anymore. |
my lst words to this tasks: If Uazo will build a cromite webview, it won't work til it will be hacked. Because ALL standard webview builds (like my LeOSium webview) need to be included in the build. |
this is an interesting use.
If they explain how to do it, we can talk about it again. EDIT: message deleted |
If you are looking for how to build webview here are some indications: https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/build-instructions.md https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/quick-start.md since it is of common interest the webview, I would have also started to study and understand better how to compile it anyway |
no, I was pointing to what he had written, but the message was deleted, I didn't know it could be done, I transcribed it in the comment, it was #159 (comment) |
I'm using this script, but with other patches |
from https://gitlab.com/divested-mobile/mulch
is not the same thing |
Ah, ok |
So we can wait cromite webview soon? |
All we really need is a system webview apk similar to Bromite's. All the hassle of allowing webview to be used by android that @LeOS-GSI mentioned is already gone even on read only systems if you have magisk and lsposed installed and working. Just install and enable https://github.com/neoblackxt/AnyWebView/releases/download/v1.2/AnyWebView_1.2_experimental.apk in lsposed and all webviews will be allowed. (Note: you should install a custom system webview for every user) Mulch System Webview is better than stock and can be a replacement for Bromite System Webview but I think that Cromite System Webview is still important because:
As you can see people want Cromite System Webview to exist, so please reconsider supporting it as well @uazo 🙏🙏🙏 |
I repeat, temporary solution ! |
I wonder if adblock also works, but I don't think so, it will only (I hope) be missing the activation of services. |
As for reducing necessary disk space - I am experimenting with |
so, in the end it can be done, and for now without much effort. |
Building both Cromite and Webview in same outdor does save time and space:
But seems you did not remove |
The failure is ProGuard trying to keep these classes while they have gone after patches. |
I made a clean build, source from the commit, without any changes. |
How do you invoke WebView build? I invoke like I posted above - |
https://github.com/uazo/cromite/files/13637516/0003-android_webview-Drop-AWVariationSeedFetcher-service.patch this one is needed to build two apks in one outdir sequentially. |
I used 'com.android.webview' because in the emulator it only accepted that one, and it was a hassle to activate it! do you need instructions?
no changes. I use exactly what is in the repo. |
I am using your image exactly. Let me try your commandline. Because I am doing both chrome_public_apk and webview_system_apk in the same out/arm64 |
very odd then. |
Anyway, I am now going to try the build on a test server with 32 cpu (they should have it enabled now) and write down everything I do to get it up and running. full instructions EDIT: all postponed, they didn't activate it for me... I think they're making fun of me... :) |
I restarted the build using my patch and ccache and pointing |
Well, with my patch builds for arm/arm64 complete. CCache does not catch duplicate files during first build cycle (I am talking about I will now keep ccache directory but remove out/* dirs and rebuild to check if ccache principally works. EDIT: Also, previous images had This time it us absent but build passes without it. |
Aha, found the issue with missing |
So build of
Now on CCache: ccache is useful only if you keep it between rebuilds of cromite - I was naively thinking there are duplicates of files between arm and arm64 build that ccache can spot. Nope, the first cromite build with empty ccache dir results in 0 hits. However, the second rebuild using the scratch container with ccache directory mounted into container speeds the build several times (21 minutes with vs 106 minutes without). Both arm and arm64 webview + chromePublic takes ~20GB of ccache, AND you can delete You told you have 250GB of disk space on server? How about allocating 50-70GB to ccache and mounting it to container? I tested this setup and it really helps. As you dont need Whrn the new version comes out you just rebuild it using the saved ccache dir. If things go really wrong, ccache dir is destroyed and the build starts fresh. |
So, since the ability to build SystemWebView has been added in the latest commit/release, are we getting prebuilt .apk files anytime soon? |
@SevastianGit I can not comment uazo's plans but on my side WebView works on arm/arm64 but presumably only with legacy adblocker support. Cromite browser scores 100/100 in this adblock tester but WebView makes only 28/100. The newer adblock tester gives 29% for Cromite either, but I |
without hurry. I need to understand the webview code a little bit first. |
Feel free to ask questions if needed :) |
Just adding my 5ct here to voice my reason for wanting a cromite webview. A little user story. I have since moved to Brave (and now Cromite) where i'm quite annoyed by the fact that settings i change in either don't apply to the webview part (simply because neither project provides a webview package). This would be solved once there is a Cromite Webview as it and Cromite would have the same browser experience. Thus - finally - after years of being annoyed by auto playing videos in webview components a new solution exists that allows me to disable it. Cromite. So yeah, i'm all for it! :D |
@basilgello |
you think so? |
i mean we dont need to wait for ad blocker (or such fancy stuff) fully functional. (at least) i just need a new webview with old bromite patch applied, to provide some basic privacy protection |
Preliminary checklist
Is your feature request related to privacy?
Yes
Is there a patch available for this feature somewhere?
Code for this is likely already present in the codebase.
Describe the solution you would like
As Bromite, which this project is a continuation of, provided a privacy-preserving systemwebview, it should likely be possible for a Cromite one to exist. I believe that if the codebase hasn't strayed from Bromite too much, the action will be somewhat easy.
As I have used the Bromite SystemWebView for a long time, it would be sad to have to stop using it.
Describe alternatives you have considered
You could alternatively delete all the text referencing the Bromite WebView from the project so there would be no confusion and possibly provide a link to a project with an up-to-date one.
The text was updated successfully, but these errors were encountered: