yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] brewzip:
Hi, I want to know something about the SafetyNet bypass. It works wonder out of the box with your kernel+cm11, but I wanted to export it to a system with Android 5+, so using a different rom. Like using the testing "LineageOS 13.0" one, in the first page of the section, but any other working rom would be fine.

Can I flash your kernel on a different rom and expect a SafetyNet bypass, or it doesn't support roms above Kitkat? Or what can I do to pass it? It seems like Magisk doesn't work for this phone, due to its boot mechanics.
[Galaxy Ace II Android Development] ace2nutzer:
ROM + Kernel is manually patched to bypass it .. it does more or less the same what magisk would do ... anyway it's not fully the same ... because i don't use systemless like magisk do .. but it works anyway.

I don't remember right now how i did it, but u can check the updater-script from the rom.

in addition u need to replace in your build.prop the following 2 properties:

ro.build.description=GT-I8160P-user 4.1.2 JZO54K I8160PXXMG2 release-keys
ro.build.fingerprint=samsung/GT-I8160P/GT-I8160P:4.1.2/JZO54K/I8160PXXMG2:user/release-keys

Or if it doesn't work, u could take some more appropriate fingerprints from any higher android version that passes with safetyNet ... e.g. from a stock ROM.
[Galaxy Ace II Android Development] brewzip:
Yeah, I made some progress with it. AOSP 6.0 + chronokernel, with fingerprint of a J5 phone and removed su with lineage addonsu-remove, passes the both test.

ro.build.description=j5lteub-user 6.0.1 MMB29M J500MUBU1BQA1 release-keys
ro.build.fingerprint=samsung/j5lteub/j5lte:6.0.1/MMB29M/J500MUBU1BQA1:user/release-keys

I will probably backup the current state, since it's probably good enough for now. Finding a way to enable root without triggering safetynet would be an extra bonus.

I checked your script, I think the relevant commands are:

rm /system/bin/su
rm /system/sbin/su
rm /system/xbin/su
cp /sbin/t46hf7h5 /system/.root
chmod 6755 /system/.root/t46hf7h5
ln -sf /system/.root/t46hf7h5 /system/.sbin/su

I assume your t46hf7h5 is cm-su, right? How does this enable root? I don't understand this .root folder thing. Is that name a placeholder or adding a dot to the name of the folder has some kind of overriding power? If so it's crazy.
[Galaxy Ace II Android Development] ace2nutzer:
Use only method from cm-11 .. not from my a2n kernel for 4.1.2... because it's different. (but works on some way)

[MENTION=5695278]ChronoMonochrome[/MENTION] (maybe usefull for u if u want to port this trick in newer android versions .. maybe u can make it even better :) )

from cm11 updater script it's:

delete("/system/bin/su");
delete("/system/sbin/su");
delete("/system/xbin/su");
...
symlink("../.root/t46hf7h5", "/system/.sbin/su");
...
set_metadata("/system/.root/t46hf7h5", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");

and in the cm11 rom zip package there's a hidden folder:

/system/.root/t46hf7h5 // this is basically the same su binary from the CM11 what is usually in /system/bin/ or /system/xbin.

But it can't stand be there .. because it'll trigger safetyNet .. so we just move it to that hidden .root folder and then we just add a symlink from than su binary to /system/bin. .. so on /system/bin there's only a "su" link .. not a real binary ... and that way it passes safetyNet.

But some CM11 related apps want make calls to the su binary in System/xbin ... but once u add there also the symlink then it'll trigger safetyNet.

That's why i had created a script that works on the fly where u can add and remove su link from "xbin" in order to get full su or half su but working safetynet ... That was the best i could reach so far.

That's the script for enabling root:

#!/system/bin/sh

# add root to /system/xbin

# enable wakelock
echo root1 > /sys/power/wake_lock

# remount /system rw
mount -o remount,rw /system

# add root to /system/xbin
ln -s /system/.sbin/su /system/xbin/su

# remount /system ro
mount -o remount,ro /system

# disable wakelock
echo root1 > /sys/power/wake_unlock

and to disable:

#!/system/bin/sh

# remove root from /system/xbin

# enable wakelock
echo root0 > /sys/power/wake_lock

# remount /system rw
mount -o remount,rw /system

# remove root from /system/xbin
rm /system/xbin/su

# remount /system ro
mount -o remount,ro /system

# disable wakelock
echo root0 > /sys/power/wake_unlock

as i said it works on the fly without to reboot the phone... i think it's acceptable solution for this old phone.

and of course /system need to be read-only as u can see ...

Maybe also some minimal fixes in ramdisk ... let me know if i should check as well ...
[Galaxy Ace II Android Development] ChronoMonochrome:
[MENTION=5840412]ace2nutzer[/MENTION]

Hey, thanks for sharing this!

I think, things got more complicated in higher Android versions. On i9300 LOS 16.0 builds, which doesn't even come with a root, it's impossible to pass safetynet without installing a Magisk. It can sometimes get tricky even with the Magisk. I'll probably try sync LOS 13.0 sources and build a Magisk kernel, just like it was done for Galaxy S2 in LOS 16.0.
[Galaxy Ace II Android Development] ace2nutzer:
ROM, Kernel and App Update !!

Changelog:

Kernel 20200403:

Updated Kernel Config

PLLDDR OC: driver update

LCD: driver update

NET: enabled congestion protocols: cubic, new reno, bic, westwood+

SWAP: optimized zRam

BOOT: improved boottime - boots with 1 GHz

GPU: added a real dynamic governor for more powersavings

CPU: conservative gov update

CPU/GPU: added a "boost" tunable in order to switch from min to max freq immediately

RAM: optimzed memory management - especially multitasking

ABB-Charger: driver update

A2N Kernel Control V7.1

GPU: allows to UV all steps

Profiles: added Performance Plus Profile

Network: added TCP Congestion Control

CPU/GPU: added Boost Control - in order to switch from min to max freq immediately

Updated defaults

Fixed back-arrow

Bug fixes

License Check: added Retry Button

CM11 ROM 20200328:

Updated build.prop - improved dalvik heap

incl. A2N Kernel 20200403 - normal version

Happy flashing !!
[Galaxy Ace II Android Development] kodina:
Hello.

I just flashed, everything went OK.

But for some reason, Play Store and Google Play Services are already installed, I

DID NOT

flash the gapps package.

Why is gapps integrated into the ROM?
[Galaxy Ace II Android Development] gepel:
Simple, you didn't format the sys partition..
[Galaxy Ace II Android Development] kodina:
I thought "wipe data/factory reset" was enough to delete ALL files on the phone? :confused:

I guess I was incorrect!

Thanks for pointing that out. :good:
[Galaxy Ace II Android Development] ace2nutzer:
wipe data only deletes user apps and settings, but not system Apps, for that u need to format /system.
[Galaxy Ace II Android Development] ace2nutzer:
deleted.
[Galaxy Ace II Android Development] bla.tiga:
I just buy your app in google store

But something pop up "missinf device or a2n kernel support" are the app fully functioning??

Did we need involving flash the new kernel , or i just bought the app???

I confused between settings in native android and your app (power setting) , which one is work? Your app or the native settings?

And by the way, why telegram only available for s8 users?????????????

Do we need flash the latest kernel?

Is mandatory to flash with temp cwm 6.0.28 as first page? Because i have after install cm 11 cwm 6.0.5.0
[Galaxy Ace II Android Development] ace2nutzer:
Yes, first flash latest CM 11 then latest a2n kernel.

if u'll still get that warning then just ignore it, it's probably a bug and will fix it.

if u mean the power settings like powersave, balanced ... then both works ! - U can change power profile on the fy over ROM in quick settings also ... but that setting will not apply at boot ... only the app is able to appy at boot any performance profile..

Nope, it's for all members of A2N Kernel.

Of course keep it always updated then u'll benefit from latest improvements and fixes.

No, cwm is fine, no need to flash temp_cwm then.

EDIT: [MENTION=6888345]bla.tiga[/MENTION]

Yes you need to flash latest kernel, then the warning will disappear.
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel is Up !!

Changelog:

Kernel 20200513:

RAM: optimized memory management

zRam: improved stability

init.d Fix

Updated Demo App installation

A2N Kernel Control V7.4

init.d Fix

CM11 ROM 20200328:

Updated build.prop - improved dalvik heap

incl. A2N Kernel 20200403 - normal version

Enjoy ! :cool:
[Galaxy Ace II Android Development] OverBim:
Hi. I'm on stock 4.1.2 and your A2N kernel (from the 4.1.2 thread). That seems to work fine. Thanks! I wanted to update to this CM11 / 4.4.4 version, but always ended up in an infinite black screen boot:

- 4.1.2 works fine

- 4.1.2 with A2N works fine

- 4.1.2 with A2N rooted -> black screen

Started from scratch (3-part with ODIN), then:

- 4.4.4 flashed over working 4.1.2 -> black screen

- 4.4.4 + A2N kernel flashed over working 4.1.2 -> black screen

- layout / no SD zip + 4.4.4 + A2N kernel flashed over working 4.1.2 -> black screen

What am I doing wrong?
[Galaxy Ace II Android Development] ace2nutzer:
Try Again for CM11, i think you have skipped some steps.

Read carefully and do exactly what you read.

as for 4.1.2 rooted kernel: probably you need to update the superSU App, just open the SuperSU app and follow the steps .. just choose normal update method over cwm.
[Galaxy Ace II Android Development] OverBim:
Thanks for your answer. With "rooted" I meant flashing the kernel package marked as rooted. After flashing that the device never booted for me. I tried twice. (4.1.2 + A2N kernel -> ok, 4.1.2 + A2N rooted kernel -> black screen).

Will try again when I have time and make sure I do everything in the correct order...
[Galaxy Ace II Android Development] hadi.54:
hi

i do exactly steps.

but when i install gapps i see error that your android is 4.1.2 and when i reboot screen is black.

my android is 4.1.2 stock rom.
[Galaxy Ace II Android Development] ace2nutzer:
Please check again Step 4, there was some missing steps and i've corrected it right now.

Let me know if it works now.
[Galaxy Ace II Android Development] hadi.54:
I do your new steps but at the end just "Samsung galaxy ace 2" is on screen.:confused::confused::confused:
[Galaxy Ace II Android Development] ace2nutzer:
strange .. latest build should work fine, i still use ace 2 sometimes as a second device and it works fine.

Maybe you can provide logs ?

So u've Android 4.1.2 and after you wipe data system and sdcard0 reboot to recovery and you flash CM11 then 4.4.4_kernel .. and it'll not boot ?
[Galaxy Ace II Android Development] hadi.54:
1. install Temp_CWM_6.0.2.8.zip

2. install a2n_kernel_gt-i8160_4.4.4_sdcard_only.zip

3. boot to recovery again

4. format /system

5. format /storage/sdcard0 as "vfat"

6. wipe data/factory reset

7. flash CM11

8. flash a2n_kernel_gt-i8160_4.4.4_sdcard_only.zip

9. Flash gapps

10. flash Swype_fix.zip
[Galaxy Ace II Android Development] ace2nutzer:
After 6. reboot recovery

You choose sdcard_only kernel ... so did you already reparted your Phone with sdcard_only layout ?
[Galaxy Ace II Android Development] marcimix:
What the charming ROM and still alive!

I changed launcher to trebuchet from here: https://xdaforums.com/showthread.php?t=2198924 and delete of yours - Nova

Turned off the Play Store for better RAM management

I have some problems with bluetooth paring. I will try send lolcat next time. it's connecting multiple times to bluetooth sound system at first glance.

My main problem is ssl certification, most sites have warning, like this:

https://imgur.com/iKZTmXX

https://imgur.com/il61oej

Funny thing cause on stock ROM i can not even look at the page.

Thank you!

Guys what do you recommend to alternative for google maps?
[Galaxy Ace II Android Development] ace2nutzer:
U only need to do this:

Unpack the ROM to your PC...

Navigate to system/priv-app

and rename:

NovaLauncher.apk to NovaLauncher.apk.bak

then rename:

Trebuchet.apk.bak to Trebuchet.apk

repack the ROM as ZIP and flash it.

This will install the ROM with Native optimized Trebuchet instead NovaLauncher.

Not needed, it's old ROM now ... i'm not working anymore on this old ROM.

I'll start soon a new project for the Ace 2.

use another browser ... stock browser is quite outdated.
[Galaxy Ace II Android Development] kodina:
Thanks, installed this on my old Ace 2, works perfectly, stable, no lag and no crashes! :cool: :cool: :cool: :cool:
[Galaxy Ace II Android Development] Mohammad Jebreeni:
Mind telling us about or giving us a glance on your next project regarding the Ace 2? :)
[Galaxy Ace II Android Development] marcimix:
I using Via Browser and there is the same problem too with certification. I think I can not login to my bank account app by this bug on your ROM.

I hope will we get LineageOS 11 :D:D

I can not send any files thru FTP bluetooth to sdcard folders. I use kubuntu 20.04 btw :p

AND THANK YOU SO MUCH.

WITH THIS PHONE I CAN FIGHT WITH MY NETWORK ADDICTION SUCCESSIVELY.

MoonReader (ebook reader) works I mean I can install compare to stock. :fingers-crossed::highfive::laugh::silly::victory::cool:

it's weirdo but ace 2 have more battery backup than Snote 8 of my friend phone :laugh:
[Galaxy Ace II Android Development] ace2nutzer:
Sorry Guys, but i'll not start a new project, as i don't have anymore motivation. :(

But you can still expect some kernel updates for 4.1.2 and 4.4.4.
[Galaxy Ace II Android Development] ace2nutzer:
New Builds are Up !!

Changelog:

CM11 ROM 20200823:

Updated build.prop - improved dalvik heap

incl. A2N Kernel 20200823 - normal version

Kernel 20200823:

RAM: optimized memory management

Extended Support for Mouse, Keyboard and Joysticks

A2N Kernel Control V7.5

Source update

Since i can't edit the Thread Title anymore ... (Forum Bug)

Enjoy Guys .. even if almost no one uses this Phone lol.

I had two Ace 2 Devices .. and one died by self (seems that bootloader is broken, caused by buggy NAND-Flash) ... so R.I.P.

But the other Ace 2 still WORKS :D I think i'll use it as MP3 Player in my Car.

And the Galaxy S8 for daily usage ...

btw: it would be cool to see some old members here from Ace 2 to my S8 Thread ...

If someone need to buy a new Phone, i really can suggest to buy a Galaxy S8 or S8+ and then use it with A2N Kernel .. works like a beast .. especially for gamers.

Even without OC it can reach the same 3D Power like the S10. :o

Supported Devices: (Exynos Version only)

G950F

G950FD

G950N

G955F

G955FD

G955N
[Galaxy Ace II Android Development] marcimix:
I found serious bug. When your ROM is on the airplane mode I does not receive any massage from voicemail. My family and friends worry about me that something happen. :angel: I need apologize and I think I can miss anything valid.

It's possible to fix?

I have 5h lessons per day so it's like half a day without signal :laugh:
[Galaxy Ace II Android Development] ace2nutzer:
Strange ... i've no idea what it could be :confused:
[Galaxy Ace II Android Development] i-cuz:
I have a weird problem: after flashing your ROM the touchscreen doesn't work at all. Physical buttons are ok.

Back to stock it works, but flashing your kernel for stock breaks it too.

I don't understand if the hardware is failing, but why stock works?
[Galaxy Ace II Android Development] ace2nutzer:
Strange, it works for me with latest kernel from 23.08.2020.

So you may record a video how you flash the ROM and kernel or try to connect you phone while it doesn't work with your laptop running ADB .. so you can watch live what the phone is doing in the background (logs).

So the command is quite simple as this:

cat /proc/kmsg
[Galaxy Ace II Android Development] SenTiKo:
ace2nutzer, you're great coder. So many great features. Also have found a way to repartition. Great. Thanks
[Galaxy Ace II Android Development] fonzacus:
huge kudos for keeping our dinosaurs interesting over the years, im still using it, but my friend. modded it to use it without a battery (dead battery, only half an hour with full charge)

i really wished i checked out this thread before buying a new phone. had i known you were actively modding over at s8, i wouldve bought that instead. i currently have a somethingsomething and regret buying it. tons of junk, not a lot of mods, "funny" dev team and so on.
[Galaxy Ace II Android Development] rewolt90:
Dear ace2nutzer, ChronoMonochrome and others great guys!

It's been a while when I wrote something here, but reading this topic turned me into a good mood and I reactivated an account specially to leave here some words to you :)

I've been travelling for some time and I realised that I need a simple phone with internet, flashlight, and voice calls/sms with maximum battery live as possible. Minimalism is my domain so additional power bank was not for me. Newest phones are good but it's a shame to destroy that kind of phone in a trip so some time ago I decided to reactivate my Ace II.

Plan was simple: install all newest features and buy the biggest battery as possible.

I installed your soft and bought myself a Chinese battery with a huge capacity around 3800 mAh. The effect is incredible! :D

Now I have quite a decent phone with me, which I can use almost like a penknife and which will be working for a week in difficult conditions without charging.

I am very impressed that this phone can still work so well and still has such great support ;)

May thanks to you and be well!

This is the maximum time without charging that this phone can achieve.
[Galaxy Ace II Android Development] ace2nutzer:
[MENTION=6653916]rewolt90[/MENTION]

1 month without charging is really INSANE !! haha !

I didn't even know that here are still users that uses this old but gold ROM !

Maybe i'll provide some more support here and improvements ... taken from my more active S8 project.

It's still possible to make it even better, this is why i never couldn't stop Android development, because it's cool to break every time the own record !
[Galaxy Ace II Android Development] rewolt90:
Hah it looks insane too, like a soap dish :cyclops:

I have to paint it in a less "premium" color... :P

[MENTION=5840412]ace2nutzer[/MENTION], for me this rom is complete and don't really need any bigger upgrades, but if you still want to do something interesting and have time to try, then....

There is an app IP Webcam. It would be great to use our Ace II as a webcam, but somehow this app is not working for me (maybe missing security modules in rom or something?).

Second thought is to update rom files to add newest security patches from google, but I don't know if it is even possible to do that for KitKat.

Whatever you decide, thanks for a great job! :victory:

EDIT: I take back what I said!

Maybe someone resolved the problem in app, maybe there was another unknown problem, but after an update everything is working fine :D

Sorry for bothering you.
[Galaxy Ace II Android Development] gepel:
Hello to everyone on this forum. Ace2Nutzer i takeout from my drawer my valuable ace2 (i have every update of your rom/kernel on it) but i am facing with some strange cell network problem. It works really great on 2g but when i select the 3g it loose signal at the beginning and after a very slow registration on 3g network it cant connect to data network. that's it it staying on only voice mode and data is disabled.. I tried some troubleshooting without any success. In past i had formatted the modemfs partition but after a long recovery (back to 2.xx version blah blah it seems to work fine but now i have this one with 3g..
[Galaxy Ace II Android Development] ace2nutzer:
Is it kernel issue ?

You can flash chrono kernel to see if it's better.

Let me know.
[Galaxy Ace II Android Development] gepel:
I flashed the chrono's kernel but i couldn;t check it (use the sdcard-only version of your kernel) cause all apps crashed instantly. Later i flashed the official rom (4.1.2) but unfortunately i had the same behavior. So ,sadly to admit it, my beloved ace2 seems to has some problem on 3g networks, or could i try anything else..
[Galaxy Ace II Android Development] ace2nutzer:
Tested both on 4.1.2 ROM with Stock / A2N Kernel ?

If there is no difference in 3G then it's Hardware issue.
[Galaxy Ace II Android Development] bla.tiga:
hey ace 2 nutzer, can you add casting / miracast feature to next update in official app playstore, please please...

i need that feature a lot..

or maybe can someone advice how to play to tv via hdmi or what

i have old lcd tv (not smart tv) with hdmi , right now i can casting the android through my xiaomi redmi note 7 (using cheap anycast dongle) , but when its dedicated to casting, i cant do anything with the phone , my only device left is galaxy ace 2 with 4.4.4 cm 11 + officiall kernel app ace 2 nutzer

did i need flash to lolipop? is there any rom to have support with ace 2 with casting feature

thx a lot
[Galaxy Ace II Android Development] gepel:
Hello to all !! Hi ace2nutzer as i see on your ftp there is a new rom+kernel. Do we have a changelog for it ?
[Galaxy Ace II Android Development] zero407:
Hi, I installed this rom last night, I followed every step carefully, everything works excellent, except that the phone is having random reboots here and there, and the battery drops from 60% to 30% or so, any advice on how to fix this?
[Galaxy Ace II Android Development] ace2nutzer:
Sure, i'm a bit late, but better later than never :cowboy:

Changelog:

Kernel 2021.02.06:

Swap: added more optimizations for zRam - easily 10x faster than before !

A2N Kernel Control V. 7.7

Power: added "Maximum Charging Temperature"

CPU: added "Suspend Max Freq"

CPU/GPU: added more governor tunables

RAM: added "Low Memory Killer" (for min free RAM) & "Drop Caches & Buffers"**

Power: added "Battery Temperature / Voltage Check"**

Added a quick 4-way reboot menu**

Stability fix

Updated defaults

Fixed grammar

Cleanup

Kernel 2021.01.20:

GPU/GPU: updated ondemand governor

Source update

RAM: 631 MB @ 632 MB

CPU: switched to ondemand governor

Timer: HZ=300 @ HZ=250

Charger Control: added "Max Charging Temperature" default: 40 °C - range: 35 - 45 °C

and set ac_curr_max=800 @ 1000 mA - range: 100 - 1500 mA

also added better support for 3rd-party batteries with 3.7 V (auto detection)

LCD: driver update for stability and smoothness

Wi-Fi: added better support for 80211n

Full support for IPsec

A2N Kernel Control V. 7.6

Source update

CM11 ROM 2021.01.20:

Optimized build.prop

incl. A2N Kernel 2020.01.20 - normal version

** free features

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

I've no idea about this, but i don't think you can connect the Ace 2 on TV over cable.

But maybe works over Wi-Fi, just search the web.

If it'll not works over Wi-Fi with this ROM then you could try with stock ROM 4.1.2 .. it's quite ols but it's less buggy than CM 11 here.

Hi, try with this new build 2021.02.06 ...

If random reboots still happens, then simply post last_kmsg right after the random reboot.

Warning: do not power off the phone after the random reboot, otherwise the logs are lost.

You can easily generate the log over the demo app that became installed with kernel package.

You may need to rename last_kmsg to last_kmsg.txt for direkt upload here in forum ... Damn it, again i have forget to fix this ! :p

You need to replace the battery.
[Galaxy Ace II Android Development] zero407:
Thanks! I'll try it right away, btw I couldn't find the last version of the rom ( 2021.02.06)
[Galaxy Ace II Android Development] zero407:
oh nevermind, i just realized it is a kernel update xD, Thanks!
[Galaxy Ace II Android Development] zero407:
oh nevermind, I just realized it is a kernel update xD, Thanks!
[Galaxy Ace II Android Development] ace2nutzer:
2021.01.20

Is latest build, but i remember it's not build from sources anymore, because i want to start a new project.
[Galaxy Ace II Android Development] zero407:
Hi Ace2nutzer, I installed the latest kernel, but random reboots still occur, so, as you said, I attached the last kmsg right after the reboot