yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
Squash post for all questions and problems:

Led u can disable over usual settings in cm + novathor app. U only can't disable it for full charged battery. (This is purposely, so not a bug)

Use always only software versions from the file "latest" from my ftp server.

Actually proper cm 11 build is only 13/03.

ALL the other builds are completely screwed up ! (As it turned out later...)

So pls just install again 13/03 like an update... It'll work, no need for clean installation.

Anyway don't forget to wipe all caches + format system ... Then mount system and flash in a row:

Rom

Kernel

Novathor app

Reboot System

Say yes to fix root

Boot up completely.

Reboot to recovery

Install gapps

Reboot system

For now this is best.

There is maybe low incall volume bug.. But u can work around it by simply pressing volume buttons.

And xposed will not work.

I'll build later new build, which fixes those 2 bugs.

Sorry for inconvienence
[Galaxy Ace II Android Development] Joline:
Thank you for this installation advice. This I would like to had yesterday... ;)

Do you mean xposed does not work at all with this rom/kernel? :crying:
[Galaxy Ace II Android Development] gepel:
[MENTION=5840412]ace2nutzer[/MENTION] mardon's gapps doesn't has problems with bookmarks..
[Galaxy Ace II Android Development] Culateralligator:
It doesn't for now. But it will with next update. :good:
[Galaxy Ace II Android Development] Joline:
Is there a combination where xposed is working?

As I mentioned, I'm using cm 20160313 and kernel 20160410 for now.
[Galaxy Ace II Android Development] Culateralligator:
Well, I'm using 20160409 ROM.

But as Ace2Nutzer said, it has some issues -which I don't mind (for now)-.

I preffer having Xposed with those issues... It depends on each one.
[Galaxy Ace II Android Development] ace2nutzer:
If u guys immediately want to have xposed working, then i can suggest to use latest build, so far only emoji in sms app doesn't show up. But i suspect there are even more things broken, even if we actually don't noticed them... In other words: broken code because of wrong optimizations.

But don't worry, i'll find the problem ;)
[Galaxy Ace II Android Development] Dr360r:
By the way this phone is a rock. It fell from a bike on concrete, the back cover opened and the battery went out. I grabbed it, put the battery back in its place and the phone is working as usual, no nicks, no broken touchscreen, everything alright.
[Galaxy Ace II Android Development] dimon130:
To use the SMS ChompSMS. Smilie was not there, but ... ChompSMS - Settings - customize - Emoji Style and select the smiley pack.

---------- Post added at 04:51 PM ---------- Previous post was at 04:45 PM ----------

Sorry for the flood. Stock programs do not use and ROM Ace2nutzer satisfied at 100%
[Galaxy Ace II Android Development] Culateralligator:
Agree with you.

My parents needed a cheap secondary phone for just some specific moments.

I bought them a 3 years old Ace 2 for 25€... but it's like a new phone. Everthing is almost perfect!

The phone was running horrible and his former owner didn't know how to fix it as it had crap stock Samsung ROM.

The problem is the firmware. But this phone, as you said, is a rock... and it hasn't that bad hardware. Just old.

My old Ace 2 has 4 years now... and I hope it lasts one more... :D

By the way... It's not bad to repeat it, so thanks for your work, Ace2Nutzer, Chrono, SergeyL, Polish, etc...

You are making me save my money. :D
[Galaxy Ace II Android Development] Tree4ever:
pls what ? :) - I don't see anything wrong. Why u want to use 300mA ? Default is set by me @ 700mA and is already Fail-safe.

I want to take care of the battery,because twice I had bad luck with it.
[Galaxy Ace II Android Development] Dr360r:
And mine too!

The internals look easy to service too (yes, once the warranty expired i opened it).
[Galaxy Ace II Android Development] Sylvinette:
Am I the only one here who install the ROM with an direct flash?

Like 2 days ago I clean install the ROM start from 0313 build with 0410 kernel and 0410 gapps (factory reset, dalvik, format system), and directly install 0331 without wipe or format system, and install 0411 without wipe or format system (or this is like an updating ROM). LOL is it safe? But right know I don't have any major issues. Emoji works, incall volume normal. Browser picture broken. Instagram issues. I didn't test Xposed.

Because if I don't start with 0313 build, all of them doesn't work.
[Galaxy Ace II Android Development] Joline:
Which "latest build"? cm or kernel? In case of cm, I've read that 20160313 was working with xposed.

Btw, how to detect if xposed is working? Is there just a problem during installation or creates boot loops or is it unstable?
[Galaxy Ace II Android Development] IAmLucky:
nice story lol, 3 years ago i bought my ace 2 for 220 euros... i know thats expensive... but prices are like that in my country, though after using cm13 i was thinking to buy a new phone... though ty for ace2nutzer and some people who suggested go back in cm 11, phone is fast!
[Galaxy Ace II Android Development] Culateralligator:
Glad to know you liked my novel lol

On 2012 I spent 240€. :silly:

And it was the cheapest price you could find.
[Galaxy Ace II Android Development] Dr360r:
I'll give my contribution to this little OT.

I bought it for 180€ at the end of 2013. The next year saw it fell to 120€ in the same shop. Yes, i was a little gullible, perhaps. Could've waited a little more.
[Galaxy Ace II Android Development] ace2nutzer:
Well it depends how it kisses the ground ;) But u're right, it's very robust :)

Yes i believe that, but i can make u sure it's not because u charged all the time with 700mA :) It's most likely u had a defective battery or u just grabbed an fake battery ... then u've only bad results with the battery lifetime.

Also u'll NOT be able to prolunge the battery life by simply charging with less than 700mA .... usually Li-Ion batteries (even the worst ones) are able to charge without problems @ 1C .. that means for the original battery it is: 1500mA charging current :). But it'll decrease its capacity after 2 years of some percents ! But using up to max the half of capacity for charging current will not decrease its capacity at all .... that means even 750mA is absolutely OK .. but 750mA is not available .. so we're using 700mA.

Of course after the 2 years charging with only 0.5C will anyway loose some percent of capacity (but much lesser) because of other factors like: if it was re-charging almost every day; and if the battery stayed too long time at Charged Level under 50% or over 50% ... that means too long fully charged or too long @ 2 % or so ... this is very painfully for the Li-Ion battery.

And temperatures over 45° C is also not very well.

So to have even after YEARS almost 95% - 99% of its Capacity u should keep the battery constantly @ 50% charging Level and keep it all the time @ 20° ;)

As u can see, the things that really hurt the battery lifetime, (such scenarios) u'll have it almost every day ... so just forget about this and buy proper original SAMSUNG Batteries :highfive:

installation gives an error .. and that's it !

Same for me :laugh:
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel is Up !!

Changelog:

20160412:

Re-Enabled KALLSYMS (for better stack backtraces)

Compiled with -Os (Code-size reduction)

Works faster and smoother for me :)
[Galaxy Ace II Android Development] Dr360r:
Out of curiosity, can you act on the GPS through the kernel (i.e. tweak it)?
[Galaxy Ace II Android Development] ace2nutzer:
Maybe yes, but i never touched it, why ? :)
[Galaxy Ace II Android Development] Dr360r:
For Optimization's sake! :laugh:
[Galaxy Ace II Android Development] ace2nutzer:
hehe :)

btw latest kernel is working better or not ? ;)
[Galaxy Ace II Android Development] Dr360r:
Yes, definitely smoother scrolling. But, as i always say, the kernel would work best if everything was squeezed out of the ROM.
[Galaxy Ace II Android Development] ace2nutzer:
Great :)

Of course ! i was testing first the new binary code optimizations on kernel ... because it's faster to compile the kernel + test as the ROM.

Usually if i found out it works better, then i try every time to apply same optimizations to the ROM as well :)

So actually compiling the ROM with new Optimizations. I'm afraid :D
[Galaxy Ace II Android Development] IAmLucky:
Hi, i want to report small bug in latest 2016/04/11 rom, so i am using NetGuard application, and in settings there is tab 'backups' and 'advanced options' when i click any of them app force closes, i gave LogCat to developer and he said that its ROM problem, so maybe some optimizations causes this? thanks!

Post url: http://xdaforums.com/showthread.php?p=66337653

LogCat: https://www.dropbox.com/s/3kvvgtk542valun/logcat (1).txt?dl=0
[Galaxy Ace II Android Development] ace2nutzer:
Probably Yes :) - U can try with 13/03 if it doesn't FC ... if so, then u know it, it's really a ROM Issue caused by optimizations.

Honestly i don't need any Logs for now... if i'll need any logs i'll inform u. But for sure not on that Build u're using, since i stated here that it's probably a screwed up Build. For now only 13/03 is fail-safe compiled without any experiments on Binary Code.

Actually i'm still fighting to clean up the whole CM Sources and applying only fail-safe optimizations ... when i'm done, it'll for sure running faster and even more fail-safe / more clean code than original CM Sources itself :)
[Galaxy Ace II Android Development] beardedpanda:
Hi ;)

On 31/03 and up builds:

I couldn't send videos through Messenger app. It gives error that message can't be send.

I must add google, account two times in a row. (Two factor authentication enabled) On the first time when I got to the step two (code authentication in browser) wizard just close itself without any message.

The second try fully working.

On 13/03 build above bugs aren't present. Everything is working.

On 13/03 and up builds:

SWYPE keyboard doesn't work in Polish language set as system or input language (other languages are working)

I couldn't post the video on Instagram it gives error about poor Internet connection.

Is below Installation metod for test builds is correct?

1. Wipe cache and dalvik cache

2. Format system

3. Mount system

4. Flash test build

5. Flash Kernel and NT App

6. Reboot

7. Flash gapps
[Galaxy Ace II Android Development] ace2nutzer:
@up

everything Right ! - Thanks for Report :) - I'll try to Fix all Bugs on next Releases.
[Galaxy Ace II Android Development] Joline:
[MENTION=5840412]ace2nutzer[/MENTION]: Just a question regarding battery charge, would it be possible to define a min level for charging? Means, there is an adjustable level (e.g. 80%). If the battery load is above of this level, the battery charging will be switched off.
[Galaxy Ace II Android Development] Dr360r:
Build 160414: low incall volume bug still fixed, but amazon pics are still not showing up and emojis still not showing up as well.
[Galaxy Ace II Android Development] beardedpanda:
I tested Amazon pics bug on 13/03 build. The picture was glitched. After I turn off javascript in web browser (stock ofc) the picture wasn't loaded (blank space)

So I suggeest looking for optimisations that handling javascript. Later i try test the latest build.
[Galaxy Ace II Android Development] ace2nutzer:
hmm not really, only if i rebuild the kernel with this Setting u said. but not adjustable by user. (IMHO not really needed feature).

But u can use the APP TASKER .. there u can configure it that it warns u when battery level reaches 80%.

Nope, it's a bug with libwebp.so ... CM Team still uses for some reasons an very buggy and outdated Version of this Lib.

I've seen on Google Source they have latest Version .. and probably fully working ... but it needs some patches to make it working with CM.

Maybe when i've time i'll try to update that lib.
[Galaxy Ace II Android Development] Dr360r:
Maybe you can release the lib alone, and we'll replace it and test the good one...
[Galaxy Ace II Android Development] ace2nutzer:
i can't build single libs, also it's not worth it to release only one lib...

It'll be a complete package with updated CM Sources as well.
[Galaxy Ace II Android Development] Dr360r:
What are you gifting us with this time, oh Great Developer?
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel is Up !

Changelog:

20160414:

Reworked binary code optimizations from scratch

Now it's really highly optimized .... and still 630MB RAM :D

@up

i'm just trying to show all people around the world that it's almost not needed to buy a new Phone if it's old or if it has apparently low-end-hardware ... nothing more :)
[Galaxy Ace II Android Development] Dr360r:
Well i think you definitely need to implement these new optimizations to the ROM. It's even faster now.
[Galaxy Ace II Android Development] Culateralligator:
Run and tell Samsung!

Oh, wait... They're wanting us to throw away the phone and give them 150€ for a phone that doesn't run better than this...

:D
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel is Up !

Changelog:

20160415:

Re-added missing small optimization

Well, i hope now it's OK .. :D I had just forgot to re-add an small optimization after i had rebased the binary code optimizations :)

So, for now that kernel is fully optimized. (fail-safe-code, clean, high-precision) Maybe later i'l check if there is something to correct on Network and Ramdisk :)

------------------------------------------------------------------------------------------------------------------------------------------------------

Also an Question if somebody want (or is already) to use the Ace2 as an Multimedia / Gaming / GPS - Device.

Why i ask this ?

If so, then i can make an extremely highly optimized kernel for mentioned purposes ... the only difference between normal one ad this one is that it'll be compiled by adding flags:

-flto -ffast-math

What is that ??

LTO = Link Time Optimization (u can google it lol )

fast-math = faster floating Point .. means math operations are faster .... (calculations)

Sounds Great ? :)

So what is the drawback because u shouldn't use that kernel with high sensitive important Data on your Phone, or use this for daily usage as an important Phone where u can make for i.e. an emergency call and so rescue the life of some person or what ever very important ??

Because this kernel compiled with -flto and -ffast-math is experimental and .....

less precision on math operation

maybe not 100% stable

possible loss of data

possible it can ruin your Filesystem

and and and ...

That's why u should it only use for testing purposes and for Multimedia.

IF somebody is interested just write a post with #turbo-kernel
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=6902149]Dr360r[/MENTION]

I install 14/04 build in normal way (not with format /system style etc.):

1. Factory reset/wipe all data

2. Wipe cache

3. Wipe dalvik cache

4. Flash Test build, kernel and NT App

5. Full boot

6. Restart to recovery and flash gapps.

Flashing and start up manager on first boot work well and smooth but option to add existing google account is missing from Adding Account screen. The only option availabe is to create new one.

I try to keep testing new builds with that method of installation.

Below I provide some sort of changelog.

On 14/04 build:

- emojis start to show up

- SWYPE only working in Polish language when Google Keyboard from Marketplace is in use

- Amazon pics partially working (some of them showing up normally some of them not), enlarge mode doesn't working at all

- Instagram nad Messenger video bug still persist

- Found bug in stock keyboard settings -> When you try import a dictionary file and then tap a additional dictionaries the setting menu will close without any error showing up (found and persist form 13/03)

- 2 bugs found (on 13/03 build) in official XDA app (XDA Premium) [currently testing on 14/04 build] -> Notifications form app doesn't show up, Adding attachment in reply for post generate in text field some BBC code fields that instert files form enclosure second time to the same reply. So files are double if not deleted by hand.

- low incall volume - I not tested that yet
[Galaxy Ace II Android Development] ace2nutzer:
instead to do useless

because it's automatically already done if u do "wipe data" ..

it's better to format system .. and then mount system. ;)

As for Bugs, thanks again :)

U'll find hopefully better working ROM in around 2 Hours :)

Compiled with default CM binary code optimizations.

So i hope it'll Fix emoji ....
[Galaxy Ace II Android Development] nikolas1274:
#turbo-kernel

Do you mean that there is possibility to brick our phone or that it will reboot, crash or something like that? and we can recover just flashing the stable kernel?
[Galaxy Ace II Android Development] Dr360r:
If faster GPS means instability and unreliability, then it's a big no no, imho.
[Galaxy Ace II Android Development] Joline:
Tasker is not an option because this will NOT STOP the charging of the battery. The idea behind that is to not full charge the battery, only to a certain limit.

It is well know, that (lithium) batteries have a longer lifer if they are not fully charged all the time. Coming original from IBM, their business notebooks (and now Lenovo) have such very nice feature (see also 'How can I increase battery life?'). And verifiable the batteries have a longer life.

If inside the kernel there is a possibility to adjust the charge current, I would expect that there is also the possibility to set this current to 0, if the max. (desired) charge limit is reached or the level is not below a min. (desired) charge limit. And yes, it would be necessary to have 2 settings to have a certain hysteresis.

This would be a nice feature, unique to each other. ;)
[Galaxy Ace II Android Development] shaqman89:
I remember ace2nutzer kernel has already taken this into account, and provide the most balanced defaults in most use case. (It is a simple, lite kernel, indeed).

If you really need that feature and more customization, use CK kernel.
[Galaxy Ace II Android Development] IAmLucky:
TBH i tried this trick... and battery lasted twice shorter than overcharging it... I had that charging cycle set to 98-100% after that, it would not charge, and battery was just TERRIBLE. Today i am charging phone as always - over night. And it lasts normally like always. (battery is still original)
[Galaxy Ace II Android Development] ace2nutzer:
U can never ever brick the phone by an wrong kernel ... u'll only have at worst case an Samsung Logo Boot-loop .. which u can fix it by simply flashing an ODIN Kernel. :)

I think u'll not have such big problem with FC or Random reboots all the time ... it'll work fine, but there is no warranty that it will run perfectly clean like the normal one. But it's also possible that u never will have problems and everything will run faster. - Personally i wouldn't use that turbo-kernel. But for an second Phone or what ever why not ? - btw: some months ago the default kernel here had such very similar extreme optimizations.. and AFAIK nobody had problems :) Speed was of course bigger. But (unfortunately) i'm the sort of person that always want to have everything perfect lol :highfive:

Of course it's better for the lithium battery don't stay at very low or high charged level.

But IMHO this is only useful for Notebooks because most of them are operating all the time with plugged power-cable. While the Phone u do it fully charge, and then immediately u'll unplug the cable and use it.

This is a BIG difference compared to Notebooks.

Also i've to mention that this is maybe only useful on phones with very high Capacity such as 3500mA batt. then it makes more sense. But here on the Ace2 with the original battery with only 1500mA it's kinda ridiculous.

And if it's old, then it's even only 800 - 1000mA :highfive:

But some time ago i did implement an feature in NT-APP in order to disable Charging ... this was for me very useful as i had to work with the phone connected to my laptop for many hours on ADB ... and the battery was of course all the time @ 100% .. so i just disabled Charging (Charger OFF) at 90% and i was able to let it connected to USB Port without charging at all. The Only drawback is that it suck 150mA from the battery (same like native cycle charging), even if it's connected to any power sources. Just for comparison: normal IDLE with screen ON is only around 100mA.

btw2: right now i remember me that there is still that feature integrated in the kernel ... i just removed it from NT-APP, since many users had problems with this very buggy feature. - if u want to use it anyway, u can find interface on

/sys/kernel/abb-fg/fg_cyc

U suggest to use the app SMANAGER .. there u can create widgets script and so u can manage it to enable or disable cycle charging very easy ;)
[Galaxy Ace II Android Development] nikolas1274:
#turbo-kernel

Well I would interest to try such a kernel if you ever built one

Sent from GT-I8160 using tapatalk
[Galaxy Ace II Android Development] ace2nutzer:
Yes, in next days i think. ..

Also forgot to mention, there is even still the feature implemented for FSYNC .. such as ON/OFF/DYNAMIC

u can find in:

sys/kernel/fsync/mode

Default is ON (fail-safe)

OFF is very dangerous!

and DYNAMIC improves I/O speed like hell, but it's very known that even for an single APP FC or Random reboot that it'll

immediately loose some data or destroy the Filesystem - usually /data or sdcards !

But u can "Fix" it again, by simply format /data and sdcards ... and then just restore the cwm backup !!!

And as long there is no one FC or random reboot, nothing bad will happen ;)
[Galaxy Ace II Android Development] Dr360r:
But ROM wasn't as fast then ;)
[Galaxy Ace II Android Development] Joline:
This is exactly my use case! The phone is connected some hours via adb and I want to stop charging. If there is a possibility to use this feature even manualy (or trigger by tasker ;) ) this would be absolutely sufficient to me. :good:

I'll check your proposal.
[Galaxy Ace II Android Development] ace2nutzer:
Just go to novathor settings open energy/power section and check "Charger OFF" ;)

Fo re-enable charging, just uncheck it, works on the fly !

Plug/unplug the cable is even not needed :)
[Galaxy Ace II Android Development] Culateralligator:
Is Xposed working with 20160415 ROM?

BTW #Turbo kernel
[Galaxy Ace II Android Development] ChronoMonochrome:
Any justifications? I'm using these optimizations in a kernel for a long months without any drawbacks described above. But I agree, that applying these optimizations to ROM is not 100% fail-safe, and needs much testing, benchmarking etc. But I would suggest not to use LTO on too low version of GCC, because lto-wrapper is entirely different in various GCC versions.AFAIK, First GCC compilers with LTO support didn't have good handling of this optimizations, so depending on GCC version used you can either improve performance or make it worse than it was without LTO.
[Galaxy Ace II Android Development] ace2nutzer:
Okay, it's just an Experiment... So i don't care much if it'll even work slower later :)

Is GCC 4.8 good enough for LTO ?
[Galaxy Ace II Android Development] Dr360r:
I love how you guys are working together for a common goal. [MENTION=5840412]ace2nutzer[/MENTION] by the way build 160415 hasn't solved the emoji and amazon problem yet (this one hasn't been fully solved; the screen is still partly blurred but now the item pics are showing).
[Galaxy Ace II Android Development] IAmLucky:
What just happened O.o how is this possible? It hang like this, had to stop and redownload.
[Galaxy Ace II Android Development] beardedpanda:
[MENTION=5840412]ace2nutzer[/MENTION]

On 15/04 build:

Emojis stop working. On previous build they're working normally.

Cam recorded videos can be send through Messeneger now (Messenger bug)

Amazon pictures stil working partially but 360 degree view work all right.

Rest bugs still persist.
[Galaxy Ace II Android Development] IAmLucky:
can u check if twitch app works?