yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] Peedy2495:
Hello

Now I've made some experiences by experimenting in different issues.

This Post is for researching, recovering, etc. with your Ace2 ...

First, after repartitioning like Post #3 in this thread I wasn't able to boot with a f2fs-update.

After some tries I thought ... O.K. dude ... maybe you have to set all to beginning, witch means ... let's start again with stock-rom (now, with XXNF4 ;))

O.K. ... normal Start ... Oh no ... fist setup fails caused by missing of mmcblk0p11. aarghll...

After a short research I found the right .PIT-file for my Ace2 @ http://d-h.st/bBh

So I was able to reset/repartition my phone via Odin with additional reflash of the stock-rom.

- Installed CWM fm ace2nutzer's filehost

- Installed latest ext4-image with other basic stuff

- Made some mem-perfomance-tests

f2fs-part:

- Installed f2fs-image ->booted to recovery

- formatted data, cache and system to f2fs ->booted to recovery

- Installed f2fs-image, again with other basic stuff

et voila ... the system started with f2fs-partitions ... jeah ... :)

- Made some mem-perfomance-tests, again

Here are my performance-results of virgin ext4 and f2fs OS:

made with A1 SD Bench; all units in MB/s as read/write

. . . . . . . IntMem . . . . . . IntSDcard . . ExtSD cl4 . . ExtSD UHS-I/cl10

ext4. 29,24/10,08 . 27,14/10,01 . 16,19/4,44 . 21,27/10,30

f2fs . .26,49/10,27

mnt . /data . . . . . . . . . /sdcard0 . . . /sdcard1 . . . /sdcard1

Oooops ... why the hack is the I/O-performance of f2fs not better than ext4 ???

Maybe the performance should be better on a long therm by differences in fragementation and /or by using a lot of small files. Is anywhere a valid test for these issues available ?

But for now ... why keeping f2fs with less performance than ext4 and additional probs with testing another ROMs without supporting f2fs?

And off ... ;)

At least archiving for research issues: overlook of the Partitions (before migrating f2fs):

all beginning, of course, with mmcblk0p

p mountpoint fs partName Size

1 /mnt/.lfs j4fs PARAM 16.8M

2 /modemfs ext4 Modem FS 16.8M

3 /system ext4 SYSTEM 642M

4 /cache ext4 CACHEFS 312M

5 /data ext4 DATAFS 1309M

6 no mount CSPSA FS 1.573K

7 /efs ext4 EFS 10.5M

8 no mount fat16 UMS 1184M

9 /preload ext4 HIDDEN 336M

10 no mount PIT 1049K

11 indirect Fota 52.4M

12 no mount IPL Modem 2097K

13 no mount Modem 16.8M

14 no mount SBL 2097K

15 /boot Kernel 16.8M

16 no mount SBL_2 2097K

17 Kernel2 16.8M

So long ... Peedy
[Galaxy Ace II Android Development] shaqman89:
@Up

Good work on doing some comparison there. :)

Have you tried with any other benchmarking software? I am not really that big with benchmarking softwares (I prefer to feel it directly, though I agree it might be biased, but then benchmarking softwares has its own limits too), nevertheless I have tried in the past to do a test with quadrant and antutu. Overall, I did got higher points (both in overall and SD cards read IO performance) whenever I compared f2fs and ext4.

Furthermore, I have tried to compare this:

- Using SD Card Class 4 ext4 & SD Card Class 10 ext 4 with Dalvik (Chrono's kernel)

- Using SD Card Class 4 f2fs & SD Card Class 10 f2fs with Dalvik (Chrono's kernel & ace2nutzers's kernel)

- Using SD Card Class 4 f2fs & SD Card Class 10 f2fs with ART (ace2nutzers's kernel)

On all of those (at least on my phone) f2fs is slightly better than ext4, though not as much as some sites promoted, but nevertheless for my daily use, I do feel f2fs gives better performance in my phone.
[Galaxy Ace II Android Development] Bilgets:
Do this rom has clock bugs? I want to try but i really relly on the clock (alarm to be exact)
[Galaxy Ace II Android Development] shaqman89:
By ROM, I assume you mean kernel, right? :D

I remember there have been a few fixes for this, but I don't remember if it solved everyones issue. In my case, I don't have any clock issues for weeks now.
[Galaxy Ace II Android Development] Bilgets:
Yes i meant kernel! Im on chrono 2.6.x and i didnt have the issue.. Im going to try this right now..

And oh, thanks for your fast reply bro! [emoji2]
[Galaxy Ace II Android Development] shaqman89:
Having previously using that version before, I am sure you would like the latest version of this kernel. :)

Though, it seems there are some exciting feature in the latest kernel of chrono's that I am eager to try :D
[Galaxy Ace II Android Development] Bilgets:
Do the toucboost, termination_curr etc is not present here? Just booted with the kernel, its really nice for now :D
[Galaxy Ace II Android Development] shaqman89:
I can't say for sure :D I haven't tried to configure much through scripts here, only trying OC and some other stuff through NT-app.

One thing I do like is the default configuration is good, but OC's also work great.
[Galaxy Ace II Android Development] dv6661:
I'm going flash from ROM ext4 to f2fs, and it says cannot be installed, what's wrong ? any suggestion ?, thanks b4
[Galaxy Ace II Android Development] fluffi444:
http://xdaforums.com/showpost.php?p=53644768&postcount=3

"To install a new ROM that is not F2FS compatible, edit the updater-script as follows:"
[Galaxy Ace II Android Development] vacziferi:
in my phone it takes a lot of time to appear the calling screen (with the name and buttons). It can be 10 seconds when the phone sleeps.

Is it the same for everybody? What can I do with that?

(latest build, f2fs, art. but iit was the same for previous cm11 versions, that was the reason to returned to cm 10.2)
[Galaxy Ace II Android Development] lars85destroyer:
I'm using popmensa's builds and chrono kernel, what do I have to do to update to your ROM ?
[Galaxy Ace II Android Development] ace2nutzer:
New Build is Up !!!

Changelog:

20141130:

Adapt. all CPU Governors - for more Smoothness + better battery lifetime

re-enable Mali AutoBoostGPU - Adjusting permissions for NT-APP for that.

optimized GPU OC Algorithm

GPU OC up to 800Mhz

increasing OC Stability

Removed unneeded CPU GPU Steps

HUGE Improvements in Battery lifetime, Smoothness, and speed.

Fixed slow charging

Theoretically stable UV Defaults for every Ace 2

Min. freq bug actually away.. because new default min. is 400Mhz

Minimize Kernel Log buffer to the max.

Removed performance gov.

Removed noop Scheduler

Re-added KSM + Check page before scanning

Tuned interactive Gov. (optimized for min. cpu freq 400Mhz)

GPU OC --> only for AutoBoost in /system/etc/init.d/01optimization ( just edit the "echo" line on GPU OC section... )
[Galaxy Ace II Android Development] doctormord:
Huge speed improvement? Like with any build. Sometime we will fly because of so fast. :D;)
[Galaxy Ace II Android Development] ace2nutzer:
@up

:o;)

@ all

please check if this is stable for u all with 400 - 1 Ghz and report also if Blackscreen is fixed after waking up the Device. :good:

I forget one more fix :D : Sound stuttering during screen off/on also fixed :D
[Galaxy Ace II Android Development] doctormord:
Running good here with 400-1150 and 400-675840 GPU with no UV.
[Galaxy Ace II Android Development] soko3:
Maybe this is for Q&A section, but i'm curious why we have only 627 MB of RAM?

My roommate have Alcatel Idol with 1024 MB of RAM, but 980 MB is visible. In every moment more than 700 MB is free.

After reboot, Ace 2 have only 230-250 free...

Sometimes, my friend's ZTE Skate have more RAM available than my Ace 2...

Is there any way (even in theory) to make more ram visible (look at Galaxy Trend +, it has 768, but 707 visible)
[Galaxy Ace II Android Development] doctormord:
Streaming videos only got sound but no picture on latest build?
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=6902149]Dr360r[/MENTION]

Once I compile and place that webp lib in this folder. This was ROM with partially working Amazon pics.

After copying and set 644 chmod and reboot the images stop showing at all (blank spaces everywhere).

Tomorrow I try to compile two or three webp and place it to that /lib folder ;)

If I remeber right, I post about that try.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
which lib did u replaced ??
[Galaxy Ace II Android Development] beardedpanda:
I placed that missing libwebp.so.

Here it is something about libwebviewchromium - http://www.stevesouders.com/blog/2014/10/09/do-u-webview/

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
in around 1 hour new test-build is up ....

pls test sound rec. app and amazon pics ... (updated webp version from 0.4.1 @ 0.5.0 ;) )

gn8 ! :)
[Galaxy Ace II Android Development] shaqman89:
Morning here ;)

Anyway, tested latest build.

Sound recorder app records fine on 3gpp and AMR. WAV is not there.

Amazon pictures is still having issues.

Update:

Okay, I had some lookup online after checking in logcat, related to when the images was loaded.

It's a known chromium bug that is related to framebuffer discarding in Mali-400 devices.

Whole discussion related to this could be found here: https://bugs.chromium.org/p/chromium/issues/detail?id=449488

[MENTION=5840412]ace2nutzer[/MENTION]

Could this commit https://crrev.com/f5d0dccf607c7722c1e7f36f667a98efb5065706 be applied to fix it for us?

Update2:

I don't know why I haven't tried this out sooner, but amazon issue also happens in VanirKK. Just, a FYI.

Update3:

I peeked in the source of CM11 that you are using, and I found that in: /external/chromium_org/gpu/config/gpu_driver_bug_list_json.cc, the version we are using is 3.10 while the needed patch in the commit above is 7.21.

Unfortunately, I can't compile it myself yet. :D
[Galaxy Ace II Android Development] Dr360r:
Ace2nutzer, i put the libwebp.so (extracted from the stock ROM) in the /lib folder, set 644 and rebooted. Nothing changed.
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=6902149]Dr360r[/MENTION] [MENTION=5701712]shaqman89[/MENTION]

Okay. I made a logcat for Insta issue. One java exception and one missing shared lib.
[Galaxy Ace II Android Development] Dr360r:
The shared lib beardedpanda mentions is missing from all your custom ROMs and from the stock ROM /lib folder.
[Galaxy Ace II Android Development] ace2nutzer:
@up good to know .... but for now, no time for insta.... later i'll check...

So far, build from tonight with latest webp sources was not successful .. i've reverted back to original cm-11.0 repo from CM. since it seems that this isn't the problem at all :)

Also still don't know which flag is causing broken code (sound rec ...) and actually i'm applying that patch for Amazon pics ...

So far it seems that it's not very compatible ... but maybe it'll work anyway ;)

After that, i'll start the build ....
[Galaxy Ace II Android Development] Dr360r:
By the way, thank you so much man. You're giving me something that feels like a Job. Seriously.
[Galaxy Ace II Android Development] ace2nutzer:
i've to thank u :)

U're right .. it's really a job .. i do it almost the whole day .. sometimes even 13 - 14 hours per day ... but honestly the "main" problem is that we can't make money ... i've here "donate" button .. but almost nobody use it ^^

If we want to make some money .. the best way is probably to develop something i.e. an app or what ever ... and then sell it over Play Store ... even for only 1 € ... but if 1 Million people buy your app ... u'll have 1 Million € .. and u're reach :D

But i know it's probably only the half .. because of other costs .... but still good ;) hehe.
[Galaxy Ace II Android Development] Dr360r:
Let's forget about money. I'm talking about actually doing something meaningful for ourselves (and useful for others) during our days.
[Galaxy Ace II Android Development] ace2nutzer:
Yes of course .. i agree here ... doing nothing and just wasting the time is not cool ;)

Well started new build ... to test: sound rec and Amazon pics ... yes applied that patch ! i hope it'll finally work :D

It's in approx 2 hours up if the build will not stop due of compiling errors .....
[Galaxy Ace II Android Development] Dr360r:
Doing nothing and just wasting your time because you want to is one thing. You usually grow tired of it after some time. However, doing nothing and just wasting your time because someone forces you to, not allowing you to do any meaningful things in your time (and things such as unloading boxes of stuff off trucks or learning science books and Calculus or Physics exercises by heart because that's the only way you can pass an exam are pretty meaningless activities IMHO), is 1000 times worse.
[Galaxy Ace II Android Development] ace2nutzer:
compiling error ... restarted the build ....

I hope i've it fixed now ... i had to modify the patch because of too much differences in the driver ...

I'll check now insta logcat

EDIT: it's an OMX issue ... missing OMX.ST.VFM.H264Dec .... [MENTION=5695278]ChronoMonochrome[/MENTION] any ideas ?

[MENTION=6902149]Dr360r[/MENTION] build is up ! Action time !! ;)
[Galaxy Ace II Android Development] Dr360r:
Amazon pics not showing up.
[Galaxy Ace II Android Development] beardedpanda:
That OMX issue could be resolved by simply copy/paste libs or its a tough nut to crack?
[Galaxy Ace II Android Development] ace2nutzer:
Sound rec. works ??

btw: i'll rework the patch ... there is the last chance... but if it'll not work on next build, then there is no way ... (at least for me)

Nope, it's missing Code/patch/headers in the Source Code of STE OMX ....
[Galaxy Ace II Android Development] Dr360r:
Sound Recorder ceased recording.
[Galaxy Ace II Android Development] ace2nutzer:
ok thanks :)

Starting next build ;)
[Galaxy Ace II Android Development] beardedpanda:
Build from 2:40 (20160514)

Amazon pictures issue still there.

Recorder app start to record.
[Galaxy Ace II Android Development] ace2nutzer:
@up

thanks for testing, i've tested too this time :)

anyway there u go with the next stable CM 11 Build:

20160515 ROM:

Compiled with the FULL Set of Binary Code Optimizations including partially enabled LTO - thanks [MENTION=6902149]Dr360r[/MENTION] for hardcore testing ;)

Reworked some build.prop tweaks

Reverted webp to default cm-11.0 branch by CM Team

Build is in around 1 hour Up !!

To-do:

completing the LTO optimization for the rest of the ROM = more performance

Updating both LCD Drivers = more smoothness

btw [MENTION=5695278]ChronoMonochrome[/MENTION] flag -fgraphite-identity + -fno-toplevel-reorder was causing Sound Recorder App to not recording at all :)
[Galaxy Ace II Android Development] ChronoMonochrome:
Yeah, it's u8500 family OMX issue, and nope, this codec is not missing but rather does not support useAndroidNativeBuffer2 feature

E/ENSWrapper(28120): return OMX_ErrorNotImplemented - GetExtensionIndex OMX.ST.VFM.H264Dec h=0x2d2f5880 cParameterName=OMX.google.android.index.useAndroidNativeBuffer2 IndexType=unknown OMX_INDEXTYPE [ 0x2ac27000 ]

It seems that it tries to use useAndroidNativeBuffer2 but does not fallback to useAndroidNativeBuffer for some reason.

Have you tried https://github.com/Meticulus/androi...works/av/007-Use-GraphicBuffer-Optimize.patch ?

Do you maybe know which blob is responsible for sound recording bug?

P.s. it might be further useful to see which blobs use that or another app.

All the loaded libs can be found that way:

1) run app (e.g. sound recorder)

2) find process id via ps:

ps | grep "app_name"

3) dump /proc/<process_id>/maps output, where <process_id> is a found on the previous step process id.

Btw, it can be used for Amazon issue debugging as well.
[Galaxy Ace II Android Development] Dr360r:
Build 160515: Amazon pics not showing up, Sound Recorder working.
[Galaxy Ace II Android Development] gepel:
A big thanks go to Ace@Nutzer for his continuous efforts to give us the best experience on our phone BUT I can'y see any differences comparing to previous rom (personally the feeling it's worst). I prefer (a thousand of times) to trying to solve the remaining bugs like voice changer, 2d scrolling on ws2401 and broken web pics, so if its possible, for now , don't waste your time with meaningless optimizations.
[Galaxy Ace II Android Development] shaqman89:
I beg to differ on the wording meaningless. And besides, you are forgetting about one thing. It's a development forum, not support Forum. It's totally up to the developer on what he wants to focus on. If a bug gets fixed and you happen to enjoy their work too, then consider yourself lucky.

Also, I believe that the optimizations are getting even harder to feel, especially in some basic tasks, since the ROM has been just that more efficient and performance jumps aren't that huge anymore, but still it is impressive :)
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=6902149]Dr360r[/MENTION]

I used to build a webp library in my way and I obtain files from attachment. I build that form webmproject github 0.4.4 branch of webp.

Now, I try to copy libwebp.so to system/lib and try if something change on the newest stable build. I'll edit this post to keep you posted.

Maybe any advice where it may go (other place than only system/lib folder).

BTW: From cyanogenmod (CM-11 branch - androi_external_libgif) I compile a libgif.so, because one is missing from system/lib.

Sadly... nothing change.
[Galaxy Ace II Android Development] Dr360r:
Webp named stuff seems to be completely missing from lib and bin folders.

By the way it's there https://jira.cyanogenmod.org/browse/CYAN-5758

[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=7332124]beardedpanda[/MENTION] I think that the key is here http://www.cyanogenmod-forum.de/Thread-CM-11-S3-Amazon-Bilder-Problem?page=3

in message #23

Basically the culprit could be libwebviewchromium.so and we could try to revert it to an earlier version, or generally speaking try to play with it.

I downloaded an M7 ROM for i9100g phone, extracted the needed libraries from it and replaced the libwebviewchromium.so and the one with plat-support, 644 and rebooted. Now, stock browser is crashing. Even after deleting the stock browser and replacing it with the one from the same M7 ROM the browser crashes.
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION]

Replacing needed files from 4.4.x (4.4, 4.4.2, 4.4.3) ROMs = not working or FC in stock browser.

I could try compile that needed libraries but I need sources. I couldn't find anything in a cyanogenmod github repos or I'm blind (or something like that).

BTW: webview in 5.0 and up is external (app from play store), in Jelly Bean is absent at all, Only in 4.4.x is present with that libraries.

Using a lollipop precompiled libraries = bootloop.

Info about XPOSED and webview - HERE

Using libs from [MENTION=5695278]ChronoMonochrome[/MENTION] OMNI ROM 5.1.1 = normal boot but stock browser FC.
[Galaxy Ace II Android Development] shaqman89:
If by sources, you mean source for libviewchromium.so, then you may find it in android mainline repo under external/chromium_org, specifically under android_webview.

https://android.googlesource.com/platform/external/chromium_org/+/master/android_webview/

I'm not sure how much different it is compared to the current source that ace2nutzer is using.
[Galaxy Ace II Android Development] ace2nutzer:
???? don't know about that, but u can test 10/05 ROM .. basically the other one .. not the latest 15/05 ... because the older one is compiled with default Google + CM Team Code Optimizations .. so if there u've issues too, then it's normal behavior or it's App bug itself :)

@ webp .. u can probably forget to mix libs from different ROM's .... of course for testing it's OK .. but never ever use a ROM with mixed Libs from different ROM's .. u may can fix one Bug .. but at the same time u'll introduce a lot of other unknown bugs.

I don't think it's webp issue at all ... otherwise CM team would it fix already ... it's most probably an issue with our Board or our outdated Display Driver .. or just a Chromium issue ---> not compatible with our GPU .. simply too buggy ...

And honestly actually i even can't say if we'll fix it at all, even if it's maybe possible to fix it (because of time also) :)

But honestly for me the stock browser is not great at all ... it's just annoying and slow due of ads .... firefox is much better because of adblocker ... but unfortunately it needs too much resources ... and using other Browser like mini opera is not great too. But so maybe there is some other better browser that we can easily find and install from Play Store. Also that Bug with Amazon is only on Stock Browser, which is crappy anyway :D

I'm not sure, but i mean if u switch to Desktop version ..... then it shows the pics :)

Using more LTO + updating both LCD Drivers, is probably more convenient :)

I simply like it to beat even latest Samsung Phones on smoothness and reactions .. :) My Ace2 with S6D already does vs. S5 ;)

btw @ Chrono ... thanks for the hint ! I'll check if i'm already using that patch or not ... but probably i don't have it ... somehow skipped ..... :) IF that will FIx insta ... then there is only one bug on that ROM .. which is already pretty good IMHO .. compared to Stock JB ROM with really poor performance :)
[Galaxy Ace II Android Development] Culateralligator:
That's an euphemism.

Working Ace 2 + Jelly Bean stock = brick for the wall. :D
[Galaxy Ace II Android Development] shaqman89:
Actually, it's a bug with web view (I kinda believe it's specific for libwebviewchromium so), so any app that uses web view to render web page would actually have this. I tested this with lightning browser (which uses the same implementation from chrome browser), and the issue persist.

That being said, I agree stock browser sucks big time, and I personally rarely use it at all.

I'm not sure whether anyone has tried this, but what file format was it to use to upload on Instagram?

I remember I could upload files converted to mp4 without issues, but others would freeze and sometimes led to a soft reboot. So, going for that, could it be related to codec issues?
[Galaxy Ace II Android Development] ace2nutzer:
@up if i'm not wrong, on Chronos CM11 insta issue is NOT present :)

I think he had applied that patch from Meticulus for Buffering ....

Don't forget we're using here Cyanogenmod ... so we're not using only 100% Stock Google Sources AOSP ....

We're using all repos from here:

https://github.com/ace2nutzer/android/blob/cm-11.0/default.xml

yes, this is the whole CM 11 ROM ... 400 Repos :)

Here u can find ALL Repos it was needed to modify .. so called "patches" ...

https://github.com/ace2nutzer?tab=repositories

The are always updated with latest CM Sources ... (i do manually merge changes if there is something to merge .. )

As for Chromium repo ... it's here ...:

https://github.com/ace2nutzer/android_external_chromium_org

with one patch added for live video streaming ....

FORKED from CM .... NOT from Google Sources ....

That's why the patchset for Amazon u've found it was having completely different Driver Version ;)

And yeah .. that's probably i didn't worked at all .. i've compiled 2 Roms with different version of patch ... modified and adapted by me .... but they didn't solve the problem ... simply too much difference in the driver ... maybe it can work if we'll build with latest version form Google ... isntead from CM .... really dunno ....

But honestly, for now i've to give up .... pls don't cry, i said only for now ... but later maybe i'll try again ....
[Galaxy Ace II Android Development] beardedpanda:
Hmmm, what you say about idea of replacing that stock browser with other one? Is it possible anyway?

We could vote in posts and choose the best replacement.

In my humble opinion nownwe should focus on that Insta bug and then to make a finishing touches.

If you build ROM with that Insta fix, let me know. I'll test that build.

BTW: I will try to fix that stock browser, just for my fix-o-matic point of view ^^

BTW2: You doing very great job my friend. Keep it up!

I don't even think that this phone could be that fast.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka