[HUAWEI U8350][Orange Barcelona] Rom backup and restore - Android Software/Hacking General [Developers Only]

If you already tried to backup the rom from your Huawei u8350 Boulder with CWM you must have realised it doesn't work. The culprilt? Huawei made 2 changes from the normal Android partition pattern: we got a /cust partition, thought so that phone provider can install their bloatwares, and for unknown reasons we got 2 userdata partitions.
But there is a solution, thanks to Gulyuk's great work.
Prerequisite:
A Huawei u8350 Boulder / Orange Barcelona (obviously),
A working ClockWorkMod Recovery for U8350,
The two attached scripts
How to use (again, i'll take Gulyuk's explanations):
Backup boot, system, cust via CWM recovery
Download Attached File backup_by_Gulyuk.zip (445.33K)
Number of downloads: 0 and put it on the microSD card (do not unzip).
Ensure that you have enough (about 261 MB) free space on the microSD card.
Enter ClockworkMod Recovery.
Select "install zip from sdcard" in the menu, then select the backup_by_Gulyuk.zip file. Wait for several minutes while the backup script works.
Select "reboot system now" to exit from recovery.
The backup script should create the firmware directory on the microSD card (seen as /sdcard/firmware from the phone) with these files:
boot.img — dump of the boot partition (kernel and initramfs);
recovery.img — dump of the recovery partition (the one you installed);
system.img — dump of the system partition in yaffs2 format;
cust.img — dump of the cust partition in yaffs2 format.
data.img — dump of the userdata partition in yaffs2 format.
data2.img — dump of the userdata partition in yaffs2 format.
Running the backup script when the /sdcard/firmware directory already exists overwrites the previous contents of this directory (including any extra files which were placed there). Currently there is no way to keep more than one firmware backup by this method, unless you rename the firmware directory manually (but then the backup cannot be restored until you rename or copy the directory back).
Restore boot, system, cust via CWM recovery
Download Attached File restore_by_Gulyuk.zip (260.83K)
Number of downloads: 0 and put it on the microSD card (do not unzip).
Ensure that you have the firmware directory on your microSD card with valid firmware image files (boot.img, recovery.img, system.img, cust.img, data.img, data2.img).
Enter ClockworkMod Recovery.
Select "install zip from sdcard" in the menu, then select the restore_by_Gulyuk.zip file. Wait for several minutes while the restore script works.
Select "reboot system now" to exit from recovery.
Warning! Warning! Warning!
I tested both scripts on by own u8350 and it's still working, but I give absolutely no warranty about these scripts and how they works. If your phone burns, bricks, looses faith in you or try to run away in love with the neighbourg's dog IT IS YOUR RESPONSIBILITY.
If you want to share your wonderfull customised ROM with these scripts delete data.img and data2.img before sharing as they contains your personnal datas (google accounts, emails, and so on...).
before to try someone else's ROM, backup yours, then copy the "firmware" drawer from the SDCard in a safe place (dedicated to a french fellow that lost its keyboard configuration ).

"install zip from sdcard" option not given
Hello. Noob here. I'm following the instructions for the section "Backup boot, system, cust via CWM recovery", but the "install zip from sdcard" option is not appearing so I need some guidance, please.
General info: Orange Barcelona, UK, unlocked, rooted and verified, no sim inserted. CWM is installed.SuperUser is installed. Debugging and Unknown Sources are enabled, Fastboot disabled. The sd card is mounted and has plenty of spare capacity. Recovery Manger, Restore.zip and backup_Gulyuk.zip are on the card.
Can someone please point out what the noob is doing wrong?
Thanks,
Kate
EDIT: I started again from scratch and now the phone just reboots from CWM so I now no longer get a menu at all.

Related

[Q] What is "update.zip"?

I've been trying to figure out what this is. I see it referenced in ROM Manager, ClockWorkMod on my recovery, and Titanium.
I don't understand exactly and precisely what it does and how it functions.
I've been searching forums and Google and no one can give a good explanation.
All I can assume is: It's a file that is used to flash over the ROM, but I don't understand it's role, or when one would want to make this file, or how to use it. Does it automatically run every time you flash a ROM?
Why would I want to do "apply /sdcard/update.zip" in CWM, instead of going to "choose zip from sdcard"?
Thanks for helping a newb...
Update.zip packages are compressed folders that contain files used to install an update to your device. They can range from installing an entirely new OS version to just installing a program to your system or data areas. They are often used for tweaks that can not be done while the phone is operating normally, hence they are done in recovery. When you select 'apply /sdcard/update.zip' in CWM the phone is assuming the file is named 'update.zip' and must be in the root of the sd card (don't know if G2X is looking at the internal or external card but I will assume it is the internal card). When you select 'choose zip from sdcard' the latest version of CWM will let you browse the internal or external sd card for any zip package with any name. This is much more versatile as you don't have to rename the package update.zip and it can be anywhere on your sd card. This feature is not on stock recovery and one needs an alternate recovery for this versatility.
If you flashed CWM from ROM manager it did not flash it to the real recovery partition. When you choose boot in recovery from RM it tricks the phone by booting into recovery and then having that apply a special 'update.zip' it installed to your phone that then boots up the CWM recovery you 'installed' from RM.
I believe Titanium Backup (pro vesion) can create update.zip packages to reinstall backed up apps and data.
They are all the same thing but used for different purposes. Typically the zip packages contain apk files, needed data, an updater-binary and an updater-script. The updater-binary is the file that tells the phone how to interpret and apply the updater-script. The updater-script contains commands in a language called 'edify' that instruct recovery how to apply the update.zip package.

[ROM][ROOT][CWM] AreaRom for US ZTE Z990

VERY FIRST AreaRom RELEASE for the ZTE-Z990 Phones!
THE AREAROM way to take your Z990 from Box-fresh to rooted n' rockin!​
EASY 2 file method. 5 minutes, and your phone will be rooted, have a AreaRom Branded CWM installed, and latest 'under the hood' improvements.
ROM Features:
Based on latest GB release
Rooted! No need for adb or any other procedure
APN for StraightTalk added to standard AT&T APNs (May need to add your own APN for your data to work. Google is your friend)
'Big Data' standard (/data is as big as your sd-ext partition on your sdcard, if you choose to partition it. If not, will still work)
ext4 and swap file system supported in ROM and kernel (kernel already in ROM)
PERMANENT AreaRom made CWM 5 Recovery automatically installed for you
De-odexed ROM (programs load faster)
Root Browser Lite already installed
Quick Boot already installed
ICS Camera installed
Many other features!
Works with or without partitioning your sdcard. (If you DO partition, though, your /data partition will be as large as the sd-ext you create)
Note: CWM limits restore to 2GB..But, 2GB is PLENTY of room
NOTE: If you use a sd-ext partition, DO NOT USE LINK2SD OR ANY APP TO MOVE PROGRAMS! It already moves them...
IF your sdcard fails, or you remove the sdcard, you will lose all programs and everything stored in /data
=========================================
STEP BY STEP INSTALL INSTRUCTIONS:
Download both files below. Preferred way is via computer, then copy files to the sdcard (NOT in a folder)
Rename AreaRom-cwm-update.zip to just "update.zip".
Boot your phone into Recovery.
Select "Flash update.zip" or, if some Merits, select "Factory restore" option (or something close to it), and press the BACK button
When the temporary CWM comes up, select "wipe data/factory reset", press HOME
Select "install zip from sdcard", and press HOME
Select "choose zip from sdcard", press HOME
Select "AreaRom-Z990-2.2.0.zip", press HOME
When done flashing, select "Advanced", then "Reboot Recovery", press HOME
When CWM reboots, you can either "Reboot system now", or, you can partition the sdcard.
To partition, select "advanced" (NOTE: Partitioning erases all data on SDCARD...Make backups)
Select "Partition Sdcard"
Select any size you want for sd-ext (Recommend 2048 or less, or CWM has issues restoring backups to the sd-ext)
Any size for swap (If adding swap partition, you need an app like Swapper2 from the Play Store to use)
When done partitioning, select "Reboot system now"
FIRST BOOT MAY TAKE AWHILE! 5-10 minutes, possibly!
=================================
FILES:
Can ONLY get from AndroidArea51!
http://androidarea51.com/arearom-merit/arearom-release-for-z990/
=================================
Please leave comments at AndroidArea51!

Mtk6575 repartition solution

I open this thread because I never found any proper solution for mtk6575 repartition, it's little different from other mtk phones.you have to edit the mbr file for increasing internal storage and also the scatter file...here i share a zip file it's not my work....file is moded by jassonrr for micromax a90 I used it on my clone note2 mtk 6575 and it's working for me..it's for 4gb rom you get 1.97gb internal and 571mbu on SD card.
First of all do a cwm backup and also you need a working flash tool backup, make it sure this thing.
now select scatter file give in the zip using sp flash tool and try to flash only mbr ebr1 and ebr2.if it works for you than go to cwm recovery wipe data factory reset,restore your backup..wipe cache partition and dalvic cache.reboot your phone format SD card...you will see your internal storage increase in settings.
Now come to the tough part if above steps is not working for you.....at first open your scatter file and given scatter file match all the value except user data and fat partition,also in the given scatter file it's replace the android name with gionee so it's not a problem be sure just values are same.
If everything ok than replace the value of user data and fat partition from given scatter to your scatter file....now open sp flashtool format your phone except bootloader....now select the modified scatter file and flash the full rom with given mbr ebr1 ebr2....after complete the flash go to cwm recovery wipe data factory reset...restore your backup wipe cache partition and dalvic cache,reboot phone and format SD....you will find your new internal storage in settings....
Do it with your own risk.. I am not responsible if any thing happen to your phone.
Bugs: you cannot see your external SD from cwm recovery.
Please hit thanks if you find me helpful..
follow this
based on:
http://apkandroidgamehdzone.blogspot.sg/2012/07/romhaipai-noble-i9220-52-inch-mtk6575.html
make your own stable baseline, especially with cwm-based recovery
boot as per normal
copy MTK6575_2gb_for apps_512_internal memory.zip from to ext sdcard
Boot to recovery, which is cwm-ported if based on the baseline,
Prepare cwm backup in ext sdcard
install update from zip
MTK6575_2gb_for apps_512_internal memory.zip by those MTK gods - angelobiz
it basically have scripts that update the MBR (the key in MTK6575).
Usually other MTK devices need to modify EBR1 and 2
but this is not applicable for most MTK6575 models,
you will just hang at boot or dead if you try modifying EBRs
it ended perfectly by formating the usr_data and fat partition.
then restore your cwm backup
where it will fill up back your whatever baseline to the new space
boot as per normal
PROFIT!!!!
testing now

TWRP Recovery changed for G6-L11 - it was add Cust folder, Log folder and USB OTG

27-11-2015
Hi!
I re-edited TWRP for Huawei ascend G6-L11 LTE
Can work in other models like U10 and flash ROMs if the file don´t check the propertys from the phone, example my zip to flash ROMs don´t check it! Is un safe is any one try to flash in a diferent model but works in avery recovery ( but not the default one, lol )
TWRP version 2d! lol
TWRP2d:
https://mega.nz/#!S5xxELKT!8M3RMH3PdC9Yl9baDsYKmik5vR2rgXKgxifEOQ5gLuA
To flash it, boot in booloader (fastboot mode ) and execute the file! the phone will reboot and is done! To check boot in recovery!
Have all the changes is add before but main folder the ext sd card like default one, don´t makes so much confusion because it will usually the place where the files you intend flashing are!
So, the sdcard that will show is ext sd card or sdcard1 like it shows in phone.
-----------------------------------------------------------------------------------------------------------------------------------
Hi!
I update again and now USB OTG option is on.
Use USB OTG cable plug the pen drive, boot in TWRP, go to mount and slide up, select usbotg.
Is possible to install a ROM from the pen drive, or use file manager, etc, etc.
Hi!
I change TWRP for L11, not only the description, that i had done before, but now you can mount your ext4 partition from external sd card in TWRP and...
ta ta ta ....
Cust folder to!!!!
You dont need root to edit cust and know what is write in /data/custom.bin file!
need a trick...
1º in mount option mount data, go to Advanced and open File manager, go to data and find custom.bin file, select it copy (COPY), it will open root tree, select data again and app-private because is empty, hit select and swipe to confirm, go back , and look for app-private and select it, hit custom.bin and rename File to custom.txt, go back, select it and COPY (to go back in file manager hit (Up A Level) ) to extsdcard .
2º reboot
3º now with file explorer open sdcard0 and look for custom.txt, open it and you will find same thing like for example vodafone/pt, that is the name from your provider configurantion, if can´t be find in cust it will miss in your phone same apps or short cut bar, for example.
now you now what is your provider configuration, the first name is for the first folder and the sec name is for the folder inside.
4º Go back to TWRP recovery
5º mount cust folder
there are 3 folder inside cust in kit kat ( i can´t remeber in 4.3...)
lost+found
preinstall
hw
the first two don´t do any thing
but hw is what we want, rename it whit the first name in my example vodafone, and open it, you will find normal, rename it to the second name, in my example pt.
Now do factory reset and your ROM is fix it for your provider.
TWRP2b for G6-L11
Hi think it work in other G6 model only fail flash if ROM check phone model
To install boot in bootloader and execute the file you will download from the link below.
https://mega.nz/#!z05nQYRR!YXf4BuVsWYUsFdggQqKq-SHBGV6vcBJsecGhwzrVvAE
If you dont know but the log partiton saves how many times you flash it, etc, etc, now you can mount that partition to, with TWRP.
That is all for today, good evening!

Phone soft-bricked after bad manipulations (need help from advanced users)

Hello
First of all, I'd like to excuse myself because of my lack of knowledge in all that android stuff and also in english. I got my phone rooted just by following tutorials on internet.
I have a Huawei Ascend Mate 7 MT7-L09. Probalby half a year ago, I have unlocked bootloader and installed CWM-based Recovery v6.0.5.1 and got it rooted.
Not long ago, Huawei released a new version of the EMUI, wich I guess is the Android 6.0 marshmallow thing (logically, I was using the previous version). After downloading, I tried to install it but it would reboot to the CWM everytime I was trying. And then, after booting, the phone would tell me the update failed. It's normal, I know. I needed to install it manualy and etc
BUT instead, by pure ''I don't give a crap what may happend'', I did some big crap.
First of all, in the phone's settings, I did a factory reset. I made a backup of all my files and data before (not in the CWM, but in the phone's tools). After the reset, the phone booted in an old-fashioned android version.There wasn't any keys to go home/back on the bottom of the screen. Because of this, the phone was almost unusable because I had to reboot the phone to leave an app and select another.
I raged and booted to the CWM by pressing the + button and the lock phone button.
I went to Mounts and Storage Menu and did all of this
format /boot
format /system
format /cache
format /data
format /storage/sdcard1
format /data and/data/media (/sdcard)
I did the wipe data/factory reset
I also went to Backup and Restore
I made the
delete from /sdcard
delete from /storage/sdcard1
free unused backup data
choose default backup format
I went in Advenced Menu aswell
I chose
wipe dalvik cache
I think that's it. No wonder why it doesn't work well now LOL...
Later on, I thought I may try to fix it. After reading some stuff, I downloaded a package from the official Huawei website, I think it was with the 5.5.3 EMUI or some sort of. After mounting USB storage to my pc, I put the zip file, wich was not really a zip file because it had a .tar format, it would show me by going to the install zip: Impossible to read format lol. Then I found a package of a rom wich was zip. After putting on the phones storage this zip it would start to install and show installing update and then show me: Installation aborted. Then i gave up and decided to ask some help from pros.
So..... What should I do?
I know my explications are weird, but this is the only way I can describe my problem.
Thank you for reading this long story, and even a bigger one if you help me.
hi,
i don't know cwm recovery.
I suggest you install TWRP recovery , then flash the rom image found here.
(i have installed B571 by this way)
http://forum.xda-developers.com/mat...overy-twrp-2-8-7-0-mate7-android-5-1-t3156779
http://forum.xda-developers.com/mate-7/general/huawei-mt7-l09-l10-stock-firmware-ota-t3275784
regards
tar is another compression format like rar and zip.
If you have the software installed to use terminal commands (ADB) to connect to your phone when it is in so called 'recovery'or 'fastboot' mode you should flash the TWRP recovery image for Mate 7 posted somewhere on the forum for better compatibility. It is basically similar as CWM (clockworkmod) but newer.
In another post here there is a summary of firmwares and in that list is also the 'Twrp Backup' of a fresh installation. That should be downloaded, unpacked and placed in the folder where other/previous backups are stored. To find out where that it is you can create a backup yourself in recovery but only select the 'boot' so the backup is done immediately (and useless) and you can browse your phone to see where to put the downloaded recovery backup.
Next is restoring that backup within recovery.
Personally I would also do a factory reset after that but you should be ready to go after that.

Categories

Resources