Guest LSteam Posted January 10, 2011 Report Posted January 10, 2011 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 January 10, 2011 Report Posted January 10, 2011 (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 January 10, 2011 by Piter1225
Guest Dario93 Posted January 10, 2011 Report Posted January 10, 2011 Piter, you were faster than me to reply :P However, I'm very curious about this tool :D
Guest Piter1225 Posted January 10, 2011 Report Posted January 10, 2011 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
Guest LSteam Posted January 10, 2011 Report Posted January 10, 2011 (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 January 10, 2011 by LSteam
Guest studjuice Posted January 10, 2011 Report Posted January 10, 2011 you could patch the boot.img on any rom to run the scripts in init.d
Guest Harness Posted January 11, 2011 Report Posted January 11, 2011 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.
Guest LSteam Posted January 11, 2011 Report Posted January 11, 2011 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 January 12, 2011 Report Posted January 12, 2011 If you want to make it simple and use my code I'll send it to you. Harness.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now