yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9500 Android Development] vvk222:
Installing '/external_sd/ROMs/LWK-Stable-011016-TW-LL-i9500.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.

* Light Weight Kernel *

by Asad007@xda-developers

Archive: /external_sd/ROMs/LWK-Stable-011016-TW-LL-i9500.zip
unzip: zip flags 1 and 8 are not supported
Installing kernel...
dd: can't open 'boot.img': No such file or directory
Cleaning files...
Done.
I:Legacy property environment disabled.
Updating partition details...
I:Data backup size is 3381MB, free: 4964MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=0
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /external_sd/recovery.log

Looks like this is the problem:

dd: can't open 'boot.img': No such file or directory
[Galaxy S 4 i9500 Android Development] krasCGQ:
Yep. You're right. Is there any content on zip? Or something is wrong with the script?
[Galaxy S 4 i9500 Android Development] vvk222:
Probably the problem with zip format:

unzip: zip flags 1 and 8 are not supported

Script code is very simple:

cd /tmp
unzip -o "$ZIP"

ui_print 'Installing kernel...';
dd if=boot.img of=/dev/block/mmcblk0p9
[Galaxy S 4 i9500 Android Development] krasCGQ:
Maybe due to absence of boot.img itself...

Compared with my script on my kernel script:

#!/sbin/sh
# arg 1 is recovery api version, generally 3.
# arg 2 is the pipe fd, to the recovery binary.
# communicate with it using recovery api.
# arg 3 is the zip file

OUTFD=$2
ZIP=$3

...

The rest is pratictally similar.
[Galaxy S 4 i9500 Android Development] vvk222:
No. I just rezipped content of the archive on my linux desktop and it worked. Kernel installed.

Somehow unzip from busybox can't unpack the archive.
[Galaxy S 4 i9500 Android Development] vvk222:
No deep sleep on this kernel at all. What can be the case?
[Galaxy S 4 i9500 Android Development] asad007:
It's probably due to WiFi on all the time (Most likely cause), use leandroid to automatically turn off WiFi when screen off.
[Galaxy S 4 i9500 Android Development] asad007:
As I switched over to Tw based miui (kk), I adapted the ramdisk for it to use this kernel with miui.

Anyone who want miui version let me know.

PS : only TW based MIUI

Edit : uploaded miui version anyways.
[Galaxy S 4 i9500 Android Development] vvk222:
Even if WiFi turned off currently?
[Galaxy S 4 i9500 Android Development] asad007:
Then you have some app that is holding a wakelock.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
I wanted to try miui but i have no idea if it contains bugs,good performance, is able to use as a daily driver ?.. worth flashing over cm13 any way?.Thanks in advance.
[Galaxy S 4 i9500 Android Development] asad007:
Setting up miui is the hardest part like gapps installation but in the end it's stable as TouchWiz ( use tw based miui)

Only thing you'll notice is slightly low performance just like TW otherwise it is extremely stable.

And if you flash LWK over it boot animation doesnt show.

Everything else is fine.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Just flashed it and yea I'm feeling smooth everywhere didnt face any under performance yet i think it's good as CM but much stable.. of course im using LWK and thnx for awesome kernel..also does it support synapse?
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
and i ask one thing wee need to change gov. everytime that restart phone ,i think default setings applied at startup ...
[Galaxy S 4 i9500 Android Development] vvk222:
I don't expirience such problem on stock or voltaqe kernel. Same ROM, same apps. Checked wackelocks with BetterBatteryStats - nothing criminal.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
[MENTION=4296690]asad007[/MENTION] bro thenks for kernel but what is problem with synapse when i change cpu governor (to lionheart) and when restart phone kernel setings aplied by default on ondemand ,its about startup commands ?
[Galaxy S 4 i9500 Android Development] asad007:
I think it is due to stability check, disable it.

Yes.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
yes i disable that option ,everytime that i restart they ask me what to do

to apply change or to discard ,like in atachment
[Galaxy S 4 i9500 Android Development] MostaphaHida:
No uci ..miui v
[Galaxy S 4 i9500 Android Development] zozoz13:
Just select the cross icon every boot to deny 'apply on boot' command.

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] asad007:
I am using miui with synapse, touchwiz version.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
if u try synapse on phone rebot ,u need to whait for some time to work synapse

---------- Post added at 01:53 PM ---------- Previous post was at 01:49 PM ----------

wwwwait ,i need to apply automatic my selection ,without need to select cross icon ...sorry for my bad english
[Galaxy S 4 i9500 Android Development] MostaphaHida:
still cant get it even moving synapse as sys app !

EDIT:i think kernel remain the same after flashing LWK it's just the original 1 ...
[Galaxy S 4 i9500 Android Development] asad007:
Yes it did not flash.

Check whether the zip contains the boot.img or not.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
It does.
[Galaxy S 4 i9500 Android Development] asad007:
Try reflashing the zip

I think you flashed the kernel before flashing the rom.

Even if it is not the case reflash the zip.

Otherwise flash the boot.img directly in recovery on the boot partition.(if you know how)
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Thanks flashed the boot.img everything working fine now.[emoji106] [emoji108]
[Galaxy S 4 i9500 Android Development] MostaphaHida:
I think IR isnt working miui version would u plz fix it ?
[Galaxy S 4 i9500 Android Development] zozoz13:
I mean to deny default settings applied every time you restart the device.

Sent from my Galaxy S4
[Galaxy S 4 i9500 Android Development] litvcom:
[MENTION=4296690]asad007[/MENTION] thank you for the kernel, but I have some problem on GearCM13 and RR-5.7.4.

1. cm-13.0-20160828-UNOFFICIAL-GearCM-i9500 + LWK-Stable-011016-GCM-MM-i9500, Synapse not apply on boot, when open I see "No UCI Support" every time need close Synapse and open again, and Synapse not save my settings (reset to default settings after restart).

2. ResurrectionRemix-M-v5.7.4-20160925-i9500-11Gb + LWK-Stable-011016-RR-MM-i9500, Synapse apply on boot, but need waiting a long time and default settings problem like on GearCM.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
and same on tw verzion i disable stability check but not work ,and i try to disable apply on boot (master switch) ,everytime need to click on cross (deny)
[Galaxy S 4 i9500 Android Development] asad007:
You guys need to open synapse 5 min after boot, as i have set some delays to make sure defaults are applied.

Only some defaults are applied like lazyplug default and gpu max freq.

For Other settings i can't say why it occurs.

I'll see. But donot expect anything soon.
[Galaxy S 4 i9500 Android Development] asad007:
Synapse values do not stick on boot.

I can confirm it now, I'll see what i can do about it.
[Galaxy S 4 i9500 Android Development] litvcom:
I open Synapse ~7 minutes after boot and see "No UCI Support" (need close Synapse and open again), and of course my settings not been saved, for example Audio. GearCM13.0 from 20160828/GearRecovery from 20160220.
[Galaxy S 4 i9500 Android Development] asad007:
As of now you need to press the "x" button on top.
[Galaxy S 4 i9500 Android Development] litvcom:
It will be very helpful :good:
[Galaxy S 4 i9500 Android Development] charlysalloum:
flashed kernel after flashin rr rom, recovery says successful, but in settings > about ... the kernel is still the stock... any ideas?
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Try just flashing boot.img file in the kernel zip ..in recovery u should have a button says images click it once then u will be able to flash the .img file
[Galaxy S 4 i9500 Android Development] charlysalloum:
thanks it worked,i had to extract the files of the zip in my computer i cldnt do it from my phone though..
[Galaxy S 4 i9500 Android Development] Jorgetudo_98:
I'm having problems with the wifi, it disconnects and reconnects suddenly, repeatedly and doesn't stop. I'm on RR 5.7.3
[Galaxy S 4 i9500 Android Development] asad007:
Strange. Are you using some battery saving app?
[Galaxy S 4 i9500 Android Development] asad007:
I'm thinking of increasing the performance of kernel, but it may affect battery.

What do you guys think?
[Galaxy S 4 i9500 Android Development] Jorgetudo_98:
No. I couldn't fix it with a clean flash so I went back to stock RR..
[Galaxy S 4 i9500 Android Development] asad007:
Update 091016

* increase performance

* fix miui boot animation

* fix miui ir (untested, need confirmation)

* make voltage control easier.

Also, default voltages are different than available values in synapse, i guess that's why it shows changed settings on boot.

Just press "x" to apply them.
[Galaxy S 4 i9500 Android Development] litvcom:
[MENTION=4296690]asad007[/MENTION] about battery life, on 011016 I have not bad SOT with my old battery (more than 2 years), now I'll try new kernel.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
confirmed working my changes on TW V at every restart ...no need to pres "x"
[Galaxy S 4 i9500 Android Development] litvcom:
On kernel 091016 I have the same problem with Synapse boot, "No UCI Support" like on 011016, and my settings not been saved. GearCM13.0 from 20160828/GearRecovery from 20160220
[Galaxy S 4 i9500 Android Development] asad007:
First check whether the kernel flashed or not.
[Galaxy S 4 i9500 Android Development] litvcom:
Before flashing I wipe appdata of Synapse app, then flash kernel and wipe Dalvik/ART Cache.
[Galaxy S 4 i9500 Android Development] AzizbekN1:
IR not working & cant change gov. from synapse

RR
[Galaxy S 4 i9500 Android Development] asad007:
In the next version i may remove synapse support as it creates problems.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Any 1 facing charging problem GCM ? Sometimes When connected to charge current keep getting lower !
[Galaxy S 4 i9500 Android Development] asad007:
Update

* remove synapse

* undervolt - 75mV on boot

* enabled drc

* removed ondemand and lazyplug

* add back old hotplug

* remove fastcharge

* add old charging hack

* fix ir (did not test)

* do not remember
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
installing 111016 and booted phone after changing cpu gov and set max freq 1500 min 150 and restart phone my cache partition does not mount again and phone does not boot anyone known how to fix
[Galaxy S 4 i9500 Android Development] asad007:
Wipe cache partition in recovery.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
edited

fixed by cf autoroot

---------- Post added at 09:02 AM ---------- Previous post was at 08:24 AM ----------

do we have now slow charging ?
[Galaxy S 4 i9500 Android Development] asad007:
Nope. It is faster than before.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
thenks man my phone working real fast without need daily restart and now apply on boot work to .
[Galaxy S 4 i9500 Android Development] MostaphaHida:
Latest V keeps rebooting GCM
[Galaxy S 4 i9500 Android Development] litvcom:
The same problem
[Galaxy S 4 i9500 Android Development] asad007:
Does it boot up or bootloop?

Also need to know whether RR people having this problem or not cause the kernel is same in both only ramdisk differs.
[Galaxy S 4 i9500 Android Development] kenji1996:
Cant flash kernel.

Using madgit rom 5.0.1

I flash the kernel 4times but the kernel still remain same. what should i do?
[Galaxy S 4 i9500 Android Development] esbatulembek:
Nope rr is fine
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
check in recovery if you have system to read only ...if have tick to read only you need to remove the checkbox
[Galaxy S 4 i9500 Android Development] MostaphaHida:
It boots normally then it's just few secs and reboot
[Galaxy S 4 i9500 Android Development] asad007:
That could be because of :

1) you have some kernel app that undervolts on boot, but now i already did that on boot. Hence too low voltage = reboot.

2) - 75mV is not stable for you.

3) some ramdisk related issue.
[Galaxy S 4 i9500 Android Development] MostaphaHida:
I dont have any undervolt apps.. I'm just using synapse and always clearing app data before flashing.
[Galaxy S 4 i9500 Android Development] Takedaz:
You guys know there's a modified version of kernel adiutor that works pretty better as synapse? I dunno if I can post link here
[Galaxy S 4 i9500 Android Development] krasCGQ:
Unzip manually and flash boot.img using TWRP.
[Galaxy S 4 i9500 Android Development] asad007:
You mean singularity kernel app?

http://xdaforums.com/android/apps-games/kernel-adiutor-mod-singularity-kernel-t3333549

I feel it is better than KA.
[Galaxy S 4 i9500 Android Development] Takedaz:
Yes this mod works good and there's a global undervolt setting that helps a lot
[Galaxy S 4 i9500 Android Development] jabia:
On the latest 11-10-16 release I get a no UCI support screen in synapse. Any suggestions?
[Galaxy S 4 i9500 Android Development] Orof:
In the last changelog, you can see that for some reason synapse support has been removed.
[Galaxy S 4 i9500 Android Development] ziidan:
Please , What is the best cpu governor for battery life ??

Note : am using rr 5.7.4
[Galaxy S 4 i9500 Android Development] Jorgetudo_98:
Non related question, sorry. How's your SoT?
[Galaxy S 4 i9500 Android Development] ziidan:
About 3 hours with alucard cpu max 1000 and min 150 but there is a problem that while screen is off it keep draining
[Galaxy S 4 i9500 Android Development] mumuni:
Guys I try to flash this as many times I can but it seems not to work for me. Any time I flash the zip and reboot it rather freezes at log or when optimizing apps it reboot for several times, when is able to on to, it freezes and reboot again.The last time it work for me ,it work for,I try to flash exposed. Which also freezes at booting. Am currently running RR 5.7.4

I would be Glad to get it work
[Galaxy S 4 i9500 Android Development] asad007:
With Alucard Governor, there is battery drain even when screen off I can confirm.

Use intellimm instead.

I hope you flashed the RR version,

When you are able to boot, increase the voltage by +75mV via kernel adiutor.

You are facing this probably because your device can't handle undervolting.
[Galaxy S 4 i9500 Android Development] GerardBet4:
someone tells me how to install This version 10/16/11, I have rr
[Galaxy S 4 i9500 Android Development] asad007:
Just download the relevant zip and flash in gear recovery.
[Galaxy S 4 i9500 Android Development] Dang !!!:
Asad007.. Please add the usb fast charge option in that of 01102016 build to latest.. Fast charge is experienced in that build..
[Galaxy S 4 i9500 Android Development] asad007:
we use a charging hack now.
[Galaxy S 4 i9500 Android Development] asad007:
edit : i changed my mind, i may provide a new version only for GCM.

Edit 2 : New Version

Dropbox

* Fix improper hotplug

* Removed undervolt on boot.

Supported ROMS :

* GCM 13

* MIUI 8

Enjoy!
[Galaxy S 4 i9500 Android Development] GerardBet4:
I have a problem installing the kernel 111016 for RR, when it starts android, it takes about 10 seconds, it locks up and reboots. One time and another.. :(
[Galaxy S 4 i9500 Android Development] asad007:
I'll see to it.
[Galaxy S 4 i9500 Android Development] notsuper:
this work for SHV E300S??
[Galaxy S 4 i9500 Android Development] krasCGQ:
No. It needs to be compiled with Korean stuffs instead of EUR Open like on i9500 kernels...

Like this.
[Galaxy S 4 i9500 Android Development] _Jackie_:
Not working on miui 8 (6.10.31)
[Galaxy S 4 i9500 Android Development] asad007:
I'm using it on MIUI 8 ( 6.11.5 )

Try on that.
[Galaxy S 4 i9500 Android Development] _Jackie_:
Does it take time to boot???

If not then plzzz build it for 6.10.31.

Plzzzzz
[Galaxy S 4 i9500 Android Development] asad007:
It doesn't take time to boot.
[Galaxy S 4 i9500 Android Development] _Jackie_:
This means Its not working on v6.10.31.

Plzzz build it for this version...:laugh:
[Galaxy S 4 i9500 Android Development] asad007:
New update!

For MIUI 8 6.11.5

And

GearCM13

Find on Android file host.

special thanks to jwchen for compiling.
[Galaxy S 4 i9500 Android Development] _Jackie_:
So i guess its no from u sir??:crying::crying:
[Galaxy S 4 i9500 Android Development] asad007:
The changes and source is mine.
[Galaxy S 4 i9500 Android Development] AzizbekN1:
IR not working on RR 5.7.4
[Galaxy S 4 i9500 Android Development] kdnmobile:
:good::good: After flashing this version, I now gain root on MIUI 8 version 6.11.5

Thanks
[Galaxy S 4 i9500 Android Development] asad007:
New update exclusively for gearcm.

Enjoy!
[Galaxy S 4 i9500 Android Development] asad007:
I'll be removing the latest gearcm version for now as a new version will be added with a smoother user experience.
[Galaxy S 4 i9500 Android Development] asad007:
NEW Update!

Improved performance, battery life and RAM management.

enjoy
[Galaxy S 4 i9500 Android Development] asad007:
New Update 241116

* update kernel to 3.4.113

* Enabled Zswap /vnswap combo

* aggressive hotplug (may give few lags, can be altered via kernel adiutor mod app)
[Galaxy S 4 i9500 Android Development] UNForces:
Is there a MIUI 8 version for S4 i9500? If yes, please link me, I cannot find it anywhere.
[Galaxy S 4 i9500 Android Development] asad007:
open link from OP and then choose LWK-241116 folder.
[Galaxy S 4 i9500 Android Development] UNForces:
I was asking about the MIUI 8 rom itself, not about the kernel; I noticed the post about the kernel being compatible woth MIUI 8 for S4 i9500.

Could you please link me to the MIUI 8 rom for i9500?
[Galaxy S 4 i9500 Android Development] asad007:
http://xdaforums.com/showthread.php?t=3181235
[Galaxy S 4 i9500 Android Development] jeffnea3:
Failed to boot(stuck on MIUI boot logo-i9500)

my phone is stuck on the boot logo. i have tried installing with both GearRecovery 3.0.0.0 and philztouch several times but still getting similar resuts. i am using i9500 and runin MIUI 8.
[Galaxy S 4 i9500 Android Development] asad007:
which miui8 version?
[Galaxy S 4 i9500 Android Development] jeffnea3:
MIUI 8 6.11.5 Beta
[Galaxy S 4 i9500 Android Development] asad007:
use 6.10.31 version which is now stable.
[Galaxy S 4 i9500 Android Development] jeffnea3:
Can i Use version 6.10.21 instead of version 6.10.31 version?? Data plans in my country are very expensive. I hope also version 6.10.21 is stable coz i have it.
[Galaxy S 4 i9500 Android Development] asad007:
you can try but not sure whether it will boot or not.

i used 6.10.31 Ramdisk
[Galaxy S 4 i9500 Android Development] notsuper:
Can you support e300s??:(
[Galaxy S 4 i9500 Android Development] jeffnea3:
i successfully flashed the kernel and its working except for a few things.> Battery drain is too much!!(lost 11% in 40mins on fresh Rom while not connected on internet and with No third party app installed), screen lags behind then later abnormal reboots, Over heating has reduced but still warms up.....`i dont see an app in the app drawer to help me tweak my device.
[Galaxy S 4 i9500 Android Development] hansonchen:
You can't test a rom or kernel such a way. Your rom is newly flashed, it's trying to setup itself by searching for updates, accounts setup, system apps updates & etc. Probably its cpu is running 100% most of the time trying to connect to Internet & setting up, hence the lag, heat & battery draining.

Every kernel doesn't include app to tweak, you, as a user needs to download kernel tweaker eg. Kernel Adiutor or Synapse. For a rom or kernel to settle down after fresh install, give it some time like a week or 2 to confirm issues, problems or bugs.

When reporting bugs, include logs to devs so that he/they know what's wrong. Merely words like unstable, lags, freezes, reboots, etc is useless. Also include more info like what rom you're using, apps you use that's giving fc/freeze, etc
[Galaxy S 4 i9500 Android Development] kiomet:
For aosp 5.1.1 no work? pls help
[Galaxy S 4 i9500 Android Development] esbatulembek:
Aosp only for mm
[Galaxy S 4 i9500 Android Development] asad007:
Stay tuned, I'm improving the latest version and a new update soon!
[Galaxy S 4 i9500 Android Development] kiomet:
i have a problems, any rom (except aosp 5.1.1) has battery drain for Android OS this kernel solve the problem? I used this rom's: RR 6.0.1, CM12.1 (not gearCm) and stock lite... Pls help

Pd: Recomend roms
[Galaxy S 4 i9500 Android Development] jeffnea3:
Thank you, lets wait for the update. In a meantime, i have ditched the MIUI 8 rom still a stable version of it released or will get back to it after you have realesd a stable version of the kernel.Now im heading back to First FLIGHT ROM..I HOPE IT WORKS THERE
[Galaxy S 4 i9500 Android Development] asad007:
you can try.

for tw use older version, no new version for tw.

new version will be only for mm based roms.
[Galaxy S 4 i9500 Android Development] asad007:
New Update 261116

* Lazyplug is back!

* alucard tune up

* fix battery drain (hopefully)

* add some io schedulers

* add some governors

* fix bug of previous version that changing min/max freq disabled hotplug.

* Added dynamic fsync (disabled by default)

Enjoy!
[Galaxy S 4 i9500 Android Development] kiomet:
Thank You! Installing!
[Galaxy S 4 i9500 Android Development] asad007:
Feedback is welcome.
[Galaxy S 4 i9500 Android Development] asad007:
Soon i will be uploading the END OF LIFE Version of this Kernel (Probably tomorrow, you can check the Android File Host Folder), And will be aimed at saving battery (with moderate performance).

Thank you all for supporting the kernel ! :)

EDIT : EOL Version Uploaded!
[Galaxy S 4 i9500 Android Development] jeffnea3:
well, someone here talked about logging...But how do i log a bug when the phone suddenly restarts without a warning after consistent lags on the screen when i attempt to open the setting system app? A matter of fact even the dial system app causes it to lag then boom it restarts before i know it. Its different with other apps, if there's a bug.. a log is automatically generated and a prompt request appears on the screen on whether to save it or email it to the developer. Im using GT-I9500 Updated to official lollipop Firmware(Russian) but currently runnin MIUI 8(6.10.12) Based on CM13.....**im going to flash version 6.10.31 as advised by the developer of light weight kernel, i will report bac the results in 30mins. He said its stable
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
No more TW Version of this kernel?
[Galaxy S 4 i9500 Android Development] asad007:
No due to selinux issues in TW.
[Galaxy S 4 i9500 Android Development] Ngadhnjim:
thenks for info man ,your work's are great :good:
[Galaxy S 4 i9500 Android Development] jeffnea3:
End of Life version. Still waiting for it...I have been checking the Android host file per second to see if it's bee uploaded:laugh:. Grt work:good:
[Galaxy S 4 i9500 Android Development] asad007:
It uploaded yesterday.
[Galaxy S 4 i9500 Android Development] asad007:
With EOL version.

On battery : 12 hrs

SOT : 3 hrs

(I used to get 2hr SOT in previous version)
[Galaxy S 4 i9500 Android Development] jeffnea3:
Download links
[Galaxy S 4 i9500 Android Development] krasCGQ:
See OP.
[Galaxy S 4 i9500 Android Development] munsuf:
This link isn't working

This link isn't working!! any other one??
[Galaxy S 4 i9500 Android Development] :
look at first page
[Galaxy S 4 i9500 Android Development] asad007:
Uploaded a new version for TW users

It is based on last TW version.
[Galaxy S 4 i9500 Android Development] Orof:
i know the GCM kernel is in an EOL status, but will it work with the new GearCM version?