[kernel] Miui Speed Mod


Feb 6, 2012
57
16
18
#1
Miui Speed MOD
Give a really Boost to your Miui


-----------------------------------------------------------------------------------------------------------------

Code:
#include
/*
* Your warranty is now void.
*
* 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 ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
License
Code:
# Copyright 2016 - Pereira Ricardo <hello@nunopress.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Introduction
MIUI (which stands for Mi User Interface and pronounced "Me You I", a play on the common abbreviation of the words user interface as UI), developed by Xiaomi Tech, is a stock and aftermarket firmware for smartphones and tablet computers based on the free software Android operating system. MIUI includes various features such as theming support.

NOTE: This is a cooked KERNEL.
Issues?
Experience issues? Please provide the following info:
  • If the device was hard reboot, please provide the file "/proc/last_kmsg".
  • If the device was soft reboot or is "bootlooping", please run a logcat and provide the full output.
  • Please use Pastebin when possible.
Features
It's a standard Miui developer kernel plus this:
  • Working in every Miui Rom's.
  • Init.d support.
  • Adb available from the boot.
  • Memory management much better.
  • Cache management much better.
  • More free ram for multitasking.
  • Improve Filesystem performance.
  • Disabled debugging (only in the stable release).
  • Improve interface performance.
  • Improve network performance.
  • Improve ril performance.
  • Improve kernel performance.
  • Improve SD cards performance.
  • Optimized the cpu frequency and governors based on power profile.
  • Get the current max and min cpu frequency and set it (fixed for the Prime version).
  • SeLinux set to Permissive (before run the init.d scripts).
.
Installation and Update instructions
  • Download the package into internal/external SD.
  • Download the SuperSU package if you don't have already installed.
  • Flash all packages via TWRP.
  • Clear cache and dalvik-cache.
  • Reboot.
Know bugs
  • Nothing for a moment.
Thanks to
  • XDA Community.
  • ChainFire.
  • LSpeed MOD.
  • Xiaomi Redmi Note 2 Italia.
Change log
Code:
v1.19 - 2016/01/18
[changed] Remove some tweaks from the normal mode for give more battery save.
[changed] Update kernel with dev v6.1.14.
Code:
v1.18 - 2016/01/16
[changed] Change log location, now into "/miui_speed_mod/{logname}.log".
[fixed] Fixed issue with change connection type (3G to LTE).
[changed] Improve touchscreen performance with high scrolling.
[fixed] /system not remounted into read-only.
Code:
v1.17-dev - 2016/01/14
[new] Change the method for improve the performance. Now the most important improvements come with performance mode and not into the balanced mode.
Code:
v1.16 - 2016/01/12
[new] Refactoring the project.
[new] Fix problem with init.d not executed.
[changes] Project name change from Miui Slim to Miui Speed MOD.
[changes] Change versioning from v{kernel version} Build {build version} to v1.{build version}.
[new] Changed SeLinux from Enforcing to Permissive.
[fixed] Fixed the issue with the Miui Root, now working after the flash but the MOD not working without SuperSU package.
[new] Added SuperSU package [B]REQUIRED[/B] for full working of the Kernel.
Code:
Build 15 - 2016/01/10
[changed] Changed the kernel base and the ramdisk from stable to developer (v6.7.1) for fix the issue with root feature into the developer version.
Code:
Build 14 - 2016/01/10
[new] Added light SD I/O improvement.
[changes] Reorder all modifications inside one directory for fast update with new kernel/ramdisk by Xiaomi.
Code:
Build 13 - 2016/01/10
[changed] Performance mode use full cpu power min and max.
[new] Thermal configuations moved inside the ramdisk.
[fixed] Change order for loading init.d support, now the init.d scripts can loading property same as on cyanogenmod.
[new] Change the max free memory for performance.
Code:
Build 12 - 2016/01/10
[new] Switch to performance mode during the boot.
[new] Come back to balanced after the boot.
[new] In performance mode now the all cpu stay to the max frequency with governor performance.
[new] The balanced mode use less frequency 1625 instead 1950 for battery life. The min stay default to 403.
[new] Powersave mode now use a governor powersave and the frequency locked to 806 max, 403 min. (need testing because in this moment I have battery full).
Code:
Build 11 - 2016/01/07
[changed] Removed Google DNS because some people can't use the network because the internet provider block it.
Code:
Build 10 - 2016/01/07
[new] Network performance.
[new] Ril performance.
[new] IO performance.
[new] Google DNS.
[new] Much better memory management.
[new] Kernel tweaks.
Code:
Build 9 - 2016/01/06
[changed] Restore ASRL for security ([I]thanks to @verbage for suggestion[/I]).
Code:
Build 8 - 2016/01/05
[new] Reduced network latency.
[new] Reduced filesystem latency.
Code:
Build 7 - 2016/01/05
[new] Memory management much better.
[new] Improve vm machine cache.
[new] Improve out of memory for our device.
Code:
Build 6 - 2016/01/05
[new] Added adb available on the boot.
Code:
Build 1 - 2016/01/04:
[new] Init.d support.
Downloads
SuperSU package: v2.46
Latest package: v1.19


Old Downloads
Folder History

Screenshots Benchmark
Prime Version


Normal Version
 
Last edited:
Feb 6, 2012
57
16
18
#5
Do you think we need to reflash again after update rom?

Thanks for sharing anyway! :)
Yes because with every rom's the kernel is installed in the same time. If anyone install the developer version, please write here the kernel version, i don't want download all week's one rom, sometimes the kernel is the same so don't need any modifications :)

Thanks.
 
Jan 10, 2016
20
2
13
#13
I believe i can install this kernel,as i read in all miui,on mi4c dev!after that there is an app that we use to manage kernel feautures?thanks!

♒♒Mi4c♒♒
 
Feb 6, 2012
57
16
18
#17
Yes I have already writed, the power mode now consume much battery but go really faster :D

In the next week I working for save battery on normal mode, and use some tweaks on performance mode (is much better way), some ppl write here and in other places that with the stock kernel get 4/5 hours screen mode on, so I wanna leave this with less modifications, and implements all into performance mode.

Any feedback related to my idea? :)
 
Jan 8, 2016
39
13
20
#18
Yes I have already writed, the power mode now consume much battery but go really faster :D

In the next week I working for save battery on normal mode, and use some tweaks on performance mode (is much better way), some ppl write here and in other places that with the stock kernel get 4/5 hours screen mode on, so I wanna leave this with less modifications, and implements all into performance mode.

Any feedback related to my idea? :)
Sounds like the right thing to do. People that really want performance and speed don't care about battery usage, while people wanting more battery life are left with only a "normal" mode, and usually go for other means to save battery. Go for it!
And thanks for all your work and effort, by the way!
 
Feb 6, 2012
57
16
18
#20
Great news today :p

I found a small freetime so I working on my project today :D

Update the OP, now the most important features for improve performance come ONLY in performance mode.

Please send feedback related to battery drain in balanced mode (without performance mode on), i used only few improvements in normal mode, the most are stock values.

Few seconds for update the OP :)
 
Jan 8, 2016
39
13
20
#21
Great news today :p

I found a small freetime so I working on my project today :D

Update the OP, now the most important features for improve performance come ONLY in performance mode.

Please send feedback related to battery drain in balanced mode (without performance mode on), i used only few improvements in normal mode, the most are stock values.

Few seconds for update the OP :)
Just flashed it, will test it through tomorrow and let you know here.
By the way, just to clarify: whenever a new update is installed, your kernel must be flashed again, right?
 
Jan 9, 2016
37
9
20
#25
Battery drain is too high because you're using the BIG part of the CPU as default as opposed to default kernel which uses LITTLE. I don't think that's a good idea because you don't need that much performance for the UI. Smoothness depends on other factors like caching, i. e memory management.
Agree with you, discharge about 60% on just ~4 hours, so different with stock 7.0.12 kernel.

Which build has better battery life?

Sent from my Redmi Note 2 using Tapatalk