yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] Sharkykounet:
I experienced a wierd thing.

I had latest rom and previous Kernel (20171031)

I updated to new kernel. And an apps (Brick Blast Ball - https://play.google.com/store/apps/details?id=com.dongstudio.brick) simply disappeared. I tried to installed it again, but i don't have enough space available ... ????

Then I installed backthe previous kernel, the apps was there. I uninstalled it.

Installed the new kernel. But it's impossible to install the apps.

I can install other apps.

Any idea ?
[Galaxy Ace II Android Development] Yønn:
It seems that latest Kernel suffer from previous bug with big disk space apps.

Next build should be again working fine. Until next build, use previous kernel (20171031).
[Galaxy Ace II Android Development] Yønn:
Hi [MENTION=5840412]ace2nutzer[/MENTION]

I hope everything is going well.

Do you have any news from your ongoing work on cleaning the Kernel sources and memory allocation failures?
[Galaxy Ace II Android Development] ace2nutzer:
Hi Yonn,

in the meantime a lot of thing are done, but not all.

Kernel is clean now.

Actually i'm recompiling the ROM with higher optimizations.

And the Kernel is so far working very good, i'm updating the cpuidle driver for lowest power consumption even when BLN is blinking.

Allocation failures, comes to the end, (probably they will gone automatically with the new kernel and rom .. lets see)

Also added a new button in the app for GPU that allows to set RAM Buffer size .. from 0 - 64 MB.

I hope it's all done this Year.
[Galaxy Ace II Android Development] Sidebandit:
Great work I look forward to trying it out. :cool:

I have Archos 4" with the Mali MP400 on Nougat, I don't suppose drivers/libraries could be of use for the ace?
[Galaxy Ace II Android Development] ace2nutzer:
Don't know, maybe works, but it's actually not needed.
[Galaxy Ace II Android Development] Yønn:
Thanks for your feedback!

Can't wait to test both new Kernel and ROM!

Anyway, take your time to do it well. No pressure.
[Galaxy Ace II Android Development] :
And if I can, I will make a picture for your app... for Christmas and New Year!

Any new file on download server yet [MENTION=5840412]ace2nutzer[/MENTION]?

---------- Post added at 11:09 AM ---------- Previous post was at 10:57 AM ----------

But there is a strange problem for me. When I put my phone on 3G/Wifi enabled (not charging), the battery percentage jump very fast (from 100% to 88% in 1 minute). But when I check in Die-hard Battery Calibrator, the real battery show 97%

And when I reboot the phone, this problem is even worse. Sometimes it jumps to 14% and say "The battery is getting low.".

Deleting batterystats.bin, replacing another battery doesn't fix this problem.

But in recovery and LPM, the battery show 100% exact battery.

How can I fix this problem?
[Galaxy Ace II Android Development] ace2nutzer:
Too low capacity battery = too old or broken.
[Galaxy Ace II Android Development] heml0ck:
why sdcard only version for 20171110?
[Galaxy Ace II Android Development] ace2nutzer:
It was more or less a test build and is buggy.

Use previous Version.
[Galaxy Ace II Android Development] lv-xda:
BLN notifications doesn't work with latest ROM(20171031) and kernel (20171110). It's enabled in A2N Kernel Control:

/sys/kernel/bln/bln_wakelock:

/sys/kernel/bln/blink_mode:

'mscec' is a typo?

Have this problem (not working bln) since ~summer ROM/kernel builds; it appeared after some upgrade. How to debug?
[Galaxy Ace II Android Development] ace2nutzer:
@ up

it's fixed now ! And yes it was a typo ... but this wasn't the cause for the malfunction ;)

@ all

I've uploaded a test kernel !

The common reason why i've uploaded a test kernel is because i need feedback if it's working stable.

Many things are now changed, but i'm still not done. U can safely use this test-kernel as a daily driver.

In the worst case u can face a random reboot while the screen is OFF .... because i've enabled REAL DEEP SLEEP for Suspend that was never working Stable ! (and maybe STILL :D)

So please test this kernel for 1 Week and then just post a short report if it worked stable or not.

Test it only with kernel defaults or use it ONLY with your known stable settings !! (CPU GPU Stuff)

In a case of random reboot pls post immediately the last_kmsg right after the reboot happened.

Download:

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Android_4.4.4/Kernel/
[Galaxy Ace II Android Development] Yønn:
First deep sleep reboot.

Anyway the Kernel seems to work fine otherwise.
[Galaxy Ace II Android Development] ace2nutzer:
OK, thanks for testing!

I want to give the last chance for the "deep sleep" (C5 state) ...

i've enabled 6 ERRATA Patches for Hardware Faults, just to see if it can work stable at all ... if not, then we will go back to normal SLEEP which is "C4 State" and is as well :)

If it'll cause random reboot, post again last_kmsg and which kernel u was using (normal or sdcard_only) so that i can make sure it's again the same issue and not something new !

For Devs and power users:

according to the last_kmsg it's an issue with DMA and/or L2 Cache ... which is probably hard to Debug.

Maybe an higher LK Version or an newer ERRATA Patch can fix this Issue in the Future !

Download test2:

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Android_4.4.4/Kernel/
[Galaxy Ace II Android Development] Yønn:
I just wanted to mention that I faced no other reboot after my first and only DeepSleep reboot, which happened very early after installation (with sdcardonly test kernel).

Since this morning I use test2 kernel, and no reboot so far. :victory:
[Galaxy Ace II Android Development] ace2nutzer:
Don't be happy too early ... Such reboots for deep sleep can even happen after 5 - 6 days !

That's why i said to test for 7 days.

If it's stable for 7 days then it'll be stable also for 1 month and more.

But good to know that it's ok so far.

Good luck.

Edit: well, the first test kernel is definitive buggy. So the only chance is test2 so far.

I had also an reboot with test kernel at night after i had uploaded it. But with test2 so far no reboots for me.
[Galaxy Ace II Android Development] zarebcn:
Hi,

I´ve tried the testkernel2 and i´ve to say that i got a deep sleep reboot right now.

I dunno where is the last_kmsg file for posting it, sorry.
[Galaxy Ace II Android Development] ace2nutzer:
Open A2N Kernel Control App, tap the softkey menu and choose "Debug" there u can easily export it to your sdcard.
[Galaxy Ace II Android Development] zarebcn:
I'm sorry but i didn´t saw your message and got another deep sleep reboot and then i changed the kernel to 20171031 version :(

I know, i have no patience.
[Galaxy Ace II Android Development] heml0ck:
i just back to stock 4.1.2 and try the kernel for stock rom.. i use temp cwm and try to install the latest kernel for stock but it says it always aborted? whats the problem.. i rooted it and try the rooted version still same outcome.. but when i look in the settings and check the kernel it was installed.. is it normal?
[Galaxy Ace II Android Development] ace2nutzer:
Still stable ? - For me yes ;)
[Galaxy Ace II Android Development] Yønn:
Unfortunately, no... :crying:

I had a reboot yesterday (maybe more like 2 or 3), and here is the last_kmsg.

I also still have the same problem (GPS crash) as before with Waze (either with previous stable, test, and test2 Kernels).

Anyway, I hope your efforts improving this kernel will be rewarded.

EDit : and now it is rebooting like hell, I don't know why because it was almost stable...
[Galaxy Ace II Android Development] ace2nutzer:
Thanks for your Report.

I've reverted to C4 State, this is 100% stable at least.

As for the Waze/GPS FC, i think i've found the reason for this.

binder: 2243: binder_alloc_buf, [B]no vma[/B]

which means no more virtual memory free ... and it's because vmalloc is too low with 112MB:

vmalloc : 0xf0800000 - 0xf7800000 ( 112 MB)

I'll increase this to the highest possible ;)
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=5928358]Yønn[/MENTION]

i've uploaded new sdcard_only kernel.

Increased virtual memory from 112MB @ 2160MB !

Please test how it goes with Waze.

Currently it's still a test build as i'm still building the ROM.

(fixing some bugs and improving performance)
[Galaxy Ace II Android Development] Yønn:
After installation of the Kernel I get Waze crashing at start-up. See logcat and dmesg.

I will try to reboot once again.
[Galaxy Ace II Android Development] ace2nutzer:
OK, it was even more worse.

I hope i've fixed it now!

Uploaded right now a new test kernel with same file name.

Seems to work fine now :angel:
[Galaxy Ace II Android Development] Yønn:
Thank you.

It works better. No crash at Waze startup. But still GPS issues when using Waze after some time. See logs.
[Galaxy Ace II Android Development] AkosPaha:
Help ME GUYS !!! I update the phone after it turned on, then I use it for a while until it froze and now my phone don't turn on what to do?:crying: [MENTION=5840412]ace2nutzer[/MENTION]
[Galaxy Ace II Android Development] ace2nutzer:
Recovery works? - Or at least Download Mode?
[Galaxy Ace II Android Development] AkosPaha:
Not working , and when I Put the charger a screen dont show the charging
[Galaxy Ace II Android Development] ace2nutzer:
Check Battery .. remove and insert again.

(Download mode can't work without working battery!)
[Galaxy Ace II Android Development] AkosPaha:
Tried not working

I have 2 battery , but not working with battery
[Galaxy Ace II Android Development] ace2nutzer:
Sounds Painfully :(

Then probably your eMMc is broken now. (normal on such old phone)

Now u need to buy a new Phone.

Anyway, if u really love A2N Kernel, then buy another Ace 2 or an S8 ;)
[Galaxy Ace II Android Development] AkosPaha:
Can I change the eMMc ?
[Galaxy Ace II Android Development] ace2nutzer:
Probably not, but some people can do it.

Google it, may be also helpful to check on YouTube.
[Galaxy Ace II Android Development] Yønn:
I want to report some black screen issues followed by impossible reboot (with last unamed test kernel).

I reverted to 20171031 kernel.
[Galaxy Ace II Android Development] Sidebandit:
eMMc, had the same pob with a 2nd hand ace 2 i brought back in the summer for experimenting on. Flashed stock from GB to JB then on reboot nothing. Get a cheap 2nd hand ace2 & use the best housing from the 2 with the good main board.
[Galaxy Ace II Android Development] ace2nutzer:
New Builds are Up !!

Changelog:

Kernel 20171216:

LK3.0.101 -> LK3.0.31

Cleaned almost the whole Kernel Source

More closely to Stock Source

OTG Ready

Ready for LK3.4 upgrade

Removed LZ4 implementation (for now)

Removed ExFat Driver

Improved Performance && Stability

Reduced power consumption

More Smooth

Some Kernel Tweaks

Re-configured memory management - minfree, adj values and basic memory management

Logger: reduced buffer

Sweep2Wake optimizations - stability fix

Mali: disabled debugging and added some optimizations

Compiled with higher set of optimizations

Fixed Wifi when using "soft reboot" or when a soft reboot happened after an crash (performed by kernel itself)

Mali: fixed memory allocations failures (accidentally had reverted this fix lol)

Added partially DRM Support

Fixed B2R2 Driver (as well accidentally reverted during cleaning sources XD)

Mali: pre-allocated-memory-max: 16 @ 0MB for faster system when not playing games

kmsg: reduced some spamming from the charger

cpuidle: reset to stock

Fixed BLN blink and updated blink_on/off_delays - for lowest power consumption

Fixed BT-Audio on Suspend (untested)

Fixed ramdom FC Apps

Fixed USB bugs from previous unstable release

Fixed App installation from previous build

Reduced Wakelocks - deep sleep works properly now

Disabled SELinux - serves nothing

Inkl. A2N Kernel Control [GT-I8160] Demo V3.1

A2N Kernel Control [GT-I8160] V3.1

GPU: added ability to adjust mali-pre-allocated-memory-size

CM11 ROM 20171213:

Re-added "Soft Reboot"

Disabled SELinux

Re-compiled with higher optimizations level

Higher Performance

incl. A2N Kernel 20171216 - normal version

Inkl. A2N Kernel Control [GT-I8160] Demo V3.1

AUTO wipes, except factory reset

Uploaded also new Version of:

- ODIN Kernel

- GT-I8160P-Support

and

4.1.2 A2N Kernel for Stock JB ROM (same changelog like above here)

Tip:

Wipe data of A2N Kernel Control and re-configure for proper functionality :good:

Enjoy ! ;)
[Galaxy Ace II Android Development] AkosPaha:
Hi Guys! I would like to ask if anyone can help me where i can buy eMMc in Ace 2 and how can I replace it (so it works).

Some pictures from my Ace 2
[Galaxy Ace II Android Development] heml0ck:
can someone tell me how to install this kernel in stock rom?

i used cm11 last week and its fine.. but wanna try the stock rom again..

my procedure reboot to stock recovery then install temp cwm then install the kernel.. but it always fails.. it says aborted..

set_perm: some changes failed

E:Error in sdcard/a2n_kernel_gt-i8160_4.1.2_rooted_20171216.zip

(Status 7)

Instalaltion aborted.
[Galaxy Ace II Android Development] DetroX:
Impossible without specialized tools. New motherboard is much cheaper.

https://www.ebay.ie/itm/Genuine-Sam...903757?hash=item4d534af78d:g:mCwAAOSwLEtYkMZF
[Galaxy Ace II Android Development] Yønn:
Thank you [MENTION=5840412]ace2nutzer[/MENTION] !

Seems to work quite good. I still have problems with GPS (cannot fix satellites) but I think it's because of my phone which is too old.

I am thinking about buying a new one in the next months. Because you are doing a marvelous work on optimization on this phone, I would be very grateful if you could tell us which phone you will get next and maybe continue such developments. :)
[Galaxy Ace II Android Development] ace2nutzer:
I got gps fix in 5 seconds at home on the Window. The updater-script deletes the quick gps fix from /data/gps.

So for the first time u need working Internet connection before u enable gps.

So try again, it should work.

As for "next phone", that's a good question.

I had planned to build a kernel for Samsung galaxy Advance, but now i ended up with galaxy S8 ! I've already the s8, also downloaded s8 sources.

Release is planned for jan - feb 2018.

But probably for most ace 2 users this phone is too expensive, so probably after that i'll try with s7, s6 and so on.
[Galaxy Ace II Android Development] isaak:
A kernel for Galaxy S Advance would be very appreciated, especially if you plan to support LK3.4 that we don't have.

I just wonder, why didn't you upgrade your CM11 rom to Lineage-OS 11? The last one is still updated with the latest security fixes.

And I'd like to see a screenshot about the OTG Ready note on your last build. Just curious, because for cocafe it has been impossible to introduce.
[Galaxy Ace II Android Development] Sidebandit:
Great work no probs so far still testing.

A kernel for the Galaxy S3 mini would be great. SOC virtually the same as the Ace 2. Even though almost the same chipset there have been many CPU overclock issues ( not just by me).

As for flagship sammy's i stay away from. The last one a brought new was the Galaxy S3. When it didnt get the kitkat update i stopped buying new. I always look for refurbished / good quality 2nd hand now. Todays all singing & dancing flagship tomorrows paper weight.
[Galaxy Ace II Android Development] ace2nutzer:
Oops :o I had updated "update-binary" and forgot to update "updater-script" :)

I've fixed it now and re-uploaded all latest kernels. (but only 4.1.2 kernels was affected)

In Addition i've also included "System.map" to the Package which is useful for debugging purposes. (This File is not flashed to the Phone)

Please report later if it works now, because i'm on CM11.

Some Day maybe.

Link pls.

What screenshot u want to see? :D

"OTG Ready" means that the Hardware is capable to support it.

The Reason why it's actually not working is because of the OTG Driver in Kernel.

Another Reason was because i didn't had a OTG Cable to test it, but now i've one, so maybe i'll be able to fix it ;)
[Galaxy Ace II Android Development] isaak:
These are all the relevant links and commits about LineageOS:

https://github.com/LineageOS/android

https://review.lineageos.org/#/q/status:merged+branch:cm-11.0

If you want an example, Epirex did the upgrade from CM11 to LineageOS 11:

https://xdaforums.com/galaxy-s-advance/orig-development/cyanogenmod-11-t3017742

And his last build includes all security patches until July 2017:

https://xdaforums.com/attachment.php?attachmentid=4359812&d=1513188785

But, if you upgrade to LineageOS now, you should have all security patches until November 2017.

Google releases all security patches publicly in this page, and the LineageOs staff is synced with their bulletins.

Before I wanted to say if you have the proof that OTG is working correctly. But from your post I understand it's a working in progress.
[Galaxy Ace II Android Development] ace2nutzer:
That's a quite cheap solution :good:

Anyway, the only thing u need to do is to write your old IMEI into the new Board.

There are 2 ways how to do that:

#1:

with "dd" u can copy the old (imei backup) CSPSA Partition to your new Board.

But it requires that u've an backup of that image CSPSA. (not included in cwm backup)

Or just (like i do) from time to time an full NAND-droid backup with ADB / dd:

dd if=/dev/block/mmcblk0 of=/storage/sdcard1/backup/fullbackup_cm11.img bs=4096

Then it's as well possible to extract the needed part of the full-backup image the needed CSPSA part with dd (skip and count)

#2:

If u have nothing of them, then it's very important to note your IMEI ... (usually there's a sticker under the battery with the imei)

then u can replace the board and proceed with this How-To:

https://xdaforums.com/galaxy-ace/ace-2-develop/guide-how-to-recover-imei-backups-t3448335

This will write your old imei to your new Baord.

But first of all i would flash a 3-parted Stock ROM .. to make sure that the new board will have all the needed partitions, otherwise it'll not work properly.

In the end you can even restore your cwm backup if u've one.
[Galaxy Ace II Android Development] Time4T:
Thank you ace2nutzer for your efforts in supporting our, now old, phones. Thanks to your efforts, my 5 year old Ace 2 is still my main phone.

I've been using latest 20171213 ROM with sdcard_only 20171216 kernel for a day. Seems to be working well, but I have just noticed that wireless tethering is not working - upon turning this on, the wireless access point icon appears, but no signal appears to my other devices. USB tethering seems to work OK, when connected to my Win10 laptop.

I will add that Wi-Fi seems to work, with the phone identifying in range Wi-Fi signals.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] do you have the link to the 3 part JB rom?
[Galaxy Ace II Android Development] Yønn:
OK There should be some hardware issue on my side cause I can hardly get more than 5 satellites without stability. And from my window' I don't' get anything.:confused:

Indeed that's a bit expensive. I was thinking about:

Galaxy A3 2017 (but battery is not removable)

Galaxy J1 2016 (no custom ROM/Kernel so far)

Such models seem closer to ace2.

Anyway, I'll continue to investigate.
[Galaxy Ace II Android Development] ace2nutzer:
Dunno right now, i'm quite busy.

it's also possible that there's no JB 3-part at all for the codina device.

But 3-part JB + GB is there for codinap.

Just search the forum here, u'll find it.

Thanks for your Report!

I forgot to cherry-pick this Commit:

https://github.com/TeamCanjica/Samsung_STE_Kernel/commit/1fb064bce83de3c3e50ae8be2a4b546d392ef0b3

But the funny thing is if i add that patch then wifi is ****ed up on "Soft Reboot" :laugh:

But of course wifi Tether is more important here, so i'll remove soft reboot and fix wifi tether.

I'll re-uplaod the ROM + kernel ASAP.

Well, then it's probably an issue with the GPS Antenna .. did u already tried to disassemble and assemble??

Maybe it'll get better contacts to the GPS Antenna.

Yeah sounds bad, but starting from S. G. S6 they have all non removable batteries.

On the other hand, the Life of an Li-ion/po is quite huge if the charger in the kernel is well programmed and the user uses it properly. A simple trick to pro-loungue its life is to not hold the battery too long time fully charged or discharged ! - That means charging at night hurts the lifetime.

Best Way is to keep battery over night at max 70% and then in the morning continue the charging to 100% and once it's full, immediately disconnect and use the Phone. (use the phone means: it's already fine to have it connected to 3G Network or wifi)

Sounds Painfully, maybe that phone is still not leaked (locked bootloader or what so ever) :highfive:

No need to search for a device that seems to have the same hardware like the Ace 2.

For me it's the same work, no matter which device .. as the procedure on building the kernel and adding my optimizations is almost the same thing.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] I used the first leaked Jb rom (tmz) before official. There was an issue with low ram and lagging with this build so i had to flash official 3 part rom with pit but cant remember where i got this 3part rom from. This was 5 years ago.
[Galaxy Ace II Android Development] Yønn:
I tried to disassemble and reassemble. I can get GPS fix when I am outside (with 8 satellites at best). But this is not stable at all, I lose signal almost as soon as I get GPS fix.

I mean even if I do not move at all outside, I can reach like 6/6 satellites with GPS fix, but in the next seconds, I lose every one of them. I cannot understand how! :mad:

I noticed that switching to airplane mode and back hekped when no fix was reached.

Thanks for the tip. Maybe I'll buy this one if I cannot get GPS working fine on my phone.

Does it mean you might build ROM and/or Kernel for Galaxy A3 2017 with limited time investment? Or this would be very time consuming anyway?
[Galaxy Ace II Android Development] ace2nutzer:
Try with another app. Waze seems to be very ressources consuming app.

Anyway i had tried with waze and it worked for me. But of course it depends on the set of installed user apps.

Of course it's also possible that there's an hardware issue as well.

Don't get me wrong, i can always build kernel for one phone which i've, once i'm done, i can buy next phone and build kernel. once by once, not all together :D

For now i've only ace 2 and S8, once i'm done, next will be S7 or even S9.
[Galaxy Ace II Android Development] AkosPaha:
Doesn't doing kernel or ROM to other devices. example:Samsung Galaxy Ace 4(SM-G357FZ) ?:confused: (Now I use a Samsung Galaxy Ace 4 , but I don't have New rom :( ,i'm on Android 4.4.4).
[Galaxy Ace II Android Development] ace2nutzer:
@up

what do u mean?
[Galaxy Ace II Android Development] AkosPaha:
Can you make a ROM or kernel + recovery to Galaxy Ace 4? I could not find android android 5.0 or higher and I needed it. root is on my phone, but I have not found a rom (I have already rooted the phone)
[Galaxy Ace II Android Development] ace2nutzer:
Maybe, but not in the near future.

But why u buy a phone if there is no custom rom, while u need one ? :D

Why u didn't repair your ace 2 ?

Now u've problems.
[Galaxy Ace II Android Development] AkosPaha:
I've already bought Ace 4 for a long time, Ace 2 has not been fixed yet. (but I think I will not fix it):( so have problems with the Ace 2 so we started getting there so I did not buy a new motherboard! I have no time to deal with it now, it's all messy.:rolleyes:
[Galaxy Ace II Android Development] Sakit21:
help me, my ace 2 get bootload flashing stock rom didn't work n try downgrade gingerbread still didn't work...what should i do?(i can go to recovery n download mode)