[kernel] Miui Speed Mod


Namaless

Members
Feb 6, 2012
57
18
Miui Speed MOD
Give a really Boost to your Miui

Xiaomi-2.jpg

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

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
3163q7q.png


Normal Version
24y1b34.jpg
 
Last edited:
It seems that build8 is pretty good, so far no problem. I will test it for a couple days on multi_hermes_V7.1.1.0 and I will try next build.
 
  • Like
Reactions: Namaless
Do you think we need to reflash again after update rom?

Thanks for sharing anyway! :)
 
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.
 
I installed build 14 and works it. 57425 point in antutu on redmi note 2 32GB(prime)
thanks for
Miui Slim V7.1.1.0
 

Attachments

  • Screenshot_2016-01-11-09-12-15_com.antutu.ABenchMark.png
    Screenshot_2016-01-11-09-12-15_com.antutu.ABenchMark.png
    108.6 KB · Views: 636
Last edited:
  • Like
Reactions: Namaless
I would hope at least some of the changes done by Namaless are integrated on future builds, once proven stable...
 
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♒♒
 
look good but I could not achieve even 50k score.
Switch to performance mode. I got 47k on balanced mode, and 57k on performance.
It's sucking my battery dry, though, even in balanced mode and kernel adiutor limiting CPU...
 
  • Like
Reactions: basf
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? :)
 
  • Like
Reactions: zildan and redmi77
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!
 
IMHO everything was perfect in build 14, not it's going bad, coz of much power consumption for such slight performance boost in both normal and performance modes.
 
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 :)
 
  • Like
Reactions: zildan and redmi77
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?
 
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