• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[KERNEL] Phantom Kernel for Android 6.0.1 TouchWiz Roms

Status
Not open for further replies.
Search This thread

6h0st

Senior Member
Nov 4, 2011
1,361
4,846
ghost.com.ro
Samsung Galaxy Note 20 Ultra
Mod edit: thread closed due to missing kernel sources.

Your warranty is now void. Knox 0x1.
I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
Please do some research if you have any concerns about features included in this kernel.



PHANTOM KERNEL
by 6h0st


Lots of thanks to the Aspire team members:
@DaOldMan – Aspire Rom developer
@Eleo, @galili47, @Bullmans, @Logel & @Kill-Switch - Product evaluation & Support

Special thanks:
@jcadduono
@lss1977
@Yank555
@arter97
@faux123
@gj86

... other previous developers and all future testers...
... and of course big thanks to project donors.

* Kernel Features *
Based on idle kernel by jcadduono/lss1977 source code.
Linux version 3.4.113,
Arch Power, Gentle Fair Sleepers ,
F2FS support - I recomend using F2FS for /system and /cache partitions only, but supports /data partition too - EXPERIMENTAL
Added Phantom Governor as default
(based on yankactive - optimized to use CPU frequencies for reduced battery consumtion with a little loss of performance.)
Added alucard, arteractive, intelimm, intellidemand, ondemandplus, impulse, smartmax, smartmax_eps, Lionheart, biosock, nightmare and zzmoove governors beside performace and conservative.
Added Phantom, zen, tripndroid, sioplus, bfq,fiops, deadline I/O Schedulers beside row, cfq, sio, fifo and noop.
Phantom I/O Scheduler set as defualt for Internal memory and External SD Card (if phone has one)
(Phantom I/O Scheduler is based on Maple, has Zen, VR and SIO I/O schedulers code in it, uses a first come first serve style algorithm with seperated read/write handling to allow for read biases. By prioritizing reads, simple tasks should improve in performance. Phantom I/O also uses hooks for the powersuspend driver to increase expirations when power is suspended to decrease workload.)
Max CPU frequency is 2265 mhz
Min CPU frequency is 288 mhz
CPU has 28 frequency steps.
No CPU OC - Stock CPU frequency table used for better stability
Added Fast Charging by Yank555.
Added 100, 500, 533, 578 mhz GPU steps.
7 CPU hotpluging managers: MSM, Bricked, Intelli-hotplug, Zen Decision, AutoSMP, Fast Hotplug and LazyPlug
Intelli-hotplug tweaked ,modded and added a special Lazy profile for videos, phone calls and screen off (set as default)
iotop.sh script support
Added battery power consumtion (average and current) information (mAh).
Added per CPU core control (governor and frequency)
Added Adaptive LMK
Added DoubleTap2Wake (Full/Half screen modes available)
Added Phantom Log, Phantom LED and Phantom Swap features
- LKM - Loadable Kernel Modules support
- Intelli-Hotplug update (more balanced now)
- Intelli-Hotplug (4 cores only) profiles update:
0 balanced 4 cores (default)
1 performance 4 cores (more aggesive)
2 conservative 4 cores (saves battery)
3 disable
(* Any other value other then 0-3 will set it to 3.)
(** Tweak is available at this path: /sys/kernel/intelli_plug/full_mode_profile)

- added custom suspend: enable freeze timeout configuration
(*Tweak is available at this path: /sys/power/pm_freeze_timeout)
- Fixes for DoubleTap2Wake.
- FS performance gain by 10%, in benchmark test at least.
- Modem performance tweak
- Fix for LTE only as preferred mode causing FC after a reboot;
- Fixed Call Delay;

__________________________________
How to use LKM - Loadable Kernel Modules:
The kernel comes in a basic version without all the governors, schedules, hotplugers and FS supported types of partitions, only the most common used.
If you want to use other features that aren't enabled anymore, you need to edit the /system/etc/init.d/00modules file and remove the "#" from the beginning of the lines related to the module (feature) you want to use/enable and reboot. You can activate all of them if you want.
If you want to use the basic version again, you can remove the 00modules file, if any changes were made. It will reappear on reboot, but all modules will be disabled, as default. If the file is missing after a reboot you can copy it from /sbin/scripts folder to init.d.
__________________________________
1.What does Phantom LED do?
It makes the phone's LED blink upon Wifi, Internal SD, ExtSD activity.
(Disable ROM Led notifications for this feature to work properly)
__________________________________
2.What does Phantom Swap do?
It creates a swapfile on the /data partition and starts the swapping process on boot.
The size of the swapfile is 768MB.
If /data/.phantom.swap is removed it will clean the /data partition of the swapfile remains.
__________________________________
3.What does Phantom Log do?
It enables ROM's logs, that are disabled by default.
To enable ROM's logging (logs) you need to create an empty file named '.phantom.log' in /data and reboot. (The name starts with a dot and without quotes.)
After reboot you can check if everything it's working by opening /data/.phantom.log file, with a text editor, and find this text inside: 'Logs are active and available for debugging now.'.
If the text is there you have done the procedure correctly and all logs should be available.
You can't activate logging from Kernel Adiutor-mod anymore!
__________________________________
Kernel add-on scripts can be found in /=Phantom Scripts= folder, if ramdisk/boot image is not altered (e.g. Magisk is installed).
Simple way to use a script is to copy the script from /=Phantom Scripts= to /system/etc/init.d. and reboot, except iotop.sh !
Alternative method is with Kernel Adiutor-mod or SManager or similar apps.

You can edit, save and delete the scripts from /=Phantom Scripts= folder, but all changes will be gone upon reboot! (Even if you delete all/any of the scripts). Most info on how and what to edit is inside of the scripts.
__________________________________

For best compatibility and experience I recommend using [C9 Pro Port][N900X] AspireTeam C9 Pro V4.0.
(Why? ... it's because my testing was done on to this ROM)

Mod edit: links removed

XDA:DevDB Information
Phantom Kernel, Kernel for the Samsung Galaxy Note 3

Contributors
6h0st
Source Code: Mod edit: links removed

Kernel Special Features: Based on idle kernel by jcadduono/lss1977 source code. (...read full description above.)

Version Information
Status:
Stable
Current Stable Version: One
Initial Release Date: 2017-01-08
Latest developer version: 1.2z [EOL]
Latest developer version Release Date: 30.10.2018
For latest updates read the changelog of developer version that can be found in post 3 or on Facebook:
 
Last edited by a moderator:

6h0st

Senior Member
Nov 4, 2011
1,361
4,846
ghost.com.ro
Samsung Galaxy Note 20 Ultra
How to flash kernel:

Method for .IMG file:
[ Clean data of Kernel config app fist (Kernel Adiutor or similar apps) ! ]

1. From TWRP Recovery {INATLL} button > go to download folder.
2. Select {Images...} button from down-right-corner > select boot.img.
3. Select Boot > Swipe to confirm Flash.
Done!


Method for . ZIP file:
Download (download link in first post) and flash the zip file from TWRP / other recovery.

* Highly recommended on first flash of a new dev.ver. or if coming from another kernel *

[Backup your /system/etc/init.d scripts, Kernel Adiutor-mod data (or Synapse data from other kernels) BEFORE flashing!]
 
Last edited:

6h0st

Senior Member
Nov 4, 2011
1,361
4,846
ghost.com.ro
Samsung Galaxy Note 20 Ultra
Thank you, gonna try it.

But why:



:(

I want performance and don't care about battery (it last so long, no need to).

You have some performance tipps?
Change Max CPU speed to 2.26 Ghz. Use yankactive governor if phantom is not doing the job, or try other governors.

Stock frequency table is used for stability. When booting, about 5 sec. or even more, CPU goes to max frequency. If the max frequency is 2.8 Ghz for exemple, some phones will reboot.
...
Use LSpeed app with performance tweaks but don't optimize CPU if you use phantom/yankactive governors.
Use a 30 sec delay to apply tweaks.

Another thing is temperature. If you OC you will need to activate thermal monitoring or else you might damage your CPU, but by doing that you will get a performance loss. This way a lot of the extra power from CPU you get by OC-ing, will go to thermal monitoring.
Plus the thermal monitor will limit frequencies / cores when overheating. So you will be able to use OC extra power for a short while because of overheating, giving you in fact worse performance overall. OC is generally used for benchmarking, not daily use.
 
Last edited:

Eleo

Senior Member
Apr 16, 2012
16,229
14,425
Jena
I want performance and don't care about battery (it last so long, no need to).

You have some performance tipps?
How is your experience with kernel? You seem you dont like the performance, that is why you want OC, right?

Sent from my Note 3 using XDA Labs
 

TurricanM3

Senior Member
Feb 4, 2015
846
218
Thanks 6h0st.
I wanted OC for a little more responsivness. I am no gamer. 2267 got used very rarely and just for a short time. I don't think the phone would overheat.
You aren't using CPU Boost right?
Performance is very good. Still testing. I turned off Arch power.
 

rezapn1255

Senior Member
Jul 20, 2015
345
72
Redmi Note 9 Pro
How to flash this kernel ????
First,
Remove previous kernel and it's depending apps like auditor or synapse and.......

In twrp recovery, instead of choosing zip file we should select imag.

Am I right?

If not , please explane( in detail ) how to flash this kernel.
Big thank.

Sent from my LG-D855 using Tapatalk
 
Last edited:
  • Like
Reactions: mak1989
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 151
    Mod edit: thread closed due to missing kernel sources.

    Your warranty is now void. Knox 0x1.
    I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
    Please do some research if you have any concerns about features included in this kernel.



    PHANTOM KERNEL
    by 6h0st


    Lots of thanks to the Aspire team members:
    @DaOldMan – Aspire Rom developer
    @Eleo, @galili47, @Bullmans, @Logel & @Kill-Switch - Product evaluation & Support

    Special thanks:
    @jcadduono
    @lss1977
    @Yank555
    @arter97
    @faux123
    @gj86

    ... other previous developers and all future testers...
    ... and of course big thanks to project donors.

    * Kernel Features *
    Based on idle kernel by jcadduono/lss1977 source code.
    Linux version 3.4.113,
    Arch Power, Gentle Fair Sleepers ,
    F2FS support - I recomend using F2FS for /system and /cache partitions only, but supports /data partition too - EXPERIMENTAL
    Added Phantom Governor as default
    (based on yankactive - optimized to use CPU frequencies for reduced battery consumtion with a little loss of performance.)
    Added alucard, arteractive, intelimm, intellidemand, ondemandplus, impulse, smartmax, smartmax_eps, Lionheart, biosock, nightmare and zzmoove governors beside performace and conservative.
    Added Phantom, zen, tripndroid, sioplus, bfq,fiops, deadline I/O Schedulers beside row, cfq, sio, fifo and noop.
    Phantom I/O Scheduler set as defualt for Internal memory and External SD Card (if phone has one)
    (Phantom I/O Scheduler is based on Maple, has Zen, VR and SIO I/O schedulers code in it, uses a first come first serve style algorithm with seperated read/write handling to allow for read biases. By prioritizing reads, simple tasks should improve in performance. Phantom I/O also uses hooks for the powersuspend driver to increase expirations when power is suspended to decrease workload.)
    Max CPU frequency is 2265 mhz
    Min CPU frequency is 288 mhz
    CPU has 28 frequency steps.
    No CPU OC - Stock CPU frequency table used for better stability
    Added Fast Charging by Yank555.
    Added 100, 500, 533, 578 mhz GPU steps.
    7 CPU hotpluging managers: MSM, Bricked, Intelli-hotplug, Zen Decision, AutoSMP, Fast Hotplug and LazyPlug
    Intelli-hotplug tweaked ,modded and added a special Lazy profile for videos, phone calls and screen off (set as default)
    iotop.sh script support
    Added battery power consumtion (average and current) information (mAh).
    Added per CPU core control (governor and frequency)
    Added Adaptive LMK
    Added DoubleTap2Wake (Full/Half screen modes available)
    Added Phantom Log, Phantom LED and Phantom Swap features
    - LKM - Loadable Kernel Modules support
    - Intelli-Hotplug update (more balanced now)
    - Intelli-Hotplug (4 cores only) profiles update:
    0 balanced 4 cores (default)
    1 performance 4 cores (more aggesive)
    2 conservative 4 cores (saves battery)
    3 disable
    (* Any other value other then 0-3 will set it to 3.)
    (** Tweak is available at this path: /sys/kernel/intelli_plug/full_mode_profile)

    - added custom suspend: enable freeze timeout configuration
    (*Tweak is available at this path: /sys/power/pm_freeze_timeout)
    - Fixes for DoubleTap2Wake.
    - FS performance gain by 10%, in benchmark test at least.
    - Modem performance tweak
    - Fix for LTE only as preferred mode causing FC after a reboot;
    - Fixed Call Delay;

    __________________________________
    How to use LKM - Loadable Kernel Modules:
    The kernel comes in a basic version without all the governors, schedules, hotplugers and FS supported types of partitions, only the most common used.
    If you want to use other features that aren't enabled anymore, you need to edit the /system/etc/init.d/00modules file and remove the "#" from the beginning of the lines related to the module (feature) you want to use/enable and reboot. You can activate all of them if you want.
    If you want to use the basic version again, you can remove the 00modules file, if any changes were made. It will reappear on reboot, but all modules will be disabled, as default. If the file is missing after a reboot you can copy it from /sbin/scripts folder to init.d.
    __________________________________
    1.What does Phantom LED do?
    It makes the phone's LED blink upon Wifi, Internal SD, ExtSD activity.
    (Disable ROM Led notifications for this feature to work properly)
    __________________________________
    2.What does Phantom Swap do?
    It creates a swapfile on the /data partition and starts the swapping process on boot.
    The size of the swapfile is 768MB.
    If /data/.phantom.swap is removed it will clean the /data partition of the swapfile remains.
    __________________________________
    3.What does Phantom Log do?
    It enables ROM's logs, that are disabled by default.
    To enable ROM's logging (logs) you need to create an empty file named '.phantom.log' in /data and reboot. (The name starts with a dot and without quotes.)
    After reboot you can check if everything it's working by opening /data/.phantom.log file, with a text editor, and find this text inside: 'Logs are active and available for debugging now.'.
    If the text is there you have done the procedure correctly and all logs should be available.
    You can't activate logging from Kernel Adiutor-mod anymore!
    __________________________________
    Kernel add-on scripts can be found in /=Phantom Scripts= folder, if ramdisk/boot image is not altered (e.g. Magisk is installed).
    Simple way to use a script is to copy the script from /=Phantom Scripts= to /system/etc/init.d. and reboot, except iotop.sh !
    Alternative method is with Kernel Adiutor-mod or SManager or similar apps.

    You can edit, save and delete the scripts from /=Phantom Scripts= folder, but all changes will be gone upon reboot! (Even if you delete all/any of the scripts). Most info on how and what to edit is inside of the scripts.
    __________________________________

    For best compatibility and experience I recommend using [C9 Pro Port][N900X] AspireTeam C9 Pro V4.0.
    (Why? ... it's because my testing was done on to this ROM)

    Mod edit: links removed

    XDA:DevDB Information
    Phantom Kernel, Kernel for the Samsung Galaxy Note 3

    Contributors
    6h0st
    Source Code: Mod edit: links removed

    Kernel Special Features: Based on idle kernel by jcadduono/lss1977 source code. (...read full description above.)

    Version Information
    Status:
    Stable
    Current Stable Version: One
    Initial Release Date: 2017-01-08
    Latest developer version: 1.2z [EOL]
    Latest developer version Release Date: 30.10.2018
    For latest updates read the changelog of developer version that can be found in post 3 or on Facebook:
    120
    Changelog of: developer version 1.2z
    - Compiled with Toolchain UBERTC 8.2.1 + GRAPHITE optimizations;
    - a few bugs fixed for eur and skt variants;
    - some improvements in performance and battery life.
    65
    How to flash kernel:

    Method for .IMG file:
    [ Clean data of Kernel config app fist (Kernel Adiutor or similar apps) ! ]

    1. From TWRP Recovery {INATLL} button > go to download folder.
    2. Select {Images...} button from down-right-corner > select boot.img.
    3. Select Boot > Swipe to confirm Flash.
    Done!


    Method for . ZIP file:
    Download (download link in first post) and flash the zip file from TWRP / other recovery.

    * Highly recommended on first flash of a new dev.ver. or if coming from another kernel *

    [Backup your /system/etc/init.d scripts, Kernel Adiutor-mod data (or Synapse data from other kernels) BEFORE flashing!]
    55
    New dev. ver. 1.2l is up.
    Enjoy!
    47
    New dev. ver. 1.2k is up.
    Enjoy!