yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
Thanks ! Then i'll try to remove wav option for now.

Btw somebody can test if it works on latest android version for our ace2 ? (Cm13 or what ever... ) because if it works, then i can try to use cm13 sources for sound recorder app
[Galaxy Ace II Android Development] ChronoMonochrome:
For me the default sound recorder is even not shown in menu (same thing on OmniROM 5.1.1 and UltimateROM 6.0.1), despite of the fact that it's installed. Looks like this app is simply bugged or it's because of some optimizations - don't know, I just simply removed this app as there are many sound recorders better than default one.
[Galaxy Ace II Android Development] ace2nutzer:
Thanks !

WAV isn't supported by CM team .... they say it works only for qualcomm devices .....
[Galaxy Ace II Android Development] Dr360r:
Then the app i'm using uses software codecs.
[Galaxy Ace II Android Development] ginodman:
Can anyone confirm that Deep Sleep is working on last 2 stable releases? I can see that Deep Sleep works only after reboot for some time (30-40 min), but most time device stays on 200MHz. Again to disable Google Services?
[Galaxy Ace II Android Development] ace2nutzer:
Nope, use all versions from file "latest" incl. gapps .. then everything should work fine.

That Google Play services bug with FC / deep sleep problem, should be fixed for ever now :)
[Galaxy Ace II Android Development] ace2nutzer:
yep .. probably ...
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=6902149]Dr360r[/MENTION] 12.05 is up :)

please check also if wav is away from recorder app... thanks !
[Galaxy Ace II Android Development] Dr360r:
Build 160512: Poweramp installs from Google Play. Sound Recorder working and recording in AMR and 3GPP. WAV option has been succesfully taken away.
[Galaxy Ace II Android Development] ace2nutzer:
perfect! starting next test... it was only an approximation ....
[Galaxy Ace II Android Development] Dr360r:
You still don't know which optimization causes Poweramp installation to fail, huh?
[Galaxy Ace II Android Development] ace2nutzer:
Yeah .. i can't say for now which flag it's exactly .. because i've making some "groups" of flags .. like default ones, clean ups, and custom optimizations :) And clean ups means= sorted out flags that usually don't produce better code ... but unfortunately some of them (not all) are needed in order to keep things correct ! - But this is still acceptable if we'll be able to add a lot of custom optimizations ..

and so far i suspect it was not caused (the poweramp + sound rec.) by custom optimization also not by using -O2 for the whole ROM !

But it looks like it was caused by too much clean ups + switching off some options enabled by -O2 that i don't like.

So all in one i think it's still possible to have a full working build and adding again some more aggressive optimizations without having problems :) I think a few test builds are still needed .. then we can switch to fix webp :)
[Galaxy Ace II Android Development] ginodman:
I did, but still no deep sleep. I will try to disable Google Services and see.
[Galaxy Ace II Android Development] ace2nutzer:
@up

try to find the main problem instead to get rid of G.P.S. ...really a bad idea.

[MENTION=6902149]Dr360r[/MENTION] get prepared .. in approx 30 min. next build is up :)

Let's make fastest ACE 2 ever ;)

But damn .. what a blame for SAMSUNG :D

Edit: Server was this time faster :D so it's in 10 - 15 min online :D (uploading ... )
[Galaxy Ace II Android Development] Dr360r:
What do i need to do if i want to try to fix libwebp myself? If i understand correctly, i need to compile the libwebp.so because it's not available in that form.

EDIT: i've done some research and it looks like pretty hard stuff, at least for me. So lets focus on Poweramp and Sound Recorder first.
[Galaxy Ace II Android Development] ace2nutzer:
@up

actually i don't know how to build webp externally and how to implement in the build here... but probably possible.

AFAIK it builds libwebp-decode and libwebp-encode and then it's used or mixed up in other libs .. just complicated thing.

I can try to override old sources with latest sources by hand .. without changing other things .. because one time i was already trying to build with latest webp repo from google source ... but the build stopped because the structure of other needed libs (like includes or makefiles) was not correctly. It's just differnet for CM here ... that's why the last hope is just to replace only source .. and not other things like makefiles ... u can't help probably .. or u know how to build the CM11 .. and try to build test builds only for webp ...

But if i need to explain u that all ... then it's probably faster u maintain your good position with testing builds .. this is a big BOOST of time in the right direction of having a perfect CM11 for the ace 2 :)

Thanks a lot for this !

btw: what is your build computer or laptop ?? CPU, RAM, HDD - how fast ?

build is up !
[Galaxy Ace II Android Development] Dr360r:
Build computer? So far i've only built silly stuff during High School on it... anyway it's a desktop computer with 4GB DDR3 1600 RAM (in Dual Channel mode), an AMD X4 860K CPU, 1TB hard drive and Window XP Professional (the 32 bit version, so it's not fit for building ROMs) OS. All of this, assembled with my own hands.

I've tested the latest build. Poweramp still installing correctly, Sound Recorder working correctly and no option for WAV.
[Galaxy Ace II Android Development] ace2nutzer:
@up nice desktop PC ... it's maybe even a little bit faster than our build server here.

btw: i'm still using same OS like u... still good.

But i've repartitioned my HDD and i've installed lubuntu 12.04 64-bit ... + the all the needed stuff for building ROM's.

Our Build-server has also same OS .. but newer version. Here on my laptop i can't use newer version because of missing IGP (VGA) driver... I've found even sources ... so i thought i can build it by myself .. but any versions later than 12.04 has some changes .. and that's why it can't work .. even if i compile it. But so far everything works great and really stable. (stable like win xp pro)

But well ! It's pretty good that still everything works ! That means the first "bad" flag we've found !

So far i can say also [MENTION=5695278]ChronoMonochrome[/MENTION] for u interesting too, missing flag -frename-registers was the problem for non working sound rec. Well now let's try to find the flag for poweramp mystery ;)
[Galaxy Ace II Android Development] ChronoMonochrome:
Interesting thing indeed. But isn't better to try search the faulting libs / binaries instead of changing flags and rebuilding everytime from scratch?

As for libdwm.so, you can simply rebuild this blob (instead the whole ROM) with different flags and test it.
[Galaxy Ace II Android Development] Dr360r:
If it's Linux, it's good. But there's still the fact that i'm not a developer. In fact, i should be a Science Major student... i should :o :crying: ... but that's OT ;)
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=6902149]Dr360r[/MENTION]

If you want to increase performance of yours HDD please check THIS It's applicable to normal HDD not only SSD. I test it with my Motherboard (only SATA 2 available here) and SATA 3 HDD. It's working better than on IDE. Faster and more stable in the overall every day use.

My computer consists of this parts:

1. 5 GB ram DDR2 333

2. Intel Core Duo 6300 1,86 ghz

3. 1 TB and 250 HDD

4. Windows 10

So, for now I doesn't have opportunity and skills to compile whole CM 11. I try to figure something about compiling that webp lib externally. I found the way to baffle Android NDK to compile library to webp.so (and rest libs [I think] from webp family) without any Android sources. I post that link some post ago but that will work at all if We find a way to inject it to the ROM?
[Galaxy Ace II Android Development] ace2nutzer:
Yeah u're right ... but honestly i don't know how to do it :) So, if u've time, u can instruct me over PM ;)

Yes, it's a linux distro :) one of fastest linux ... works even fast on very old laptops ;)

Well, i think no one developer was falling from the sky ;)

btw: i'm not an developer too :) I even never learned programming in the school or what ever.

All i can do, or all i've learned by myself is just try-and-error and learning-by-doing ;)

And of course with much reading and a lot of great help from [MENTION=5695278]ChronoMonochrome[/MENTION] :)

Thanks, i'll check this later. :)

Everything great except of CPU ... i've here Core Duo T7300 2Ghz and it takes around 8 hours to build CM11 from scratch ... but one time it's compiled .. the second time it should run faster .. if u was using ccache .. then it should need "only" 4 hours approx ;) Not a big deal ... but for rebuilding the ROM 1x per month it's acceptable i think :)

u can try it ... but i'm really not sure if it'll work at all ... i think u should provide at least compiled libwebp-decode and libwebp-encode ....
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=6902149]Dr360r[/MENTION]

But be aware! For AHCI mode you need to have a ahci drivers installed first. When you change the HDD mode first you will get the bsod (not able to find boot device).

Consider the BIOS update too.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ChronoMonochrome:
Why PM? It's a development topic, at all, so I'll post it here so that someone else possibly might find it.

Basically, you need one more-less complete (not clean) build (even if you've already cleaned temporary build files, read on). First run your build script, but skip brunch codina command, something like:

. build/envsetup.sh
lunch (select cm_codina-userdebug )

Second thing - cd to libdvm folder and start building:

cd dalvik/vm
mm

It might complain that some libraries is not built yet - in this case you need first to find where located these libraries and start build them in the same way (you can simply search in google or via find/grep unix commands).

In this approach I created script that manually builds some "low-level" libraries (the most of modules firsty relies upon which):

You might need to adjust the highlighted number or rerun the script a few times to get it to work on KK. This script builds libc, libm, libdl, libstdc++, libc++ and a couple of other static libraries from scratch. It could be beneficial compared to building ROM in an "usual" way and waiting until the necessary libraries will be compiled.
[Galaxy Ace II Android Development] gepel:
I'm using 1005 for couple days ago and i have say that the gui it seems to run a little bit slower than the previous version but the apps looks to run much smoother than ever. What i want to say is maybe not worthing a much to look find a very aggressive optimization for the rom it self because except the feeling in gui the performance in apps is more important (for me at least..)
[Galaxy Ace II Android Development] ace2nutzer:
@up this is normal ... as i said: previous build was fully optimized ... that's why it was better for the UI .. but at the same time they was screwed up (broken code) because of 2 important missing flags ! :) - So don't worry, great speed for apps and fluid UI is coming back ! (soon)

[MENTION=6902149]Dr360r[/MENTION] new build is up ... :)
[Galaxy Ace II Android Development] Dr360r:
22:19 build: Poweramp installs correctly, Sound Recorder works correctly.
[Galaxy Ace II Android Development] shaqman89:
Interesting, this isn't set on yet on the build server. I'm not sure why I left it disabled, but on the next reboot, I guess I should give it a shot.

It might improve the R/W speed that's been one of the worst bottleneck here :D

---------- Post added at 04:53 AM ---------- Previous post was at 04:52 AM ----------

Finally :D

Thaat sounds like great news :)
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=6902149]Dr360r[/MENTION]

perfect !! thanks ! Then we've it !

So again [MENTION=5695278]ChronoMonochrome[/MENTION] haha :D next bad-ass flag is -fno-toplevel-reorder i had added that flag because of LTO Optimizations ... but as we can see, it was the cause of poweramp fails .... :)

Well now it's time to add ALL Optimizations with partially enabled LTO ... and lets see if everything will still work !!
[Galaxy Ace II Android Development] beardedpanda:
But first check twice if OS havrle a proper drivers!! ;))

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] ace2nutzer:
btw i don't have that AHCI option .. (but i've SATA) my laptop is simply too old ;)

But some other laptop/PC in the family her.. it believe i've seen that option in the BIOS :)

Well, actually it's compiling 13/05 with ALL optimizations .. even very aggressive .. there is even Graphite enabled .. and partially LTO (for target_arm for now .. ) so like always only those for better performance, no experimentals .. and so on ... basically i use only those from ace2nutzer kernel :)

Please test everything this time .... even amazon pics .. i didn't update webp sources .. but maybe who knows ... maybe works due of better code optimizations yet :)

Okay, so lets hope everything will work fine..... if so, what should i do as next ??

- Adding more LTO = better performance or

- webp source update = possibly fix for broken amazon pics ???
[Galaxy Ace II Android Development] Dr360r:
Phone is already fast. Better focus on webp for now.
[Galaxy Ace II Android Development] beardedpanda:
Yep. Webp for me is more important I think.

We should try fix any issues first and then focus on better performance. ;)

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] gepel:
+1 for webp. ,?
[Galaxy Ace II Android Development] Dr360r:
[MENTION=5840412]ace2nutzer[/MENTION] Build 160513: Poweramp installs, Amazon pics not showing up, Sound Recorder NOT recording (it doesn't crash, but it doesn't record the audio, though WAV option is gone for good; another recording app works).

[MENTION=7332124]beardedpanda[/MENTION]: i would need to install the OS again if i wanted to install the AHCI drivers. I'll keep that in mind if and when i'll switch to a 64 bit OS (Windows 7 or 10 most probably, but i've heard bad things about 10).
[Galaxy Ace II Android Development] beardedpanda:
Bad things about 10? Could you specify that?

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] shaqman89:
Well, there are some like privacy issues, forced update, etc.

But then I think windows 10 is quite decent compared to 7.

Ps: I'm using it
[Galaxy Ace II Android Development] beardedpanda:
Nothing new ;)

All is configurable and for me Windows 10 works better than other Windows OSes.

Forced update I think has it's pros and cons.

BTW: if I remeber right, telemetry in Windows was present since XP or Vista and it's called Customer Experience Improvement Program.

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] shaqman89:
I know :)

I'm just pointing out some reason why people says that they don't like it.

In my case, I agree that's windows 10 is one of the best that Microsoft has made.

* can't say that it's flawless though
[Galaxy Ace II Android Development] ace2nutzer:
Oh no ... Strange ... It was working .... it should be one of new added optimization or just lto ... Because during tests lto was disabled.

Will rebuild that app without lto
[Galaxy Ace II Android Development] Dr360r:
You can rebuild the single app without LTO?
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=6902149]Dr360r[/MENTION] can u pls test latest build with an working sound rec. App if it'll work at all ?
[Galaxy Ace II Android Development] Dr360r:
I've already tested it with ASR. It works.
[Galaxy Ace II Android Development] ace2nutzer:
I mean aosp sound rec app, from previous working build ... Not from play store
[Galaxy Ace II Android Development] Dr360r:
Ok, will do.

[MENTION=5840412]ace2nutzer[/MENTION] Installed 160513, removed app and then installed the app from build 160510. It still doesn't record audio.
[Galaxy Ace II Android Development] ace2nutzer:
Ok, then it's an broken lib ...

anyway i've started the build without LTO .. i hope it'll work.

In the maintime if u want and if u've time, u can try to catch the logcat starting from open the sound rec. app and then pressing REC. ... , then cut the log ... copy & paste here in the forum ... like i did for the poweramp app.

Maybe we can see which lib is broken :)
[Galaxy Ace II Android Development] Dr360r:
I've never done it, so i'll ask: how can i take the logcat?

[MENTION=5840412]ace2nutzer[/MENTION] by the way, here it is:
[Galaxy Ace II Android Development] ace2nutzer:
U only need to install the Samsung Drivers to your PC .. i.e. these are same drivers like u need in order to connect the Phone to PC for using KIES or MPT ...

Once u've installed the drivers .. u install this:

http://www.chip.de/downloads/c1_downloads_auswahl_62500184.html?t=1463146708&v=3600&

Then make sure in developer settings u've enabled: USB Debugging

and Enable Root for: Apps & ADB

after that, connect the Phone to the PC via USB. (wait 2 minutes)

then just open an terminal cmd window ... and type:

adb devices

u should see some numbers ... (serial number)

if u'll have other things, then post here.

otherwise, type:

adb shell

su

logcat

open the sound rec. app, press for rec. ....

u'll see in live the logcat on your screen ...

then just press cntr + C

this will abort tracking logcat ...

then simply Copy & paste what happened before open the app and after closing the app ....

this is enough ... i don't need the whole logacat :)
[Galaxy Ace II Android Development] Dr360r:
An error saying that WSAPoll can't be found in WS2_32.dll comes up if i input "adb devices" in the cmd of the downloaded PC app.

[MENTION=5840412]ace2nutzer[/MENTION] fixed. I installed another version.

[MENTION=5840412]ace2nutzer[/MENTION] Here's the one taked with your method. And thanks for letting me know how ADB works too! I love it!
[Galaxy Ace II Android Development] ace2nutzer:
hmm strange .. try to search by yourself for ADB + windows ... maybe there is missing smthg.

Usually it should work great ... have u installed samsung mobile drivers ?

btw: i can't see precisely what's wrong ... but maybe it's the lib libc.so or ffmpeg libs ( x4 )*

maybe u can try those libs from working build ....

*= search with the file manager: on system/lib: "ffmpeg" u'll find 4 libs ... maybe one of them ...
[Galaxy Ace II Android Development] Dr360r:
No, no, as said in the edited message the version i downloaded didn't work for me. I downloaded version 1.3.1 and it works fine. Read the edited message, i copied the log obtained through ADB and uploaded it as attachment.

I can extract the libs from the 160510 zip.

[MENTION=5840412]ace2nutzer[/MENTION]: Replaced the libs you mentioned and set 644 to all of them. It's still not recording (i talk and the needle doesn't move).
[Galaxy Ace II Android Development] ace2nutzer:
ok thanks for second log .. but looks same :)

U can also search for audioflinger libs .... or smthg like that ...

btw: on approx 17:00h the new build should be up .. without lto ... maybe it'll work :)

If u'll find the lib post it .. but don't stress u too much ... we'll find the hopefully last "bad-ass" flag in any way ;)

EDIT: OK ... did u also reboot the phone after replacing libs ??? (it's always needed)
[Galaxy Ace II Android Development] Dr360r:
Yes. I always do. It's become automatic to reboot after changing libs for me.
[Galaxy Ace II Android Development] ace2nutzer:
Yeah.... well lets hope coming build will work .. then we've fully working + fully optimized build ...

except of webp issue ;)
[Galaxy Ace II Android Development] Dr360r:
Sound Recorder still not recording. Poweramp installs.
[Galaxy Ace II Android Development] ace2nutzer:
that's really strange :S it's strange that that 2 different flags are the cause of non working sound rec app .. because it's same app .. same isse, but caused by 2 different flags ? Really strange.

Anyway the new added flags are 13 flags .. now i've deleted 7 of them ... :)

[MENTION=6902149]Dr360r[/MENTION] btw it's uploading ...
[Galaxy Ace II Android Development] ace2nutzer:
btw [MENTION=7332124]beardedpanda[/MENTION] or somebody else can also test builds when Dr306r is not online ??

There is latest build to test for sound recorder app ... if the peak meter will move when making some rumors :)
[Galaxy Ace II Android Development] Dr360r:
Sorry 4 being late, dinner time ;)

Tested latest build. Sound recorder not recording, Poweramp installing.
[Galaxy Ace II Android Development] ace2nutzer:
no problem ... :)

well, then next test ....

Ok... removed now 4 graphite flags + 2 other flags .. if it'll again not work, then i most probably i know exactly which flag it's .. but no hope that i'm right ...

anyway started right now to update webp from version 0.4.1 @ 0.5.0

That means overnext build (not the coming) maybe will have latest webp source .. and maybe finally will work properly ... lets see .... ;)
[Galaxy Ace II Android Development] lotrzyk0:
[MENTION=5840412]ace2nutzer[/MENTION] will you in the future do something to increase smooth/responsibility/performance?
[Galaxy Ace II Android Development] Dr360r:
@up: i think we're capping out on performance. Perhaps optimized LCD driver may improve things further but after that i think that we're done with major performance improvements.
[Galaxy Ace II Android Development] ace2nutzer:
speaking over latest kernel + 13/05 ROM .. it's almost already fully optimized on performance.

But there is some LTO missing on ROM-side that can speed up up to 30% i think.

As for the smoothness ... scrolling, 2D games etc .. i think there is still a lot to optimize.

btw: webp updated .. i hope it'll compile without errors later :)

[MENTION=6902149]Dr360r[/MENTION] the build is in some minutes up .. will u test before u go to sleep ? :)
[Galaxy Ace II Android Development] Dr360r:
Tested. Sound Recorder now records correctly in both formats. Amazon pics still not showing up. Poweramp installs.
[Galaxy Ace II Android Development] ace2nutzer:
thank u ... gn8 ! ;)
[Galaxy Ace II Android Development] Dr360r:
By the way i noticed one thing. Libwebp.so seems to be completely absent in the /system/lib folder, on all ROM zips, even 150714. I can find it only in the XXNA1 stock ROM image and it's named libwebp_android.so there. Maybe i'm missing something here... maybe it's labeled in another way.
[Galaxy Ace II Android Development] ace2nutzer:
hmm interesting found !!

Can u try (or tomorrow) to use that stock lib on latest build here ? to see what will happen ???

I'll search too ... anyway ... started compilation with new webp sources ... ;)

But i think it's included in libwebviewchromium.so ;)
[Galaxy Ace II Android Development] monstro78:
Thanks for your time and efforts.

I have tried 2 kernels. 1101_p1 and last one. I gave them 2 days each. They both can't keep oc above 1ghz (freezes and reboots). Also they have stability issues. Sometimes they are smooth and fast and sometimes not. Also after charging or after airplane mode the have wake lock cpu at min freq.
[Galaxy Ace II Android Development] gRaB@:
@up

don't use old versions, because it's dengerous to your phone ;)