yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] ace2nutzer:
OK, i'll do it.

It's very rare... maybe just 1 - 5% of all apps. (no special category).

It happens on apps that don't understand that the cards are swapped ! So it's more or less app bug itself.

In such a case, u only need to swap storages, reboot, install that stupid app, swap again and reboot!.

Kinda annoying job ... but i'll re-add anyway ;)
[Galaxy Ace II Android Development] :
Anyway to enable SELinux to Enforced? (For SafetyNet reason)

Good news: A2N Kernel (no root) on Stock 4.1.2 ROM PASSED SafetyNet :good:

BTW, thanks for your update!
[Galaxy Ace II Android Development] ace2nutzer:
A2N Kernel Control 3.6 can do that.

Take a look at "misc".
[Galaxy Ace II Android Development] :
Anything?

I do not see anything in Kernel ZIP or in the server.
[Galaxy Ace II Android Development] ace2nutzer:
lol i mean in the app itself:

https://lh3.googleusercontent.com/1...uQ-WCZ-Y6OjsT0DQZlFuo5l86OYYqc9RZM=w1280-h679

u didn't receive the update?!

On the other hand it requires root permission to change to enforce, so maybe that will not help much.

I can revert that it's possible to change the mode even without root permission, but this is probably a security leak.

So i made it (again) more secure... but it'll not help to fix SafetyNet. :eek:

I've read some article why SafetyNet doesn't pass. It depends on many things like: selinux status, root, custom rom, modified system partition and maybe some more.

So it's probably very hard to fix it.

They suggest to use magisk with the needed modules and of course to completely remove SuperSu with all the binaries. That means it's probably best to recompile the ROM without root support at all. And then also due of the original generated build.prop fingerprint or so. I'm not that familiar with things like selinux & Safetynet.

My Game is primary to improve performance and battery duty :)

The thing is, i'm actually busy with G950F device development and i've deleted now the CM11 sources from my laptop, because i need the space for aosp 4.1.2 sources.

But the whole CM11 sources + all the patches and my optimizations are all in my GitHub, except the needed build script (i can share them of course) and some dummy files that are needed in order to don't break compilation.

If u or somebody else want to build (and modify) this CM11, just let me know, and i give u some hints how to build it.

Basically it would be, in short explained:

1. u need any 64-bit linux Distro OS .. (i use lubuntu, works very well on old computers)

2. at least 4GB RAM + zram enabled lol - and around 50GB free space on your HDD (2 separate hdd's even better ... not a splitted hdd, that serves nothing)

3. CPU should be at least powerful dual-core or even better quad-core or octa-core.

4. install all the needed build packages according to the android developers instructions for android kitkat... (java etc..)

5. Download the sources ... (from my gitHub)

6. adjust build scripts u'll get from me ... (paths etc ... )

7. start compilation and see if it works :highfive:
[Galaxy Ace II Android Development] ChronoMonochrome:
Hi, I'd suggest to take some care not to implement SELinux switch in an app (especially if you store the app in Google Play) - Google can just remove app / ban the account.

https://www.reddit.com/r/Android/comments/30xxdr/apps_that_modify_selinux_state_are_not_allowed_to/
[Galaxy Ace II Android Development] :
That's also one reason why Lucky Patcher app cannot be uploaded to Play Store.

In changing SELinux mode, it's very easy. Just create two shell script:

• For changing SELinux to permissive:

setenforce 0

• For changing SELinux to enforced:

setenforce 1

Just make sure you run these scripts as root then it's ok. ;)

Or just build a little free app to change that mode without uploading to Play Store.

Or use this app (I found in a thread that show "Google banning SELinux changer app on Store blah blah...): https://www.androidfilehost.com/?fid=24052804347769409

I do not know who built that app. (Maybe wantowan2)
[Galaxy Ace II Android Development] fonzacus:
thanks for readding the swap storages back
[Galaxy Ace II Android Development] ace2nutzer:
Premium Updates :)

Changelog:

Kernel 20180601:

updated CPU/GPU Driver

cpu: added 600Mhz step

removed old workaround for powersave profile with 500Mhz

gpu: removed 250Mhz Step

updated interactive gov

updated /perf.profiles.rc

less battery draining - because of decreased cpu voltages and 600Mhz step

higher efficiency

Updated ramdisk

CM11 ROM 20180601:

Updated Dalvik Heaps

disabled "persist.sys.dalvik.multithread" - due of some race condition

incl. A2N Kernel 20180601 - normal version

AUTO wipe cache and dalvik-cache

A2N Kernel Control [GT-I8160] V3.8

Updated CPU/GPU/Profile stuff according to the latest A2N Kernel

Both CPU/GPU Undervolting control are allowed up to -200mV

swap/zram: use 1/2 of available RAM

use it ONLY with latest A2N Kernel

This latest Update seem to work very well ... even real racing 3 is smooth (with performance profile + zram enabled) ;)

HAVE FUN !
[Galaxy Ace II Android Development] Fabbb2:
I installed the last version : the camera app craches ! I deleted the app data but it still crashes...

Do you have the same problem ?
[Galaxy Ace II Android Development] ace2nutzer:
No, works fine here.

make sure "df" shows sdcard0 with enough free space.

Camera App need sdcard0, no matter if internal sd0 or swapped sd0 with sd1.

Make sure u're using the proper kernel version according to the partition layout u had performed.

In some cases u needed to toggle "swap storages" in kernel control app.

Another good tip is to wipe data of my control app, configure and reboot the phone.

After all that your Camera App should work.

If not, please make sure u didn't disable androids logcat and then let the camera crash and create the logs in my app. (dmesg + logcat)

And share it here in the thread, i'll take a look into it ASAP.
[Galaxy Ace II Android Development] Fabbb2:
Exactly, i had no space left on the card 0 because i backup to sdcard0 by mistake !

Thank you A2N !
[Galaxy Ace II Android Development] ace2nutzer:
New Kernel & App released !

Changelog:

Kernel 20180612:

Updated interactive gov

Higher efficiency

Real-Time Kernel

CPU: added 400Mhz step

updated /perf.profiles.rc

Updated ramdisk

A2N Kernel Control [GT-I8160] V4.0

CPU: added 400Mhz Step

use it ONLY with latest A2N Kernel

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

Version Info:

Install first the Kernel then update your A2N Kernel Control App and then Reboot the System.

ENJOY !
[Galaxy Ace II Android Development] :
Till the end you re-added full CPU steps like every other kernel... Which is very important for battery saving reasons ;)

Why shouldn't we use some "hotplugging" governors?
[Galaxy Ace II Android Development] ace2nutzer:
Yeah that's right but so far i wasn't able to make it smooth and very fast responses without to remove 400/600 Mhz Steps. Usually other custom kernels adds a lot of cpu governors so that u can choose the appropriate one for your work. E.g. one governor for powersave(laggs like hell), one for benchmarks/games (high battery draining) and one for daily usage which lags too.

My Goal was since the Year 2014 to create and tune one governor that can handle all 3 governors above mentioned in a single governor. So far i never managed to make it real, because it was almost impossible and unreal.

But now i've finally managed to create one governor that is suitable for everything ! :good:

Short answer:

because it serves nothing ! ;)

Long answer:

the sense of a multicore cpu is to increase efficiency (performance/power), so if u shut down some cpu-cores u'll just revert the benefit of a multicore cpu.

Once u've less cores enabed, the other cores that are actually online will be more busy, which results in higher freq & higher cpu voltage and both things results in higher power consumption. The main reason for decreased efficiency is simply the fact that higher frequencies are less efficient on every CPU/cpu-core.. no matter if unicore cpu or multicore cpu.

Another good example to understand why it's so useless is here on my Galaxy S8 Phone (even on stock kernel)...

It has 2 different quad-core CPU's. CPU0 should be the powersave one (LITTLE)... and CPU1 is for high performance workloads.(BIG)

CPU0 = 455 - 1690Mhz

CPU1 = 741 - 2314Mhz

Both cpus with total 8 cores are always online ... even when the screen is OFF .. of course only if the phone is actually awake !

So now the important part:

CPU0 @ max freq 1,7Ghz has very low voltage.

CPU1 @ 1,7Ghz has the same low voltage like the CPU0 !

Only Freqs higher than 1,7Ghz will drain much more battery.

So that's why it's even useless to hotplug the whole "BIG" CPU here.

Simply reducing proportional the max CPU FREQ on all cores and cpus is way more efficient in terms of battery duty. :cowboy:
[Galaxy Ace II Android Development] ace2nutzer:
Kernel Update

Changelog:

Kernel 20180615:

Updated "interactive" cpu governor

Mali-400 GPU: set down_threshold to 20%

CPU: set cpufreq_opp_delay to "0"

Higher efficiency

Now it works even better ! ;)

UPDATE AND ENJOY :cool:
[Galaxy Ace II Android Development] Stone2001:
I have a question. Can I just flash the new Rom and kernel on the older Rom without losing my data/apps/configuration and so on?!

It is called dirt installation, isn't it?
[Galaxy Ace II Android Development] ace2nutzer:
Yes u can !

So start basically on post #1 with Step3.

Don't forget to flash latest opengapps package.
[Galaxy Ace II Android Development] wolfensg:
Rom still works awesomely well (but only if I downloaded latest version - probably due to the changes google made to Gapps).

However there are some minor things I see (one could be just because of my Ace2 unit, second probably issue with Lineage sources:

1. Blackscreen bug again (did not check any releases for about a year or so). My LCD is WS2401. Flashing some old a2n kernel (from 2016) which I had with LCD screen fix is actualy fixing the problem.

2. Some themes which worked a year ago flawlessly now cause os to reboot after being installed. Funny thing is that they also stay installed even though you cannot use them :) (attempt to uninstall causes os to reboot as well ;) That's a real pity as I absolutely love Simplex theme :)

I wish there could be a rom with Android newer than KK that stable and smoothly as this one. [MENTION=5840412]ace2nutzer[/MENTION] - great work!
[Galaxy Ace II Android Development] :
1. The same as me, but for me it even worse: Even on stock :( (My 5 years old seems to not working well with WiFi tethering)

2. And more: it got automatically uninstalled on me.

We can wait for LP or MM, but MM is better than LP - in nearly everything.

But it might not be in the future - ace2nutzer is having an S8 now...

[MENTION=5840412]ace2nutzer[/MENTION] I do not know if it bother you, but I ask a question: How can I get a logcat/last_kmsg on boot?

As I really want to run your ROM, but my phone automatically reboot on 3G connected...
[Galaxy Ace II Android Development] ace2nutzer:
@ up

did u try if it also happens with the control app uninstalled ?!

If so, after it freezes, then reboot immediately to cwm and create the last_kmsg with ADB like it's described on Post #3.

(just make sure both sdcards are mounted before u type the command.)

Hey, now i remember your username and how your WS2401 worked. I'd every time to make extra kernel for u. But it's actually not that painfully to create for u a personal init.d script ... which u can add to the zip package of any A2N Kernel and your LCD should work!. I'll give u the instructions when i upload next kernel. :)
[Galaxy Ace II Android Development] wolfensg:
Hehe :) Actualy I've uninstalled the app before flashing older kernel so cannot tell :/ But thanks for the idea :)

I don't use my Ace2 that much nowadays but probably I'd be stuck with it for a month or so in September :) having newer kernel could help a bit, but anyway - my current one works just fine.
[Galaxy Ace II Android Development] ace2nutzer:
If on first boot the LCD works, then u can actually install (on latest kernel) the Control App and enable the setting: "chuck norris mode" on the screen section. Right now checked the App sources .. it'll use stock LCD Freq for WS2401 which will fix your LCD issues.

But if u can't do that, due of LCD is black/grey, then u'll need to flash latest kernel with this little init.d script:

#!/system/bin/sh

# User init.d script

# LCD Fix for WS2401
echo 6 > /sys/kernel/mcde/lcd_clk

Unpack the latest kernel and navigate to system/etc/init.d .. there u'll see the file "99_user".

Open that file with any C+/C++ text editor (or simply with any linux text editor) and replace the content with the above Code.

Now repack the kernel package to *.zip and flash it with cwm like usual.

I assume that cwm will work, because it uses stock lcd freq by default.
[Galaxy Ace II Android Development] wolfensg:
Actually your latest a2n kernel booted up correctly, the problem was only after a while (deep sleep?) and during unlock (or if there was an incomming call ;) but I'll check in the evening with this script :)

If this is so simple to make it permanently working I'd be happy to use the latest kernel, thanks again! :)
[Galaxy Ace II Android Development] ace2nutzer:
No, just lcd issue.

Yes, it's that simple.

Here again the full script:

#!/system/bin/sh

# User init.d script

# LCD Fix for WS2401
echo 6 > /sys/kernel/mcde/lcd_clk
echo hbp=4 > /sys/devices/pri_lcd_ws2401.0/mcde_chnl
echo hfp=4 > /sys/devices/pri_lcd_ws2401.0/mcde_chnl
echo vfp=4 > /sys/devices/pri_lcd_ws2401.0/mcde_chnl
echo hsw=4 > /sys/devices/pri_lcd_ws2401.0/mcde_chnl
echo update > /sys/devices/pri_lcd_ws2401.0/mcde_chnl
[Galaxy Ace II Android Development] :
Thanks, my LCD should be good with your configs!

But I already asked you a question... Can your please answer it?
[Galaxy Ace II Android Development] ace2nutzer:
I already answered u in post #8501.

last_kmsg is first enough ....
[Galaxy Ace II Android Development] wolfensg:
[MENTION=5840412]ace2nutzer[/MENTION] All works like a charm, I've made a flashable zip with the fix so anyone (having that crappy LCD that I have ;) can first flash your kernel and then this fix.

Edit: Well... unfortunately does not work after a while - same issue. If locked and left for a minute or two first unlock gets "bars". I've flashed the old kernel on which all works fine now: ace2nutzer.kernel.4.4.x_20160910_LCD.FIX_codina.p.l.zip

Unfortunately with this kernel flashed the wi-fi does not work (but I don't need it anyway) I'm attaching this kernel if anyone has similar problem. WARNING! Sometimes (I don't know as previously it was different and now it seems to be working like this all the time) flashing this kernel disables recovery (?!) but then you can always flash via Odin attached (also from ace2nutzer) kernel "odin enabled" :)

Edit2: I've did the following:

- flash newest available a2n kernel

- flash attached "fix" (its actualy your script ;)

- boot the rom

- go to a2n settings and enable chuck norris mode ;)

- reboot the phone

...and problem still appears every time after leaving phone for couple of minutes (anyway - I'll be experimenting for a while now, maybe I find a way why it's not working (and if I won't find anything I'll just stick with the older kernel)
[Galaxy Ace II Android Development] ace2nutzer:
No need to experiment :)

Just post the git code from any working kernel for your lcd.

So it would be: 20160910_LCD.FIX.

You can find the code under "kernel-version" ..

It's just in the first line and it starts with "g".

So i can see wich lcd parameters we was using at that time ;)
[Galaxy Ace II Android Development] wolfensg:
This seems to work fine for my crappy LCD:

Kernel version: 3.0.101-ace2nutzer-ga8c7886

ace2nutzer@V5535 #1

Sat Sep 10 02:50:21 CEST 2016
[Galaxy Ace II Android Development] ace2nutzer:
Can u please verify if this code is correct?

ga8c7886

cause i can't access the history. (wrong code or is too old)
[Galaxy Ace II Android Development] wolfensg:
Yes, it's the correct code :/

It is the same kernel I attached to my previous post.
[Galaxy Ace II Android Development] ace2nutzer:
Ah ok thx ! - Then i'll solve this problem in a different way... don't worry.

Unfortunately even if i flash that kernel to my phone, still can't access the parameters .... i think it's related to the LCD delays .. which are hardcoded in sources.

I'll build a test kernel with different delays ... i'll send u a pm later.

Edit: [MENTION=6107065]wolfensg[/MENTION]

Stock kernel on 4.1.2 worked fine for the LCD ??
[Galaxy Ace II Android Development] wolfensg:
Yup :)
[Galaxy Ace II Android Development] Fabbb2:
Hey A2N, i have the feeling that the last version is going slower. Even the torch is long to open for me.
[Galaxy Ace II Android Development] :
That's because the stock values.

With me, using ChronoKernel with other than stock recovery works fine with my LCD.
[Galaxy Ace II Android Development] wolfensg:
Which version of ChronoKernel you are using?

I've tried to flash couple of them but either my CM11 did not boot (I'm using ace2nutzers build) or even if booted I had swapped storages (which I really did not want as I have prepared my own reparted script which has quite big sys/data but also has some free space for SDCARD0) (fortunately I had the backup of OS before experimenting :)

Is it possible to enable zRam on ChronoKernel as well? (and to set max CPU to 1000Mhz)?
[Galaxy Ace II Android Development] :
The latest one (r5.9).

BTW, the LCD also work well from r5.1 and above.

Yeah.

Yes.

Use the ChronoKernel Settings app to set min and max CPU.

But do not try to enable zRAM in that app! (I tested and it froze my phone).

That kernel have zRAM support.:good:
[Galaxy Ace II Android Development] ace2nutzer:
Kernel & App Update!!

Changelog:

Kernel 20180711:

swap: improved zram

cpu: interactive governor sync to AK* 3.4.67

i/o: deadline scheduler sync to AK 3.4.67

Fixed Kernel Headers

binder, lmk: sync to AK 3.4.67

mcde: updated lcd driver

disabled some tracing

updated ramdisk

* = Android Kernel

A2N Kernel Control [GT-I8160] V4.2

Screen: updated lcd freq stuff

use it ONLY with latest A2N Kernel

A2N Kernel Control [GT-I8160] V4.1

Misc: added reboot dialog for pllddr oc

use it ONLY with latest A2N Kernel

Version Info:

wipe data of A2N Kernel Control is recommended

Flash and unleash the real power of your Ace 2 ;)
[Galaxy Ace II Android Development] Culateralligator:
Swipe keyboard isn't working. Anyone else with this problem? I'm on latest ROM
[Galaxy Ace II Android Development] ace2nutzer:
Swype_fix ..... ;)

http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Android_4.4.4/Misc
[Galaxy Ace II Android Development] Culateralligator:
Thanks Ace ?. I had already flash it and it was still the same. I can see the swype lines in the keyboard but finally the words don't appear.
[Galaxy Ace II Android Development] ace2nutzer:
Did u try to flash the AOSP jb dictionaries ? U can find in "misc".
[Galaxy Ace II Android Development] jygzii:
bricked!

Sir, I need help. My Ace 2 suddenly restarting over and over and I can't even use it..I try to downgrade it to JB, use the 3-parted files..but unfortunately I can't enter recovery mode, i try flashing with odin stock firmwares (GB and JB version) but none of them works. Thanks!
[Galaxy Ace II Android Development] Culateralligator:
Thanks, the problem is still there. Have you tried it, can you use it properly?
[Galaxy Ace II Android Development] ace2nutzer:
Yes, works properly in german language.
[Galaxy Ace II Android Development] Culateralligator:
Fixed. I've flash for the third time the rom and now it works. :good:

BTW: I don't read XDA much lastly, how is AOSP going?

Regards.
[Galaxy Ace II Android Development] ace2nutzer:
honestly i haven't even downloaded the sources. I'm actually busy with app development for G. S8.

A2N Kernel for G. S8 is done and works very well. Once i'm done with the App, i'll start with AOSP 4.1.2 for G. Ace 2. So sorry for that long waiting ...
[Galaxy Ace II Android Development] wolfensg:
Thanks to the awesome work of [MENTION=5840412]ace2nutzer[/MENTION] my cumbersome Ace2 started to FINALLY work properly with all the bells and whistles! My crappy WS2401 works suprisingly well with default settings (and no black-screen bugs), Wi-Fi is working properly, no random reboots or BLN notifications going wild and most important my Ace2 can now benefit from outstanding performance delivered by the newest a2n kernel. All of this tweakable via A2N Control Panel ! :)

Go grab newest kernel a2n_kernel_gt-i8160_4.4.4_20180711.zip from here: http://www.xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Android_4.4.4/Kernel/

(If you haven't yet bought A2N Control Panel in the PlayStore ( https://play.google.com/store/apps/details?id=com.ace2nutzer.settings.device )- COME ON! This guy spent a lot of his private time to make marvelous stuff for Ace2 - show him your appreciation!)
[Galaxy Ace II Android Development] GIANRY:
Hi to all,

I've installed the CM11 full firmware on my Ace 2 . At start now The system ask me a password todecrypt storage

which is that password ?

thanks
[Galaxy Ace II Android Development] ace2nutzer:
Hi, i think something went wrong!

Try again from scratch ... step0.
[Galaxy Ace II Android Development] :
Easy. Format /data will fix it. :good:
[Galaxy Ace II Android Development] fonzacus:
i also got that issue before from improper repartitioning, yeah you are forced to downgrade back to GB (step0).

anyone having trouble with VPNs on the 711 build? its nice, im getting slightly better battery and the phone overall is cooler with normal usage.

edit

it turns out i flashed chronokernel 6 on top of a2n 711. probably due to me being too sleepy that night.
[Galaxy Ace II Android Development] TheYkk:
I installed this OS. but a few times, all the applications have been corrupted. I can't open any application. when I try to hurt him, he makes a mistake. what can I do
[Galaxy Ace II Android Development] ace2nutzer:
Do u mean the Apps does randomly FC ? (Force Close)
[Galaxy Ace II Android Development] TheYkk:
browser, whtasapp , google play , instagram ,apollo , file manager , gallery , camera , opera

'unfortunately, instagram has stopped'

and when I connect my phone to the computer, I can not access the SD card or the phone and the phone does not come to the phone

edit: when i go recovery and select install sdcard i dont see my sdcard files maybe my phone doesnt read my sdcard
[Galaxy Ace II Android Development] ace2nutzer:
Can u provide a "dmesg" after u try to mount the sdcard in recovery ?
[Galaxy Ace II Android Development] TheYkk:
i try mount sdcard but I couldn't get any feedback
[Galaxy Ace II Android Development] ace2nutzer:
I suggest to install ADB on your Computer .. (available for Windows and Linux)

U need first to install the "samsung mobile usb drivers"

Then go to the recovery and connect the Phone with your PC.

Now try to "mount sdcard0/1" in recovery.

then type in ADB those Commands:

adb shell
su
dmesg

on the PC screen will appear the kernel log from the phone ... just copy and paste it here .. then i can see what's going wrong ;)
[Galaxy Ace II Android Development] TheYkk:
https://paste.ubuntu.com/p/w8z58GWzgR/

I hope you can solve my problem.