Announcement

Collapse
No announcement yet.

[Sloppy Tutorial] Init.d Support into Your Roms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Sloppy Tutorial] Init.d Support into Your Roms

    I Provided this to Videostrong in an email Recently And I hope this can work for others


    Based on this original thread [URL]https://forum.xda-developers.com/sho....php?t=2287540[/URL]


    2a. Create the file /system/bin/sysinit and fill with this script
    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"80","width":"359","src":"https:\/\/i.imgur.com\/rTljEMC.png"}[/IMG2]

    Script ---->>> [URL]https://ghostbin.com/paste/hm4ga[/URL]
    Set permissions of sysinit to 777 or 755 ( rwxrwxr-x | rwxrwxrwx )

    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"902","width":"641","src":"https:\/\/i.imgur.com\/I9TsSxA.png"}[/IMG2]
    ----------------------------------------------------------------------------------------------------------------

    2b. Modify Kernel for sysinit service

    Requirements


    1- Ability to unpack boot.img & ramdisk

    2- Some basiclinuxshell knowloedge

    3- Having Busybox located in /system/bin/busybox at yourrom


    Step 1: Making kernel ready


    1- Unpack kernel then ramdisk

    2- Open Init.rc with a text editor

    3- Add this codes at the end , before the paragraph which there is "stop bootanim" command in it :

    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"610","width":"805","src":"https:\/\/i.imgur.com\/rWgIv53.png"}[/IMG2]


    [CODE]
    service sysinit /system/bin/sysinit oneshot [/CODE]
    4- Save , Exit and repack ramdisk and boot.img
    ------------------------------------------------------------------------------------------------------------------------



    2c. Create Folders and insert scripts



    Create directory called init.d in /system/etc/

    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"890","width":"718","src":"https:\/\/i.imgur.com\/SJRpmnk.png"}[/IMG2]


    Inside of init.d Place 2 Scripts (ripped out of a firmware abdul_pt Created for me a long time ago)

    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"298","width":"770","src":"https:\/\/i.imgur.com\/Ifo8qUl.png"}[/IMG2]


    1. 89insmod ---- [URL]https://ghostbin.com/paste/n85ug[/URL]

    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"208","width":"799","src":"https:\/\/i.imgur.com\/l5I33Bj.png"}[/IMG2]

    2. 90userinit ------ [URL]https://ghostbin.com/paste/urovg[/URL]
    [IMG2=JSON]{"data-align":"none","data-size":"full","height":"379","width":"945","src":"https:\/\/i.imgur.com\/tpejjGi.png"}[/IMG2]

    there you have it.

    I told you guys its sloppy.
    Attached Files
    Last edited by Based_Skid; 09-03-2017, 13:17.

    #2
    Lol

    Sloppy maybe but useful none the less :D
    R-TV BOX S10, Beebox N3150, Chuwi Hibox, Nvidia Shield, A95X Max

    Comment

    Working...
    X