yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] abelenki:
try also Camera and Microphone permissions enabled. i have to turn them on for a while to import bookmarks on Android 9.0.

no.

---------- Post added at 02:20 AM ---------- Previous post was at 02:05 AM ----------

also, try to reboot a phone after importing a bookmark from file.
[Android Apps and Games] t-ryder:
Kiwi Browser got a "clear personal data" button at the menu, which is quite nice. If I want to clear data (cache for website testing purposes) I always have to enter the settings, which is quite annoying. If Bromite had such a button it would be quite nice, since I prefer Bromite.
[Android Apps and Games] custon3:
After disabling parallel downloads, I made 4 large downloads (1Gb / 2Gb) and 3 were made without problems and only 1 failure (it stopped at 70% and was not finalized).
[Android Apps and Games] SnowFuhrer:
Large downloads usually work for me too. I have downloaded 4gb files several times and they worked.
[Android Apps and Games] :
Can someone please provide instructions to install the bromite webview. I tried the instructions on the website, it did not work for me.
[Android Apps and Games] cssr:
Those instructions have worked for me at least 5 times. The only other method of installation I know of is to add it to a ROM build.
[Android Apps and Games] csagan5:
I think the UI is not updated after the import of bookmarks, so you have to exit the bookmarks dialog completely, then enter it again and you will see the imported bookmarks (so no need to restart the phone). Should be fixed as it is a visualization bug.
[Android Apps and Games] marcdw:
Steps to install webview have been posted in the thread several times. I do it the manual way on almost all of my ROMs. Works without issue. Up to Oreo anyway. Don't use Pie, yet. Anyhind, here's one post that may be of help.

https://xdaforums.com/showthread.php?p=77802517

The installer created by Setialpha (NanoDroid dev) may work. I believe it's standalone, meaning it doesn't/shouldn't need anything else. I've only used it once. During installation it removes the default and I suppose Google's webview.

https://downloads.nanolx.org/NanoDroid/Stable/

Moto G5S Plus XT1806, Liquid Remix v9.1.4 ROM, MultiROM, XDA Legacy
[Android Apps and Games] gartzen:
I followed instrucitions in Bromite wiki page and worked like a charm in LineageOS 16.
[Android Apps and Games] t-ryder:
[MENTION=8627832]csagan5[/MENTION]

I mean, of course I read something that you do not like silly feature requests, but this clear data shortcut would be something like a nice "privacy" feature IMO.
[Android Apps and Games] csagan5:
[MENTION=6046143]marcdw[/MENTION] I have updated the wiki page with some feedback from the discussion in this isssue

Since I do not test all of these myself, can you check if what is written there makes sense or conflicts with your experience?

In particular I am not so sure about:

the Debloater approach should freeze the Android SystemWebView, not the Chrome one, correct? I think the text should be edited to say this

it will be possible to install Bromite SystemWebView as an user app after the Android SystemWebView has been frozen? I would think this is not possible and that the app must be removed rather than frozen, otherwise signature conflict would prevent installation of Bromite's one; but the Debloater approach works so is Debloater freezing or removing?

would a modified stock ROM with simply the Android SystemWebView removed work? I have never tried this but it should be possible for people with unlocked bootloader

we could also simply list a shell approach to run the commands Debloater runs
[Android Apps and Games] marcdw:
Sorry for the late reply. I use the Bromite or Chromium webview only on AOSP/CM/LOS using the root/TWRP method. For that one we should add a line to make sure the webview.apk is given permission 644 before rebooting.

On my Moto and ZTE I keep the stock ROMs in place as primaries and don't mess with them too much. Never used the Debloater script before, either. Today I messed around on the Moto's stock ROM which is Nougat. Chrome is listed as the webview in developer options. Google webview is disabled according to Settings.

Installed Bromite webview (heretofore just Bromite) as a user app. Doesn't show up as a choice in devopts. Then I disabled Chrome (which uninstalled updates leaving me with the original v57). Developer options now shows no webview. Ran all kinds of apps that use webview or have in-app browsing. All worked perfectly. Hmm. Ran Webview Test and it showed I had Chromium v57 and my correct device.

Discovered the Webview Google was reenabled. Given its size of several K and being version 0.0.0.1 I realized it's just a stub/pointer to Chrome. Tried to freeze that but it failed.

Placed Bromite as /system/app/webview/webview.apk and also reinstalled it as an upgrade to itself. Still, present but not accounted for in developer options. Back into TWRP and removed /system/app/WebViewGoogle/. Wiped dalvik & cache. Still a no go. No webview listed in developer options yet everything still works and Webview Test shows v57.

After work I will put everything back the way it was and try the Debloater script.

Strike that. Didn't realize it needs Windows. My machines are collecting dust. [emoji16] I'll use another tool.

Moto G5s Plus XT1806, MultiROM, XDA Legacy
[Android Apps and Games] marcdw:
Well, all attempts at getting Bromite or Chromium webview to work on my Moto G5s Plus' stock Nougat ROM have failed. Tried arm and arm64 builds.

After removing Chrome from the system I tried the webviews. Present in the system but not registered as a webview. WebView Test showed nothing. Any webview-based apps failed to function.

Last attempt was with Setialpha's Bromite WebView installer which made no difference. Not sure what the deal is on that ROM. Restored Chrome and WebViewGoogle and all is back to normal.

Now on to the ZTE Axon 7 stock ROM. It's a custom one without Chrome but does use Google's webview.

LG G3 D851, crDroidAndroid v3.8.3 ROM, ArtxUltra v1.0U Kernel, microG (NoGapps), MultiROM, XDA Legacy
[Android Apps and Games] 57op:
hey [MENTION=6046143]marcdw[/MENTION], did you check what WebViews implementation are allowed in your framework-res.apk?

you should pull that file from /system/framework, decompile it with apktool and check the content of the file res/xml/config_webview_packages.xml

My phone stock ROM doesn't have the package com.android.webview which bromite i'ts using for its web view implementation and so it is never going to appear inside developer settings.

Adding the entry to that file, and so patching framework-res.apk, it's the proper solution so I could update Bromite without any issues.

On the other hand, I guess it would be easier to just change the package name of bromite apk to a whitelisted signature-less package listed there.
[Android Apps and Games] marcdw:
[MENTION=4128517]carlo93[/MENTION], thanks. Indeed that was the case. Only Chrome and Google webview was in that file.

I believe apktool requires a computer(?) so I used Apktool X instead. The recompiled framework-res results in a bootloop but that's okay. Being new to the tool and all. I'll get back to that once the phone recharges.

ZTE Axon 7 A2017U, /e/ v0.1 ROM, microG (NoGapps), Multiboot, XDA Legacy
[Android Apps and Games] 57op:
You're welcome.

I'm having an hard time patching my framework-res as well, causing bootloops.

Apktool runs on any JVM I believe, but I guess its main usage is on a computer.

In my case, apktool isn't able to rebuild the apk when decompiling resources for an easy XML modification.

I tried to patch the binary XML using the aXML library with no luck so far.

EDIT: Looks like framework-res signature cannot be changed, otherwise it would cause bootloop.

java.lang.NullPointerException: Attempt to read from field 'android.content.pm.Signature[] android.content.pm.PackageParser$Package.mSignatures' on a null object reference
[Android Apps and Games] csagan5:
I have updated the wiki with the information about the permissions.

I understand that when you write "Google Webview" you actually mean "Android System WebView".

This should be explained by a Google Chrome Monochrome build which contains the webview (but not with the Chromium/Bromite/AOSP com.android.webview package name).

However I cannot conclude anything with this information because (for any test made) we should get:

the XML file of the ROM you use which describes which webviews are allowed and whether they have pinned signatures to package names

webview packages installed (maybe with pm list), to verify if there is com.android.webview

whether Bromite is installed as system or user app

See my previous list; I am afraid you need to repeat the tests to see if com.android.webview is an active package; with that package being there, no update (which would be the Bromite SystemWebView) would be allowed; additionally, we need the XML file of the ROM to see what are the allowed packages for a webview (and eventual pinned signatures).

We need to gather these:

the XML file of the ROM you use which describes which webviews are allowed and whether they have pinned signatures to package names

webview packages installed (maybe with adb pm list), to verify if there is com.android.webview

whether Bromite is installed as system or user app

And then update the wiki page if there is incorrect information based on these tests.

config_webview_packages.xml is exactly the file I am talking about, which tells which packages are allowed to be webviews; from what I understood from the discussion with moriel5 (https://github.com/bromite/bromite/issues/220) most ROMs (and also AOSP) list com.android.webview without a pinned signature, and this is also why Bromite SystemWebView uses this package name.

Correct; I wonder what is the situation with stock ROMs at large about this.

Can you change framework-res.apk without root? And even with root, will the stock Android OS not fail verification of that APK?

This will work only if framework-res.apk does not have a pinned signature for the packages listed there.
[Android Apps and Games] 57op:
You could change framework-res.jar without root, provided you have a custom recovery. So, basically it's a no.

Moreover, I didn't find a proper way to resign framework-res.apk without Android OS crashing at boot, causing a bootloop.

Yeah, thankfully, I have two packages I can use:

<?xml version="1.0" encoding="utf-8"?>
<webviewproviders>
<webviewprovider availableByDefault="true" description="Chrome Stable" packageName="com.android.chrome" />
<webviewprovider availableByDefault="true" description="Google WebView" isFallback="true" packageName="com.google.android.webview" />
...
</webviewporivders>

i'm going to try this way right now

edit: no luck with apktool, it doesn't rebuild the bromite apk.

i guess building from source with a different package name is the only solution?
[Android Apps and Games] marcdw:
Yeah, the Moto's XML file has the same entries as above with pinned signatures for various Chrome builds except debug. No entry for AOSP WebView / com.android.webview in the file.

Finding a later version of Apktool X I had another go at editing the file but the recompiled framework-res still results in bootloops.

EDIT: Checked the XML file from Axon 7 stock Nougat. Identical to the Moto with no AOSP webview entry.

ZTE Axon 7 A2017U, /e/ v0.1 ROM, microG (NoGapps), Multiboot, XDA Legacy
[Android Apps and Games] 57op:
So, since framework-res.apk patching was a dead end for me, I opted to patch services.jar instead and hardcoding the AOSP webview entry:

https://android.googlesource.com/pl.../com/android/server/webkit/SystemImpl.java#82 (line 82)

I added this:

webViewProviders.add(new WebViewProviderInfo("com.android.webview", "Android Webview", true, true, null));

which in smali can be translated as

new-instance v6, Landroid/webkit/WebViewProviderInfo;

const-string v1, "com.android.webview"

const-string v2, "Android Webview"

const/4 v3, 0x1

const/4 v4, 0x1

const/4 v5, 0x0

move-object v0, v6

invoke-direct/range {v0 .. v5}, Landroid/webkit/WebViewProviderInfo;-><init>(Ljava/lang/String;Ljava/lang/String;ZZ[Ljava/lang/String;)V

invoke-interface {v12, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

right after "invoke-direct {v12}, Ljava/util/ArrayList;-><init>()V" (line 85 in my OEM implementation) inside of ".method private constructor <init>()V"

the smali file is smali/com/android/server/webkit/SystemImpl.smali

apktool (x) is going to work for this.

working fine now :)
[Android Apps and Games] csagan5:
[MENTION=6046143]marcdw[/MENTION] [MENTION=4128517]carlo93[/MENTION] I have updated the wiki with some steps to verify the viability of a webview installation: https://github.com/bromite/bromite/wiki/Installing-SystemWebView#verifying-allowed-webview-packages

I think you cannot re-sign any APK without the private key? Otherwise APK signing would be fundamentally broken.

I am starting to believe that either com.android.webview has never been much around in ROMs or that recent ROMs have replaced it (I think the latter case is more probable).

This is a modification of the ROM content with TWRP or similar (so it would require an unlocked bootloader), correct? Without root/TWRP this is not possible.

Edit: I tried to install the Bromite SystemWebView APK with a package name which is listed but without signature, and it also does not work.
[Android Apps and Games] 57op:
Exactly, it concerns patching /system/framework/services.jar file.

It didn't work for me as well.

Bromite was listed in developer settings but crashed with:

01-15 15:25:16.632 7568 7586 E AndroidRuntime: java.lang.RuntimeException: Package not found: com.google.android.webview
01-15 15:25:16.632 7568 7586 E AndroidRuntime: at android.webkit.WebViewDelegate.getPackageId(WebViewDelegate.java:164)
01-15 15:25:16.632 7568 7586 E AndroidRuntime: at ng.a(PG:170)
01-15 15:25:16.632 7568 7586 E AndroidRuntime: at mz.a(PG:8243)
01-15 15:25:16.632 7568 7586 E AndroidRuntime: at mB.run(PG:219)
01-15 15:25:16.632 7568 7586 E AndroidRuntime: at java.lang.Thread.run(Thread.java:764)

I installed it as a system app and then updated it with the same apk
[Android Apps and Games] marcdw:
I'm thinking that may be the case on vendor/device stock ROMs(?).

I'm a multiboot addict and know this may sound silly but I literally have 20 ROMs installed over 3 devices. Excluding the stock ROMs previously mentioned, LP/MM which don't have config_webview_packages.xml, and KitKat, that left 14 Nougat and Oreo AOSP/LOS ROMs. Checked and all of them include AOSP WebView entries. com.android.webview, no signatures. Can't do Pie so no idea what it has.

Oddly, balanceOS and Project New World only have one entry, for Android WebView. No Chrome or Google at all.

Moto G5S Plus XT1806, OmniROM, microG (NoGapps), MultiROM, XDA Legacy
[Android Apps and Games] skittles-1999:
Is there any way to disable the "# pop-ups blocked" notification? I tried blocking all notifications from the app but that didn't help at all. Any suggestions?
[Android Apps and Games] csagan5:
I rebuilt Bromite with one of the package names without a signature, so it does not crash for me like that. But it simply does not get listed and cannot be selected.

[MENTION=4128517]carlo93[/MENTION] you can try the same by following https://xdaforums.com/showthread.php?t=2760965 (you would of course re-sign the APK with a different key, but that does not matter)

What I was trying to test here is whether you can ever install a WebView without root/unlocked bootloader on a stock ROM, seems like it's not possible and there is something else in place that prevent this.

Yes, makes sense. So to recap:

custom ROMs have the com.android.webview package entry without pinned signature

stock ROMs do not, but you need root/unlocked bootloader anyways

So there is nothing to change in Bromite to favour installation by stock ROM users.
[Android Apps and Games] abelenki:
Bromite 71.0.3578.132 is released:

https://github.com/bromite/bromite/releases/tag/71.0.3578.132

changelog:

https://github.com/bromite/bromite/blob/master/CHANGELOG.md
[Android Apps and Games] thanhnvt194:
Webwiew is updated too, bro?
[Android Apps and Games] cssr:
Yes! This has been true as long as I have used Bromite. Browser and WebView update together.
[Android Apps and Games] thanhnvt194:
Yes i found the webwiew too,

I'm new to this browser, switch from kiwi
[Android Apps and Games] cssr:
Welcome to Bromite, [MENTION=8627832]csagan5[/MENTION] does some excellent work! I've been using Bromite about 9 months and only had one problem, which was fixed very quickly!
[Android Apps and Games] Jay0r:
Is the F-Droid repo down at the moment? I get an error message since days?!
[Android Apps and Games] marcdw:
Updated today, no probs. Any chance you're using the old repo? That will produce an error if so. BTW, when you have an error it's best to tell us what it is, otherwise guessing happens. [emoji6]

LG G3 D851, Paranoid Android 7.3.1, NanoDroid, MultiROM, XDA Legacy
[Android Apps and Games] d1n0x:
Even with the new repo URL it says "error getting index file" and when you search for "brom" nothing shows up.
[Android Apps and Games] fitittome:
I'm not seeing this. No problems here. I remember doing this procedure some time ago. https://www.bromite.org/fdroid
[Android Apps and Games] cssr:
Go to setting/apps/F-Droid and clear data. Then reboot. Had the same issue a week a go. Will need to add your extra repos to F-Droid afterwards.
[Android Apps and Games] d1n0x:
Yeah, I realized I still have the old repo in there that NanoDroid added. Had to manually remove it and add the new one. All good now.
[Android Apps and Games] User_99:
Thx for that great chromium derivate. Love the export/import function. Any reason why the export is labeld as 'bookmark' instead of 'mobile bookmark'?

After import all my bookmarks are found in this section, not in original one. Also an app restart is needed to see all imported bookmarks. Not a big deal;)
[Android Apps and Games] abelenki:
because they are not mobile bookmarks (which you are adding right from Bromite), but imported bookmarks.
[Android Apps and Games] csagan5:
FYI Bromite can play AV1 videos in most of v71 releases, you can test it here: https://tools.woolyss.com/html5-aud...m/storage/video/Stream1_AV1_720p_1.5mbps.webm

Next Bromite release (v72) will officially support the AV1 decoding feature.

Regular Chromium allows it still only on desktop, not on Android (unknown reasons).
[Android Apps and Games] fitittome:
You're a nutter posting a link like that, who can resist! Not really sure if you want feedback on this yet, but it fails on my device running Pie. It's an unofficial 16.0 release of LineageOS. Absolutely no problem for me, just a heads up.

edit:Actually, I wonder if its to do with SEPolicy that the dev is implementing for 8.1?
[Android Apps and Games] csagan5:
01-21 12:25:49.014 I/chromium(4466): ", source: https://tools.woolyss.com/html5-audio-video-tester/?u=https://www.elecard.com/storage/video/Stream1_AV1_720p_1.5mbps.webm (1)
01-21 12:25:49.046 I/chromium(4466): [INFO:CONSOLE(0)] "Refused to load the image 'https://www.elecard.com/storage/thumbs/1_1280x_FFFFFF/images/Video%20Previews/Summer_in_Tomsk.png' because it violates the following Content Security Policy directive: "img-src 'self' data: api.mywot.com".
01-21 12:25:49.046 I/chromium(4466): ", source: https://tools.woolyss.com/html5-audio-video-tester/?u=https://www.elecard.com/storage/video/Stream1_AV1_720p_1.5mbps.webm (0)

What is api.mywot.com? It is mentioned in your log, I think it is something special in your ROM related to Web Of Trust, it is not on the HTML of that webpage.

Alternatively, could it be due to some flag?

I don't think the AC1 codec has anything special, it is just another codec. I think it can either work or not (with crashes), but the problem you are seeing is a CSP one.
[Android Apps and Games] fitittome:
WTF! I try to keep things clean! There are few apps on that device, no gapps. Just a select few apps via FDroid. Bang goes the rest of the day, I'm sure, getting to the bottom of this!. :(
[Android Apps and Games] stuckbootloader:
A very minor super-tiny annoyance, not a problem with your app, but rather, the repo (?). It's probably not even be a problem on your side, and it might be an issue with F-Droid itself.

Installing (and updating) Bromite through its F-Droid repo opens up an installation window and it requires confirmation even though I've enabled "automatically install updates" in F-Droid and I have the latest Privileged extension. The downloading itself is automated but for some odd reason it needs my consent every time, unlike any of the other apps from first and third-party F-Droid repos I've downloaded.

The download progress bar also isn't functional, and instead of showing "36.8 MB/71.5 MB" it shows a single constantly-changing number (e.g. "45.6 MB").
[Android Apps and Games] abelenki:
Bromite 72.0.3626.68 is released:

https://github.com/bromite/bromite/releases/tag/72.0.3626.68

changelog:

https://github.com/bromite/bromite/blob/master/CHANGELOG.md
[Android Apps and Games] stuckbootloader:
Downloading Bromite fails.

(rel_72.0.3626.68_arm_ChromeModernPublic.apk can't be found on the repo even though it's shown as available, but Chromium can be downloaded just fine).
[Android Apps and Games] d1n0x:
What's funny about that? The error is there for me too. (Yes, I added the recently changed repo). For now I just downloaded from the website.
[Android Apps and Games] gartzen:
I get the error too. Worked just fine until this update.
[Android Apps and Games] Oddb411:
Disappointing that Chromium won't revert the save dialog for downloads without SD cards, but I am very grateful Bromite will be keeping the prompt. Having the option to rename and cancel a download before it starts is, I would argue, a useful feature with some (admittedly minor) security benefits.

I also like being able to open saved webpages in mhtml format, but I'm sure that is a very small use case ^_^' Whatever the reasoning, thank you [MENTION=8627832]csagan5[/MENTION] for keeping this feature.
[Android Apps and Games] csagan5:
I have been trying to fix this issue, it is a problem on the CDN used for the F-Droid repository. Hopefully I will find a solution soon.
[Android Apps and Games] Genetic517:
Hello csagan,

First I just want to say... Awesome browser, definitely has become the favorite and only browser I use now. :)

I've noticed a small bug with the last 2 versions that I wanted to bring to your attention. Whenever running a Google search, the tabs (images, news, shopping, maps, etc) are missing at the top of the page. I reinstalled version v63.0.3239.64 and the tabs have returned.

Edit: ah, the tabs disappeared again even in this version. They showed up the first time I opened the app. Very odd. This is not happening on Chrome. Anyone else seeing this?

edit 2: ive attached an image below
[Android Apps and Games] ouzowtf:
Just to give a tip back:

The custom tabs annoy you too, like me?

Disable chrome://flags/#tab-management-experiment-type and they are gone!
[Android Apps and Games] jacomail95:
Anyone knows how to enable an incognito-only mode on Chrome and its Chrome-based browsers, like this one, as done in CAF Snapdragon browsers?

Inviato dal mio SM-T325 con Tapatalk 2
[Android Apps and Games] csagan5:
Not really, there was a brief exchange on another thread. I will try to locate their forum area.

No, please see FAQ: https://github.com/bromite/bromite/blob/master/README.md#faq

Glad it helps :) It's useful for me so I am glad others can benefit from it too.

I know why this happens. It is because of the AMP-removal I added; basically it is too aggressive and rewrites all hyperlinks to be simple hyperlinks, this removes the tracking of your clicks (and probably hovering too) and also AMP, but breaks those advanced features. It should be possible to be more selective in which hyperlinks to rewrite, I have not spent time on this.

I see an issue was opened about this, thanks. That will help to track the problem for other users too.

I have opened an issue for this: https://github.com/bromite/bromite/issues/18 done some work, nothing solid yet.