FORUMS
Remove All Ads from XDA

 View Poll Results: Funny boot logo?

Yes!
 
37 Vote(s)
34.91%
No. Stock boot logo
 
69 Vote(s)
65.09%

[Android 4.4+] [KERNEL] [OC] Nui kernel for CM ROMs

461 posts
Thanks Meter: 811
 
By thichthat, Senior Member on 30th March 2015, 03:10 PM
Post Reply Email Thread
Hi everyone! After a couple of days working on ubuntu, I have built my own kernel

If you enjoy my work, please buy me a coffee. Thanks: http://nui.pe.hu/donate.html
Download here: https://play.google.com/store/apps/d...com.nui.kernel

I AM A STUDENT, NOT A DEVELOPER. I CANNOT FIX ALL ERRORS. SO PLEASE DON'T GIVE MY APP 1 OR 2 STARS.


FAQs

I can't flash zip file!
You must install TWRP. It doesn't work with CM recovery

My phone gets bootloop. What can I do?
You can use fastboot to flash stock kernel. Or just easily re-flash ROM.

This kernel makes my phone runs slow!
I can't help you. It works fine for me. I use CM's source code and I just add some feature.

Can you add/remove/fix blah blah feature?
OK. I'll try. But first I must do my homework. I'm a student, not a developer

Do I need to move data from internal storage to sdcard before disabling it ?
Yes. But if you forgot, don't worry. All your data is still in /data/media/0



See post #2 for more infomation


Changelog:
V6.1
Update FAQs
Update built-in TWRP to 3.0.0 (thanks to cucumber09)
Enable pressure report for touch screen (may not accurate)
Fix delay for guide on boot logo
Sync with newest CM13 kernel source.

V6.0
Re-enable F2FS
Use uncompressed main ramdisk (only gzip TWRP ramdisk)
Sync with CM13 kernel source
Underclock to 192MHz (may increase standby time)
Optimize voltage value for CPU
Increase CPU bus speed
Fix/update extract_elf_ramdisk (thanks to cucumber09)

V5.9
Add fade animation for flash torch on/off (in Tweaks > More)
Fix recording video error
Sync with CyanogenMod kernel source
App: fix FC in screen/brightness settings

V5.8
Add an awesome fade animation for LED notification
Sync with Ron's CM13 kernel source
App: Remove options for KSM and brightness lock

V5.7
Fix some FCs in the app
Disable KSM for fixing random reboot
Update disable internal storage for android 6.0+
Option for offline charging (Tweaks > Boot options)

V5.6
Add loading recovery.cpio from /cache
Add tips in FAQ menu
Add KSM support (Tweaks > RAM tweaks)
Follow Google's guidelines for Low RAM devices
Disable offline charging by default
Edge gesture: Custom action for menu gesture, increase its sensitive
Always enable dt2w/s2w vibration

V5.5
Add earpiece volume gain
Support camera button on selfie stick (in Tweaks > Buttons)
Fix swipe to control music
Fix FM radio

V5.4
Kernel:
Full support for android 6.0 marshmallow
Optimize sensor drivers (gravity, light and compass driver)
Press volume up/down to answer/decline incoming call
Fix swipe to control music
Fix speaker gain being overwritten randomly
App:
Fix sound settings can't be restored on boot

V5.3
Fix Edge gesture
Add function to Backup/Restore settings.
New "Edge gesture" function (see more in Tweak menu)
Add volume control from kernel level (for mic, speaker and headset)
Many optimizations for touch screen driver
Add tweaks for camera
Button: add "recent" button action
App: Rearrange tweaks menu

V5.2
Kernel:
GCC 5.2.0
Removed kexec hard-boot (it's broken and I can't fix)
Tweaked low memory killer module
Workaround for mobile data issue
App:
Allow opening tweak menu without updating to newest version
Rearrange some settings in "More" section in tweak menu
Add tweaks for Android side

V5.1
Now use GCC 5.1.0
Add Croatia translation (Thanks to Petar Cerin)
Improve/fix installer script (compatible with more ROMs)
Improvements for touch screen driver and dt2w/s2w:
+ Optimize code (save CPU cycles)
+ Fix screen freeze issue (for dt2w/s2w)
+ Removed debug code
Workaround for init.d
Disable mpdecision by default

V5.0
FIX SYSTEMUI FCS (tested on Archidroid)
Add Hindi translation (thanks to Garv Maggu)
Fix shortcuts on home screen
Remove many unused built-in drivers (IR control, PS2 mouse, TV tuner,...)
Add interactive GPU governor
Enable H264 High profile codec (Experimental)
Remove debug messages in wlan and LED driver (speed up a bit)
LED blinking for boot decision (can be disabled in tweaks menu)

V4.9
Add Vietnamese translation (thanks to Tuan Loc)
Fix some English grammar error (thanks to Garv Maggu)
Add more shortcut for home screen
Fix mobile signal/SIM card for CM11 (Thanks to PecanCM)
New method to choose boot type
No delay after choosing Recovery boot
Add HYPER cpu governor
"Very dim" brightness now a bit dimmer
Prevent audio glitches for music playback (experimental, enable in accessibility service)

V4.8
Add kexec/MultiROM support (read post #2)
Add swipe to control music playback on screen off

V4.7
Governors: remove NUIOndemand, add intellidemand
Fix forever deep sleep on dt2w/s2w
Add GPU Control
Add CPU control and power menu shortcuts for launcher

V4.6
Built-in No-frills CPU Control (thanks to Sineo)
Add option to control Dynamic Fsync (disabled by default)
SELinux set to default (Enforcing)
Add overclock levels

V4.5
Downgrade to GCC 4.9.3 (to fix dt2w/s2w and some problems with ril)
Add intellimm governor
Set noatime for all partitions (I/O boost)
Fix disable internal storage mod for dual SIM (check post #2 on xda)
Remove automatic install method (we only have to flash ONE zip)
Improve algorithm in tweaks menu

V4.4
Fix touch screen freezing cause by dt2w/s2w
Option to force brightness to a specific value
Improve algorithm in tweaks menu

V4.3
GCC toolchain 4.9.4 linaro
Auto check for update when app is opened
Add swipe to wake (still for testing, sometimes need to swipe twice)
Merge new changes from CM (Except removing logger)
SElinux set to permissive by default
Add some help messages in tweak menu
Add MD5 checker for installer

V4.2
Tweaks for camera and focus button when screen is off
Add zen io scheduler
Update TWRP to 2.8.7.0
Option to change:
+ Sensitive of proximity sensor
+ Intensity of torch LED
+ Disable FOTA recovery
Improve dt2w:
+ Fix forever deep sleep bug (Need to test more)
+ Disable on screen edge (to prevent sliding from edge)
+ Fix some accidentally tapping case

V4.1
Add tweaks for camera and focus button
Add guide text on boot (can be disabled in tweaks menu)
Fix dt2w issue when calling

V4.0
Fix some settings cannot be saved
Fix headset volume button (in kernel level)
Add fiops io scheduler
Built-in frandom (Fast pseudo-random generator)

V3.9
Fix Settings menu can't show correct value
Add option for overclock, disable by default.
Add vibration for dt2w
Add lulzactive governor
Add fifo, tripndroid io scheduler
Hold volume up and press focus key to force reduce brightness (useful when you get "Android is upgrading" for a long time)
Update FAQs
Fix all FCs in Settings

V3.8
Fix lag when CPU goes above 1GHz. You phone will be very smooth.
Re-enable mpdecision (fix problem with sdcard)
Improve double tap to wake:
+ Fix battery drain
+ Add half screen mode
+ Add setting
+ Now can work in deep sleep but sometimes need to tap 4 times

V3.7
Fix sdcard not mounting on some ROMs
Fix Settings menu
Add manually install method
Fix/update NUIondemand
Fix all problem with zip method
Disable normal install method
Clean source code and toolchain (may fix problem with mounting sdcard and random reboot)

V3.6
Option to on/off vibration on boot decision
Fix FC in settings
Add NUIondemand governor (still for testing, read FAQs)
Re-built all kernel object files (may fix problem with mounting sdcard)

V3.5
Add custom vibration intensity for haptic feedback
Re-add CM11 support
Add init.d support
Added installer via zip method
Fixed FC in settings
Add FAQs
Fix install algorithm
Add more information for reporting

V3.4
Remove support for CM11
Add kernel tweaks
Revert adjusting microphone volume
Mount system rw at boot

V3.3
Disable mpdecision by default
Revert using focus button as camera button
Add exFAT and f2fs file system

V3.2
Fix bootloop for update on devices using Disable Internal Storage mod
Optimize init.sh script
Reduce brightness when booting (Save battery)
Built-in undervolt script (set on every boot)
Add Lionheart governor
Add sioplus iosched
Increase microphone volume

V3.1
Fix apk file not recognize Xperia M dual
Fix camera button not working on all CM roms (Open camera app and try it yourself!)
Add sio iosched
Add SmartassV2 governor (UNSTABLE, I need developers to help me)
Merge newest commits from CM

V3.0
Stock boot logo
Build with GCC 4.9.3 linaro
New way to install (via apk file)
New way to reboot: press and hold power button for 8 secs
Re-enable FOTA recovery (read post #2)
Re-enable Dynamic FSync 2.0
Sync with CM's source code

V2.5
Based on CM12.1 branch from CM's source code
New funny boot logo!
Fixed beeeeeeeeeeeep noise when recording audio
Disable intelli plug (to control individual cores)
New boot script (add vibrations for boot decision)
Add 2ndrom function (still for testing)
Add new method for disabling internal storage

V2.0
Use SXD's source code (from here: https://github.com/NoelMacwan/SXDNickiLolly/ )
GCC 4.8
Overclock to 1.7GHz
Fixed dt2w (EXPERIMENTAL, MAY CAUSE BATTERY DRAIN)
Add intelli_plug, fsync, fstrim,...
intelli_plug tweak
Add support for CM12.1

V1.1:
Build with gcc tool 4.8.5 (thanks to @shrisangram )
Add doubletap2wake function (Worked but not stable!)
Disable mpdecision by default
Read ahead cache size to from 128KB to 2048KB

V1.0:
Stock boot logo
Overclocked to 1.6GHz (thanks to @FindYanot )
Added volt control and undervolt (thanks to @icoolguy1995 )
reduced min brightness level
Added TWRP 2.8.3.0 (with MTP support)
Added support for patch.cpio (for cm11 kernel patch)
When boot, blue led for boot decision and white led for TWRP (this is not an extra feature. I added it to test my codes)
Build with gcc tool 4.7 (Sorry, I have problems compiling with 4.8 and 4.9)


XDA:DevDB Information
[Android 4.4+] [KERNEL] [OC] Nui kernel for CM ROMs, Kernel for the Sony Xperia M

Contributors
thichthat, Garv Maggu, ndrancs
Source Code: https://github.com/ngxson/android_kernel_sony_msm8x27

Kernel Special Features:

Version Information
Status: Stable
Stable Release Date: 2015-06-08

Created 2015-03-30
Last Updated 2016-02-15
The Following 47 Users Say Thank You to thichthat For This Useful Post: [ View ] Gift thichthat Ad-Free
 
 
30th March 2015, 03:10 PM |#2  
OP Senior Member
Thanks Meter: 811
 
More
Reserved
Useful information:

See 3rd post for disabling internal storage

List of old versions can be found here: https://drive.google.com/folderview?id=0B2-0MyP06DN5LWs1YWZudm5La3M&usp=sharing

Manually install method: If you have problem with installing via apk file, try this method:
- Extract all files zip files from apk file
- In apk/assets/nui you will see a zip file. Extract and copy it to your phone.
- Reboot to recovery and flash method_zip.zip
- Reboot again.
Done!

Recommended setting:
  • Normal usage:
    Use built-in undervolt table
    CPU: max=1026MHz
    governor=intellidemand
    GPU: max=320MHz
    io sched=zen
  • Battery saving:
    CPU: max=810MHz
    governor=conservative
  • Hard gaming:
    Set all to max. It's easy for you.
The Following 23 Users Say Thank You to thichthat For This Useful Post: [ View ] Gift thichthat Ad-Free
30th March 2015, 03:10 PM |#3  
OP Senior Member
Thanks Meter: 811
 
More
MOD: Disable emulated storage (internal storage)
MOD: Disable emulated storage (internal storage)

FOR ANDROID 6.0+: http://forum.xda-developers.com/show...&postcount=845

This mod works on almost roms. I tested it on CM11, CM12, Bliss pop v2.3, AICP, CM12.1 (beta 2 and 3), Flex OS and XenonHD
Update: Maybe not works on CM12.1 nightly

Unlike init.d method, this method is more stable. It will disable the emulated storage and change default storage to your real sdcard.

To use this mod, you must have:
- A computer running Windows
- Java Runtime (jre) installed (to use apktool)
- Your xperia M using NUI kernel
- You have to move ALL data from internal storage to sdcard before using this mod
- Download this file: http://www.mediafire.com/download/rj...20150917_2.zip

Update log:
9/17/2015: Update apktool to v2.0.1. Fix problem on some nightly builds. Add zip align tool.
6/27/2015: Use 7z instead of zip1.exe
7/29/2015: Fix for dual SIM
7/30/2015: Adapted to v4.5


Guide:
  • Extract files from disable_emulated_storage.zip
  • Run 1Pulling_Files.bat and follow the instructions
  • After running 2Patching.bat, 3 files named backup.zip, NUI_MOD.zip and NUI_MOD_1.zip are generated
  • Flash NUI_MOD.zip
  • If it doesn't work, flash NUI_MOD_1.zip
  • If both files don't work, flash backup.zip
Enjoy!

Notice:
  • If you want to remove your sdcard, turn off phone first.
  • Wiping dalvik cache is recommend

Pre-built file (just flash it and enjoy):


RazorRC-2.0 (Thanks to @Garv Maggu ):
http://forum.xda-developers.com/show...&postcount=757

Tipsy OS V2.0 (Thanks to @Garv Maggu ):
http://forum.xda-developers.com/show...&postcount=751

For CyanideL RC20.0 (thanks to @Garv Maggu)
http://forum.xda-developers.com/show...&postcount=739

For Archidroid_V3.1.3:


For xenonHD stable_2 06-06-2015:

For AOSP-20151807-DUALSIM:

Link: http://forum.xda-developers.com/show...&postcount=560
ROM info:
Quote:
Originally Posted by allrested

AOSP-20151807-DUALSIM
ROM OS Version: 5.1.1 Lollipop
Build Number: LVY48C
Build Date : 2015-07-18
Based On: AOSP
link : [ROM][5.1.1][DUALSIM] The Android Open Source Project by smartAgent47


Some Screenshot



Parallax OS 1.0 (thanks to @Garv Maggu )
Quote:
Originally Posted by Garv Maggu

XDA link to NUI_MOD.zip and backup.zip for Parallax OS 1.0 :- http://forum.xda-developers.com/show...&postcount=219




See screenshots below:
Attached Thumbnails
Click image for larger version

Name:	11272191_471484816343078_155185102_n.jpg
Views:	6432
Size:	53.7 KB
ID:	3348571   Click image for larger version

Name:	11324062_471481409676752_1943578508_n.jpg
Views:	6430
Size:	27.0 KB
ID:	3348572   Click image for larger version

Name:	Screenshot_2015-06-03-18-28-59.png
Views:	6394
Size:	54.3 KB
ID:	3348573  
The Following 22 Users Say Thank You to thichthat For This Useful Post: [ View ] Gift thichthat Ad-Free
30th March 2015, 09:49 PM |#4  
BlackArtsInc's Avatar
Senior Member
Flag Athens
Thanks Meter: 77
 
More
Thanks so much for this kernel!

What's the default voltage for any given CPU frequency and how much can we undervolt safely at 1.3Ghz for instance?



Not sent by me.
The Following 2 Users Say Thank You to BlackArtsInc For This Useful Post: [ View ] Gift BlackArtsInc Ad-Free
31st March 2015, 07:26 AM |#5  
OP Senior Member
Thanks Meter: 811
 
More
Quote:
Originally Posted by BlackArtsInc

Thanks so much for this kernel!

What's the default voltage for any given CPU frequency and how much can we undervolt safely at 1.3Ghz for instance?



Not sent by me.

You can reboot your phone to have the default voltage value
This is my UV settings. I suggest using Kernel Tuner
From 384MHz to 702MHz I reduce 200mV
From 702 to 1.6GHz I reduce 150mV (Don't reduce more. Otherwise, your phone will reboot immediately)

Code:
  384000:   750000
  432000:   775000
  486000:   775000
  540000:   800000
  594000:   800000
  648000:   825000
  702000:   825000
  756000:   875000
  810000:   875000
  864000:   900000
  918000:   900000
  972000:   925000
1026000:   925000
1080000:   975000
1134000:   975000
1188000:  1000000
1242000:  1000000
1296000:  1025000
1350000:  1025000
1404000:  1037500
1458000:  1037500
1512000:  1050000
1620000:  1100000
The Following 4 Users Say Thank You to thichthat For This Useful Post: [ View ] Gift thichthat Ad-Free
31st March 2015, 05:32 PM |#6  
BlackArtsInc's Avatar
Senior Member
Flag Athens
Thanks Meter: 77
 
More
Wiil try tonight and post the results.
My ROM at the moment is RR 537 CM12.
N.
31st March 2015, 07:49 PM |#7  
BlackArtsInc's Avatar
Senior Member
Flag Athens
Thanks Meter: 77
 
More
Well...as is the case with almost every OC kernel I've tried, the second core is stuck at maximum frequency. Kernel Tuner cannot make the settings stick. Any suggestions?

Not sent by me.
1st April 2015, 04:27 AM |#8  
OP Senior Member
Thanks Meter: 811
 
More
Quote:
Originally Posted by BlackArtsInc

Well...as is the case with almost every OC kernel I've tried, the second core is stuck at maximum frequency. Kernel Tuner cannot make the settings stick. Any suggestions?

Not sent by me.

That's because of the mpdecision included in almost qcom devices. You can try the newest Kernel Tuner 2015 (with green icon). Or you can use these command in terminal:
Code:
su
stop mpdecision
The Following 3 Users Say Thank You to thichthat For This Useful Post: [ View ] Gift thichthat Ad-Free
1st April 2015, 06:36 AM |#9  
BlackArtsInc's Avatar
Senior Member
Flag Athens
Thanks Meter: 77
 
More
So I can use Kernel Tuner 2014 and be OK even after a reboot? OK thanks!

Not sent by me.
1st April 2015, 07:45 AM |#10  
Senior Member
Thanks Meter: 148
 
More
Quote:
Originally Posted by thichthat

That's because of the mpdecision included in almost qcom devices. You can try the newest Kernel Tuner 2015 (with green icon). Or you can use these command in terminal:

Code:
su
stop mpdecision

Sir

Thanks for the awesome kernel , everything works fine

Few requests

Can you check out and add commits from this kernel http://forum.xda-developers.com/xper...ntrol-t2390831 if you have time
1st April 2015, 09:59 AM |#11  
OP Senior Member
Thanks Meter: 811
 
More
Quote:
Originally Posted by BlackArtsInc

So I can use Kernel Tuner 2014 and be OK even after a reboot? OK thanks!

Not sent by me.

Yes. I will include this feature in the 2.0 version. So you can use other apps to set CPU

Quote:
Originally Posted by dastan4eva

Sir

Thanks for the awesome kernel , everything works fine

Few requests

Can you check out and add commits from this kernel http://forum.xda-developers.com/xper...ntrol-t2390831 if you have time

Almost feature in that kernel was included in my kernel. Just enjoy the smoothness and longer battery life!
The Following User Says Thank You to thichthat For This Useful Post: [ View ] Gift thichthat Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes