Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP _alexndr

29th March 2014, 03:31 PM   |  #1  
_alexndr's Avatar
OP Senior Member
Thanks Meter: 1,736
 
427 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Firstly a big thanks to @Ryuinferno for this very interesting thread:

http://forum.xda-developers.com/show....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)
Last edited by _alexndr; 6th December 2014 at 11:16 PM.
The Following 26 Users Say Thank You to _alexndr For This Useful Post: [ View ]
29th March 2014, 07:40 PM   |  #2  
firasusman's Avatar
Senior Member
Flag Dubai
Thanks Meter: 11,146
 
2,100 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Thanks mate.
Done.


Sent from my SM-N9005 using Tapatalk
29th March 2014, 08:19 PM   |  #3  
HSD-Pilot's Avatar
Recognized Contributor
Flag NRW
Thanks Meter: 2,157
 
3,397 posts
Join Date:Joined: Jan 2012
More
Nice work, i was going crazy by trying all Scripts 4 init.d support, to get it going on Stock Kernel. Your idea is great and i'll try it next time, when i'm going back 2 Stock.

Gesendet von meinem hlte
29th April 2014, 04:07 PM   |  #4  
futchy4u's Avatar
Senior Member
Flag Egypt - Cairo
Thanks Meter: 73
 
512 posts
Join Date:Joined: Jun 2012
More
Looks interesting, can this be done to note 2 running 4.4.2 ?
29th April 2014, 04:48 PM   |  #5  
ANDROIDXFOREVER's Avatar
Senior Member
Thanks Meter: 23
 
148 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by _alexndr

Firstly a big thanks to @Ryuinferno for this very interesting thread:

http://forum.xda-developers.com/show....php?t=1933849

Unfortunately, above script does not work in case of Samsung Qualcomm (Snapdragon) devices running 4.4.2 KitKat 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
- 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 links:
add_qcom_initd.zip (MEGA)
add_qcom_initd.zip (Mirror cps)

Installation:
1. Custom recovery (KNOX 0x1) - open file using "Install Zip" option and confirm "Yes - install..."
2. Mobile Odin - 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)

great work Thanks mate
9th August 2014, 02:47 PM   |  #6  
Senior Member
Flag Bucharest greatest city ever
Thanks Meter: 532
 
1,395 posts
Join Date:Joined: Sep 2012
More
Another mirror pls. Second one is down, and mega is not working on so me Europeans countries.

Sent from my SM-N9005 using Tapatalk
10th August 2014, 03:36 PM   |  #7  
_alexndr's Avatar
OP Senior Member
Thanks Meter: 1,736
 
427 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by bogdan1980

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)
The Following User Says Thank You to _alexndr For This Useful Post: [ View ]
11th August 2014, 09:26 AM   |  #8  
Junior Member
Flag BellFlower, CA
Thanks Meter: 6
 
14 posts
Join Date:Joined: Jan 2011
Donate to Me
More
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
Last edited by Geofferey; 11th August 2014 at 08:51 PM.
The Following 2 Users Say Thank You to Geofferey For This Useful Post: [ View ]
26th November 2014, 08:12 PM   |  #9  
amk19's Avatar
Senior Member
Thanks Meter: 63
 
143 posts
Join Date:Joined: Jul 2014
More
Post Question
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.
27th November 2014, 07:21 PM   |  #10  
_alexndr's Avatar
OP Senior Member
Thanks Meter: 1,736
 
427 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by amk19

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)

The Following User Says Thank You to _alexndr For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
init.d, kernel, snapdragon, stock, support
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes