Jump to content

Update-script


Recommended Posts

Guest Harness
Posted (edited)

Last question I have to ask. I completely bullshitted this update script hoping it just might work. How bad is it, how do I make it work?

It's the last thing stopping me from releasing the new boot.img required for malez to work on the rogers/fido ROMs.

#show_progress(1.000000, 0);

assert(package_extract_file("boot.img", "/tmp/boot.img"),

write_raw_image("/tmp/boot.img", "boot"),

delete("/tmp/boot.img"));

set_progress(0.250000)

delete("/system/recovery_from_boot.p"));

set_progress(0.500000);

delete("/system/etc/install-recovery.sh"));

ui_print(" Complete");

set_progress(1.000000);#

Basically, I want to flash the new boot.img (that I took from the froyo boot install), then with the boot unlocked delete those files, but I don't think it'd work that way, now that I'm saying it. I'd have to have people flash the new boot.img and delete using adb shell or probably even Astro/Estrongs/etc.

If for some reason I don't get help by the time I get on and whatnot tomorrow, I'll just upload the img with instructions, but it'd be nice to see how a script of some sort would look, just so I have an idea of what to do next time.

Harness.

Edit: I just tried Astro, so that doesn't work. Gonna delete mine personally through adb shell. Maybe I could make a gscript script instead, would that work better?

Edit2: I just removed it and reinstalled recovery - I had to run remount in shell to get it rw, and I'd have no idea how to implement into this. Vache/phh/Malez/any other dev, if you can help me with this I'd love you forever.

Edited by Harness
Guest Borkata
Posted

# feedback to user during update

ui_print("Updating boot.img");


show_progress(0.200000, 0);

# update boot.img kernel 

assert(package_extract_file("boot.img", "/tmp/boot.img"),

	   write_raw_image("/tmp/boot.img", "boot"),

	   delete("/tmp/boot.img"));


show_progress(0.200000, 10);


ui_print("Deleting recovery backup...");

#mounting system

mount("MTD", "system", "/system");

delete("/system/recovery_from_boot.p"));

delete("/system/etc/install-recovery.sh"));


show_progress(0.100000, 0);

unmount("/system");

ui_print(" Complete");

I think this is what you need.

Guest Harness
Posted (edited)
# feedback to user during update

ui_print("Updating boot.img");


show_progress(0.200000, 0);

# update boot.img kernel 

assert(package_extract_file("boot.img", "/tmp/boot.img"),

	   write_raw_image("/tmp/boot.img", "boot"),

	   delete("/tmp/boot.img"));


show_progress(0.200000, 10);


ui_print("Deleting recovery backup...");

#mounting system

mount("MTD", "system", "/system");

delete("/system/recovery_from_boot.p"));

delete("/system/etc/install-recovery.sh"));


show_progress(0.100000, 0);

unmount("/system");

ui_print(" Complete");

I think this is what you need.

Thanks a lot. I understand that too, which is the amazing part.

Thanks Borkata!

Harness.

Edited by 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.