Enable init.d support on miuiandroid stock rom


xeGox

Members
Feb 26, 2013
504
77
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°
 
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
 
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.
 
  • Like
Reactions: letsfifa
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.
 
  • Like
Reactions: xeGox
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°
 
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: