Enable init.d support on miuiandroid stock rom


xeGox

Members
Feb 26, 2013
401
58
62
#1
Hi guys....
Is there a way to enable init.d support?


Inviato dal mio Xiaomi Mi-5f (f sta per fun,non per fan)...con tapatalk 26°
 

deini

Members
May 11, 2013
281
104
65
#2
I think is a bit hard, usual ways doesn't work on m2s. We have the kernel by redmaner but it doesn't work on latest versions.
Also you can use WIUI, which has init.d support and other tweaks and features

Sent from my MI 2S using Tapatalk now Free
 

M1cha

Members
May 29, 2011
1,747
2,839
297
#4
I think is a bit hard, usual ways doesn't work on m2s. We have the kernel by redmaner but it doesn't work on latest versions.
Also you can use WIUI, which has init.d support and other tweaks and features
It's not hard. It's one of the easiest things to do. Just take a look at the init.rc file from Cyanogenmod and adapt it.

Can someone please explain to me what is it?
Thanks
It allows you to run scripts as root before actually booting android.
This way you can do many things like optimizing apps or loading kernel modules.
 
Likes: letsfifa

M1cha

Members
May 29, 2011
1,747
2,839
297
#7
Sry but I've never used such apps or script. I just wanted to say that it's not hard to add init.d support(for developers).
I think u guys should be fine with WIUI's init.d kernel.
 
Likes: xeGox

xeGox

Members
Feb 26, 2013
401
58
62
#8
Sry but I've never used such apps or script. I just wanted to say that it's not hard to add init.d support(for developers).
I think u guys should be fine with WIUI's init.d kernel.
I would try only init.d support on stock miuiandroid...
But is it's a "developer thing" for me is impossible...

Inviato dal mio Xiaomi Mi-5f (f sta per fun,non per fan)...con tapatalk 26°
 

redmaner

translators.xiaomi.eu maintainer
Staff member
Jan 12, 2013
534
546
182
#9
It's simple
Just add this line at the end of /system/etc/init.qcom.post_boot.sh
Code:
/system/xbin/busybox run-parts /system/etc/init.d
Haven't tested it myself, but it should work.
This way you don't have to mess with kernel to get it working.
 
Last edited: