[SCRIPT/ZIP][N9005][4.4.2/5.0] Init.d Support without need of use Custom Kernel

Search This thread

RyTekk

Senior Member
Aug 17, 2012
1,144
573
Nha Trang
Will it work on another device's firmware?

EDIT: Tested it myself, works on nAOSP 5.1 for Xperia S. Thanks for your mod.
 
Last edited:
  • Like
Reactions: man maniac

idoit

Senior Member
Jan 5, 2012
347
45
Canada <3 Iran
I don't have custom recovery and Mobile ODIN is not supported for my phone.
What if I simply run the script (add_initd.sh) without flashing it in Mobile ODIN? dangerous?

EDIT: I am rooted but not with SuperSU, so I guess that's why Mobile ODIN doesn't work for me.
 

_alexndr

Senior Member
Mar 1, 2013
2,850
17,956
Samsung Galaxy S23 Ultra
I don't have custom recovery and Mobile ODIN is not supported for my phone.
What if I simply run the script (add_initd.sh) without flashing it in Mobile ODIN? dangerous?

EDIT: I am rooted but not with SuperSU, so I guess that's why Mobile ODIN doesn't work for me.

There are 2 ways:

1. Just use FlashFire instead of Mobile Odin to flash add_qcom_initd.zip file

2. Edit manually /system/etc/init.qcom.post_boot.sh file and add following lines at the end of the file:

Code:
# Init.d support"
run-parts /system/etc/init.d

then create manually /system/etc/init.d folder (rwxrwxrwx permissions)
and then put your scripts into it

thats all :)
 
  • Like
Reactions: Crash

idoit

Senior Member
Jan 5, 2012
347
45
Canada <3 Iran
UPDATE: Perfect. Now I have init.d support on my phone as well. Thanks! :)

@_alexndr: Even Flashfire doesn't work because I don't have SuperSU (I rooted with KingRoot).
So I will follow the 2nd way above, but before doing so, I don't think, there's a chance of borking my phone, right?

@Geofferey: Your script is way longer than Alex's! What's the difference and advantage?
Oh I see, it's very polished and well documented.
 
Last edited:
  • Like
Reactions: _alexndr

dkonect

Senior Member
Dec 2, 2014
2,177
1,156
Paris
Alexndr is really a good worker, I use his rom 's, script, his uploaded files on his androidfilehost's for my s3, N3, his works on the permissions is amazing and all is always really perfect.
Really a serious DEVELLOPER'S
 
  • Like
Reactions: _alexndr and vhce

Top Liked Posts

  • There are no posts matching your filters.
  • 47
    Firstly a big thanks to @Ryuinferno for this very interesting thread:

    http://xdaforums.com/showthread.php?t=1933849

    Unfortunately, above script does not work in case of Samsung Qualcomm (Snapdragon) devices running 4.4.2/5.0 KitKat/Lollipop stock kernel.

    Fortunately @shazzl in post #438 suggested a very interesting idea to start run-parts using /system/etc/init.qcom.post_boot.sh

    I tuned, nuanced and implemented this idea in real life by creating my add_initd.sh script. I have created also a CWM/MOP flashable file to apply this modification as simple as possible :)

    Requirements:
    - a rooted Samsung Qualcomm (Snapdragon) device
    - custom recovery (CWM/TWRP) or Mobile Odin PRO
    - Busybox installed (every custom ROM should contains it, in case of (CF-Auto-)rooted pure stock - just install it using THIS APP from Play Store)

    Download link:
    add_qcom_initd.zip

    Installation:
    1. Custom recovery (KNOX 0x1) - open file using "Install Zip" option and confirm "Yes - install..."
    2. Mobile Odin PRO - open file using "OTA/Update ZIP" option. UNTICK Everroot! This type of installation let you keep KNOX 0x0 if you still kept this flag (thanks to udating every ROM by Mobile Odin PRO only)
    2
    Thanks

    Hey Alex, thanks for creating this init.d enabler :) I was trying to enable init.d on my stock Galaxy Tab 3 running KitKat with KNOX & nothing was working. I even tried adding support to kernels init.rc with no success. Not only that it taught me more about enabling init.d support & inspired me to write a script that utilizes your method, Ryuinferno's and one I came up with on my own combined with Ryuinferno's. It will also add a 2nd-init.d for ROMs with kernels that execute scripts too early and hang the system (I had one that did this). So you can have two init.ds one that came with ROM and another. If you could check it out, I'd really appreciate your input. It's still a WIP & definitely needs improvement.

    Uni-init.d.sh
    2
    Alexndr is really a good worker, I use his rom 's, script, his uploaded files on his androidfilehost's for my s3, N3, his works on the permissions is amazing and all is always really perfect.
    Really a serious DEVELLOPER'S
    1
    Another mirror pls. Second one is down, and mega is not working on so me Europeans countries.

    Sent from my SM-N9005 using Tapatalk

    add_qcom_initd.zip (Dropbox)
    1
    Hi @_alexndr
    I am using Galaxy Note 3 N9005XXUGNG1.
    Rooted Stock ROM with Stock Recovery and Knox 0x0.
    Can you tell me how can I enable init.d feature for the Stock Kernel with tripping Knox.
    Thanks.

    I hope that you meant "without tripping Knox" ;)

    Everything is well explained in post #1. Just use Mobile Odin PRO and follow according to point 2 (Installation)