yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] matthias1976:
ive done init.d script like this

echo com.whatsapp, com.wetter.androidclient >> /sys/module/lowmemorykiller/parameters/donotkill_proc_names
echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_proc

Is this correct ?
[Galaxy Ace II Android Development] ChronoMonochrome:
Yes, but if you enumerate proccesses in one line you can use ">" operator instead of ">>".
[Galaxy Ace II Android Development] ChronoMonochrome:
New build

New build r3.5.1 is up!

Changelog:

fixes patchset for Link Time Optimization (LTO)

applied LTO to the kernel modules (mostly)

reverted changes that might cause camera FC

reverted changes in genfstab until the "mainline" one will be fixed

If you use 4.4.x based ROM please report, do you experience camera FC issue or not.
[Galaxy Ace II Android Development] xo.en:
,,sounds good...works fine so far(Vanir).
[Galaxy Ace II Android Development] shaqman89:
How best should I test this? I only got this FC twice, and both without any dalvik cache clearing.

Anyway, I just upgraded with the latest and directly after reboot it FC directly after maybe a minute of delay. (does this count?)

After a while, tried it again and it works.
[Galaxy Ace II Android Development] ChronoMonochrome:
For me it previously happened to face a few times when I switched to art.

I think, this also count...
[Galaxy Ace II Android Development] shaqman89:
I see. I just tried to get the FC again by Rebooting, clear dalvik cache, and also switching to ART.

Somehow, it didn't happen again, so I'm sorry I couldn't provide any logs.
[Galaxy Ace II Android Development] ChronoMonochrome:
No need to say sorry... there is probably no need in logs either since logs in fact weren't useful when I tried to debug this issue.
[Galaxy Ace II Android Development] manthes:
I have the same problem with liquid smooth as with all previous kernels. It stucked in samsung logo and it solved with replacing folder osfiles from an older one. I attached last_kmsg

No camera fc problem (i didn't have any problem and before)

...............

This script is ok for handcent sms?

su

ps | grep "com.handcent.app.nextsms-1.apk"

echo com.handcent.app.nextsms-1.apk >> /sys/module/lowmemorykiller/parameters/donotkill_proc_names

echo 1 > /sys/module/lowmemorykiller/parameters/donotkill_proc
[Galaxy Ace II Android Development] happyrik:
Installed. Vanir ROM and switch ART. All OK.
[Galaxy Ace II Android Development] ChronoMonochrome:
Thanks for the attached log. You have /system being not mounted - this is something not reproducible on other ROMs, so you'd better to stay for now with workaround you have found. If you want, you can also attach ROM's build.prop - maybe it can show some hint regarding why an oldest osfiles installer works when actual one doesn't.

This isn't ok, since proccess name you have typed

in grep("com.handcent.app.nextsms-1.apk") , most likely doesn't exist. Use ps | grep "handcent" instead and use an output(found process name) later.
[Galaxy Ace II Android Development] manthes:
Build. Prop
[Galaxy Ace II Android Development] damian12332146:
For me 3.5.1 won't work. Same as 3.3, 3.4 and 3.5.... Lastest cm 11 with 3.2, TWRP 2.8.7.0, install, reboot and Samsung logo only, then restarting :c

How can I get that file last_kmsg?
[Galaxy Ace II Android Development] ChronoMonochrome:
Now it's became clear why a newest installer didn't work. This is because of a non-standard ro.product.device parameter(=GT-I8160, when it assumed to be "codina"), and this is not handled by installer. I think I can fix when get home.

Okay, then it's only my KK ROMs' issue. Maybe I'll have to try rebuild device tree and patches from scratch using e.g. janice [MENTION=5371721]Epirex[/MENTION]'s sources since I don't know what the issue is.

Maybe you've downloaded this build directly after I posted changelog? It had a glitch with an installer, I pushed fixed version later. Otherwise, try wiping /ramdisk and install kernel again.

Last_kmsg: reboot to recovery, connect the phone via adb, then type

And attach log here.
[Galaxy Ace II Android Development] manthes:
So if i change all these values from

ro.product.name=GT-I8160

ro.build.product=GT-I8160

ro.product.model=GT-I8160

ro.product.device=GT-I8160

to

ro.product.name=codina

ro.build.product=codina

ro.product.model=codina

ro.product.device=codina

then it will be solved? if so there is no need to make changes because i am the only one with this problem until now
[Galaxy Ace II Android Development] damian12332146:
Hmm. I dont know how, but now r3.5.1 works, lol.

I did it:

-Redownload release,

-format /ramdisk,

-install kernel,

-reboot

Now my phone not working, and I cant reboot to recovery, so I flash a2n's kernel through odin in hope that will work. And it work. I try to install r3.5.1 one more time throught CWM, reboot and now it works. O.o

I'll never understand it. >.<
[Galaxy Ace II Android Development] dixee:
i switched to vanir kk and install R3.5.1 kernel so far is ok, only problem at the first install kernel camera has FC but after some clear dalvik/cache everything ok. but still i have like grainy pixelated videos in some live tv streaming apk. youtube videos no problem at all.
[Galaxy Ace II Android Development] xtomashpl:
I can't install new version because of problem with installer. What should I do?
[Galaxy Ace II Android Development] xo.en:
Damn, Chrono, isn't that neat(2g on, ZERO useless software, totally idle system), 3.5.1+Vanir, modded, but not totally optimized system? :
[Galaxy Ace II Android Development] ChronoMonochrome:
Have tried clearing /ramdisk and flashing kernel again? There are should not be any issues with installer, though.

I have had almost same on Omni... I don't know how long can lasts the battery in an idle, but battery usage monitor showed that it can lasts approx. 14 days with such usage :) Maybe this is due to a recent link time optimizations(someone also reported a lesser memory footprint with this). It's a pity that applying LTO to a ROM is by far complicated than to a kernel, and so far I haven't succeeded in this. But beside of that - more optimizations to kernel are coming soon :)

UPD. [MENTION=5840412]ace2nutzer[/MENTION], [MENTION=4881398]PolishVodka[/MENTION],

you asked about fixing a wrong rebooting to a system instead of charging only mode when the phone is connected to a Charger/USB. I've found a way to do so, see commits below

https://github.com/ChronoMonochrome/Chrono_Kernel-1/commit/5ceb5a02b688a73de852475010decc9dcb149b66

https://github.com/ChronoMonochrome/Chrono_Kernel-1/commit/adc28dc387b137e68fc238cd3346d316bc70edac

This is by far simply than a way about which I was thinking before.
[Galaxy Ace II Android Development] PolishVodka:
Looks great and simple, thank you for this, will test..
[Galaxy Ace II Android Development] ChronoMonochrome:
r3.6

New build is up!

Changelog:

reboot to the LPM instead of rebooting to the system when shutting the phone down with the charger/USB plugged in

applied graphite and strict aliasing optimizations(mostly)

slightly reduced size of a kernel by moving some features to modules

probably fixed issues with installing ROMs with /system, formatted to F2FS [not tested]

Merged videomode tunables commit for s6d (based on CoCore) from [MENTION=5840412]ace2nutzer[/MENTION] kernel [not tested]

Disabled LED on the End Of Charge when waking up the phone [not tested]

Fixed kernel installation on ROMs with a non-standard ro.product.device entry
[Galaxy Ace II Android Development] manthes:
Thanks Chrono you solved boot problem
[Galaxy Ace II Android Development] ace2nutzer:
tested, and works perfectly ! Good Job Chrono !!
[Galaxy Ace II Android Development] damian12332146:
And again... I have the same problem. :( Instaled r3.6, reboot, and only Samsung Galaxy Ace 2 logo, then, after a few seconds restarting. Damn, what am I doing wrong?

I can't get last_kmsg. After reboot I wrote that command, opened file and it said:

cat: can't open '/proc/last_kmsg': No such file or directory

UPD. But, when I wrote /proc/kmsg it seems to be ok. So I attach that file. Its small success, I think. :E
[Galaxy Ace II Android Development] xo.en:
Ok, this sounds scary.

Oo.

You, guys are nuts :)
[Galaxy Ace II Android Development] dixee:
thanks chrono for the update, succesfull install on vanir kk.

test power off when usb cable attached, it's power off normally and get into offline charging. great. :good:

i'm still confuse why i can't install previous R3.3/R3.5.1 kernel on cm11, before i switched to vanir.

but do you have any idea why in some live stream apk videos got grainy. i have a plan to try omni LP 5.1 to check if its caused by os or not. i will attach a screenshot with another camera later

so far it's great to bring a new piece of life to our old codina :D
[Galaxy Ace II Android Development] littledude072:
so far on 3.6

turn off phone while charging - still stays off

havent tried installing another rom using 3.6, will do soon though. i do have a habit using TWRP to advance wipe everything but external SD, not sure if i can comment right?

LED backlights turn on when batterys full in offline charging. sometimes phone turns on, on its own at different percentages. is this a feature or a bug? IIRC 3.5 had it too.

performance wise it is faster than previous builds :D
[Galaxy Ace II Android Development] Alex_Gamer:
Hi guys, I'm here to say goodbye because a robber stole my phone and now I'm buyed a Xperia M, so I just want to say thanks to all the devs of that awesome device specially [MENTION=5840412]ace2nutzer[/MENTION] [MENTION=5695278]ChronoMonochrome[/MENTION] and [MENTION=4881398]PolishVodka[/MENTION] and to the users who helped me like [MENTION=5933530]xo.en[/MENTION] ... Thanks for all dudes. :cool: and kept it up the hard work. :)

Enviado desde mi C1904 mediante Tapatalk
[Galaxy Ace II Android Development] giginski:
work great but for me on this version battery is draining much faster idk why. will test it for few days, to be sure, then I go back to previous version
[Galaxy Ace II Android Development] kuba130000:
Performance is better than 3.5 but there is new bug - Wi-Fi not working on CM 12.1 for me.

Battery draining very much faster.

Currently, I'm going back to 3.5.

Best regards ;)
[Galaxy Ace II Android Development] heldix:
First thanks to chrono and ace2nutzer for ur hard work on the kernel. Without you many ppl wouldve left their ace2s.

[MENTION=5695278]ChronoMonochrome[/MENTION]

One question: Is ist possible to generate an script that brings the kernels settings to a defined state? All the settings like zram, crc spi, readahead, dirty write locks, governors, voltages, scheduler, android developer settings, +init.d scripts, ...! I would call that "kernel authors suggested settings". settings where u can be sure ur phone will work with.

i think everyone here had to reflash his ace2 several times. at some point u have made so many changes u have to make a new clean install. with such "kernel authors suggested settings".zip or whatever you could bring ur phone back to duty.

Regarding the 3.6: I got bootloop with 3.6, 3.5.1 working fine. Tried several times, wiped dalvik&cache still bootloop.

Thanks and Greetings,

heldiX
[Galaxy Ace II Android Development] ChronoMonochrome:
Ok, I'll test it for a several days too. Mine is often connected to the charger so it makes difficult for me to say whether it discharges faster or not. As for wifi - not sure it's a kernel bug... Make sure you have dhd.ko module from a nevest version installed in /system/lib/modules/.

Not sure it makes sense... Each setting which I would suggest for an usage, I have already set (and I think most kernel developers do so) in kernel.

Ok, back to the question: of course it's possible, but what for? Almost users has its own preferences and such zip wouldn't fit everyone for sure.

Have you tried clearing /ramdisk? I'm not sure what could be yet wrong with an installer.
[Galaxy Ace II Android Development] damian12332146:
[MENTION=5695278]ChronoMonochrome[/MENTION] Could you please look at it? I'd like to update. :c
[Galaxy Ace II Android Development] ChronoMonochrome:
This is kmsg log, not a last_kmsg , unfortunately there's nothing to look for.
[Galaxy Ace II Android Development] damian12332146:
Oh, ok. And any idea how I can make last_kmsg? I installed kernel, rebooted and waited ~30 sec. And there's no last_kmsg file when I went to /proc with TWRP's file manager.
[Galaxy Ace II Android Development] ChronoMonochrome:
Didn't you do more than one reboot in a row by accident? In some cases last_kmsg file may dissapear and there's nothing to do with.
[Galaxy Ace II Android Development] damian12332146:
Reboot are doing automatically. I press reebot system, then shows SG Ace 2 logo, and after few secounds phone is restarting, and again Samsung logo, just loop. So I must reebot, wait 5 sec. and turn off it?
[Galaxy Ace II Android Development] junnickbefore14:
I cannot flash the newest kernel because trwp can't find sdcard partition, then i moved kernel installer to /system partirion.. But still, no result.

The log said cannot find the partition /system

I'm on chrono kernel 3.4 and AICP anyway
[Galaxy Ace II Android Development] kuba130000:
Yes, it is installed. Wi-Fi still not turning on after kernel update. I will try factory reset.
[Galaxy Ace II Android Development] xo.en:
Sad to hear that, I hope you are ok...

Good luck with new machine, mate.
[Galaxy Ace II Android Development] heldix:
This doenst look too healthy does it?

When i checked this some days ago i had several MBs free. Does someone have a clue what made my system partition run out of free space?

OT: I finally fixed my GPS inaccuracy. Recorded tracks within strava before and after the fix. Its about improving the contacts between platine and the GPS antenna. Because noone ever reported this i think it might have been my phone specific but if someone had the same problems /w me if u need more information.

Now i get >40 SNR in GPS Test, 4-6m GPS resolution and even indoor fix within 10 seconds.
[Galaxy Ace II Android Development] ChronoMonochrome:
Extract file recovery/twrp.fstab from kernel installer to /ramdisk manually. It's possibly was lost when previous installer version was flashed.

Ok, instead of doing factory reset you can try manually insmod dhd.ko and attach dmesg output:

insmod /system/lib/modules/dhd.ko
dmesg > /sdcard/dmesg.txt
[Galaxy Ace II Android Development] xo.en:
Make repart.
[Galaxy Ace II Android Development] dixee:
Hi chrono, this photo of my phone when playing tv streming,

it looks like grainy when playing

i don't know its related to apk, os or kernel
[Galaxy Ace II Android Development] ChronoMonochrome:
Try another live streaming apk/service. If this is OS-related I doubt I can do anything with that.
[Galaxy Ace II Android Development] dixee:
ok :o

maybe if i have a time i'll try with LP to see the different,

currently i'm running on vanir kk with R3.6 kernel
[Galaxy Ace II Android Development] manthes:
I had this problem with stock rom with some live streaming apps so it isn't kernels problem. I never had it with apps like filmon player
[Galaxy Ace II Android Development] dixee:
i have a problem with live streams apk when using cm11 and vanir kk, never try on stock or LP rom. i already try with 3 live streams apk, 2 has a grainy videos, 1 apk has a good videos.

chrono, yesterday my vanir kk start getting Google Play Services error, and continue with other user apk FC, some of them is linked to sdcard with Link2SD. sorry i forgot to copy log file.

then i installed CM11 over vanir kk with dirty install (only clean cache and dalvik), flash R3.6 kernel, TWRP 2.8.7.0, and flash Gapps, now there is no FC again.
[Galaxy Ace II Android Development] ChronoMonochrome:
Re-download zip again, or manually put libwebviewchromium.so into system/lib.
[Galaxy Ace II Android Development] dixee:
ok, but i'll waiting the next release of vanir (if available), for now i will use cm11 :D
[Galaxy Ace II Android Development] artur1131:
What is stock DDR frequency for our phone?

Btw. hello again here ;) i just broken my new phone so im back to Ace2 xD
[Galaxy Ace II Android Development] ChronoMonochrome:
Stock(and the kernel default) is 798 MHz.
[Galaxy Ace II Android Development] Mantelinho:
I'm experiencing the same: for me last working version is 3.2, all subsequent versions are causing bootloops (3.3, 3.3.2, 3.4, 3.5.1, 3.6). No difference if having wiped /ramdisk before flash. Any idea how to come around this?

What made it complicated is that 3.6 and 3.5.1 include an empty /ramdisk/twrp.fstab which forced me to flash via Odin to get out of the loop.
[Galaxy Ace II Android Development] xo.en:
DDR freq is 800 mhz???? Lol, I thought it is mere 533 mhz...
[Galaxy Ace II Android Development] ChronoMonochrome:
Sorry, that's stupid mistake in instaler that caused /ramdisk/twrp.fstab to be empty. Since I use a debug installer version that doesn't include recovery and bootscripts stuff I didn't notice it. For now and until next version solution is to manually extract twrp.fstab from installer to /ramdisk or change recovery to PhilZ.
[Galaxy Ace II Android Development] heldix:
I could now install 3.6 without any problems. Having no space left (0 Byte) on system-partition was the issue. I freed some ~50MB and no bootloops.

heldiX

EDIT: Another question: Does BLN always trigger wakelocks when active? Maclaw wrote that in may 2015.
[Galaxy Ace II Android Development] Mantelinho:
Having r3.2 installed, I got 90mb available in /system:

root@codina:/ # df
df
Filesystem Size Used Free Blksize
/cache 122.1M 4.2M 117.9M 4096
/data 2.8G 893.8M 1.9G 4096
/dev 315.2M 136.0K 315.1M 4096
/dev/shm 315.2M 0.0K 315.2M 4096
/efs 9.9M 4.7M 5.2M 4096
/mnt/.lfs: Function not implemented
/mnt/asec 315.2M 0.0K 315.2M 4096
/mnt/fuse 315.2M 0.0K 315.2M 4096
/mnt/media_rw/sdcard0 57.7G 341.5M 57.3G 131072
/mnt/media_rw/sdcard1 95.2M 78.1M 17.1M 4096
/mnt/obb 315.2M 0.0K 315.2M 4096
/mnt/secure/asec 95.2M 78.1M 17.1M 4096
/modemfs 15.8M 4.4M 11.4M 4096
/ramdisk 15.8M 8.7M 7.1M 4096
/storage/sdcard0 57.7G 341.5M 57.3G 131072
/storage/sdcard1 95.2M 78.1M 17.1M 4096
/sys/fs/cgroup 315.2M 12.0K 315.2M 4096
/system 582.5M 492.2M 90.3M 4096

Nevertheless I got stuck in boot-loops after having done this:

reboot to recovery (TWRP 2.8.6.0 from r3.2)

wipe cache, dalvik, ramdisk (also tried w/o ramdisk)

install chrono_kernel_r3.6.zip

reboot system

I am running [ROM][4.4.4] CyanogenMod 11 - 30/07/2015 [STABLE][FINAL]. Any hints?
[Galaxy Ace II Android Development] ChronoMonochrome:
Can only suggest wait till the next build, will release it probably today.
[Galaxy Ace II Android Development] ChronoMonochrome:
R3.7

New build is UP!

Changelog:

compiled with cortex-a9 optimized GCC 5.2 toolchain (better graphite optimizations handling)

a "wakelock-less" implementation of the doubletap2wake/sweep2wake feature (WIP, may work not stable).

By "wakelock-less" meant that it can work without its own wakelock but only when an external source of wakeup is active. For now it works only when charger is connected or the music playing with screen OFF. Thanks [MENTION=5840412]ace2nutzer[/MENTION] for testing.

doubletap2wake/sweep2wake are enabled in a charging mode

BLN fixups.

When the BLN notification is active, waking the phone up with enabled end of charge BLN notification feature, will not disable a BLN thread.

Also re-added EOC wakeup if EOC BLN notification feature is disabled (disabled by default now).

deepest sleep state is set 3->4 for lesser power consumption

gpio-keys: KEY_PLAYPAUSE emulation on a home key long press

echo 1 > /sys/module/gpio-keys/parameters/homekey_press_play to enable

lowmemorykiller: reset to sony sources (testing)

Full credit to Xperia STE and munjeni for updates.

disabled UKSM (testing)

Full changelog

Also reworked the kernel installer. In case if anything goes wrong, attach an installation log (can be found in /ramdisk/last_kernel_install.txt)

Enjoy!
[Galaxy Ace II Android Development] Mantelinho:
Thank you, version r3.7 installs, starts up and runs without any issues.
[Galaxy Ace II Android Development] garak elim:
I have same problem as damian12332146 with r3.7. Here is an installation log.
[Galaxy Ace II Android Development] ChronoMonochrome:
Looks good, only some modules weren't updated, so maybe this issue comes from this. Reuploaded r3.7 - please try it and report again.
[Galaxy Ace II Android Development] damian12332146:
@up

For me same, no changes. I installed r3.7, turned on phone and nothing. SGA2 logo, 5 sec. of that screen and reboot. And still no chances to get last_kmsg. Same as with r3.3, r3.4, r3.5 and r3.6.

UPD. Whoops, sorry, didn't read your post. OK, so downloading now.
[Galaxy Ace II Android Development] ChronoMonochrome:
There's no need to upload last_kmsg.. /ramdisk/last_kernel_install.txt usually should suffice.
[Galaxy Ace II Android Development] garak elim:
Not working. I tested kernel from /misc folder. Here is log.
[Galaxy Ace II Android Development] damian12332146:
Still not working for me.

OK. So here u are.

UDP. I installed both, from misc/ and from kernel/, and nothing.
[Galaxy Ace II Android Development] garak elim:
[MENTION=5695278]ChronoMonochrome[/MENTION]

When it help, I have installed your latest CM11 with r3.1 kernel and TWRP 2.8.7.0. I did factory reset and formated ramdisk before CM11 and TWRP instalations.
[Galaxy Ace II Android Development] ace2nutzer:
Try 2.8.6 ..

latest build is buggy.
[Galaxy Ace II Android Development] garak elim:
I know. I try. Didn't help. Still bootloop.
[Galaxy Ace II Android Development] ChronoMonochrome:
Ok, tested it, and it turned out that there left a module zram.ko from r3.1 kernel, which is not compatible with r3.7. Will upload fix in a few minutes. In a meantime you can manually remove this module (/system/lib/modules/zram.ko).
[Galaxy Ace II Android Development] garak elim:
Its working. Thank you. After i deleted zram module and install latest kernel from /misc I booted normally.:good:
[Galaxy Ace II Android Development] ChronoMonochrome:
Latest build is reuploaded. Please re-download/reinstall it if you faced problems with booting, thanks.
[Galaxy Ace II Android Development] shaqman89:
Chrono, is there any setup needed to be done for this? Some parameters, maybe? I tried it after installation, connecting the charger, and tried to double tap it but didn't got any response. I know it's WIP, but who knows :)

Btw, interesting changelog :good:

Installation went flawlessly here on VanirKK.

Update:

Logcat seems still not to be working here.

I couldn't find logger.ko either in /lib/modules, /lib/modules/autoload, or /ramdisk/modules/autoload
[Galaxy Ace II Android Development] ChronoMonochrome:
Parameters has not change - use echo 1 > /sys/module/{doubletap2wake,sweep2wake}/parameters/enable.

Sorry, my bad. Until it's fixed you can manually extract this module from the kernel installer(logger.ko is in ramdisk/modules/autoload).
[Galaxy Ace II Android Development] junnickbefore14:
Whenever i tried to flash r3.7, my phone always stuck in bloody bootloop.

Now i stay at r3.6 which is cool

What is wrong anyway?
[Galaxy Ace II Android Development] ChronoMonochrome:
Logs - as always, might be helpful.

cat /proc/last_kmsg also might be useful but the first one is more informative.
[Galaxy Ace II Android Development] damian12332146:
Nice! Finally it works! Thank you, man.
[Galaxy Ace II Android Development] ChronoMonochrome:
It very likely was an issue with a missing module f2fs.ko. Do you use f2fs? If so, you may want to reload and reinstall an updated package.

Now all problems with modules should be resolved.
[Galaxy Ace II Android Development] junnickbefore14:
Yeah..

F2FS..

In /data and /cache..

How could i forget about that.. :p Lol
[Galaxy Ace II Android Development] dixee:
i'm still on cm11 and r3.6 kernel, try to activate 2tap2wake, its working for a short time lock screen, but after more than, maybe 10 or 30 minutes its broken. no respons when double tap the screen, also unlock screen (with pattern) no responding at all, so i manually restart the phone and successfull unlock the screen.

so i decided to deactivate 2tap2wake again :D