ungoogled-software / ungoogled-chromium-android

Android build for ungoogled-chromium
GNU General Public License v3.0
495 stars 42 forks source link

Why this browser with 'arm64' is 130 MBs compared to the 75 MBs of Vivaldi and 50 MBs of Kiwi? #89

Closed gintominto5329 closed 3 years ago

gintominto5329 commented 3 years ago

The title says it all...;-)

Thanking you

wchen342 commented 3 years ago

If I get things correct kiwi and Vivaldi are both built against ChromePublic which is why it is smaller. However the target is deprecated now. See https://chromium.googlesource.com/chromium/src/+/HEAD/docs/android_build_instructions.md#Multiple-Chrome-Targets.

gintominto5329 commented 3 years ago

If I get things correct kiwi and Vivaldi are both built against ChromePublic which is why it is smaller. However the target is deprecated now. See https://chromium.googlesource.com/chromium/src/+/HEAD/docs/android_build_instructions.md#Multiple-Chrome-Targets.

Thank you very much for such a kind and to-the-point reply,

But I'm not an Android Developer, so may i ask, that which is better and why, of the four. Actually this is a mere curiosity of mine, and you are very free to say, "Its none of your business" or "Why do you need to know all this"...

Thank you once again...

wchen342 commented 3 years ago

The main differences are:

The targeting minimal level of SDK are different. For ChromePublic, the minimum level is 18 which is Android 4.4, and for ChromeModernPublic it is 21 which is Android 5.0. However, by targeting a low sdk level the codes (Java part) need to have some workarounds or out-dated codes in order to run on old devices, which are not ideal and potentially have security implications.

The other main difference is how whether webview library is bundle inside, but for ChromePublic and ChromeModernPublic webview is not bundle for both. For MonochromePublic for example, the apk will be larger because it includes everything inside its apk.

gintominto5329 commented 3 years ago

The main differences are:

The targeting minimal level of SDK are different. For ChromePublic, the minimum level is 18 which is Android 4.4, and for ChromeModernPublic it is 21 which is Android 5.0. However, by targeting a low sdk level the codes (Java part) need to have some workarounds or out-dated codes in order to run on old devices, which are not ideal and potentially have security implications.

The other main difference is how whether webview library is bundle inside, but for ChromePublic and ChromeModernPublic webview is not bundle for both. For MonochromePublic for example, the apk will be larger because it includes everything inside its apk.

I have a few more question if you don't mind:

Why choose trichrome_chrome_bundle, instead of ChromeModernPublic? And, If ChromeModernPublic ship without the webview, then how it does render the webpages?

Thank you...

wchen342 commented 3 years ago

Why choose trichrome_chrome_bundle, instead of ChromeModernPublic?

There are both Trichrome and ChromeModern in the release page, you can choose which to download.

If ChromeModernPublic ship without the webview, then how it does render the webpages?

Maybe something like this can help you understand the difference between chrome and webview. They are two difference things.

gintominto5329 commented 3 years ago

Why choose trichrome_chrome_bundle, instead of ChromeModernPublic?

There are both Trichrome and ChromeModern in the release page, you can choose which to download.

If ChromeModernPublic ship without the webview, then how it does render the webpages?

Maybe something like this can help you understand the difference between chrome and webview. They are two difference things.

Actually my questions were as follows: 1: Is there any advantage of choosing trichrome_chrome_bundle over ChromeModernPublic? 2: Even if i disable the Android System Webview, the ChromeModernPublic does not get disturbed, how?

Thank you...

wchen342 commented 3 years ago

Is there any advantage of choosing trichrome_chrome_bundle over ChromeModernPublic?

trichrome targets API 29 and above so it is optimized for those systems.

Even if i disable the Android System Webview, the ChromeModernPublic does not get disturbed, how?

Because they are two different apps and have different apks.

gintominto5329 commented 3 years ago

Is there any advantage of choosing trichrome_chrome_bundle over ChromeModernPublic?

trichrome targets API 29 and above so it is optimized for those systems.

Even if i disable the Android System Webview, the ChromeModernPublic does not get disturbed, how?

Because they are two different apps and have different apks.

Thank you very much for the information...