FORUMS
Remove All Ads from XDA

[DEV][TEMPLATE] AnyKernel3 - Easily Mod ROM Ramdisk + Pack Image.gz [Flashable Zip]

13,802 posts
Thanks Meter: 30,583
 
By osm0sis, Recognized Developer / Recognized Contributor on 5th March 2014, 03:32 AM
Post Reply Email Thread
30th October 2019, 08:10 AM |#871  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,583
 
Donate to Me
More
Quote:
Originally Posted by jprimero15

After testing this.. It works but it doesn't execute very last even tho its on property:sys.boot_completed=1 .. Now i want my script on .rc to run when all .rc scripts on root is executed... How can i do that?

It probably does run, just perhaps whatever changes you're making might still be getting overwritten by something later.

I have no idea what your question means, so I can't help you there.
30th October 2019, 09:24 AM |#872  
jprimero15's Avatar
Recognized Developer
Flag Oof
Thanks Meter: 3,574
 
Donate to Me
More
Quote:
Originally Posted by osm0sis

It probably does run, just perhaps whatever changes you're making might still be getting overwritten by something later.

I have no idea what your question means, so I can't help you there.

Yup it does execute but What i want is make my script on .rc run when all default .rc is done executing scripts.. My script should be the last to execute. Sorry im not that good in english.
30th October 2019, 09:34 AM |#873  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,583
 
Donate to Me
More
Quote:
Originally Posted by jprimero15

Yup it does execute but What i want is make my script on .rc run when all default .rc is done executing scripts.. My script should be the last to execute. Sorry im not that good in english.

overlay.d does add all .rc files to init.rc so they run all at the same time, as always. Within that you can do whatever you want, and it has nothing to do with AK3, it's just a matter of you figuring out .rc stuff.

I'd recommend you take another look at the Franco Kernel SAR Magisk example zip I linked. I am using it currently on my OP6T and I have had absolutely zero issues with the .rc files.

I don't think I can help you any further.
The Following User Says Thank You to osm0sis For This Useful Post: [ View ]
30th October 2019, 04:03 PM |#874  
jprimero15's Avatar
Recognized Developer
Flag Oof
Thanks Meter: 3,574
 
Donate to Me
More
Quote:
Originally Posted by osm0sis

overlay.d does add all .rc files to init.rc so they run all at the same time, as always. Within that you can do whatever you want, and it has nothing to do with AK3, it's just a matter of you figuring out .rc stuff.

I'd recommend you take another look at the Franco Kernel SAR Magisk example zip I linked. I am using it currently on my OP6T and I have had absolutely zero issues with the .rc files.

I don't think I can help you any further.

My scripts does run.. But still it got overwritten by init.qcom.rc and other default .rc.. So my only way for now is.. To replace init.qcom.rc with the modified one.. Is there any possibility to do that on SAR 2SI?
30th October 2019, 08:56 PM |#875  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,583
 
Donate to Me
More
Quote:
Originally Posted by jprimero15

My scripts does run.. But still it got overwritten by init.qcom.rc and other default .rc.. So my only way for now is.. To replace init.qcom.rc with the modified one.. Is there any possibility to do that on SAR 2SI?

Okay, now I think I follow. You could just execute a .sh that waits longer. Again, look at my example zip.
3rd November 2019, 08:46 PM |#876  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,583
 
Donate to Me
More
Fixes to the new mount setup, getprops and GSI support, thanks to @LazerL0rd and @eng.stk for the heads up and testing.

Backend: add /dev/random workaround for recovery:
https://github.com/osm0sis/AnyKernel...5cfe32632598c3

Backend: fix restore_env $bb commands:
https://github.com/osm0sis/AnyKernel...c00231dd714855

Backend: fix getprop and devicecheck for GSIs:
https://github.com/osm0sis/AnyKernel...d5e728614fe124

Backend: break early on getprop failure fallback when value found:
https://github.com/osm0sis/AnyKernel...369f5f685cda36

Backend: further fixes for GSIs:
https://github.com/osm0sis/AnyKernel...7071ceac25f3d1

tools: update to latest busybox (1.31.1):
https://github.com/osm0sis/AnyKernel...9e29aaf41ea5ca

tools: update magisk utils to v20.1(20100) stable:
https://github.com/osm0sis/AnyKernel...ebb2149df9fdb9

Happy hacking!
The Following 4 Users Say Thank You to osm0sis For This Useful Post: [ View ]
4th November 2019, 03:26 AM |#877  
gwgantengloh's Avatar
Junior Member
In this lovely earth :)
Thanks Meter: 2
 
More
Great, ill bookmark this thread... thanks dev...
7th November 2019, 07:57 PM |#878  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,583
 
Donate to Me
More
A PSA for any kernel developers following here, (and for any users following to be aware you might need to nudge your developers if they don't follow ):

SAR Magisk going stable means it's time for overlay.d on Pie devices.

Example zip to transition from overlay to overlay.d attached here for reference: https://forum.xda-developers.com/sho...&postcount=292

overlay.d is also the only way to do things for Android 10, so please note the differences from the old overlay feature.
The Following 6 Users Say Thank You to osm0sis For This Useful Post: [ View ]
13th November 2019, 04:24 AM |#879  
osm0sis's Avatar
OP Recognized Developer / Recognized Contributor
Flag Halifax
Thanks Meter: 30,583
 
Donate to Me
More
My GitHub Sponsors profile just went live, so please do take a look at the link below - they're even matching the first year of funding for everyone!

As you might know, I work on these projects in my limited time off, so if you like the progress I'm making, or enjoy anything else I've done on xda, please consider sponsoring my ongoing work using my GitHub Sponsors profile. For a one-time donation you can hit the donate link from my profile. Thanks for your support!
The Following 4 Users Say Thank You to osm0sis For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
anykernel, flashable zip, kernel, scripting, template

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes