[GUIDE][SCRIPT] Install/Restore 4.1/4.2 ROMs without Odin

Search This thread

AntaresOne

Recognized Developer
Sep 30, 2013
2,161
17,509
30
Chieti, Italy
www.antaresone.eu
If you want to install or restore a CM10.1-based or stock-based ROM while you are on CM10.2/11 based ROM without using Odin you are into right place. :cool:


Automatic process with Recovery-flashable zip:
  • Download Format-Preload-RecoveryModeV2.zip and put it into sdcard
  • Reboot device in recovery and install the zip, no need to reboot after flashing
  • Now you can install or restore any CM10.1-based ROM!!


Semi-automatic process with Linux/Windows script - needs ADB
To use only if Automatic process doesn't work for you
  • Reboot device in recovery and connect to USB
  • Download Format zip depending on your OS. Then:
On Windows: Extract zip, copy extracted file to the same directory where is ADB executable and double click .bat
On Linux: Extract zip where you want, for example your home directory, and run it in Terminal with . PreloadFormat.sh


Manual process with ADB
To use only if either Automatic and Semi-automatic don't work for you
  • Boot device into recovery mode, connect it to USB
  • Open ADB and type in order:
Code:
[B]adb devices[/B] (to be sure that device is recognized, you see some numbers followed by "recovery" word)
[B]adb shell
su
parted /dev/block/mmcblk0
mkfs
(now wait 2 sec and confirm with Y)
9
ext2[/B]

Little explanation: Preload partition is used as swap partition from CM10.2 and up in our device, without formatting it (format /preload when is a swap partition doesn't work in CWM, at least for me. Parted can't format in ext4, so we need to format in ext2) you get bootloop when you install/restore a 10.1 ROM.
 

Attachments

  • Format-Preload-RecoveryMode.zip
    170.9 KB · Views: 393
  • Format-Preload-RecoveryModeV2.zip
    170.9 KB · Views: 1,052
Last edited:

dagger

Senior Member
There is one more way too without using pc and adb..
Boot into recovery and format /system.(optional)
Now install any CM10.1 ROM on top of CM10.2.
Then go to advance option in CWM recovery and choose "reboot recovery".
Now when phone reboots into recovery, go to mount and storage and format /preload and /data.
Now reboot.
The rom will boot up normally.
I was on carbon ROM and successfully booted the MIUI using the following method..:)
Thanks to @Toni5830 for letting me know this method..:)
 

AntaresOne

Recognized Developer
Sep 30, 2013
2,161
17,509
30
Chieti, Italy
www.antaresone.eu
There is one more way too without using pc and adb..
Boot into recovery and format /system.(optional)
Now install any CM10.1 ROM on top of CM10.2.
Then go to advance option in CWM recovery and choose "reboot recovery".
Now when phone reboots into recovery, go to mount and storage and format /preload and /data.
Now reboot.
The rom will boot up normally.
I was on carbon ROM and successfully booted the MIUI using the following method..:)
Thanks to @Toni5830 for letting me know this method..:)

...but I have to use my method all the times because format /preload never works for me with Toni's guide :p

Inviato dal mio GT-I9070
 

Razvan

Retired Forum Moderator
  • Download Format-Preload-RecoveryMode.zip from attachments and put it into sdcard[/B]
  • Reboot device in recovery, make sure that /system partition is mounted under mounts and storage and flash zip file, no need to reboot after flashing
  • Now you can install or restore any CM10.1-based ROM!!

It worked for CM10.2.
Last night I returned to the CM10.1 from CM10.2, and all I had to do isto have already downloaded all the zip on the card, follow the procedure from OP and everything was impeccable with your script.

Thanks @Tesla-MADAL93
 
  • Like
Reactions: dagger

shadytarek_97

Senior Member
Aug 31, 2013
126
10
There is one more way too without using pc and adb..
Boot into recovery and format /system.(optional)
Now install any CM10.1 ROM on top of CM10.2.
Then go to advance option in CWM recovery and choose "reboot recovery".
Now when phone reboots into recovery, go to mount and storage and format /preload and /data.
Now reboot.
The rom will boot up normally.
I was on carbon ROM and successfully booted the MIUI using the following method..:)
Thanks to @Toni5830 for letting me know this method..:)

@dagger does this method work if i want to downgrade from CM11 to cm10.1
 

shadytarek_97

Senior Member
Aug 31, 2013
126
10
I don't think that it works on cm11..
This method only works for installing cm10.1 from cm10.2.
You can't flash a 4.3 or 4.2 ROM from the cm11 recovery as it gives an error in the flashing process..:)


Sent from my GT-I9070 using Tapatalk

but tesla's automatic process mentioned in op works with cm11 right ??
 

dagger

Senior Member
CM10.2 and CM11 uses preload partition as swap, so you can install CM11/10.2 based ROM over CM11/10.2 based ROM without using this. You can't downgrade to previous versions without this or flashing stock firmware.

But if you try to install a cm10.2 based ROM on cm11 based ROM, don't you get an error??

Sent from my GT-I9070 using Tapatalk
 

coffeecore

Senior Member
Dec 6, 2013
1,029
380
Sorry for noob question but as OP says; Make sure that /system partition is mounted under mounts and storage

What do I need to do in CWM
unmount /system ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    If you want to install or restore a CM10.1-based or stock-based ROM while you are on CM10.2/11 based ROM without using Odin you are into right place. :cool:


    Automatic process with Recovery-flashable zip:
    • Download Format-Preload-RecoveryModeV2.zip and put it into sdcard
    • Reboot device in recovery and install the zip, no need to reboot after flashing
    • Now you can install or restore any CM10.1-based ROM!!


    Semi-automatic process with Linux/Windows script - needs ADB
    To use only if Automatic process doesn't work for you
    • Reboot device in recovery and connect to USB
    • Download Format zip depending on your OS. Then:
    On Windows: Extract zip, copy extracted file to the same directory where is ADB executable and double click .bat
    On Linux: Extract zip where you want, for example your home directory, and run it in Terminal with . PreloadFormat.sh


    Manual process with ADB
    To use only if either Automatic and Semi-automatic don't work for you
    • Boot device into recovery mode, connect it to USB
    • Open ADB and type in order:
    Code:
    [B]adb devices[/B] (to be sure that device is recognized, you see some numbers followed by "recovery" word)
    [B]adb shell
    su
    parted /dev/block/mmcblk0
    mkfs
    (now wait 2 sec and confirm with Y)
    9
    ext2[/B]

    Little explanation: Preload partition is used as swap partition from CM10.2 and up in our device, without formatting it (format /preload when is a swap partition doesn't work in CWM, at least for me. Parted can't format in ext4, so we need to format in ext2) you get bootloop when you install/restore a 10.1 ROM.
    8
    There is one more way too without using pc and adb..
    Boot into recovery and format /system.(optional)
    Now install any CM10.1 ROM on top of CM10.2.
    Then go to advance option in CWM recovery and choose "reboot recovery".
    Now when phone reboots into recovery, go to mount and storage and format /preload and /data.
    Now reboot.
    The rom will boot up normally.
    I was on carbon ROM and successfully booted the MIUI using the following method..:)
    Thanks to @Toni5830 for letting me know this method..:)
    3
    Modified OP, flashable zip for recovery is ready

    Inviato dal mio GT-I9070
    3
    What about stock based backup restore??? are they same as CM 10.1 ROMs??

    Yes, the same. On 4.3 and 4.4 ROMs preload partition is swap. 4.1 stock/stock-based and 4.2 ROMs cannot boot when preload partition is swap instead of ext#, just flash this to restore them

    Flashable zip updated to v2, no more need to see first if system is mounted. Just flash it to go! :p
    2
    Added script for Windows to automate this operation! Soon for Linux and CWM Recovery too

    EDIT: Added for Linux too