yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] zarebcn:
Hi, my offline charging doesnt works with your last kernel. The last one that works for me is one of the latests of 2018. I have checked the 'ramdisk' partition on a terminal and it says size 15.7 but used 4.4 not 4.7 like to you and i have checked 'yes' when i installed the kernel. Also the 'res/images/charger' folders with the icons are in the root not inside 'ramdisk' partition. Inside 'ramdisk' partition theres a folder 'charger' that has battery icons inside too. The permissions for the folder 'charger' inside 'ramdisk' partition are 'rwxr-xr-x', i see that nothing is like you say that it should be, what i can do? i have latest ROM and sdcard only kernel.

edit:

I FIXED it, for all people that have the SAME problem as described above by me do this:

1- with a root file explorer (i use Root explorer) go to 'ramdisk' folder, if inside this folder you see a FILE called 'charger' and a FOLDER called 'res' you are fine if not follow steps 2,3,4.

2- copy the folder 'res' from the root (it should be there if its not inside 'ramdisk') to 'ramdisk' folder.

3- if theres a FOLDER called 'charger' inside 'ramdisk' delete it.

4- go to system/xbin and copy the file 'charger' to 'ramdisk' folder.

5- DONE, enjoy offline charging ;)
[Galaxy Ace II Android Development] ace2nutzer:
@ up

Congratulations that u fixed your own issue !

The Charger Binary and charger images are in all 4 latest Kernel Variants already in the /ramdisk Folder.

So once u guys flash the latest kernel, everything should work fine. No need to mess it up with any files.

It works even without "advanced root" enabled in the app. No clue why it didn't work directly for gepel.
[Galaxy Ace II Android Development] zarebcn:
it didnt work for me as i stated in my post, i flashed last kernel several times and offline charging was broken and the binary wasnt in 'ramdisk' folder. why it happens? i dunno but im very sure that people with broken offline charging is having the same issue as me or very similar
[Galaxy Ace II Android Development] bla.tiga:
Hi ace2nutzer

You mention to download CM11 , but i read your instruction, there is no instruction to install them, can you share the instruction to install cm 11+ your kernel,

Since im in jellybean, it liked very outdated android
[Galaxy Ace II Android Development] ace2nutzer:
Installation starts with step 2.
[Galaxy Ace II Android Development] bla.tiga:
Oh okay i missread , my bad... Im sorry

I'd like to ask, if i choose from the start xxx_sdcardonly , and the next file should be paired up with everything xxx_sdcardonly??

Like that?

And one more thing, its better to repartition or i swap the ext sd card as internal?? I look in kernel option , there is option to swap it
[Galaxy Ace II Android Development] ace2nutzer:
No Problem. :)

Yes !

If u want to install many Apps or don't want to run in out-of-space condition, then it's better to use sdcard_only + repartitioning.

Otherwise it's sufficient to use it with normal kernel + repartition .. and then it doesn't matter if u insert sdcard or not... while with sdcard_only it's mandatory to insert sdcard ... otherwise there's no usb storage at all ... that means camera app will crash and so on.

Other option is to use normal kernel + rapartiton .. and sdcard inserted and optional u can swap it .... but this variant doesn'T work 100% properly will al apps ... as some apps don't like it if the sdcard is swapped.

Anyway if the internal usb storage (sdcard0) gets full, then u can still move some apps to the real sdcard... in Settings ---> Apps.

In any case, i do suggest to repartition the internal flash memory because otherwise a lot of space is wasted and not used at all.

As u can see there are a lot of variants, it's your decision what will fit best your use case of the Phone.
[Galaxy Ace II Android Development] bla.tiga:
Okay since for now i don't have additional sd card , can i flash with the normal repartition , then if i want to repartition later , i need to restart whole step, or just step 3 (the repartition step)

And can we revert to normal repartition condition? If we on repartition condition?
[Galaxy Ace II Android Development] ace2nutzer:
To switch between the repartitions layouts, u need to do a cwm backup , the backup should be done to the real sdcard.

Then perform as usual step 3 .. after that, power off the phone and reboot to recovery .. then restore your cwm backup and all apps and settings are back.

Both partitions layouts should be even compatible with higher android versions, .. if not, there are different layouts with bigger system partiton u can find here in the forum.

However, if u want to go back to stock rom, then it's needed to flash a 3-parted stock rom with ODIN .. in order to restore the needed stock partitions.

Last one for sure u never want it, once u feel the great performance of a custom ROM :highfive:
[Galaxy Ace II Android Development] bla.tiga:
I've bug like the screen blurry some time, what the suggestion to eliminate the bug
[Galaxy Ace II Android Development] :
Hi guys...

I got here a bad news... :(

After 5 (or 6?) years my Ace 2 completely dead :crying:

I can't test new builds anymore... And also new Android builds.

That was a great experience with your ROM [MENTION=5840412]ace2nutzer[/MENTION] :good:

Now I got a J7 Pro... But I will never forget what you have done for this ancient device... which is great...

FYI: It is in my Zenfone 2 box, which my brother broke it after only 2 months of use from 4th floor ???
[Galaxy Ace II Android Development] ace2nutzer:
Sorry for the late response.. i didn't notice ...

using latest kernel ?

otherwise u can try this:

1: wait for kernel update (i'll try to fix that)

2: keep the phone warm .. around 20 - 25° C should cause no issues.

3: use lowest LCD Freq .. (A2N Kernel control app or use terminal emulator or ADB)
[Galaxy Ace II Android Development] bla.tiga:
How to use command in terminal emulator to set lowest lcd freq
[Galaxy Ace II Android Development] ace2nutzer:
su
echo 1 > /sys/kernel/mcde/lcd_clk

After every line press enter and grant root access.

Note: after reboot u've to repeat this.
[Galaxy Ace II Android Development] bla.tiga:
Thanks man i'll try...
[Galaxy Ace II Android Development] Sidebandit:
First off great to see development continuing on this ancient device. Many thanks.

Issues found, offline charging as described by other users in earlier posts. Ramdisk folder empty. I tried moving the right files into RD folder with correct permissions but no joy. On reboot the files are removed. I have 2 a2n apps - demo and purchased one, is it safe to delete demo a2n? Anyone using Art?

Update [MENTION=5840412]ace2nutzer[/MENTION] The phone does charge offline but no charging graphics. When fully charged softkey lights come on. Advanced reboot is enabled in demo app + Dev options.
[Galaxy Ace II Android Development] ace2nutzer:
Sounds painfully, i've no clue whats wrong with some phones .. for me i've 2 ace 2 phone .. one with stock ROM and one with CM11 and on both it works perfectly the offline-charging.

Yes of course, but probably u'll need it. there are some options that aren't available in full-version ... so it's better to keep them both.

It cause no problems, also both apps are very small, almost no cost of flash or RAM Space.

U can try if it works at all, but probably it'll not. It's not well supported on CM11. In a case u try and it doesn't work, then just set back to dalvik and reboot to cmw and wipe dalvik/art cache ... then everything is normal again.

Yes it's normal with the softkey .. but it's not normal that u don't have the battery animation .. really strange thing indeed.

Kernel + App update incoming .. but i doubt it'll fix lpm for u, i think it's caused by something else like previous flashed packages ... maybe some custom repartitions layouts or what so ever.

EDIT:

Also PLLDDR OC Will not work without working /ramdisk.
[Galaxy Ace II Android Development] Sidebandit:
Thanks for quick reply. I tried a earlier version of this rom/kernel 1/2yrs ago but went back to stock using 3part stock. Recently reflashed the latest. As for Art i remember now the issues i had with Nova + Gapps. Ramdisk. I did another clean install and repart and the results are the same. I looked at boot log and its states Ramdisk cannot be created because of invalid argument. Maybe all the years of flashing roms + kernels on the Emmc??? I will try the earlier 12/18 kernel again.

updated.

Tried earlier kernel and also did a clean repart - install from scratch from Odin 3 part stock then instructions from OP to a2n. No change. There is a risky procedure with Odin that would probably fix a problem due previous flashing or re parting - corruption, which worked on a s4 mini and s2 but as this phone was gifted to me....... The phone works well enough without the Ramdisk. I did manage to pickup another ace 2 for £15 which should be here by next friday so... all's good :)
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel & App Update for your immortal Ace 2 :D

Changelog:

Kernel 20190619:

GPU: fixed a bug in dynamic_down_threshold logic

MCDE --> LCD's: updated drivers, improved stability especially for S6D Model (should fix the blurred screen issue)

fixed lags caused by MCDE/LCD

CPU --> conservative_gov: updated up and down thresholds to reduce lags caused by the governor itself

Installer: fixed issues with /ramdisk partition that caused Offline-charging (LPM) and FSB/DDR (PLLDDR) OC not to work properly

Reduced feedback latency

More smooth

A2N Kernel Control V6.5

Audio --> Headphones: added digital gain control

Screen: removed LCD Freq Control (redundant)

CPU: removed suspend_max_freq limit (redundant)

Like always, flash and enjoy :cool:

[MENTION=7264663]Sidebandit[/MENTION] [MENTION=6888345]bla.tiga[/MENTION]

Hi Guys, Check this Update ... i think it should fix your issues! :fingers-crossed:
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] Many thank you's for your latest update. Since my previous post i recieved my 2nd Ace 2 which installed cm11 no problems at all. The Ace 2 i had problems with i downgraded to latest stock with a2n kernel. No problems with either device ?

I will be trying A2N Kernel 20190619 later.

Thank you
[Galaxy Ace II Android Development] bla.tiga:
Awesome....
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] awesome work. Just a couple of queries/questions: A couple of years back I used a 2x version of chrono kernel on stock with the Abyssplug gov which emulated multicore switching.. Would this be a beneficial add to this kernel? I have 2 s3 mini's same SoC 4.4 - 5.1 and this Gov works well switching off one core on low load.

2nd question the GB ROM on your server is that just normal 1 part stock?
[Galaxy Ace II Android Development] ace2nutzer:
Thanks!, It wasn't emulated ... it was real.. but it turned out that the benefit is almost Zero, but it gives worse latency feedback and if bad programmed, the only one core would increse freq too fast which results higher cpu voltage ... means less efficient in power consumption.

In other words, both cores online with balanced load, is more efficient than one core heavily busy.

CPU hotplugging only makes sense on machines with more than one CPU. Ace 2 only has 1 CPU but just 2 cores.

On a big.LITTLE architecture like on the S8, with 2 x 4 core CPU's, it would make sense to power off the big CPU, but unfortunately it doesn't ..

Because of Hardware related issues.

Yes, but i don't remember if it's only one part ... because it's zipped ... so u've to unpack and see.

It's for flashing with ODIN ...

and btw, it's quite old and not reccommended for daily use of course, but for fun, to see how much android changed over the years, i think it's cool to flash and check this.

It has only small improvements, but some cool graphical changes made by me ... the 2.3.6. GB ROM was the very first Android ROM i ever customized .. but it still worked as fast like the CM11 here, because it's just older android and very small OS, small Apps, low ram usage and so on. It was good times.. hehe :o
[Galaxy Ace II Android Development] Sidebandit:
Thanks for the Gov info i will test out others on the S3 mini.

Gingerbread, maybe. The ace2 i had issues with was left to me so at some it would be nice to return it to the boxed state again. The issue with that getting the original BTU rom. I do have the GB 3 part rom.

Question: ro.config.low_ram=true flag. Im guessing this is pretty much covered in your kernels?
[Galaxy Ace II Android Development] ace2nutzer:
I forgot to mention that if u're on 4.1.2 or 4.4.4 then u've to flash first the 3-parted GB ROM .. then u can flash the ace2nutzer GB ROM.

Nope :D This is a low ram config flag for the ROM .. not the kernel. Memory management for ROM / Kernel are already optimized, but this flag isn't set because many users didn't like the "lite" version of the ROM and some Apps. It may effect also how web sites will be shown.

U can just add it to /system/build.prop, save and reboot the phone to see if it works better. (Only for 4.4.4 or newer.)
[Galaxy Ace II Android Development] Sidebandit:
Yep, so happens i have the russian 3 part gingerbread.

low_ram config flag, a dev made a flashable zip which added the line in bp. I did flash it as its easy to undo if needed. Difficult to tell seems to be more free ram..... placebo?

My understanding it came about when google wanted the min spec of kitkat to be 512mb ram. It would appear that Android go is a futher extension of this?
[Galaxy Ace II Android Development] ace2nutzer:
Why not simply open CM FileManager in root mode and simply write by hand? - So no need to fill the phone with almost useless apps.

Also if something goes wrong, u can still boot to recovery (cwm only) and then connect to your laptop running ADB ...

by entering in ADB the following u can directly edit the build.prop, save and reboot:

nano /system/build.prop

(nano is a gnu c++ text editor)

It should be real, as is said before it's a real and valid flag for 4.4.4 to reduce memory footprint.

Yeah and ace 2 has 768 MB RAM .. so it wasn't very required to use that flag by default ... but of course it can't hurt much, so it's good idea to use it.

Yes Android go is for low-end Devices like the Ace 2.

btw: for what u need "kernel audiutor" if u've the full version of a2n app ? :D

According to the Screenshots in Play Store, there's almost no benefit, except the ability to adjust the minfree values .. but this is dangerous and can harm your phone performance and stability a lot. !

I've already spend countless of time to try to find out better values than the orginal CM11 Values .. and came to the conclusion that the original values are already the best.

That's why it's even not present in a2n app. ;)
[Galaxy Ace II Android Development] Sidebandit:
As for the low ram flag my bad, it was a flashable zip not a app and I thought it applied other settings as well buildprop.

Yes I have full version of a2n app. Kernel Audit is one of the better android apps available not only for tweaking but for looking at values on the fly like live CPU usage and access to initd - buildprop from one place. In this instance to double check min CPU value 200mhz in powersave profile against settings/performance which said balanced. Does what set in the a2n kernel override settings/performance settings or other way round? Kernel Audit setting reads min CPU freq 400mhz which corresponds with the balanced profile and not powersave which I chose in A2n kernel app. Sorry for confusing post hope the pics clear things up.
[Galaxy Ace II Android Development] ace2nutzer:
OK, but did u check what the script does ? - Never flash anything without to check what it does or change.

Yes A2N App overrides the CM11 Settings. Anyway, the Performance profiles on both ROM and App are the same .. they set the same Speeds.

But after boot, if u change to performance in CM Settings, then it'll override A2N App Powersave mode of course.

Note: A2N App Settings will be set after some seconds after the Phone is Up ... (after u see the home screen + approx 20 secs.)

As for min CPU Freq, 200 MHz Step is only used on suspend (e.g. playing music with screen off). The Kernel automatically updates the Value every time u turn screen on or off.

The Reason for this is because it gives bad response and causes lags with 200 MHz ... with 400 MHz no issues.

And with screen OFF, we don't care about lags lol.

If desired i can add a choice for min CPU Freq of 200 or 400 MHz in the App on next Update.

min CPU Freq of 200 MHz is always used on suspend of course.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] android low_ram patcher zip nope. I was unaware of Google's low ram optimizations. in KitKat + buildprop low_ram flag. At the time I had a galaxy s3 on 4.3 which my version never got KitKat. I went on to LP on other phones. There was controversy over this move by Samsung as KitKat was 512mb min and the S3 had 863mb anyway.......

Min value of 200mhz would be great! My rom is lighter, some apps replaced and uneeded apps deleted. Less stuff running.

Mali MP400, I've noticed in some supported kernels use apps that tweak Mali buffer size and memory used, does these setting make a difference?

Thanks for all the info
[Galaxy Ace II Android Development] ace2nutzer:
The base load isn't the problem, it can stay most of the time in IDLE @ 200 MHz, The Problem is that the phone needs at least 600 MHz to work smoothly when playing some very simple 2D Games. So it's configured that it goes very quickly from 400 to 600 (min load 70%) ... but 600 to 800 or 1000 it'll go when the load is at least 95% for max efficiency. (100% is also possible, but will lag)

And by default (programmed by me) from 200 to 400 it uses the default load of 95 % for energy reasons.

So with screen OFF as i said before 200 MHz Step is also used ... that means with screen OFF it stays most of the time at 200 Mhz .. when playing music or even when streaming Audio over wifi ... which results in lowest power consumption. (if it still can stay @ 200MHz when streaming over H+ Network .. i can't say, didn't test so far)

So to make use of 200 MHz with screen ON, without to lag isn't possible ... even with adjusted up_threshold to a very low value to increase freq as soon as possible ... in addition isn't possible to hold the freq at 200 MHz with screen OFF when we stream audio because of the aggressive values ... so it'll run all the time @ 400 MHz or even 600 MHz.

If u don't care about lags or bad response time, then u can just try first if u like that...

use ADB or terminal emulator like always ..

echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

It's not needed to set it also for cpu1 .. because it's done automatically.

in addition u can even try to force 95% instead 70% for the 400 MHz Step in order to save more power ... but it'll cause additional lags:

echo 95 > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
echo 62 > /sys/devices/system/cpu/cpufreq/conservative/down_threshold

And accordingly adjusting the down_threshold for the 600 MHz Step ...

Note: if needed u can use the 2 lines for the powersaving with init.d .. then it'll be set on every boot.

But the line for 200 MHz will be overriden again after screen ON.. so it's only for testing for now for u.

The default profile "Powersave" is programmed to save power but still tries do not lag .. so simple 2D Games or watching a YT- Video should run smoothly

No, it's redundant .. as the best values are already set in kernel.

Mali GPU memory isn't pre-allocated in order to save ram .. .because we don't have much of it. Otherwise it would improve 3D performance.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] Thanks for your all your effects, l'll be trying out those cpu settings later. Does this also apply to the Mali frequency? I mean is 450 the lowest?

GPU Mali. So as far as ram/memory is concerned its like many laptops not dedicated? My laptop has an integrated intel graphics with no dedicated video ram it uses part of the system memory and has a fixed limit but is variable between min/max. Can the Mali min/max ram + freq be user controlled?
[Galaxy Ace II Android Development] ace2nutzer:
No Problem, it's nice to discuss about technical things. :)

No, GPU is something else.. it has its own min/max freq, thresholds and Voltages.

Of course it's possible to use lower Freq for min GPU.. but if u read carefully the following explanations, u'll understand that it doesn't make much sense.

450 MHz sounds high, but it's the most efficient freq. Because it works stable with the min stable voltage.

Also it'll switch as late as possible to higher step, since most of the graphical things can be handled already by min freq.

As u can see in the app there's 0/225/450 yes, for min gpu freq. All 3 values are used as min.

How it works:

450 Mhz is used for APE/DDR OPP 100% (Graphic + RAM BUS speed is 100%)

225 MHz is used on OPP 50% (the half speed)

and 0 MHz is used when the LCD doesn't need to update any pixel .. which is the case when u're looking a picture for some seconds.

Now u're asking u what decides when to use which OPP states ...

Screen ON:

400 MHz --> OPP 50%

600 MHz or higher ---> OPP 100%

Those are hardcoded and forced by CPU OC Driver.

Screen OFF:

same like with screen ON, but:

200 MHz --> OPP 25% (lowest value)

Also there are some OPP requirements for some cases ... that forces to use 50% or even 100% even on low freq steps like 200 MHz.

This is because some devices require (e.g. the LCD) the OPP 50% state in order to work properly.

And for performance reason there's OPP 100% requests from eMMc and Wifi driver... i order to improve speed without to increase cpu freq ... because increasement of cpu freq is followed with higher cpu voltage.

I know what u mean, but here on our Ace 2 it's managed in a different way.

GPU memory is allocated in the virtual memory and only allocated to the real RAM when it's really needed.

It's dynamic, i can only change the limit for max. (not is userspace, it's hardcoded)

By default it was 2 GB. Now it's reduced to 512 MB if i'm not wrong.

I've already tried to reduce it to 128 or even 64 MB .. but once the limit is reached, the Graphic is completely messed up.

So it doesn't make any sense at all.
[Galaxy Ace II Android Development] Sidebandit:
Whoa! let me get this straight the GPU could in theory (device spec capable) use 2GB VM/Ram? Is this correct? Question: why would you want to reduce it surely for games and heavy graphics more or the device max is best? Perhaps this my a lack of understanding.

Hitching - I've noticed on some games plus rolling demo benchmarks like epic citadel (unreal 3 engine) at some points momentary pausing, is the this graphic textures swapped in and of memory? memory reloading. is there anything that can be done apart mem free values - zram - swap partition?

updated tests, thanks for the CPU terminal commands previous post. I was able to adjust them on the fly along with Governor thresholds through kernel auditor. The gov thresholds stick with Kernel Aud. Also as an experiment force single core operation. No joy with 200mhz way to laggy for any practical use except standby/music as you said in a previous post.

Last question and the most controversial - zram, compcache, swap partition, swap file. I know these are considered "old" tech now and comes with some drawbacks but would zram benefit this device? I have a samsung galaxy y 386mb ram and a swap file set to 20 swappiness. Most of the time the swap is not used until max load. Its a 2011 armv6 device. Armv6 GB apps were still developed until about 2016 like dolphin and firefox and use a lot of ram. Hobby device that could still be used as a daily driver.

Did you ever develope a A2N gingerbread kernel?

thanks again for all the information :good:
[Galaxy Ace II Android Development] Sidebandit:
Thanks again!

All the settings you mentioned are adjustable but unfortunately they don't stick on reboot. I was trying to set pre allocated ram of 32mb 48k max reads.