- Jan 12, 2013
- 537
- 182
Post #1: Introduction, features, installation, downloads, FAQ and special thanks
Post #2: Features explained (kernel.conf and sysct.conf)
Introduction
I've been searching for a way to get init.d working on the Xiaomi Mi2 (stock MIUI).
So I updated the boot.img (kernel) with a modified ramdisk (initramfs) to add support for init.d and some other features.
Disclaimer
* I'm not a kernel developer this is a very simple mod which everyone could accomplish.
* This kernel is tested but that's not a 100% guarantee that it's safe.
* Flashing knowledge is required to keep yourself out of trouble.
* I am not responsible for your bricked or not working devices.
* If you have any concerns or don't know what this all means do some research.
Features
- Latest stock kernel (MIUI or AOSP)
- init.d support
- Support for sysctl.conf (see post #2)
- busybox with symlinked applets
- TRIM for /data, /cache and /system
Installation
Make a nandroid backup just in case something goes wrong (Link
1. Put universal zip on your sdcard (for MIUI and QDTXX)
2. Boot in ClockWorkMod recovery.
3. Flash kernel to system1 or system2 (depends where the ROM is installed).
4. Reboot.
Universal downloads
This will add the custom ramdisk to your kernel. This means it will work on all kernels (also for upcoming releases).
If something will change in the ramdisk I will update this ofcourse.
Compatible with:
- MIUI V5 weekly builds
- MIUI V5 stable builds (JLB) (in theory - not tested)
- MIUI V4 downgraded --> Follow this link
- Xiaomi AOSP (QDTXX)
- Custom roms based on the above
20130923 | Download for android 4.1.1 only!! MIUI 3.11.1 and Lower only!!
20130728 | Download for android 4.1.1 only!!
Old Downloads
3.6.28 Custom | Stock
3.6.21 Custom | Stock
3.6.14 Custom | Stock
3.6.7 Custom | Stock
3.5.31 Custom | Stock
3.5.24 Custom | Stock
3.5.17 Custom | Stock
3.5.10 Custom | Stock
3.5.3 Custom | Stock
3.4.28 Custom | Stock
QDT14 Custom | Stock
FAQ
What is init.d?
Init.d plays an important role in the world of Android development and customization.
It allows users to install scripts and mods to be run at boot. Everything from battery tweaks to performance tweaks.
It essentially opens the door to a world of mods only possible through the Init.d process, which in turn is usually only available on custom kernels.
How do I know if init.d works?
There is a test script after installation.
If you have "initd.log" in you data partition (/data/initd.log) then init.d works.
Test it with terminal emulator or adb
Help my phone is not booting!
Flash back stock kernel if available (for old downloads)
Else Switch system, reflash the ROM, restore a nandroid backup, flash with miflash or flash kernel with fastboot
What is xxxx governor or xxxxx scheduler
Follow this link
What is read_ahead_kb?
Follow this link
Does this work on Xiaomi Mi2A?
NO, hardware/rom/kernel is diffrent, don't try it.
Does this work on Xiaomi Mi2S?
Yes, it will
Does this work on WIUI?
WIUI already has init.d and sysctl support, besides that Wajk integrated some other tweaks too so kernel.conf isn't required. But in theory it should work.
Is this the start for other ROMS, like not MIUI?
No, this is a kernel modification without sources. Kernel sources are required to port other ROMS like CyanogenMod, Paranoidandroid ect.
Can you integrate more features in this kernel (e.g. screen colors, sound ect.)?
No, kernel sources are required for that. I am restricted to the ramdisk (initramfs).
Special thanks
- The CyanogenMod team / used their source to compile mkbootfs and used their init.d method.
- Gilles Grandou / for abootimg.
- M1cha / for ClockWorkMod recovery / kernelreplacer
Post #2: Features explained (kernel.conf and sysct.conf)
Introduction
I've been searching for a way to get init.d working on the Xiaomi Mi2 (stock MIUI).
So I updated the boot.img (kernel) with a modified ramdisk (initramfs) to add support for init.d and some other features.
Disclaimer
* I'm not a kernel developer this is a very simple mod which everyone could accomplish.
* This kernel is tested but that's not a 100% guarantee that it's safe.
* Flashing knowledge is required to keep yourself out of trouble.
* I am not responsible for your bricked or not working devices.
* If you have any concerns or don't know what this all means do some research.
Features
- Latest stock kernel (MIUI or AOSP)
- init.d support
- Support for sysctl.conf (see post #2)
- busybox with symlinked applets
- TRIM for /data, /cache and /system
Installation
Make a nandroid backup just in case something goes wrong (Link
1. Put universal zip on your sdcard (for MIUI and QDTXX)
2. Boot in ClockWorkMod recovery.
3. Flash kernel to system1 or system2 (depends where the ROM is installed).
4. Reboot.
Universal downloads
This will add the custom ramdisk to your kernel. This means it will work on all kernels (also for upcoming releases).
If something will change in the ramdisk I will update this ofcourse.
Compatible with:
- MIUI V5 weekly builds
- MIUI V5 stable builds (JLB) (in theory - not tested)
- MIUI V4 downgraded --> Follow this link
- Xiaomi AOSP (QDTXX)
- Custom roms based on the above
20130923 | Download for android 4.1.1 only!! MIUI 3.11.1 and Lower only!!
20130728 | Download for android 4.1.1 only!!
Old Downloads
3.6.28 Custom | Stock
3.6.21 Custom | Stock
3.6.14 Custom | Stock
3.6.7 Custom | Stock
3.5.31 Custom | Stock
3.5.24 Custom | Stock
3.5.17 Custom | Stock
3.5.10 Custom | Stock
3.5.3 Custom | Stock
3.4.28 Custom | Stock
QDT14 Custom | Stock
FAQ
What is init.d?
Init.d plays an important role in the world of Android development and customization.
It allows users to install scripts and mods to be run at boot. Everything from battery tweaks to performance tweaks.
It essentially opens the door to a world of mods only possible through the Init.d process, which in turn is usually only available on custom kernels.
How do I know if init.d works?
There is a test script after installation.
If you have "initd.log" in you data partition (/data/initd.log) then init.d works.
Test it with terminal emulator or adb
Code:
su
cat /data/initd.log
Help my phone is not booting!
Flash back stock kernel if available (for old downloads)
Else Switch system, reflash the ROM, restore a nandroid backup, flash with miflash or flash kernel with fastboot
What is xxxx governor or xxxxx scheduler
Follow this link
What is read_ahead_kb?
Follow this link
Does this work on Xiaomi Mi2A?
NO, hardware/rom/kernel is diffrent, don't try it.
Does this work on Xiaomi Mi2S?
Yes, it will
Does this work on WIUI?
WIUI already has init.d and sysctl support, besides that Wajk integrated some other tweaks too so kernel.conf isn't required. But in theory it should work.
Is this the start for other ROMS, like not MIUI?
No, this is a kernel modification without sources. Kernel sources are required to port other ROMS like CyanogenMod, Paranoidandroid ect.
Can you integrate more features in this kernel (e.g. screen colors, sound ect.)?
No, kernel sources are required for that. I am restricted to the ramdisk (initramfs).
Special thanks
- The CyanogenMod team / used their source to compile mkbootfs and used their init.d method.
- Gilles Grandou / for abootimg.
- M1cha / for ClockWorkMod recovery / kernelreplacer
Last edited: