yashsingh1/xdaforums huggingface dataset:
[Sony Xperia L] Shivam Kuchhal:
Phantom Kernel v6.1

I am back with one more update guys. :D

Switching to TWRP 2.6.3.0 i.e. the latest version of TWRP in the kernel. You'll love it. ;)

Plus as requested by many I am releasing an update for Jellybean kernel too with full feature set of Kitkat kernel.

Changelog:

KitKat:

Switched to TWRP 2.6.3.0 instead of very very old CWM. Thanks to [MENTION=5036857]vishal_android freak[/MENTION]

Jellybean:

Two versions of version: OC and NON-OC, just like KitKat kernel. :)

Switched to TWRP 2.6.3.0 instead of very very old CWM. Thanks to [MENTION=5036857]vishal_android freak[/MENTION]

Introducing newer Intelli-plug in kernel.

Added more ARM optimization flags.

Lock initial TCP window size to 64k (Improves network ping and output).

Asynchronous I/O latency to a solid-state disk greatly increased.

Added optimized AES and SHA1 routines.

Optimized apply_slack() method for size and speed

Entropy tweaks.

Patches from mainline 3.5 to hopefully help with hotplug efficiency.

Added touch boost support for taoshan touchpad driver in Intelli-plug.

Salvaged some RAM.

Disabled unwinding support.

Removed Simple I/O Scheduler.

Removed Wheatley governer.

...in short, full feature set of KitKat kernel. :p

Download link-

For KitKat:

NON-OC version: http://d-h.st/f6d

OC version: http://d-h.st/Hsv

For Jellybean:

NON-OC version: http://d-h.st/nkm

OC version: http://d-h.st/WdL
[Sony Xperia L] Me_Shazzy:
The kernel is Great

TWRP is also awesome coz its touch based but the text are'nt that clear excluding this everything works fine

TWRP doesnt shows files in Ext_Sdcard

but it can be fixed by goin to Mounts and mounting Ext_Sdcard . Then it shows files in ext
[Sony Xperia L] vishal_android freak:
You need to mount it manually.. Bcz Xperia L has both internal and external..
[Sony Xperia L] Shivam Kuchhal:
Text is like that in TWRP, we can't do anything about that. It doesn't stick to the TWRP of Xperia L only.
[Sony Xperia L] ksolo310:
wifi stopped working on 6.1 jb kernel
[Sony Xperia L] R.A.B:
Very first impressions (coming from TZ 3.1, running non-oc-version on fw 0.26) ... - nice bootlogo :D, scrolling through videos with MXplayer is faster than ever before...

Busy as a bee, unpretentious, no needless promises... - I like your work. Thank you very much! :good:

...
[Sony Xperia L] faizalotai:
Yup,wifi not available ...
[Sony Xperia L] R.A.B:
no problems with wifi on my phone at the moment

...
[Sony Xperia L] faizalotai:
will try non-oc ver..

still same..using dextodroidrom
[Sony Xperia L] Me_Shazzy:
oh then its working perfectly!
[Sony Xperia L] ImNoobie9495:
Great !!!

great job .. another update .. kernel is awesome especially with TWRP .. but hey guys can you tell me what is the use of these new function Eco Mode and Dynamic FSYNC .. sorry for that noobie Q .. ”9ü6 ... thanks in advance ..
[Sony Xperia L] R.A.B:
Take a look at post #3

...
[Sony Xperia L] Shivam Kuchhal:
WiFi is working perfectly fine and its tested. If you're having problems with it then its the fault of your ROM not the kernel.

Though I have a workaround for you maybe as I was on Parallax for sometime and I might know why's it not working.

Copy prima_wlan.ko from /system/lib/modules/prima to /system/lib/modules/ and rename it to wlan.ko, make sure it replaces the file there. It should work fine then if still nothing then complain about it to your ROM developer for not linking prima_wlan.ko and wlan.ko properly. :mad:

"Do not spam the thread".
[Sony Xperia L] arjit mehra:
Brilliant!

Thanks a ton for switching to twrp (Finally lol) I love this kernel,pretty stable,reat battery life (closing to 5 hours SOT and 15+hours of on time..Great work man! :D
[Sony Xperia L] sushobith:
Working Fine

First Thanks to [MENTION=4984300]The Dark Knight[/MENTION]

For me Wifi is working fine and I use CnT Rom 4.1.
[Sony Xperia L] faizalotai:
Its working with replaced wlan.ko

thanks and great job
[Sony Xperia L] srcharged:
Finally!!

WHOA!! Finally!! TWRP!! :') :') Thanks!
[Sony Xperia L] ksolo310:
Thank you :laugh:! That worked.

---------- Post added at 06:52 PM ---------- Previous post was at 06:47 PM ----------

Is it me ? or does the hspda seem faster with this kernel ? My web browsing seems faster than my wifi.
[Sony Xperia L] Shivam Kuchhal:
Remove the long post quote. :mad:
[Sony Xperia L] Shivam Kuchhal:
WiFi Fix

This is the last time I am providing a fix for something which is already working in kernel, from next time complain to your ROM developer and not me.

Flashable zip for WiFi fix- http://d-h.st/XL5

Flash it after flashing the kernel zip.

One more thing,

From now on all questions, queries and off topic posts about kernel should go here- http://xdaforums.com/xperia-l/general/discussion-phantom-dark-knight-t2668388

Thanks to [MENTION=4635642]Crytech[/MENTION] for making the thread and maintaining it well. Please keep the thread clean as its a development thread and not Q&A thread.
[Sony Xperia L] Crytech:
Discussion thread

Guys now no more OFF-topic here.

Please use Discussion thread for posting things not related to development.
[Sony Xperia L] dr_hakam2:
I put the file like you said, but in the zip

and flashed it, and wifi worked fine :)

but still kernel takes a long time booting

I guess there's still some problems besides wifi with Parralax Rom
[Sony Xperia L] Shivam Kuchhal:
Phantom Kernel v6.2

Its a very small update and its only for Kitkat version of kernel.

Changelog:

Enabled SELINUX at kernel level for better compatibility with KitKat ROMs and recovery. Its also needed for flashing zips of KitKat ROMs in future(if we'll have any :p ).

Download:

NON-OC version: http://d-h.st/SvX

OC version: http://d-h.st/mmF

Remember that its not for Jellybean.
[Sony Xperia L] sherry_94:
Can we have features of TZ4.0 here ??
[Sony Xperia L] oprz_5:
There is absolutely no way to satisfy people, is there?...use TZ if u want those features...or this if u don't.. It can be done..but hey let's all try to be a non greedy bunch of active community that support and respect the developers instead of asking them for everything.

P.S. Did u try the new TZ? Or are u juz curious?
[Sony Xperia L] sherry_94:
No ...i didnt try that...i got. Bootloop..and I just asked. He can just refuse and there would n no problem....i askes cuz I dont want the extreme features like gpu at 533 and all that 1.7 ghz stuff....his thundersonic mod ia nice though
[Sony Xperia L] oprz_5:
Its a choice...u can always choose a lower frequency as max using trickster mod for the CPU and GPU... And u r good to go..
[Sony Xperia L] Shivam Kuchhal:
Actually I was thinking about the same thing since last night. Making a kernel with those new drivers of TZ and giving each and every credit to my senior developer [MENTION=4309448]varun.chitre15[/MENTION] but then I haven't decided yet as it'll need hell load of testing and I hope it won't make Varun angry too.

Still, I am unable to make up my mind for what do. If you think I should do it, you can post requests here by quoting my post and till then I'll get confirmation from Varun too if he's okay with this.
[Sony Xperia L] sherry_94:
Go for it
[Sony Xperia L] oprz_5:
U are the developer man. If u wanna do it then that's it. U don't need our permissions. If u two can work it out, hell yeah do it.
[Sony Xperia L] Joel16:
No, it makes his kernel unique from everyone else's.
[Sony Xperia L] giridhargp:
Can I use TWRP it in xperia m using vishal_androidfreak instruction?
[Sony Xperia L] sherry_94:
No..there sre plenty of kernels in XM threads....use those
[Sony Xperia L] renthebat:
Sorry for being out of topic, i think i just saw the 4gb internal sd from twrp, anybody ekse seen that? or.. Am i wrong..? Try it yesterday aospa b6.1 with phantom 6, but but now I revert to stock.. Miss that 4gb
[Sony Xperia L] sherry_94:
U mean when in recovery , u could see the 4 gb internal ???? yes thats normal since recovery and kernel use different vold.fstab (maybe thats the file , if i m not wrong) .
[Sony Xperia L] renthebat:
yes in twrp recovery, i don't know but it make me feeks like it's near to the fix
[Sony Xperia L] sherry_94:
This point was raised earlier in the forums...and the devs denied that it could help them fix issues.....dont get ur hopes high....sorry

---------- Post added at 09:08 AM ---------- Previous post was at 09:06 AM ----------

Can someone explain me what exactly eco mode does ???
[Sony Xperia L] renthebat:
Yeah.. They'll find the way somehow.. :)
[Sony Xperia L] giridhargp:
By mistake I typed that,I wanted to ask can I use TWRP in Xperia m?
[Sony Xperia L] vishal_android freak:
Cannot.. As it is different for Xperia M.. I'll compile one for Xperia M soon.. :)
[Sony Xperia L] giridhargp:
Oh that's really great to hear, thank you :)
[Sony Xperia L] Raj joshi:
A really firm and good kernel!! Good for daily use!! Keep up the good work!!

Greetings!! :)
[Sony Xperia L] ibr4him:
Does this kernel support ext2/3/4 partitions on sd card? I tried Thunderzap and stock but they just don't recognize my sdcard if I have MAIN+EXT or MAIN+EXT+SWAP partition. tried everything.
[Sony Xperia L] coolhz:
Can you please add double tap to unlock?

[MENTION=4984300]Shivam Kuchhal[/MENTION] Are you planning to make the kernel supported by AROMA installer? Anytime in future?

Its cool to customize so interactively!!

:D
[Sony Xperia L] flameonfzn:
Thanx man, loved your kernel_i uninstalled the overclocked version before because of too much of battery drain, but the stock version is working flawlessly, also can you tell me what intelliplug does?
[Sony Xperia L] daddy_rhon:
twrp + cwm

do you have any plan to make a dual recovery,sorry for asking...
[Sony Xperia L] Shivam Kuchhal:
BETA Testing

I need testers for Beta testing of kernel. Interested people please PM me.
[Sony Xperia L] dr_hakam2:
Shivam Kuchhal

thanks for your help making wifi of phantom 6.1 work with Parralax 3 Rom ........... although it is not your problem :)

I did what you said before about moving prima_wlan.ko and renaming it to wlan.ko ........ and it did work fine :)

Actually now I want to return to phantom 4.5 ( I guess it's more battery saving with this Rom )

but now it's wifi is the one not working :(

should I do the same steps but with phantom 4.5 files? or what?
[Sony Xperia L] DsvCdsSoftware:
Maybe it isn't kernel problems, but i'm getting Anr in systemui after install the kernel. Generally it's occurring when i'm using wifi or data connection. I'll attach a logcat when I come home.
[Sony Xperia L] Shivam Kuchhal:
Kernel doesn't have anything to do with it.
[Sony Xperia L] ulquiorrat:
my wifi doesnt work sir, current rom parallax v3 with phantom 6.1.. it was works when i used thunderzap kernel, but i find this kernel more stable

-nvm i read previous post with same problem and solved it, thx-
[Sony Xperia L] Shivam Kuchhal:
Phantom Kernel v7

Exams over and time for update. :D

I have been working on this kernel for long time now and it seems like its ready for release.

Changelog-

TWRP v2.7 changelog-

-Faster graphics rendering by disabling alpha blending on fully opaque objects thanks to Tassadar

-Allow sideloading from /tmp on encrypted devices

-Check for a crypto footer before asking for a password to prevent user confusion

-Additional checks for validity to auto generated backup names

-Text wrap in the console output

-Proper caps lock support in the keyboard

-Mouse support via USB OTG for devices with a broken digitizer

-Improve scanning of storage locations for OpenRecoveryScript

-Haptic feedback for buttons, keyboard, and vibration at the end of longer running actions

-Fixed ext4 wiping when no selinux contexts are defined for that partition (e.g. sd-ext)

-Update SuperSU to 1.93 and improve installation process

-Added selinux contexts restoration to fix permissions

-Load RTC offset on Qualcomm devices to fix the date/time in recovery

-USB Mass Storage fixes Add SELinux support checking

-Add Disk Usage class to better handle excluded folders (e.g. Google Music cache)

-Add 4.4 decrypt support

-Add some toolbox utilities to TWRP (namely to support SELinux functions not supported in busybox)

-Various SELinux fixes and bug fixes.

I'll use single versions of both kernels instead of OC and NON-OC versions as frequency override is fixed. :)

After you flash KitKat kernel, type these commands in terminal or via adb shell for proper functioning of storage-

su
cd /mnt/media_rw/sdcard0
mv !(0|legacy|obb) 0

How to use Charger Control?

1. AC current control: In times of hurry I felt the charging times to be too long and so I made this. With this you can control the charging current rate through wall charger.

Before doing anything you first need to enable the master switch of the control or else the values you write will be negelected

How to enable master switch

echo 1 > /sys/kernel/charger_control/enabled

After this you can use custom current values like this

echo X > /sys/kernel/charger_control/custom_ac_current
where X can be any value in mA (Milliamperes) I use 1600 i.e 1600mA which completes my phone's charging from 3% to 100% in around 1 hour 30 mins.

The stock current ranges from 1000-1100mA and takes around 2 hour 30 mins to 3 hours. Avoid using values higher than 2200.

2. USB current control: Everyone knows the charging rate from PC via USB is damn slow. Many new PC's have newer USB ports which can offer current rates higher than 1500mA but still our kernel only pulls 500mA. I made this to control it yourself

As usual you need master switch enabled to write the new values.

How to use

echo X > /sys/kernel/charger_control/custom_usb_current
where X can be any value in Milliamperes. I use 1500 i.e 1500mA

3. How to turn off master switch?

echo 0 > /sys/kernel/charger_control/enabled
[Sony Xperia L] Crytech:
[MENTION=4984300]Shivam Kuchhal[/MENTION] awesome kernel man. Feels like owning a nexus man.. Storage kernel was must and thanks for providing it ?
[Sony Xperia L] Romans.2012.h:
Bug :(

Hi Bro .. i think i find a bug ..:rolleyes: every time i restart the device the clock and date back to 3:00pm 2-1-2009 :( is there any solution ??:confused: thanks for this amazing kernel :D
[Sony Xperia L] topsecret78:
No way,im using v7 on SlimKat and i never have seen like this.
[Sony Xperia L] Redzo:
Kernel issues

Have gone from last Phantom to latest Phantom for JB and I am having some issues with lockdowns/slowdowns. Every once in a while and most often AFTER I wake up phone from deep sleep phone will slow down to a crawl anywhere from 5 to 30 seconds, for that time phone is totally unusable however after waiting it will come back with no FCs at all. Am running stock ROM 15.3.A.0.26 and phone is overclocked to 1,35Ghz and undervolted. Same overclock and undervolt have been on last version of Phantom (the one with CWM) with no sign of slowdowns.

Any clue guys ?

And is it possible to go back to CWM version of Phantom now since I have TWRP on this kernel ?
[Sony Xperia L] Shivam Kuchhal:
Can you guys try once again with clean flash of ftf and kernel? I can't seem to reproduce any reason for this so can't help you until you confirm this on a clean flash.
[Sony Xperia L] sherif_linkin:
I flashed your kernel after a clean install of ftf
[Sony Xperia L] Amr5121:
Thanks everything works fine and yet can play full HD on my phone (by km player)
[Sony Xperia L] ulquiorrat:
+1 btw im in jb rom
[Sony Xperia L] coolhz:
[MENTION=4984300]Shivam Kuchhal[/MENTION] Great features but one issue , I think the kernel is not allowing the CPU to reach 1.7 GHz , I tried different configurations , of Governors and still very slow performance , I saw the time it was in 1.7GHz it was just 1℅ and I was playing an intensive game back then. Fix this bro!!

And by the way other things work well. ;)
[Sony Xperia L] Crytech:
It will go to highest freq only when its needed. If you expect 1.7 GHz always forget battery life man ;)
[Sony Xperia L] DsvCdsSoftware:
I'm having this behavior after a force restart, removing the battery. Now always when I need to reboot my phone, the date is going back, using automatic mode or manual mode.

Wipe cache and dalvik didn't solve the issue. The clock on twrp are correct, only android clock was wrong. I don't know if is important, but I removed update center apk and hangouts apk

P.s: I´ve just restored Hangouts but it doesn't seem to help. A temporary solution that I found is install ClockSync from market. It sync the time on boot.
[Sony Xperia L] coolhz:
Bro I know that but man I was playing FIFA 14 and it was lagging a bit , I had it overclocked at 1.7GHz but still it wasn't going to that frequency even when it needed.

Not comparing but when I had Thunderzap 4.1 with 1.7GHz it was going to that frequency when needed and FIFA was smooth :D
[Sony Xperia L] sherry_94:
What governer you use ?? Tweak it in ttickster mod .....set ideal frequencies higher in the governer settings....
[Sony Xperia L] coolhz:
Intelliactive , yeah I will try what you said :)
[Sony Xperia L] sherry_94:
Use the tried and tested ondemand
[Sony Xperia L] Shivam Kuchhal:
It's been a while since v7 release, no reviews, no bug reports and no problems too? That wasn't expected guys. :(
[Sony Xperia L] sherif_linkin:
Ok I'm going to start now when I enable 1.7 ghz the phone restart and also another issue sometimes the phone hangs for 5-30 seconds and sometimes I have to pull out the battery I have the same voltage in the thread this the only problems I face everything else is fine
[Sony Xperia L] jccz:
I have it. I use it. And it works :) But my cpu run at 1,3 max. Thank you.
[Sony Xperia L] R.A.B:
I flashed your JB kernel yesterday. :)

First impressions with default values on fw 0.26... - very smooth and very battery friendly. May be that's your most energy-saving kernel until now, and that's very important for me.

Clock doesn't work on my phone, too (same as in the new ThunderZap). But I also used ClockSync on my Motorola before - it's not a big problem.

Lets see the coming days what is showing up next.

Thank you very much again for your great work

...
[Sony Xperia L] ArnauGonzalez98:
Wifi not working...

Sorry for my ignorance, but I don't know how to fix wifi problems on my Xperia L... I experiment those problems every time I install a Kernel for KK...

Thanks in Advance fellow!
[Sony Xperia L] DsvCdsSoftware:
Impressions about v7

I used Phantom Kernel [MENTION=4984300]Shivam Kuchhal[/MENTION] since I updated to 0.26 firmware.

About this version:

I have this problem too on my phone [MENTION=4537046]sherif_linkin[/MENTION], and I've tried several configurations to solve it, but no luck yet, if you have gotten rid of this problem, please share with us.

Another problem is about the System Time. After one of these battery pull out caused by the problem above, the time always go back to 10:00 at 2nd January 2009, but today I rebooted my phone and the time problem just disappear, like magic. But I solved It earlier using ClockSync from Store...

About the second core frequency, after flashing the v7 I've locked the CPU frequency at 1350 MHz (my favorite frequency, I think it have a good balance between battery saving and performance), and the second core stayed at this frequency all the time, for me it's solved.

It's very smooth using the Stock Rom, I'm on firmware .14 by now and you make a good job with this kernel, I'm just waiting the Bluetooth fix on KK to use Phantom with 4.4 in Xperia L.
[Sony Xperia L] sherif_linkin:
I think this lag related to network or something I have installed Reincarnation Engine v.4 JB 4.2

And build.prop tweak for stock ROM and now the lag is less than before
[Sony Xperia L] sherry_94:
Mpdecision need not be enabled in v7??
[Sony Xperia L] DsvCdsSoftware:
Have you ever tried PurePerformances X? I'm thinking in give it a try, but I'll look at the Reincarnation Engine too :good:
[Sony Xperia L] mizukage:
hi i just wondering if i can flash the zip file via recovery using phantom kernel
[Sony Xperia L] ArnauGonzalez98:
Yes! You can do it!

Luck!
[Sony Xperia L] Raj joshi:
Music glinches the only bug!! Any solution?
[Sony Xperia L] Shivam Kuchhal:
They're not because of my kernel. If you compile a kernel from source and flash it, you'll still face those glitches. Possibly, Sony decided to screw something in source. Unfortunately, we can't do anything until someone(or me) comes up with a solution.
[Sony Xperia L] sherry_94:
There is a h/w decoding bug....video plays fine for some time......then for some time , it stops and then suddenly rushes to keep up....it was present in Thunderzap 4.1 . its less prominent here.....but it is there..videos are not smooth
[Sony Xperia L] Redzo:
It broke my WiFi. Anybody else having same issue ?

EDIT: Nevermind fixed it.
[Sony Xperia L] sherry_94:
Shivam, can we have vibration control ?? The haptic feedback is very hard and audible [emoji21]
[Sony Xperia L] R.A.B:
Last week I wrote that the system clock does not work after installing one of the new Thunderzap or Phantom kernels. My fault, sorry.

After a lot of tests the last days I think I've found the error. System is fw 0.26 with CnT and after I repaced some CnT files with the originals systemclock is updated again after reboot. I'm not sure but it seems that the error was gone after changing "SystemUI" or/and "Settings" ...

Anyway! Phone is running without "ClockSync" again :)

...
[Sony Xperia L] DsvCdsSoftware:
I think that this isn't the problem, because I saw this behavior with Stock .14 firmware...
[Sony Xperia L] R.A.B:
May be but believe me. After installing Xposed I replaced one modified file after the other with no other changes at this time. I was actually looking for the reason of another error and unexpectedly found that the clock was working again. ‎Immediately after reboot. Since then I haven't seen this problem again...

So I think it's worth a try for all the users running JB with CnT4.x

...
[Sony Xperia L] DsvCdsSoftware:
Yes, i've noticed that the clock problem gone away when I changed back to v4.5 on .14 firmware, and the other freeze problems that I noticed on my phone.

I'm waiting for the resolution of the bluetooth issue on KK (I use it a lot on work and home) for migrating to 4.4 on XL, and when this occur I'll go back to v7 or newer of Phantom.
[Sony Xperia L] basuraunak:
I tried using this command after flashing Phantom v7 on AOSPA beta6.

su

cd /mnt/media_rw/sdcard0

mv !(0|legacy|obb) 0

but the second command [ "mv !(0|legacy|obb) 0" ] does not work it shows " failed on Android -directory not empty"

Can anybody tell whats wrong? :confused:

[MENTION=4984300]Shivam Kuchhal[/MENTION]
[Sony Xperia L] srcharged:
Empty the directory.

Empty the directory(whichever it says) and then try again. This time it will work. Youll see 4 GB in any explorer and on pc
[Sony Xperia L] taylan08:
+1

i have this problem :(
[Sony Xperia L] basuraunak:
It still shows failed yet now i can see 4 gb in es file manager ! ! !
[Sony Xperia L] faizalotai:
The best way copy those folder to pc than paste it to new sdcard..done..that command will move the folder only excluding what inside it..
[Sony Xperia L] abhijeetdahiya:
Old files of internal sd are not shown :(

When i used this method, internal storage is not showing my old files, neither in pc nor in file manager :( in pc it is showing the space used by those files, but the files are not being showed :( what should i do now?? plz help
[Sony Xperia L] SecretVamp:
the freeze fix or nt
[Sony Xperia L] aniketroxx:
just make it command like

mv !(0|legacy|obb|Android) 0
[Sony Xperia L] mizukage:
after updating my phantom 6.1 to v7 my navigation bar has been gone, help plz ASAP.
[Sony Xperia L] Redzo:
Need to get hold of phantom 4.5 becouse any version after that one rendera The Phone unusable if one uses stock Rom.
[Sony Xperia L] topsecret78:
I'm using phantom v7 in paranoid beta db1. I'ts greats kernel :)

Wysłane z mojego C2105 przy użyciu Tapatalka
[Sony Xperia L] Hrustus:
How to boot into CWM or TWRP? :eek:
[Sony Xperia L] basuraunak:
Keep pressing vol- when phantom logo appears.
[Sony Xperia L] Hrustus:
and then i have prompt "read-only file system ;/
[Sony Xperia L] Shivam Kuchhal:
People having freezes, please visit here.

http://xdaforums.com/showpost.php?p=51812155&postcount=35