Jump to content

universal folder for boot scripts?


Recommended Posts

Posted

hi all devs!

i'm working on a universal tool for our liquid....

universal means that it works on ALL ROM, stock + custom (metalfroyo, cyano, miui, AOSP, all!), without any change to the rom

i need to start some boot script (.sh).

do you know some "magic folder" to put the script into and get it running at boot?

any ideas? thanks to everyone!

Guest Piter1225
Posted (edited)
hi all devs!

i'm working on a universal tool for our liquid....

universal means that it works on ALL ROM, stock + custom (metalfroyo, cyano, miui, AOSP, all!), without any change to the rom

i need to start some boot script (.sh).

do you know some "magic folder" to put the script into and get it running at boot?

any ideas? thanks to everyone!

you can modify the init scripts inside of boot.img ramdisk, so you can run specific script at boot.

*hint*

unpack LCR boot.img and look for lines executing autostart script

Edited by Piter1225
Guest Dario93
Posted

Piter, you were faster than me to reply :P However, I'm very curious about this tool :D

Guest Piter1225
Posted
Piter, you were faster than me to reply :P However, I'm very curious about this tool :D

Sorry, my bad B)

BTW I'm also interested what LSteam wants to develop

Posted (edited)

lol i know i can edit boot.img =)

i need something that don't affect in any way the rom ^^

i'm talking about an app that can be installed by ALL liquid users and interact with the system without chaning the rom =)

i can make a service inside the app, but something builtin in android would be better...

example: folder /system/etc/init.d : in some roms the files putted into this folder are started on boot... but the stock and other roms just don't start the scripts in this folder...

sorry for my bad english =) really :D

edit: ops, many thanks for the interest :P

Edited by LSteam
Guest studjuice
Posted

you could patch the boot.img on any rom to run the scripts in init.d

Guest Harness
Posted

I don't know if it'd be possible, because it'd have to be executed from boot.img and that does change from rom to rom. Your best bet would almost be an app if you weren't editing boot.img. You can't exactly edit any system files for it to work on any rom either, so it's almost impossible. My solution in MetalFroyo is easy to implement in any rom, and I'd be more than willing to distribute the source fi people wanted it without having to peel my boot.img apart, but it's nothing special..

Harness.

Posted
I don't know if it'd be possible, because it'd have to be executed from boot.img and that does change from rom to rom. Your best bet would almost be an app if you weren't editing boot.img. You can't exactly edit any system files for it to work on any rom either, so it's almost impossible. My solution in MetalFroyo is easy to implement in any rom, and I'd be more than willing to distribute the source fi people wanted it without having to peel my boot.img apart, but it's nothing special..

Harness.

I wish there was a solution...

howevare...i will write a service... thank you anyway :D

Guest Harness
Posted

If you want to make it simple and use my code I'll send it to you.

Harness.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.