Enable init.d support on miuiandroid stock rom

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by xeGox, Dec 4, 2013.

  1. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    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°
     
  2. deini

    deiniMembers

    May 11, 2013
    281
    104
    65
    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
     
  3. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    Can someone please explain to me what is it?
    Thanks
     
  4. 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.

    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.
     
    letsfifa likes this.
  5. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
  6. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    Does pimp my ROM work?
    @M1cha ....could you explain?

    Inviato dal mio Xiaomi Mi-5f (f sta per fun,non per fan)...con tapatalk 26°
     
  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.
     
    xeGox likes this.
  8. xeGox

    xeGoxMembers

    Feb 26, 2013
    394
    57
    60
    Male
    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°
     
  9. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    534
    548
    180
    Male
    The Netherlands
    #9redmaner,Dec 6, 2013
    Last edited: Dec 6, 2013
    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.
     
    deini, xeGox and type-R like this.

Share Our Site