[SCRIPT] SuperWipe Script. Always use before flashing ROMs! - Verizon HTC Droid Incredible 4G LTE

Given permission by mike1986. to port over his SuperWipe script from his ARHD ROMs. So all credits to him and his team.
Thanks to blazingwolf for testing!
SuperWipe is used to clean your current phone partitions to make it ready for a brand new ROM version to be installed.
Click to expand...
Click to collapse
So before you flash any ROMs, flash the SuperWipe script in recovery. It will wipe out the partitions and reboot back into recovery. Make sure you flash a ROM or else you can't boot up! (Unless you flash an RUU)

hasoon2000 said:
Given permission by mike1986. to port over his SuperWipe script from his ARHD ROMs. So all credits to him and his team.
Thanks to blazingwolf for testing!
So before you flash any ROMs, flash the SuperWipe script in recovery. It will wipe out the partitions and reboot back into recovery. Make sure you flash a ROM or else you can't boot up! (Unless you flash an RUU)
Click to expand...
Click to collapse
so instead of having to manually wipe before a new ROM, can just flash this in recovery?
bad ass, thanks man.
I miss the "wipe all function" back in the modified CWM recovery for inc2 lol.
im old school.

andybones said:
so instead of having to manually wipe before a new ROM, can just flash this in recovery?
bad ass, thanks man.
I miss the "wipe all function" back in the modified CWM recovery for inc2 lol.
im old school.
Click to expand...
Click to collapse
Exactly! I use superwipe on my Amaze. Very helpful!
Sent From My HTC Amaze 4G Via Someone's Room

will this wipe extSD on Galaxy s3? More than once i've made the mistake of FORMAT SDCARD in CWM and it's meant external SD more fool me

weezul said:
will this wipe extSD on Galaxy s3? More than once i've made the mistake of FORMAT SDCARD in CWM and it's meant external SD more fool me
Click to expand...
Click to collapse
Do NOT use this on any phone except for the Droid Incredible 4G LTE. You can brick your phone for erasing the wrong partitions!

Im curious. If i use the wipe function on my recovery would this be necessary? I have been told that the wipe from that is more than enough and that im ignorant to believe otherwise.
On another note, i used this and it didnt boot back into recovery. I had to manually boot into bootloader to get back. Kinda scared me for a second.
It worked fine tho, just that it booted to a black screen.
Sent from my ADR6410LVW using xda premium

hasoon2000 said:
Do NOT use this on any phone except for the Droid Incredible 4G LTE. You can brick your phone for erasing the wrong partitions!
Click to expand...
Click to collapse
Maybe you could consider adding this to the beginning of your script?
Code:
assert(getprop("ro.product.device") =="fireball" || getprop("ro.product.board") =="fireball")
---------- Post added at 11:13 PM ---------- Previous post was at 11:10 PM ----------
whodisname said:
Im curious. If i use the wipe function on my recovery would this be necessary? I have been told that the wipe from that is more than enough and that im ignorant to believe otherwise.
On another note, i used this and it didnt boot back into recovery. I had to manually boot into bootloader to get back. Kinda scared me for a second.
It worked fine tho, just that it booted to a black screen.
Click to expand...
Click to collapse
Here's the short version of what the script does. You can make the judgement call yourself since you've touted your skills previously:
Code:
run_program("/sbin/erase_image", "cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p34");
run_program("/sbin/erase_image", "system");
format("ext4", "EMMC", "/dev/block/mmcblk0p33");
run_program("/sbin/erase_image", "userdata");
format("ext4", "EMMC", "/dev/block/mmcblk0p35");
run_program("/sbin/erase_image", "boot");
delete_recursive("/sdcard/.android_secure");
delete_recursive("/sdcard/.bookmark_thumb1");
delete_recursive("/sdcard/.data/footprints");
delete_recursive("/sdcard/.data/mail");
delete_recursive("/sdcard/Android/data/com.android.providers.media");
delete_recursive("/sdcard/Android/data/com.google.android.apps.genie.geniewidget.news-content-cache");
delete_recursive("/sdcard/Android/data/com.google.android.apps.maps");
delete_recursive("/sdcard/.data/navigator/Data/Temporary");
delete_recursive("/sdcard/LazyList");
delete_recursive("/sdcard/LOST.DIR");
run_program("/sbin/busybox", "cp", "/tmp/recovery.log", "/sdcard/superwipe.log");

mdmower said:
Maybe you could consider adding this to the beginning of your script?
Code:
assert(getprop("ro.product.device") =="fireball" || getprop("ro.product.board") =="fireball")
---------- Post added at 11:13 PM ---------- Previous post was at 11:10 PM ----------
Here's the short version of what the script does. You can make the judgement call yourself since you've touted your skills previously:
Code:
run_program("/sbin/erase_image", "cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p34");
run_program("/sbin/erase_image", "system");
format("ext4", "EMMC", "/dev/block/mmcblk0p33");
run_program("/sbin/erase_image", "userdata");
format("ext4", "EMMC", "/dev/block/mmcblk0p35");
run_program("/sbin/erase_image", "boot");
delete_recursive("/sdcard/.android_secure");
delete_recursive("/sdcard/.bookmark_thumb1");
delete_recursive("/sdcard/.data/footprints");
delete_recursive("/sdcard/.data/mail");
delete_recursive("/sdcard/Android/data/com.android.providers.media");
delete_recursive("/sdcard/Android/data/com.google.android.apps.genie.geniewidget.news-content-cache");
delete_recursive("/sdcard/Android/data/com.google.android.apps.maps");
delete_recursive("/sdcard/.data/navigator/Data/Temporary");
delete_recursive("/sdcard/LazyList");
delete_recursive("/sdcard/LOST.DIR");
run_program("/sbin/busybox", "cp", "/tmp/recovery.log", "/sdcard/superwipe.log");
Click to expand...
Click to collapse
Dont deletr androis secure dir cause that will cause problema while flashing betwen roms
Sent from my ADR6410LVW using xda app-developers app

Thanks for The reply.
Sent from my ADR6410LVW using xda premium

Could I port this to another device
Sent from my ADR6410LVW using xda premium

Sent from my P9070 using xda premium

Error
Receiving Status 1?

Related

[Q] CWM recovery doesnt work

Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
LetisXXX said:
Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
Click to expand...
Click to collapse
what are you trying to do? Install an app?

[DEV DISCUSSION] PC Free Flashing

[DEV DISCUSSION]
THIS IS ESSENTIALLY IDEAS FROM Dees_Troy and TEAMWIN, and they can ease much of our procedures.
Guys,
I was thinking about it long and hard and i think i may have a system in mind where we never need to connect to a PC before flashing ROMs. Roms are meant to flash boot.img but the limitation of recovery partition forces us to do this via fastboot. Ok, here's what i have in mind.
Pre-requisites:
1. You should have a working ROM installed on your phone.
2. You should have superuser or root.
3. You should have my custom made recovery.
4. You should have the app. Say "xyz" (actually its htcdumlock but i'm going somewhere a bit different, so i'll modify it a bit.)
Procedure:
1. You're in your ROM and you run the app, The app "xyz" runs a script which does three things. (Dump boot to sdcard, dump recovery to sdcard, flash recovery to boot) and reboot.
2. It automatically boots to recovery, where you flash your desired ROM (which will also flash the boot), but this ROM zip also runs another script during installation to flash recovery to recovery.No need
3. We now have boot in boot, recovery in recovery and a reboot takes us to our newly installed ROM.
What i need from ROM chefs:
1. Do some test trials with me, by including some scripts which i will provide.
2. Implement these features in future ROM releases so that we can get rid of fastboot for the time being.
3. HELP me in building the said app in above points.
Trust me, once its implemented properly, i think it will be less of a hassle then our current procedure.
What a noob will see:
1. YOU RUN AN APP WHICH TAKES YOU TO RECOVERY. (HE CAN BACKUP HERE JUST FOR SAFETY)
2. YOU FLASH ROM.
3. YOU REBOOT and Voila !!! New Rom is there.
NOTE:
All comments are welcome, but i would prefer if only those people comment which understood the steps.
Regards
Yasir
That's a great idea! And I'd be glad to help making the app
Sent from my awesome fridge
I'm here for any help, too.
xpirt
Did you tried change the kernel with dd ? Is it working? (I didn't try it yet.) If not, i think no way to change kernel without pc.
Ok, i need a very simple app, which has a single button.
When i press the button, it runs a script. I am making that script, but until then , please create that app if you can.
Also, there will be some files which will be included in the app as prebuilts. They will be copied to system before running the script.
1. Button press
2. App copies some files to a location
3. App runs some scripts
4. Auto reboot
For now, this is the target.
atis112 said:
Did you tried change the kernel with dd ? Is it working? (I didn't try it yet.) If not, i think no way to change kernel without pc.
Click to expand...
Click to collapse
Dont worry, i m not doing what you are saying. I'm essentially doing the dumlock method but automating it enough so that Desire X users dont need PC. the app will do the initial (flash boot to recovery.) Users installing from this recovery will flash rom, during which the kernel will also be flashed and reboot. Thats it. I'm pretty sure it will work coz a recovery flashed on boot can alter all partitions. (and i am using ICS kernel in the recovery.)
neXus PRIME said:
Dont worry, i m not doing what you are saying. I'm essentially doing the dumlock method but automating it enough so that Desire X users dont need PC. the app will do the initial (flash boot to recovery.) Users installing from this recovery will flash rom, during which the kernel will also be flashed and reboot. Thats it. I'm pretty sure it will work coz a recovery flashed on boot can alter all partitions. (and i am using ICS kernel in the recovery.)
Click to expand...
Click to collapse
Ohh, sorry. I didn't see dumlock yet. It's new for me.
neXus PRIME said:
Ok, i need a very simple app, which has a single button.
When i press the button, it runs a script. I am making that script, but until then , please create that app if you can.
Also, there will be some files which will be included in the app as prebuilts. They will be copied to system before running the script.
1. Button press
2. App copies some files to a location
3. App runs some scripts
4. Auto reboot
For now, this is the target.
Click to expand...
Click to collapse
That won't be hard at all I'll make it tomorrow, no time today :/
Sent from my awesome fridge
If you'll need someone for testing, I'm in as well. Maybe I can take a look at the script too.
Sent from my HTC Desire X using xda premium
---------- Post added 19th June 2013 at 12:00 AM ---------- Previous post was 18th June 2013 at 11:50 PM ----------
So you'll adapt the C code making a script of it? What do you want to change?
Sent from my HTC Desire X using xda premium
Don't worry. No c. Just good old linux scripts for now. I'll tell you soon enough. For now , let's just focus on the app.
Sent from my HTC Desire X using xda app-developers app
Someone make me a flashable zip, which contains this in the updater-Script:
Code:
ui_print("Please wait, boot.img being flashed...");
show_progress(0.1, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.1, 10);
ui_print("It is now safe to reboot! :)");
The zip should contain a boot.img (anything, nexuskernel, prototype kernel or any other) and preferably nothing else.
I wanna try flashing this zip on my phone.
MaartenXDA said:
That won't be hard at all I'll make it tomorrow, no time today :/
Sent from my awesome fridge
Click to expand...
Click to collapse
Root tools
@op Can you upload the script soon?
Okay I made the app, could you upload the script?
neXus PRIME said:
Someone make me a flashable zip, which contains this in the updater-Script:
Code:
ui_print("Please wait, boot.img being flashed...");
show_progress(0.1, 0);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.1, 10);
ui_print("It is now safe to reboot! :)");
The zip should contain a boot.img (anything, nexuskernel, prototype kernel or any other) and preferably nothing else.
I wanna try flashing this zip on my phone.
Click to expand...
Click to collapse
I don't think that'll work.
Sent from my Nexus 7 using Tapatalk 4 Beta
Stereo8 said:
I don't think that'll work.
Sent from my Nexus 7 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Why do you think so?
neXus PRIME said:
Why do you think so?
Click to expand...
Click to collapse
But the methods like in One S Roms with install_kernel.sh, flashboot.sh and this:
Code:
ui_print("Writing boot image.");
ui_print(" ");
ui_print("This can take up to 5 minutes.");
ui_print(" ");
package_extract_file("boot.img", "/tmp/boot.img");
package_extract_dir("kernel", "/tmp/kernel");
show_progress(0.200000, 10);
set_perm_recursive(0, 2000, 0777, 0777, "/tmp/kernel");
run_program("/tmp/kernel/install_kernel.sh", "/tmp/boot.img", "/tmp/bootready.tmp");;
ifelse(file_getprop("/tmp/bootready.tmp","kernel.ready") != "READY",(
ifelse(file_getprop("/tmp/bootready.tmp","kernel.ready") == "STARTUP",
ui_print("Kernel Will Be Installed On Startup."),
ui_print("Snap! We've encountered an error, ERR1!")
)
));
Will work?
xpirt
neXus PRIME said:
Why do you think so?
Click to expand...
Click to collapse
That's just the standard write_raw_image method... Htc should be bright enough to prevent that...
Sent from my Nexus 7 using Tapatalk 4 Beta
I would suggest you to take some parts of my released s-on Kernel flasher Script for this app
Sent from my HTC Desire X using xda premium
greeneyes2910 said:
I would suggest you to take some parts of my released s-on Kernel flasher Script for this app
Sent from my HTC Desire X using xda premium
Click to expand...
Click to collapse
Hmmm, that just might work. Thanks for the heads up.
I know this thing is possible because 4ext recovery is doing this just fine in its SmartFlash feature. HTC dumlock so far isnt working, but i'm reading more and more.
Once it is completed, all our fastboot problems will be over.
I'm in, pm me for any testing
Sent from my HTC Desire X using xda premium

Updater-script help

Hello everyone!
I am trying learning how to create cwm flashable items. I have some questions though.
While i was trying to see how an updater-script was made, i edited some scripts from cwm for themes, wallpapers etc.
I saw that some files have:
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p10", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p12", "/system");
What does it stand for? Which is the difference between mmcblk0p2,mmcblk0p10 and mmcblk0p12?
Thanks in advance
Anyone?
Thhey are the mount points for the memory, they are different for each device. If you have some that work for your device that point to the system partition, then just use them. Changing them will mean you will get a bootloop, or the mod wont flash
gregbradley said:
Thhey are the mount points for the memory, they are different for each device. If you have some that work for your device that point to the system partition, then just use them. Changing them will mean you will get a bootloop, or the mod wont flash
Click to expand...
Click to collapse
Thanks mate, but what if i want to create a cwm for another device? How am i supposed to know which one fits?
See my flashable zip tool thread
On general section
Press thanks if I helped

[Q] flashable zip

Hello there , im trying to make a flashable zip to puch an apk on the system , or replace systemui.apk but it always give me this error
"Finding update package...
Opening update package...
Installing update...
Installation aborted."
i tried a lot of ways like this : http://forum.xda-developers.com/showthread.php?t=2163974 but still the same error
btw my cwm version is 5.0.2.8​
mohabmoka said:
Hello there , im trying to make a flashable zip to puch an apk on the system , or replace systemui.apk but it always give me this error
"Finding update package...
Opening update package...
Installing update...
Installation aborted."
i tried a lot of ways like this : http://forum.xda-developers.com/showthread.php?t=2163974 but still the same error
btw my cwm version is 5.0.2.8​
Click to expand...
Click to collapse
Can you upload that flashable zip? I will check it for errors, I will try to solve errors and give it back to you.
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
hnkotnis said:
Can you upload that flashable zip? I will check it for errors, I will try to solve errors and give it back to you.
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
Click to expand...
Click to collapse
oky no problem sure here you are , p.s : i tried to replace META-INF with other that worked ob my mobile before
from the attached zip i want to push this apk to system ik that there is alot of ways but i want to make this way is that possible? and also 3 days ago i wanted to replace my systemui.apk with edited and signed one by me , thanks man for help !!
If you get a chance read through this a bit
http://forum.xda-developers.com/showthread.php?t=2290009
It may help understand the structure and how to use edify. I'm on mobile right now so it may be a bit tough to look at your current .zip but if you don't have an answer by the time I get to a PC I'll have a look
But I will say off hand what youre trying to do will be fairly easy.
Grab a ROM that works for your phone
Extract the contents of the zip
Get rid of everything but the META-INF folder
Go to the updater-script
Erase all and write your own (if on windows use notepad++)
What you will need to do is mount system, then say where to take the app from and where to put it
Then have it fix permissions
The unmount system
Now zip it up with your app
Sign
And your good
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
If you get a chance read through this a bit
http://forum.xda-developers.com/showthread.php?t=2290009
It may help understand the structure and how to use edify. I'm on mobile right now so it may be a bit tough to look at your current .zip but if you don't have an answer by the time I get to a PC I'll have a look
But I will say off hand what youre trying to do will be fairly easy.
Grab a ROM that works for your phone
Extract the contents of the zip
Get rid of everything but the META-INF folder
Go to the updater-script
Erase all and write your own (if on windows use notepad++)
What you will need to do is mount system, then say where to take the app from and where to put it
Then have it fix permissions
The unmount system
Now zip it up with your app
Sign
And your good
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
well !! frist of all thanks for you help ! and i will try again and tell you , thanks again
mohabmoka said:
well !! frist of all thanks for you help ! and i will try again and tell you , thanks again
Click to expand...
Click to collapse
See HERE.
so just had a look at you .zip
youre missing your updater script and update-binary
so again, take this from a recent rom from your device and put them in META-INF
so file structure
META-INF/com/google/android and here put those two files
and your updater script should be simple, something like
Code:
ui_print("mounting system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fbutton/system", "/system");
ui_print("setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("unmounting system");
run_program("/sbin/busybox", "umount", "/system");
but feel free to edit in whatever or define the actual system partition, your choice
best of luck!
demkantor said:
so just had a look at you .zip
youre missing your updater script and update-binary
so again, take this from a recent rom from your device and put them in META-INF
so file structure
META-INF/com/google/android and here put those two files
and your updater script should be simple, something like
Code:
ui_print("mounting system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fbutton/system", "/system");
ui_print("setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("unmounting system");
run_program("/sbin/busybox", "umount", "/system");
but feel free to edit in whatever or define the actual system partition, your choice
best of luck!
Click to expand...
Click to collapse
well but i aslo used the meta-inf file which is in my root file (attached ) and root file worked well , i uploaded the root file and the file after edit with meta-inf from root file can you check it out?
XperienceD said:
See HERE.
Click to expand...
Click to collapse
oky thanks i will check it out and reply :] thanks for you help ^_^
XperienceD said:
See HERE.
Click to expand...
Click to collapse
demkantor said:
so just had a look at you .zip
youre missing your updater script and update-binary
so again, take this from a recent rom from your device and put them in META-INF
so file structure
META-INF/com/google/android and here put those two files
and your updater script should be simple, something like
Code:
ui_print("mounting system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fbutton/system", "/system");
ui_print("setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("unmounting system");
run_program("/sbin/busybox", "umount", "/system");
but feel free to edit in whatever or define the actual system partition, your choice
best of luck!
Click to expand...
Click to collapse
well , i edited the updater-script and still the same problem :s i attach the final zip and can anyone of you check it out for me :] , also when i enter cwm i selcet install zip for sd card is that right? or i should do anything else ?
mohabmoka said:
well , i edited the updater-script and still the same problem :s i attach the final zip and can anyone of you check it out for me :] , also when i enter cwm i selcet install zip for sd card is that right? or i should do anything else ?
Click to expand...
Click to collapse
you have an extra folder, META-INF ans system folders should not be inside lite
if you open your zip youll see what i mean
so rezip these two folders, sign then flash through recovery
also you may need to add a chmod for permissions in your updater-script - either just for new app or all of system, either way will work
demkantor said:
you have an extra folder, META-INF ans system folders should not be inside lite
if you open your zip youll see what i mean
so rezip these two folders, sign then flash through recovery
also you may need to add a chmod for permissions in your updater-script - either just for new app or all of system, either way will work
Click to expand...
Click to collapse
Yuup finally ! its worked welll !!! thanks alot man :]
well it said success but when i opened my mobile again i found nothing !
Did you add the set_permissions to the updater-script? If not it won't show up
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
Did you add the set_permissions to the updater-script? If not it won't show up
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
this is my updater-script , is that right ?
Depending on your file structure it looks good enough to me, what happens when you flash it now?
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
Depending on your file structure it looks good enough to me, what happens when you flash it now?
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
it says install form sd card complete but i found nothing ..
Can you upload the whole zip again and I'll see
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
Can you upload the whole zip again and I'll see
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
here you are
mohabmoka said:
here you are
Click to expand...
Click to collapse
just took a look at it, you have it searching for flite/system which does not exist so change this
package_extract_dir("flite/system", "/system");
to
package_extract_dir("system", "/system");
in your updater-script
at this point all should work fine, if not let me know!

[Q] Creating a CWM flashable zip

Can anybody point me out how to create a CWM flashable zip? i did find a lot of topics, but i've noticed that any ZIP package has to be phone specific, at least a glimpse on the updater-script showed me partition names which i am very unfamiliar with.
The simplest method gives you a zip file where all you have to do is put system.img, boot.img and recovery.img on it, and a very basic script (i think):
Code:
ui_print("Starting ...");
ui_print(" ");
ui_print("Boot Partition Writing ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("System Partition Writing ... ");
package_extract_file("system.img", "/dev/block/mmcblk0p15");
ui_print("Recovery Partition Writing ... ");
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
ui_print("Pass");
ui_print("Wipe data & Cache & Dalvik and reboot system ");
however, the code above, i found it on the GT-i9001 threads, so i dont want to risk anything...especially with the partition blocks.
the point of this thread is to convert our odin packages to cwm flshable zips, though the reason behind it is trying to flash a 4.2 rom from a identical device as ours, in fact, it is the same device, for more info check this thread
i think it's already exist now
PlutoDelic said:
Can anybody point me out how to create a CWM flashable zip? i did find a lot of topics, but i've noticed that any ZIP package has to be phone specific, at least a glimpse on the updater-script showed me partition names which i am very unfamiliar with.
The simplest method gives you a zip file where all you have to do is put system.img, boot.img and recovery.img on it, and a very basic script (i think):
Code:
ui_print("Starting ...");
ui_print(" ");
ui_print("Boot Partition Writing ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("System Partition Writing ... ");
package_extract_file("system.img", "/dev/block/mmcblk0p15");
ui_print("Recovery Partition Writing ... ");
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
ui_print("Pass");
ui_print("Wipe data & Cache & Dalvik and reboot system ");
however, the code above, i found it on the GT-i9001 threads, so i dont want to risk anything...especially with the partition blocks.
the point of this thread is to convert our odin packages to cwm flshable zips, though the reason behind it is trying to flash a 4.2 rom from a identical device as ours, in fact, it is the same device, for more info check this thread
Click to expand...
Click to collapse
The below can be used fro CWM. I didn't try it yet, but it was posted in tools and utilities section.
mohamed_fattoh said:
The below can be used fro CWM. I didn't try it yet, but it was posted in tools and utilities section.
Click to expand...
Click to collapse
Oh, you probably misunderstood me. I needed to know how to create a ZIP so i can flash it through CWM. I already have it, exactly what you've pasted , thnx for trying to help btw.
Check this this out. http://pan.baidu.com/s/1qWyNG8O
Might be a flashable i8558 rom. Muamk1
It semms that download links for i8558 custom roms are removed from their sites.
Got that link fromb http://m.romjd.com/Rom/Detail/35720
Another rom here. http://m.romjd.com/Rom/Detail/27609

Categories

Resources