Recovery img flashable zip - Android Q&A, Help & Troubleshooting

Isvthere any guide on how we create a flashable zip for instlling a custom recovery??
@marcussmith2626

Related

Making a recovery flashable zip

The format of recovery that we download from official website is .img. How can we make it a cm flashable zip?
Sent from my HTC One X+ using xda premium
Siddharth121 said:
The format of recovery that we download from official website is .img. How can we make it a cm flashable zip?
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
If you are talking about making a stock ROM (.img) into a flashable zip file then you will need android kitchen.
1. Place both boot.img and system.img into Original_Update folder
2. In kitchen click option 1
3. Pick the option that says system.img and boot.img
4. Follow the onscreen instructions
5. Build using option 99.
6. Flash in CWM or TWRP!
Siddharth121 said:
The format of recovery that we download from official website is .img. How can we make it a cm flashable zip?
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
To make the recovery.img flashable in CWMR recovery you would have to create a flashable zip that writes the raw .img file to the recovery partition. The commands to flash it to the recovery partition would be similar to this:
Code:
ui_print("ClockworkMod Recovery v6.0.3.1");
ui_print("for Your Device Name Here");
show_progress(0.500000, 0);
ui_print("Writing recovery image");
package_extract_file("recovery.img", "/tmp/recovery.img");
run_program("/sbin/busybox", "dd", "if=/tmp/recovery.img", "of=path/to/recovery/partition");
delete("/tmp/recovery.img");
ui_print("Complete!");
Note: The ui_print and show_progress commands are just to make it easier for the user to understand what is going on and for a clean look.
The structure for the folder of the flashable zip would be similar to:
META-INF->com->google->android->update-binary and update-script
recovery.img (In the same folder as your main zip do not put this in the META-INF folder)
I would also recommend checking out this guide to edify scripting and creating flashable zip's. Let me know if you still have questions .

[Q] [HELP!!!]Pac to Flashable .Zip

How to make .PAC file to flashable .ZIP on android?

Make ur own flashable zip

How can I make my own .zip files with say the latest twrp 2.8.1.0 that can be flashed in recovery let's say since I can't find most I'd like to be able to jus extract the file if need be and create my own flashable .zip on my i9100m

does a flashable Recovery zip for Z2 Marshmallow exist?

i`d like to know if ther eis a flashable recovery zip like nutsdualrecovery flashable zips for android marshmallow?
.IMG is flashable.

[Help] How to add system.img directly in flashable zip ?

I want to add system.img directly in my recovery flashable zip. So how can i do it & what lines i should add in updater-script ?

Categories

Resources