yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=6902149]Dr360r[/MENTION] [MENTION=5701712]shaqman89[/MENTION] [MENTION=6575591]Sylvinette[/MENTION] [MENTION=5695278]ChronoMonochrome[/MENTION] and rest of you guys.

Finally, I manage to find the best solution for broken amazon pics bug in CM 11 ROMs.

Please, consider replacing the stock browser with Chromium browser. This is a original Chromium web browser (Google Chrome progenitor) compiled to the apk version. This is the lightest web browser with working Amazon pics and this is the best choice for now AFAIK, because when I test web browsers from Google Store in each of it Amazon pics not showing up. I've tested the latest build from original web site and so far it's working good, smooth and ad free. More smoother than Google Chrome. Even watching videos on the Youtube website (in good quality) is smooth and the sound is concurrent with the video.

App is compiled about 4 times per day so app is updated about 4 times per one day! Each change is easily traceable just click HERE, wait until all builds are loaded to the website, choose the build (Name category; just click on the chosen Name), Click on the link in Commit Position and enjoy. :)

BTW: All categories are sortable ( in alphabetical order).

I provided links to the download below.

Installation method:

1. Download apk file and put it on the sdcard,

2. Go to Settings -> Security -> Check Uknown Sources option,

3. Install the ChromePublic.apk (full browser) only (ContentShell.apk is for developing purposes),

4. Uncheck Unknown Sources option,

5. Test and enjoy!

P.S Due to the big app size (about 100 mb after installation) I recommend to include it on the /Data partition not the /System. In addition ROM users will gain opportunity to easily replace it with any web browser they like for every day use.

P.S 2 This version of Chromium app should work on the all CM 11 ROMs.

Please, test it and post your feedback.

Download: Original website and XDA Thread
[Galaxy Ace II Android Development] ace2nutzer:
@up

thanks for investigations :)

is this apk also available over Play Store ??
[Galaxy Ace II Android Development] beardedpanda:
No. This apk is only available as a third party package.

Only Chromium based web browsers are available over Play Store.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
ok ..

but what about this ?

Is it working good at all ?
[Galaxy Ace II Android Development] beardedpanda:
@up

Yep. It's working good and stable. No bugs found.

They using a Snapshots from Master branch (I think that it's called in the GitHub language) what is equal with every day update. So if they want to put into Play Store users of this apk need to download new version every X hours. It's like Debian Testing (Rolling release distro, in this case rolling release apk). In this case some of the apk builds are more stable some are less stable but to test new builds every user of this browser could upgrade or downgrade the apk version on its own. All versions are available HERE

So We can stick to the more stable builds. The more stable builds are listed in this XDA topic which I linked before.

The most stable builds are builds which serves as a base to stable Google Chrome. That could be easily checked on that main website of this project.
[Galaxy Ace II Android Development] ace2nutzer:
Thanks for explanations .... sounds somehow painfully ... so it's just luck if it'll run stable or not :D

On the other hand, we've nothing to loose, since our stock CM Browser is buggy too.

btw: on stock CM Browser: switching to "desktop mode" makes the broken pictures working. .... strange .... but ... ;)
[Galaxy Ace II Android Development] jcourtei:
I don't need 100 MB browser, stock browser is good for me. If you like chromium, just install it, there is no need to force everybody to use it, many people don't care about broken pics on amazon.
[Galaxy Ace II Android Development] beardedpanda:
It's only sounds painfully. The reality is different. The builds which serves for Google Chrome stable builds are good for production purposes (code is clean, stable, no bugs so far and everything running fine) so We can name it a Stable release. Other releases are testing builds. It is like your ROM builds. One is stable enough for every day use, one is only for testing purposes. Chromium DEVs only resign from divding the project to beta, alpha, stable, final and etc. branches. They keep all what We need in one place and constantly update the code.

So We can stick to these (mentioned above) Stable builds and be happy because our ROM is bug free.

BTW: We need only a ChromePublic.apk to install full browser. ContentShell.apk is for developing purposes only.

I hope now it's sounds more clearly to You. I jumble (a little) info in my earlier post. I apologize for that. ;)

Now it's time for the tutorial!

How to determine the latest stable version?

1. Open THIS website,

2. Check the build number (it's in the brackets - look at the picture in the attachment for example),

3. Now go HERE and wait for builds data be loaded to the website,

4. Put the number you found in the Filter field,

5. Open the folder, download a zip and enjoy!

I updated the installation method HERE
[Galaxy Ace II Android Development] beardedpanda:
Maybe if [MENTION=5840412]ace2nutzer[/MENTION] decide to replace the web browsers He just freeze the stock browser from CM builds. So you could easily uinstall Chromium and use the real stock browser.

BTW: I' not forcing whomsoever. I'm just giving solution for the problem.
[Galaxy Ace II Android Development] ace2nutzer:
btw: it's not 100MB, our CM Browser is around 33MB incl. libs, and the GoogleChrome Build apk is 47MB ..

so the difference is not really much.

Also the Size will vary on the used Level of Optimizations ... :)

The only "problem" is that it's not a good idea to delete or freeze CM Browser ... simply because that APK is only 3MB ... Also i don't know if it's safe to delete the depending libs "libwebviewchromium.so" and others.. since they are maybe shared libraries ... and the system need them.

I've downloaded Build 386251 ... later i'll test it :)

Then i'll tell u what i think is best choice to do with that browser.
[Galaxy Ace II Android Development] ace2nutzer:
btw i've installed it + tested ... and it works really good !

It's faster and smoother !! - Also when watching YT over that Browser, the Performance is much better !

Maybe i'll try to replace it .... but both browser at the same time is too much wasteful on space ...

And as far as i can see, it's already optimized for armv7-a .. that's why it work very good.

Anyway, if i'll compile from source, then i would use same optimizations from ROM.

So well done [MENTION=7332124]beardedpanda[/MENTION] :)

PS.: i'm not sure, but is that Chromium Browser not the same like this from Play Store ???:

https://play.google.com/store/apps/details?id=com.android.chrome&hl=en

If so, it's really not needed to download it, in that complicated way .. ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
Interesting one, indeed. I was looking for the stock browser replacement in a long time, too. How about it's RAM requirement compared to a stock one?
[Galaxy Ace II Android Development] beardedpanda:
Google Chrome isn't equal with Chromium.

Main differences:

Chromium is the name given to the open-source project and the browser source code released and maintained by the Chromium Project.[8]*It is possible to download the source code and build it manually on many platforms. To create Chrome from Chromium, Google takes this source code and adds:[9]

An auto-update system called GoogleUpdate (some, such as the Debian or Ubuntu community builds of chromium, rely on the*package management*system of the*OS*as an alternative)Integrated*PPAPI*version of*Adobe Flash Player.[10]*This can be downloaded and installed separately in community supported distributions of Chromium.Media codecs to support H.264, AAC and MP3 formatsA restriction that disables extensions not hosted on the*Chrome Web Store(for Windows users on all Chrome channels)[11]The Google and Google Chrome names (both registered trademarks)[12][13][14]An opt-in option for users to send Google their usage statistics and crash reportsRLZ tracking*when Chrome is downloaded as part of marketing promotions and distribution partnerships. This transmits information in encoded form to Google, including both when—and from where—Chrome was downloaded. In June 2010, Google confirmed that the RLZ tracking token is not present in versions of Chrome downloaded from the Google website directly, nor in any version of Chromium. The RLZ source code was also made open source at the same time (previously it was proprietary—and although the source is now open the feature was not migrated to Chromium) so that developers can confirm what it is and how it works.[15]Prior to version 47: built-in PDF viewer and print preview (incorporated into Chromium 47 and later, after Google open-sourced the PDF viewer)

By default, Chromium only supportsVorbis,*Theora*and*WebM*codecs for the*HTML5 audio*and*video*tags. Google Chrome supports these as well as the*patent-encumbered*AAC*andMP3*codecs. On 11 January 2011, the Chrome Product manager, Mike Jazayeri, announced that Chrome would no longer support the*H.264*video format for its*HTML5*player.[16]*In October 2013*Cisco*announced that it was open-sourcing its H.264 codecs and will cover all fees required.[17]*As of November 2015, Chrome still supports H.264. Linux distributions that distribute Chromium may add support for other codecs to their customized versions of Chromium

This info posted above may be not 100 % accurate due to fast developing process and proprietary sources.

Chromium is a clean web browser without any Google "bloatware" in the browser.

To keep it simple:

Chromium - fully open source

Google Chrome - mixed sources (open code from Chromium [base] + proprietary code [Google])

BTW: Chromium fork - Iron web browser by SRWare works too (amazon pics showing up) and it's available from Play Store but for Me is less optimized (less smoothness) maybe due to the code changes which was maded by developers.

IMHO We should stick to the official Chromium builds to avoid any weird situations (discontinued projects and etc).

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
@up

OK ! Good to know .. i was never that much deep interested on what is the best Browser for our phone .. since i don't use it as much ... due to the fact that we've small display ... so i'm using almost my laptop for reading websites.

Anyway good found ! As i said i'll try to make something great with the sources ... (better optimizations)

And i'll try to remove our Outdated and buggy Chromium Sources completely fro mthe ROM Build.

I hope that is possible at all :)

Right now tested ... i've opened only CM Browser + Chromium and on both i only opened one tab with the site: www.google.com ... then on both pressed home button .. and checked RAM usage ...

CM Browser: approx 35MB

Chromium: approx 70MB

After i leave Settings --Apps, i was checking both browser if they are still in RAM ... and Chromium was killed ... while CM Browser was still in RAM ... hmm anyway it works far better and looks more elegant :cowboy:
[Galaxy Ace II Android Development] RyxeL:
no deepsleep with the latest ROM+kernel+GAPPS
[Galaxy Ace II Android Development] lace_hvc:
Did u flash Gapps from the ftp server?
[Galaxy Ace II Android Development] Dr360r:
Good luck, man!
[Galaxy Ace II Android Development] ace2nutzer:
Connect with Wifi, open Play Store and set: "Update only over Wifi" .. then go to "my apps" and choose "update all"

Wait till it's finish, and reboot the phone.
[Galaxy Ace II Android Development] Culateralligator:
Well, I have installed last Chromium version and I have to say it's good.

But, in my phone at least, stock browser+Adaway is faster and smoother.

I use a lot phone browser, almost like a PC, so every small change ace2nutzer makes to CM11, the first moment I notice that is with the use of this app...

I like chromium, in fact I'm gonna leave it installed as 2nd browser, but I wouldn't like stock browser to be replaced...

If possible, much better keeping both of them working fine.
[Galaxy Ace II Android Development] ace2nutzer:
hehe .. so u use CM Browser as reference in order to check how great i've optimized the build ? ;)

Anyway there are some possibilities what we can do ...

1. Let CM Browser on place, installing Chromium on /data

2. Removing CM Browser, and replace with Chromium (/system)

But both Browsers on /system doesn't fit anymore :D
[Galaxy Ace II Android Development] beardedpanda:
@up

+1 for installing Chromium on /data but this is your call.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
Honestly i don't care much... i like both browsers, anyway Chromium is for sure better and probably it has better security.

Our webkit* is just outdated and buggy ... while webview is newer and has better performance ...

*:

https://android.googlesource.com/pl...org/third_party/WebKit/+/kitkat-mr2.2-release

As u can see, latest commit from Google was on Jun 2014 !

Chromium is based on webview, that's why it works better.
[Galaxy Ace II Android Development] beardedpanda:
So i think that ROM should use the most secure and stable Apps even browsers by default, ofc if it's possible.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] Culateralligator:
Stock browser never worked as smooth as with this CM. :D

I have cervical problems and using my laptop doesn't feel good to my neck and back. :rolleyes:

I just use it for impossible tasks for the phone.

A ≈4" phone is very easy to use with one hand and swipe keyboard is best invention ever. :laugh:

About browsers, just do what you and most of people think it's better option.

IMHO, Chromium better on data partition. :good:
[Galaxy Ace II Android Development] franta8512:
In the latest version (Build: 20160616) does not the external SD card
[Galaxy Ace II Android Development] ace2nutzer:
Nope, u did like always something wrong.

Read first post for proper Installation method.
[Galaxy Ace II Android Development] shaqman89:
I hope after optimization of chromium browser, it could use less ram. I tried chromium and it's good, but a bit bad when combined with my style of multitasking, especially with multiple tabs opened :D

Btw does someone around here plays coc for some extended time and switching between apps in between using our phone? It seems that lmk fails a bit after doing that for an extended period of time. At the first attempts, it is okay and switching between apps leads to no slow down, but after a while it slows the phone down, a lot to the point that it lags.

[MENTION=5840412]ace2nutzer[/MENTION] is this normal with the default configuration?

u0_a40@codina:/ $ free

total used free shared buffers

Mem: 644856 631292 13564 0 2148

-/+ buffers: 629144 15712

Swap: 307192 302856 4336

u0_a40@codina:/ $ free

total used free shared buffers

Mem: 644856 640008 4848 0 776

-/+ buffers: 639232 5624

Swap: 307192 307192 0

u0_a40@codina:/ $ free

total used free shared buffers

Mem: 644856 640352 4504 0 1452

-/+ buffers: 638900 5956

Swap: 307192 307192 0

u0_a40@codina:/ $ free

total used free shared buffers

Mem: 644856 639088 5768 0 1776

-/+ buffers: 637312 7544

Swap: 307192 305148 2044

I took those 10 minutes apart and I noticed at times memory is totally full (swap=0). To. My understanding, lmk should've killed apps way before that, am I correct?
[Galaxy Ace II Android Development] ace2nutzer:
Swap free is 0 ?

If so, increase zRam Size.

Don't know what u mean exactly, but it sounds normal. Btw zram is disabled by default. So did u enable ? Post also minfree values..

Btw: make sure u've only init.d script file: 01_zram and ck settings is at least freezed
[Galaxy Ace II Android Development] raz82:
last ROM stable ? сan I update?
[Galaxy Ace II Android Development] IAmLucky:
as thread title says... :)
[Galaxy Ace II Android Development] raz82:
the previous ROM were problems with the LCD
[Galaxy Ace II Android Development] ace2nutzer:
yes only for some LCD .. but it has nothing to do with the stability of the ROM or kernel, as it was just a wrong configuration of LCD parameters. It is even possible to change them over init.d script, so no rebuild needed.. anyway it's better to have proper config on low-level .. and i just want to keep it user-friendly. This ROM+Kernel even don't need any init.d script nor NovaThorSettings to work properly. It's just there so that the user can change defaults to its own needs, if really needed :)
[Galaxy Ace II Android Development] seanmalto:
Is this the best method to slove "wont deep sleep" problem?

because, i just have to reboot my phone, when betterbatterystats "says" that there is no deep sleep stats for 1 day.

after reboot, my phone become normal again (deepsleep present) :D
[Galaxy Ace II Android Development] ace2nutzer:
I don't think it'll fix it.

Make sure u have not disallowed google play services + Google play services in privacy.

btw on new builds i never had this issue again. It was present on old rom from last year.
[Galaxy Ace II Android Development] Kurajmo:
My battery life on this Rom. 1 hour and 30 minutes on screen use.

Not good but no bad.

On AOSP my phone work 3 hour and 30 minutes on screen use.

I have greenify app

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
This is normal after fresh Installation.

Reboot the phone and

Do a full charge (till 100%) then test again.
[Galaxy Ace II Android Development] lace_hvc:
how much screen on time do others here get? For me it improved to 3-3.5h screen on time. I use greenify with xposed functions.
[Galaxy Ace II Android Development] ace2nutzer:
with this ROM+Kernel + new org. battery 1500mA .. it's possible to get up to 6h SOT. (with balanced profile, 2G + wifi, low Screen Brightness)

No need for Greenify or xposed.
[Galaxy Ace II Android Development] Culateralligator:
Amplify and PowerNap are better battery powersavers than Greenify.

Mainly Amplify.

In fact, Greenify probably should hivern apps every 1800" or 3600" to be efficient -this times are not the stock of the app, so I modified it with Amplify-.

And you shouldn't include apps you're using all the time -unless you preffer them to be closed due to heavy and long use of RAM-.

Ace2nutzer talked some time ago about this app.

But, as ace2nutzer says, with some settings, the battery can last for long.

I have a 1700mah battery and i can probably reach even more than 7 hours of SOT with balanced profile and the settings he mentions.

With Performance Profile I just reach 5,5 hours.
[Galaxy Ace II Android Development] ace2nutzer:
Also measured with latest kernel ??? Since i've Reduced CPU max. Freq from 1100 @ 1000 and GPU 650 @ 500 .. + GPU Undervolting, it should consume much less battery :)
[Galaxy Ace II Android Development] Culateralligator:
I'm using Performance Profile with 1100 MHz. :D

Actually I was gonna ask you how can I set performance profile to 1100 MHz without changing it all the times on Settings.

It's good [MENTION=322487]1000[/MENTION], but browser is smoother [MENTION=4867107]1100[/MENTION] and I my battery lasts all day with that.

Right now I have 20160604 ROM and 06/13 kernel and honestly, lastly I'm having more battery drain.

Maybe I've come up too high with the great performance/battery of this ROM as I've installed more than 40 apps besides ROM and GApps apps... and perhaps it's affecting to battery drain.

Or maybe it's time to do a clean install after a dozen's ROM updates...

Anyway, It's time to update last ROM. Downloading.
[Galaxy Ace II Android Development] lace_hvc:
I got Amplify installed and also thought about delaying the greenify time. But didnt set anything. Just watching the wakelocks and alarms so far.

Greenify is nice to keep the RAM free and it works fine with gcm push notifications for IM apps. (i know...waking up those IM apps probably drains battery)

According to betterbatterystats I hardly have any wakelocks and my awake time is under 10min. But i can't reach 4h SOT. Screen is always dim. Mobile data is off. 2G is turned on. GPS/bluetooth/sync are off. Cant find another reason why. Probably because im still using the original battery.
[Galaxy Ace II Android Development] ace2nutzer:
@up

if your battery is older than 2 years than it's normal ... also if u've much re-connects on 2G .... or just low Signal Quality .. then u can forget about over 4h SOT.

Actually it's not adjustable, maybe one day ....

So u've to set 1100 on Performance Menu and check "set on boot" - But then don't use Quick perf. profiles .. otherwise it'll reset back to 1000, once u set perf.

btw: I can suggest for higher perf. + still acceptable battery life to use 1000Mhz.

If u want more, u should use 1200Mhz instead ... because 1100 and 1200 uses the same Voltage ! While 1000Mhz has lower Voltage .... and 800Mhz is much lower Voltage :)
[Galaxy Ace II Android Development] Culateralligator:
With a 2 years old 1500mah original battery I reached 5h 15' SOT maximum with balanced profile (I have 2 Ace 2 at home).

Maybe your battery is just too old.

I use also PowerNap and Adaway (from F-Droid).

And I have a lot of services blocked with Amplify, mainly all which have the word ADS, ANALYTICS, FITNESS, REPORTING or WEARABLE.

Of course, after blocking services, I take a look to all apps that could be affected, but I have never had any issue.

Maybe there could only be problems with Smartwatches or running apps (I don't use them so... I can't say so far).
[Galaxy Ace II Android Development] lace_hvc:
I disabled many services too, but with Disabled Services. from time to time google play services crashes but thats less than once/day. I got 78 of those google play services disabled.

Adaway is working great as well!

my battery is the one i bought the phone with: summer of 2012 :D
[Galaxy Ace II Android Development] shaqman89:
Are you sure that I'm not using a big enough one already? Currently I did enabled zRam using a value of 150) which gives roughly 300MB). I remember this is already double from the default value (75/150MB)

Yes, I've checked init.d, and only got 01_zram that is related to zRam. Also, ck settings is freezed, so I'm sure it's not it.

This is my minfree values: (it's supposed to be default, since I never touched it)

/sys/module/lowmemorykiller/parameters/minfree <

10470,13178,15887,18777,21486,26721

Also, for reference, here is how my swap is like at first. I have used the same pattern (Coc and switching between apps for some time (~10hours).

u0_a40@codina:/ $ free

total used free shared buffers

Mem: 644856 636212 8644 0 3424

-/+ buffers: 632788 12068

Swap: 307192 143196 163996

As you can see its at least 150MB free, and this is usually the normal value which gives smoothness. Now after extended usage of the same pattern (3-4 days without reboot), it gives the 0 swap issue, and the phone would lag to the point that most apps force closes, and some services can't be started due to being out of memory. So from this, I think there is a memory leak somewhere, but isn't it supposed to be cleared out after lmk closes the app and do a garbage collection?

Again, I might be understanding lmk wrongly here.

Also, I checked in logcat and kmsg, but found no specific references on lmk being triggered, I guess the logging is disabled for it. I did found anr traces though.
[Galaxy Ace II Android Development] Culateralligator:
Thanks for the advice. :good:

So, it's not possible writing 1100 or 1200 MHz on some file opened with Root Explorer instead of original 1000 MHz in order to change CPU Performance Profile... You mean it's not that easy...