yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] :
For who do not have an SD card, I have a tutorial here to show you how to flash with ADB in Windows:

Step0: Download all files from OP (as you do not have an sd card you have to download normal version), flash stock ROM.

Step1: Download ADB here, then extract it to somewhere, eg. C:\ADB

Step2: Copy all ROM files to ADB folder you extracted.

Step3: Connect your phone to PC, reboot it to recovery.

Step4: Shift+Right mouse to ADB folder, then choose "Open command window here" or "Open PowerShell window here"

Step5: Now on your phone, choose "apply update from adb"

Step6: On PC, type in command window:

For command window, type adb; but on PowerShell window, type .\adb instead.

Replace temp_cwm.zip, reparted.zip, rom.zip, gapps.zip, kernel.zip, swipe_fix.zip with your downloaded file names.

MAKE SURE NOT TO TOUCH THE CABLE WHEN PC IS SENDING ZIP, OR YOUR FLASH WILL BROKEN.

Code in here is what you have to type in adb

Check to make sure your phone connected:

adb devices

If your device shown in list, then you can continue:

adb sideload temp_cwm.zip

Now on temp CWM, choose "install zip from sideload"

adb sideload kernel.zip

Now reboot to recovery again. (As my home button is now broken I have to go to advanced -> reboot to recovery

Choose install zip -> install zip from sideload

adb sideload reparted.zip

- Then format /system, /data, /cache, /sdcard0 (do not format sdcard0 if you do not want to wipe your internal storage).

- Reboot to recovery again. Then choose install zip -> install zip from sideload

Now on PC:

adb sideload rom.zip

install zip -> install zip from sideload

adb sideload gapps.zip

install zip -> install zip from sideload

adb sideload kernel.zip

install zip -> install zip from sideload

adb sideload swipe_fix.zip

Now reboot device to system, then voila! Now you got CM11 running on your phone!

You can safely disconnect your phone from PC now.
[Galaxy Ace II Android Development] lee.wp14:
Hi [MENTION=5840412]ace2nutzer[/MENTION] , I'm currently building LineageOS 11 for other device. I searched google for safetynet on kitkat and found your thread instead. May I know the changes you've made for passing safetynet on your builds? Thanks.
[Galaxy Ace II Android Development] :
You can read it here:

[MENTION=5840412]ace2nutzer[/MENTION] After reading [MENTION=6944026]lee.wp14[/MENTION]'s thread, I have this question: Can you enable signature spoofing to this ROM? As it is required for MicroG's functionality. (MicroG is alternative Gapps, it's lightweight and better performance + battery life)
[Galaxy Ace II Android Development] ace2nutzer:
@lee.wp14

bien2004official already posted the right aswer. :)

I'm adding one more information: with "Stock fingerprint" i mean the latest official stock fingerprint from the original build.prop from latest stock rom.

And the "t454r44r" file, is just the renamed su binary.

@bien2004official

I've deleted all sources and patches for this ROM ... because i need the free space for AOSP 4.1.2.

So, if pay apps with online checks like A2N Kernel Control will still work with MicroG's, then i'll add it to the AOSP ROM soon.
[Galaxy Ace II Android Development] :
Hey, anyone noticed that in A2N Kernel Control update 5.7, the "Advanced Root" is gone?
[Galaxy Ace II Android Development] lace_hvc:
I only had 1 reboot in the last few days.

File is attached.
[Galaxy Ace II Android Development] lee.wp14:
[MENTION=5840412]ace2nutzer[/MENTION] [MENTION=6973536]bien2004official[/MENTION] thank you to both of you. I will try it out soon.
[Galaxy Ace II Android Development] ace2nutzer:
I had to remove it due of the Google Developer Policy stuff.

Apps that enable root access aren't allowed in Play Store.

But it's now available for free in the demo version of the App in "Debug" menu. ;)
[Galaxy Ace II Android Development] :
Do that mean I have to keep the demo version to have "Advanced Root"?
[Galaxy Ace II Android Development] ace2nutzer:
Yes. :)
[Galaxy Ace II Android Development] zarebcn:
Hello, i have a big problem with your last kernel (sd card only), when i boot the phone it says service stopped com.android.phone all the time and i cant do anything.

edit: Nevermind, it somehow fixed by itself in the next boot but what a weird thing
[Galaxy Ace II Android Development] ace2nutzer:
Probably File System error .. that's normal now on such a old Phone. It just can't hold for ever.

My NAND-flash is also broken and i've now often reboots due of file system errors.

But fortunately i've got a second Ace 2 which seems the NAND-flash is OK .. but has other things a little bit broken like faulty LCD ...

When i've the time i'll build from 2 broken Ace2 devices, just one fully working... and continuing developing here. :D

Actually i'm optimizing the Kernel. ...

So this is not the end of the Ace 2 Legend ! ... :)
[Galaxy Ace II Android Development] :
Maybe mine too... I think that my NAND also going to fail.

Sometimes when I am using [very light!] apps, the phone freezes and forces a reboot.

last_kmsg do not show problems with ram management or overload.

And a strange problem: Every time when I choose shut down my phone, it reboots instead :confused:

So I had to pull the battery out.
[Galaxy Ace II Android Development] ace2nutzer:
U should see in last_kmsg ext4 FS ERROR on p5 .. which is /data.

In my case the Cache folder from YouTube App is broken ... so sometimes when it fails then a YT History is cancelled after the reboot or it's restored to an older point of time lol. That's it .. but i don't care much, since i've very well working Galaxy S8 Phone running A2N Kernel. :)

U can find such errors in the end of the file .. but always before messages about kernel panic or oops messages..

I've tried many times to format /data and even flashed 3-parted stock rom over odin ... but after some time it starts again to fail... so i assume it's hardware related.
[Galaxy Ace II Android Development] exedutor:
gt-i8160p

Greetings!In step three i flash the kernel and all of the followings items from the sdcard but the phone cannot boot properly and stuck at the boot load!I followed all the steps +step 0 for the kernels but doesnt seem it working...Any help would be welcomed :confused: :confused:
[Galaxy Ace II Android Development] ace2nutzer:
Hi, i don't know what u make wrong ... maybe some more info about which ROM u was using before and so on.

Make sure to flash always in the right order like it's listed .. otherwise it'll not work.

Also keep in mind that first boot takes up to 5 minutes.
[Galaxy Ace II Android Development] exedutor:
the rom i flashed latest was DBT-I8160PXXMG2-20130820164646.zip that you have on your forum for gt-i8160p.I go to recovery mode with cwm,lash DBT-I8160PXXMG2-20130820164646.zip.Went again to recovery mode and see some messages saying for example E:cant mount/cache/recovery/command......E:cant open/cache/recovery/log.I do then the step 2a and formating system and sdcard as vfat but i have those messages again.Also when wipe data showing a message E:unknown volume for path[/sd-ext] Any help will be welcomed
[Galaxy Ace II Android Development] ace2nutzer:
DBT-I8160PXXMG2-20130820164646.zip

unpack it and flash it with ODIN.

Then in recovery u flash temp_cwm and then this:

(optional u can repart the flash memory to 3GB for /data ... see in fisrt post)

http://xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Android_4.4.4/ROM/

without to unpack it.

then GT-I8160P Support V2.6:

http://xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Android_4.4.4/Misc/

without to unpack it.

After that, reboot and wait 5 minutes .. your phone is ready for use.
[Galaxy Ace II Android Development] ace2nutzer:
New Builds are Up !!

Bugs and Issues Kernel 20190202:

:good:

Bugs and Issues CM11 ROM 20190202:

screen cast - but some app may work

Reading sim contacts - but u can import contacts from sdcard ;)

Stock Browser is outdated - please use Chrome web Browser

Changelog:

Kernel 20190202:

Reworked the whole kernel config

removed kmsg spam raw_soc from abb_fg

Android Kernel 3.0.31 -> 3.0.72

Improved Security

Minor bug fixes

Kernel Sched: enabled HRTICK

Mali 400 GPU: optimized driver

MCDE: WS2401: stock delays

Improved Memory management - Multitasking

Fixed memory allocation failures

Higher efficiency - Battery, Performance

Improved stability - No FC, no reboots

and some more tiny kernel optimizations

A2N Kernel Control [GT-I8160] V5.9

Moved "storage" and "debugging" to the demo version

CM11 ROM 20190202:

Updated build.prop

incl. A2N Kernel 20190202 - normal version

AUTO wipe cache and dalvik-cache

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

Also improved LCD Stability on Recovery - CWM ... even if your LCD seems to be broken, i.e. only a grey screen on Download mode or the same on Samsung boot logo, then simply boot to download mode ... (even if u see nothing) then flash with ODIN (make sure to tick only auto-reboot) latest a2n kernel ODIN Version from here:

http://xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/General/

and voilá .. with a bit of luck, u'll be able to boot into CWM recovery menu (with broken LCD lol... works for me!) !!

I've got an second ace 2 with half-broken LCD ("ws2401", only grey screen on CWM and when the phone is cold the first try fails with the screen..)

and was able to fully fix CWM LCD fails to 100%. (at least for me).

So i've added the CWM LCD Fix also for "s6d27a1".

Flash and enjoy :)

This is the best Kernel i've ever build for this Phone for 4.4.4 CM11 ROM !

Please try it out and post your Success Stories ! :)
[Galaxy Ace II Android Development] Nator8:
Hi, ace2nutzer I have followed all the steps from your guide and my device didn't works (i mean it stucks at logo screen more than the 5 min you said). I reinstalled all the roms to take it to the stock version and works but i am not able to install your CM 11 kernel and ROM or I didn't underestand how does it works hehehe (i am so noob in that sorry). May you can help me? Is the kernel needed to make C11 ROM works (because i can't flash it without installing the kernel)?

Thanks in advance!

Nator Gray

PD: I am not an english very good speaker so maybe this message have lots of grammar errors hehehe

EDIT: I HAVE SOLVED IT WITH THE NEW KERNEL VERSION THAT YOU HAD POSTED TODAY!! THANKS I LOVE YOU [MENTION=5840412]ace2nutzer[/MENTION]!!
[Galaxy Ace II Android Development] Nator8:
I follow all the steps and GApps doesn't work and my smartphone can't start

Hi, [MENTION=5840412]ace2nutzer[/MENTION] my SG Ace 2 (gt-i8160p) didn't works when I do all the guide says and I don't know what to do :crying: Before I posted it had worked but the play store (gapps) wasn't running propperly so I started the guide from Step 0 so many times but I wasn't able to make it works! Always when i finish step 0, step 1, and step 2 (i tried with 2a after but didn't work) and I arrive to the step 3 at the moment I install (flash) the CM11 ROM (the last one) say: data is corrupted or something like that and recommend me to do a wipe data / factory reset I do that and the ROM can be installed but then (after having falshed the Support for my device ended with P) when I flash another time the kernel as the guide says I try to install gapps (the last one form their page and i also tried the otherone from the FTP server) but both of them fails and say: "that only works in version 4.4.X etc. (error 20)" and i am installing the 4.4.4 kernel and ROM so i don't know what is happening and if you could please help me solving that i would be very happy! (and i will make a statue of you in my room hahaha)

Thanks, i will be waiting for your reply :o!

Nator Gray
[Galaxy Ace II Android Development] ace2nutzer:
U don't need to start every time from step0.

It's enough one time.

I suggest you to read carefully (and try to understand what the steps will do) step2a and step3

Then perform them exactly in the given order without to skip any line.

After that, CM11 with Play Store will work properly.
[Galaxy Ace II Android Development] gepel:
Bug: on offline charging screen (one with filling battery) I see now a broken screen(with some vertical middle bar) ws2401
[Galaxy Ace II Android Development] ace2nutzer:
OK ... testing now ...

Maybe later i'll upload updated Kernel.

EDIT:

Uploaded new Kernel ... please test and report if it's OK now.

Also uploaded new ODIN Kernel for emergency recovery.

Kernel 20190206:

Reverted "MCDE: WS2401: stock delays" - caused LPM issue

Charger: reduced time for 99% -> 100%

Updated ramdisk - use kernel default min_free_kbytes
[Galaxy Ace II Android Development] gepel:
Battery graph still looking damaged (black screen like damaged screen)
[Galaxy Ace II Android Development] :
[MENTION=4470081]topjohnwu[/MENTION] released Magisk 18.1 with support from Android 4.2:

I tried to flash Magisk but face this error:

Sony ELF32 format detected

Please use BootBridge from [MENTION=2233641]AdrianDC[/MENTION] to flash Magisk

I downloaded BootBridge, replaced install.zip, but then... assert error :(

Removed assert in updater-script, zip installed successfully, but no changes :(

[MENTION=5840412]ace2nutzer[/MENTION] Can you do anything about this?

Some info may be useful for you:

- BootBridge: https://xdaforums.com/crossdevice-dev/sony/mod-boot-bridge-sony-elf-t3506883
[Galaxy Ace II Android Development] ace2nutzer:
Hmm strange, what was the latest kernel where it was working properly for you?

[MENTION=6973536]bien2004official[/MENTION]

for what we need magisk if root + safetyNet works ?

Anyway, what exactly kernel options need to be enabled?

CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
# CONFIG_USER_NS is not set
CONFIG_PID_NS=y
CONFIG_NET_NS=y

??

as for the patch, it seems it's missing in 3.0.x but found it in 3.4.x android kernel.
[Galaxy Ace II Android Development] gepel:
I'm not sure for 2/2 but I,m sure for 18/12
[Galaxy Ace II Android Development] gepel:
I gave a test on both ,2./2 has the same probl. only on 18/12 works ok !
[Galaxy Ace II Android Development] :
Because some users are complaining about root not working in some apps. They have to use "Advanced Root" option, but this cause SafetyNet fails.

With Magisk, it is error-free. No worry about apps not found su or anything. You can choose which app should be hidden without breaking SafetyNet.

And it have a community that support it.

The CONFIG_NAMESPACES=y one.

I do not know much about it, but it maybe the patch that add mount namespace things into kernel.
[Galaxy Ace II Android Development] ace2nutzer:
OK, i've uploaded a test kernel with those 2 Commits:

https://github.com/ace2nutzer/Samsung_codina_Kernel/commit/eb05c2191b2ca25156501fb968520f873a92b67a

https://github.com/ace2nutzer/Samsung_codina_Kernel/commit/c10cf34e976749983903fa793ebbfba9b4bf8453

I didn't test if magisk works now, (i'm busy) But u can test and report here if it works or not.

Also if it doesn't work, u can ask or show the 2 Commits i've added in kernel the Dev from Magisk

[MENTION=6518260]gepel[/MENTION]

It's strange since i've reverted almost all critical changes ... now it should work.

Uploaded a test kernel here:

normal version

https://ufile.io/ue452

sdcard_only

https://ufile.io/7y5q3
[Galaxy Ace II Android Development] gepel:
Same problem with this kernel too..
[Galaxy Ace II Android Development] :
Same problem for me too... strange.

EDIT: Video about this problem: [YOUTUBE]2ITh6a3tGeU[/YOUTUBE]
[Galaxy Ace II Android Development] nokiagame:
Hello,

I flashed my Ace2 with STEP 2a:

a2n_kernel_gt-i8160_4.4.4_sdcard_only.zip

cwm_cm11_partitions_layout_sdcard_only.zip

I'ts working fine and I want to flash nanodroid 20.6.20190126 to provide MicroG.

I have tried many times and options but it's allways failure. It seems the installer cant manage the partitions.

Can you please guide me how to do it. I want the MicroG works with my Ace2.

Thanks for your help :)
[Galaxy Ace II Android Development] :
Hmm... this ROM may not have app signature spoof support... so MicroG might not work.

[MENTION=5840412]ace2nutzer[/MENTION] It's your turn ;)
[Galaxy Ace II Android Development] ace2nutzer:
Update !

Changelog:

Kernel 20190319:

Fixed "move apps to sdcard"

Enabled KSM Support - optimized for Android

Enabled UHID Support

Switched to Conservative cpu governor - higher powersaving

Updated Mali GPU Driver

Mali: updated gpu freq table for higher efficiency - removed too low steps

CPU: use 200 MHz Step only on Suspend

LCD: Reworked lcd type detection and split interface for each of lcd type

LCD: Recalibrated video.modes and LCD Freq - more smooth

LCD: fixed custom_lcdclk interface

Use: OPP 25% only on suspend

CPU: Conservative gov fine tuning

Optimized binary code optimizations - -O2 globally

Updated PLLDDR OC Module - improved stability

Reworked the whole VAPESEL2 & LPA(low-power-audio) Voltage Logic

Updated suspend_max_freq interface

Use the full Freq of 100 MHz instead the Half of 50 MHz for sdi1 as well - WLAN

BT: fixed file transfer issue

Disabled CRYP Engine - caused shutdown issue

Fixed Virtual memory layout

Disabled APEAT & APETRACE Clocks for Lauterbach Debugging - For powersaving

MCDE: re-enabled MCDE_DPI_UDERFLOW Patch

Updated Ramdisk and scripts

A2N Kernel Control V6.1

Screen: Fixed LCD detection

A2N Kernel Control V6.0

Misc: added KSM Control

CPU/GPU: updated Freq's according to the latest A2N Kernel

Audio: added LPA Undervolting - Low-Power-Audio on Suspend

Debug: removed LCD Type Detection - moved to "Screen"

Screen: added LCD Freq Control

Power: added 90% Charge - stop and hold charging at 90%

CPU: Suspend_max_freq: removed 200 MHz Choice - 200 MHz is the default min_freq on suspend

Enjoy ! :good:

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

Yeah :)
[Galaxy Ace II Android Development] gepel:
The broken battery graph in offline charge is still here (it works ok on 18/12)
[Galaxy Ace II Android Development] ace2nutzer:
Sorry for the inconvenience! Try to find out on which Kernel it stopped to work.

I need exact Kernel Version (the date), otherwise there's no way to get it fixed because it works OK for me on both LCD Models.

U even don't need to post Logs, because it's not a bug. Your LCD simply fails with a certain set of Configuration (Hardware issue). That's all.
[Galaxy Ace II Android Development] gepel:
As I mentioned and above the last version which worked was 18/12/2018
[Galaxy Ace II Android Development] :
Yes, I downloaded and flashed 18/12/2018 version and offline charging works now.
[Galaxy Ace II Android Development] ace2nutzer:
OK, as it turned out it was my bad :p

CM LPM worked with LCD S6D27A1

and Stock LPM worked as well with LCD WS2401 ...

but i wasn't testing if CM LPM works with LCD WS2401.

Well now it's all tested and fixed ...

Changelog:

Kernel 20190324:

MCDE: WS2401 Updated Delays - Fix for LPM

Kernel Config: tiny update

Updated Ramdisk and user Ramdisk

Moved LPM charger binary & /res/images/charger to user /ramdisk - allows to use custom charger binary and/or custom /res/images/charger

Please test and report if it's OK now for u as well !

Enjoy !! ;)
[Galaxy Ace II Android Development] gepel:
The offline charge has totally failed. When I attach the cable the first screen appears (with something like a star) but it freezes on that. The star stays onscreen even if I detach the cable...
[Galaxy Ace II Android Development] ace2nutzer:
Damn it!

On CM11 the Permissions aren't auto-fixed like it seems to be on Stock 4.1.2.

On next Kernel update i'll fix it.

In the mean time u can easily fix the permissions by yourself.

Just set the perm (chmod) to 755 for /ramdisk/charger

or in other words, it should be the same like /ramdisk/sh.
[Galaxy Ace II Android Development] ace2nutzer:
Damn it!

On CM11 the Permissions aren't auto-fixed like it seems to be on Stock 4.1.2.

On next Kernel update i'll fix it.

In the mean time u can easily fix the permissions by yourself.

Just set the perm (chmod) to 755 for /ramdisk/charger

or in other words, it should be the same like /ramdisk/sh.

This will fix LPM Charging.
[Galaxy Ace II Android Development] philsilvers:
Glad to see this great work still ongoing but the many times I tried in the past the a2n kernel app constantly crashed.
[Galaxy Ace II Android Development] ace2nutzer:
Demo or fullversion ?

Can u describe how to reproduce ?

U can also post logcat after it crashed.

Just make sure "disable logcat" is not enabled during u try to reproduce the crash.
[Galaxy Ace II Android Development] philsilvers:
It was on full version, also tried other firmwares and same thing, OK thanks I'll see if I can get a log, thanks again.
[Galaxy Ace II Android Development] ace2nutzer:
New Life for your Phone !!

Changelog:

Kernel 20190418:

GPU: Driver update - added dynamic_down_threshold for better power efficiency

CPU: gov conservative: added dynamic_down_threshold for better power efficiency

LCD WS2401: updated screen on/off delays - fix for LPM

LCD: fix user LCD Freq on late_resume

LCD: Driver update - improved stability, more smooth

LCD: added flicker-free support - by using highest LCD Freq + APE 100 requirement (to work stable)

FSB/DDR: updated Driver to work fine with 250/1000 MHz

I/O: Removed swap && zRam support - now we use KSM instead

BLN: Bug fix

Charger: changing charger current is now (again) possible "on-the-fly" (without to unplug the cable)

Rear Flash LED: updated Torch Brightness Control

A2N Kernel Control V6.3

Power: updated Charger Control

Screen: updated LCD Freq Control

Misc: removed zRam (now we use KSM instead)

Misc: KSM: added "pages to scan" choice

Msc: updated FSB/DDR OC Control

Misc: updated Torch Brightness Control

Minor bug fixes and improvements

Enjoy ! ;)
[Galaxy Ace II Android Development] gepel:
Dude the offline battery charging is STILL not working (the screen freezes on 'like a star' screen). The latest kernel version which offline charging worked was 18/12/2018..
[Galaxy Ace II Android Development] ace2nutzer:
Hmm then something went wrong, because it works for me. (tested on Android version 4.1.2 & 4.4.4)

For working LPM u need "Kernel2" partition which is "....p17" this partition is included in Stock partitions layout and it's still there if u reparted your phone with the "cwm_cm11_partitions_layout/(sdcard_only)" from my ftp server.

So to check if your partition p17 which is called "/ramdisk", open terminal emulator and type:

su
df

there u should see: /ramdisk on top of the list ...

size: 15.7M

Used: 4.7M

Furthermore u can check with CM FileManager (in root mode***) ... if the permissions are correct.

Go to /ramdisk

there u should see: "charger" with permission: "-rwxr-xr-r

and in /ramdisk/res/images/charger, u should see a few LPM Charger images which u can even open and see.

So in Summary, for working LPM u only need the charger binary in /ramdisk with the correct permissions and the charger images also located in /ramdisk partition. (and of course the lpm.rc boot script .. that loads the charger binary, but that's impossible that u don't have it, because it's in the real ramdisk in RAM .. so not in the erasable /ramdisk partition)

*** make sure after kernel installation u say "Yes" in cwm for root.

Anyway, if said "No", then just open the Demo Kernel Control App, go to --> debug ---> And check "Advanced root", or if it's already checked then u've to disable and enable again ...in order to take effect.
[Galaxy Ace II Android Development] gepel:
The magic recipe ... --> *** make sure after kernel installation u say "Yes" in cwm for root.

many thanks mate !! and i wish you a peaceful Easter
[Galaxy Ace II Android Development] ace2nutzer:
Oh i didn't know that LPM doesn't work without advanced Root mode... hmm i'll try to fix it better in next update.

But i'm glad to read that it works now for you !

Thank you, for you too a nice Easter and of course for all other people as well !