[TUT]How to Create flashable zip from nandroid backup - HTC Desire C

Hi there guys, today i shall show you how to make a flashable zip from your cwm backup!
REQUIREMENTS:
Windows OS
The Nandroid Backup
A tool(not mine, attatched below)
Brain
Now, copy all files from your backup to the folder where you extracted the tool.
Now it should look somewhat like this:
Code:
.android_secure.vfat.tar.
nandroid.md5
boot.img
cache.yaffs2.img
data.yaffs2.img
recovery.img
system.img
bkp2zip.bat
unyaffs.exe
cygwin1.dll
Run the "bkp2zip.bat".
Now there should be 3 files:System,Data and boot.img
now zip those three files.........And you should have a flashable update.zip!
TESTED METHOD!

Please note; to prevent confusion this will only work on CWM based backups not TWRP ones.

russell664 said:
Please note; to prevent confusion this will only work on CWM based backups not TWRP ones.
Click to expand...
Click to collapse
I have specified cwm backup bro, but still thanks. This will help avoid any further confusion

Segmentation Fault
<CyberAnarchy> said:
Hi there guys, today i shall show you how to make a flashable zip from your cwm backup!
REQUIREMENTS:
Windows OS
The Nandroid Backup
A tool(not mine, attatched below)
Brain
Now, copy all files from your backup to the folder where you extracted the tool.
Now it should look somewhat like this:
Code:
.android_secure.vfat.tar.
nandroid.md5
boot.img
cache.yaffs2.img
data.yaffs2.img
recovery.img
system.img
bkp2zip.bat
unyaffs.exe
cygwin1.dll
Run the "bkp2zip.bat".
Now there should be 3 files:System,Data and boot.img
now zip those three files.........And you should have a flashable update.zip!
TESTED METHOD!
Click to expand...
Click to collapse
Hello CyberAnarchy,
When i tried to zip that system.img using unyaffs i got a error "Segmentation Fault (Memory Dump made)"
How can i fix this, i use the latest android 4.4 zip package downloaded via sdk manager.
Greetings Niels Koomans.

Flashable zip???
Can u make us a tutorial on making an apk flashing zip plssssssss:laugh:

<CyberAnarchy> said:
Hi there guys, today i shall show you how to make a flashable zip from your cwm backup!
now zip those three files.........And you should have a flashable update.zip!
TESTED METHOD!
Click to expand...
Click to collapse
no need to sign this zip file? just zip it normally? tnx...

Related

[Q] Installing custom roms

Hi,
I'm trying to install custom roms on my Milestone and have hit a brick wall.
I've looked at and followed the Instructions threads (rooted & did a nandroid backup) and they refer to having to apply an "update.zip" file in Open Recovery to actually get the cutom rom. Problem is that I've downloaded both CM7 and Miui rom files but when I unzip them they don't have an update.zip file in them.
They just have the following
META-INF (folder)
system (folder)
boot.img (img file)
Question is... How do I flash these files to apply the custom rom?
(Can't ask questions in the development part of the forum as I don't have 10 posts yet)
Thanks
anyone?
bump...
iLurk said:
anyone?
bump...
Click to expand...
Click to collapse
well, just know it from xrecovery (come from the x10 mini pro) and AFAIK the zip you extracted already was the update.zip - rename downloaded zipfile to update.zip, then flash it
k thanks dude.
rattenkot said:
well, just know it from xrecovery (come from the x170 mini pro) and AFAIK the zip you extracted already was the update.zip - rename downloaded zipfile to update.zip, then flash it
Click to expand...
Click to collapse
the file does not need to be called update.zip. it is a generic term for the format of "update"
simply put the CM7 zip file in the openrecovery\updates folder subfolder of your sdcard.
you should then be able to see the file in the update menu of your recovery.

[Q]I9001 Battery mod

Hello everyone,
Can someone please inform and post a thread link of a battery mod that works on the i9001? By battery mod I mean small zip file that is installed from recovery and changes the stock battery meter
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
quest221 said:
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
Click to expand...
Click to collapse
If you use manveru0's kernal and recovery you can now flash the update files as they come from the kitchen
quest221 said:
You can make it yourselt.
1. Use Root Explorer to get your framework-res.apk file
2. Go to http://uot.dakra.lt/ to customize it yourselt.
3. Go to http://forum.xda-developers.com/showthread.php?t=1253707 to download the Root-i9001-Signed.zip
4. Put the modified framework-res.apk in the above zip file and delete the unneeded files.
5. Update the updater-script file, resign the zip file.
6. Flash the zip file in recovery.
Do you like this one?
Click to expand...
Click to collapse
Hmm... yes, nice, but I'm not in to designing things. I was looking for something that has been already created
what's the version of your Rom?
quest221 said:
what's the version of your Rom?
Click to expand...
Click to collapse
Firmware version : 2.3.4
baseband version I9001XXKP4
Kernel Version : [email protected] #7
Build Number : GINGERBREAD.XXKP4
I use Go launcher (from my opinion it's the best), if you think otherwise please post the better launcher, I am opened to experiment others.
Many thanks,
Ciprian
I don't have a I9001XXKP4 Rom in my hard drive. If you can send your your framework-res.apk, I can make one for you.
quest221 said:
I don't have a I9001XXKP4 Rom in my hard drive. If you can send your your framework-res.apk, I can make one for you.
Click to expand...
Click to collapse
I would like something like http://img225.imageshack.us/img225/9943/smoothbatt.png if it is possible.
I have attached framework-res.apk
opps a
hey guys!
just used this. twice great kitchen, really revamped some of the more boring icons on stock roms. thanks for the tip!!
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
quest221 said:
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
Click to expand...
Click to collapse
Thanks, exactly what I needed. I flashed it and all is ok
quest221 said:
1framework-res_I9001XXKP4_signed.zip is the file that I updated the updater-script so you can flash it in the in-build recovery.
1framework-res_I9001XXKP4_original_signed.zip is your original file. If there are any issues, you can flash it back in the in-build recovery.
How to:
Copy the zip file to the internal SD card, not the external one, go to recovery, flash it.
Click to expand...
Click to collapse
can i use it on 2.3.6 rom?
nope because you will end up in a bootloop by flashing this
its only for XXKP4
urm, Ive tried to do as you told in post number 2(by cooking it according to my own preference)
but my problem starts from step number 5
5. Update the updater-script file, resign the zip file.
Click to expand...
Click to collapse
I already received the cooked file
but I dont know how to change the update script and end up failing to update using the zip file.
can you please help me?
or link me to a place that really can help me to learn better on changing the update script.
try this one, I updated the updater-script, you can compare it with the one from kitchen.
PS: Forgot to update the update-binary file, now try the new one. It should work.
Thanks!!!! But I got an error that states
E:error in /tmp/sideload/package.zip
(status 2)
I wonder whats wrong.
looked in a thread
http://forum.xda-developers.com/showthread.php?t=1194245&page=3
and from what I understand it seems to be a problem with the update binary. But Im just an end user and this is too much for me.
anyway maybe Ill try to flash the cranium ROM and try to cook again a new one and use your update script.
cheers!!
Hi,
Is there any posibility to change framework-res.apk file without CWM? I don't want to instal CWM becouse of it has a problem with front side cam and I need this cam. It's can't be overwritten when the phone works. Maybe some adb and push command is possible.
Could you help me by describing the whole procedure? Sorry for my English.
@quest221
Can you maybe make one for Android 2.3.5 like the screenshot @ page 1?
I have baseband I9001XXKPF, Build XXKPG
I update the zip file with the new update-binary file.
Is there any posibility to change framework-res.apk file without CWM?
Click to expand...
Click to collapse
Yes, I just use the recovery from Samsung, not the third-party.
Check the post #2, that's the steps. Also replace the update-binary file with the one in my zip file.
Can you maybe make one for Android 2.3.5 like the screenshot @ page 1?
Click to expand...
Click to collapse
Upload your framework-res.apk file.

[Q] Trying to restore stock firmware, aborted each time

Hey All, have google and googled for the past week but nothing specific to this issue I'm having.
I want to restore my stock firmware so I can get OTA updates! I didn't make any sort of backup when I began playing with different roms. I have htc_039 unbranded aus htc one. Bootloader has been unlocked with S-on and TWRP installed.
Downloaded Deevans/bugsys nandroid backup that matched my phone details (http://forum.xda-developers.com/showpost.php?p=41368105&postcount=375&nocache=1&z=2030115523399023) but there isn't any sort of instructions on installing these.
When i have tried to flash the rom I get "installation aborted" and when playing with fastboot it has given me messages that it cannot find certain .txt files (something like android.txt and a few other ones.
Could someone please tell me what im doing wrong or list the instructions to install this? I don't know if I have to lock the phone again, restore the recovery file first, no idea!!! Or is there anyway to turn the Android Revolution 12 image to get OTA (i dont think so)?
If you need any further phone info I will post.
Can anyone help with this?
When I try to flash the file in TWRP it starts and stops at "Updating partition Details".
What have i not setup right? Have been using these resources:
http://www.androidpolice.com/2010/0...nandroid-backup-and-clockworkmod-rom-manager/
http://www.addictivetips.com/mobile/how-to-perform-and-restore-a-nandroid-backup/
http://www.redmondpie.com/how-to-ba...android-using-clockworkmod-recovery-tutorial/
http://www.redmondpie.com/how-to-in...recovery-on-your-android-smartphone-tutorial/
http://androidteen.com/how-to-restore-htc-one-to-stock-firmware/#Nandroid
???
Hi,
I'm new to the htc one so not sure here but from what I understand and anyone please correct me if wrong - but if it's Deevans nandroid 1.29.980.2 (Australia unbranded) it's a CWM backup and I don't think they work in TWRP.
So think you would have to flash CWM, then flash "restore" nandroid from CWM or find a TWRP nandroid.
Also think you need s-off before you do ota as no way to gain s-off with revone on updated hboot 1.54 yet.
Hope this helps.
pjc21 said:
Hi,
I'm new to the htc one so not sure here but from what I understand and anyone please correct me if wrong - but if it's Deevans nandroid 1.29.980.2 (Australia unbranded) it's a CWM backup and I don't think they work in TWRP.
So think you would have to flash CWM, then flash nandroid from CWM or find a TWRP nandroid.
Also think you need s-off before you do ota as no way to gain s-off with revone on updated hboot 1.54 yet.
Hope this helps.
Click to expand...
Click to collapse
Thank for the reply
I have tried to install this with CWM which gave me those first missing ".txt" files. I will give it another go with CMW and post the results.
I will also S-OFF before doing the above.
Phone is now S-off and put CWM as the loader. Tried the zip file again and says:
Finding update package
Opening update package
Installing update...
Installation aborted.
I have also downloaded the file twice to confirm its not corrupted and it opens through winrar with no problems.
Any other suggestions?
jgt777 said:
Phone is now S-off and put CWM as the loader. Tried the zip file again and says:
Finding update package
Opening update package
Installing update...
Installation aborted.
I have also downloaded the file twice to confirm its not corrupted and it opens through winrar with no problems.
Any other suggestions?
Click to expand...
Click to collapse
I would try restore it like a backup, so unzip and put files in your CWM backup folder.
Not sure how CWM backup folder looks but in TWRP it's like /sdcard/TWRP/BACKUPS/... or /data/media/0/TWRP/BACKUPS/...
So I would try unzipping and copy files (boot, data, recovery, system) to /sdcard/CWM/BACKUPS/folder/put files in here - then boot to recovery and try "restore" option and browse to backup folder. You could probably copy the files to any folder on the sdcard and restore from recovery not sure.
pjc21 said:
I would try restore it like a backup, so unzip and put files in your CWM backup folder.
Not sure how CWM backup folder looks but in TWRP it's like /sdcard/TWRP/BACKUPS/... or /data/media/0/TWRP/BACKUPS/...
So I would try unzipping and copy files (boot, data, recovery, system) to /sdcard/CWM/BACKUPS/folder/put files in here - then boot to recovery and try "restore" option and browse to backup folder. You could probably copy the files to any folder on the sdcard and restore from recovery not sure.
Click to expand...
Click to collapse
Thanks for your suggestion and that was going to be my next question. The file I mentioned in the first post is x.xxx.xxx.zip (x as the numbers) and inside that zip is a folder with the same name x.xxx.xxx and inside that folder are all the files.
I tried putting the folder only in CMW but wont detect it, tried it with the .zip file and fails. Have now just put all the files into the folder and tried again with same failure.
There is a very long error in the recovery.txt file it made, don't know if its any use but the first line that pops out is:
Starting TWRP 2.6.0.1 on Fri Aug 2 06:23:49 2013
BOARD_HAS_NO_REAL_SDCARD
I put the file into this link if you know of anything, makes little sense to me. http://pastebin.com/Tvp2Qp2X
jgt777 said:
Thanks for your suggestion and that was going to be my next question. The file I mentioned in the first post is x.xxx.xxx.zip (x as the numbers) and inside that zip is a folder with the same name x.xxx.xxx and inside that folder are all the files.
I tried putting the folder only in CMW but wont detect it, tried it with the .zip file and fails. Have now just put all the files into the folder and tried again with same failure.
There is a very long error in the recovery.txt file it made, don't know if its any use but the first line that pops out is:
Starting TWRP 2.6.0.1 on Fri Aug 2 06:23:49 2013
BOARD_HAS_NO_REAL_SDCARD
I put the file into this link if you know of anything, makes little sense to me. http://pastebin.com/Tvp2Qp2X
Click to expand...
Click to collapse
Are you using TWRP recovery? or CWM recovery?
pjc21 said:
Are you using TWRP recovery? or CWM recovery?
Click to expand...
Click to collapse
I have now tried both TWRP and CWM and fails, also have installed ROM manager and another one I cant recall from play store. Also booted into recovery and went to the 'restore' option from the menu but cant find any directories..
I dont know if this has anything to do with it but noticed in the contents of the file:
ARCHIVE: cache.ext4.tar
ARCHIVE: data.ext4.tar
ARCHIVE: system.ext4.tar
boot.img
cache.ext4.tar.a
data.ext4.tar.a
nandroid.md5
recovery.img
recovery.log
system.ext4.tar.a
system..ext4.tar.b
Not to get ahead of myself but HTC ONE is ext2or 3 by default, its not something simple as having to change it to ext4? Its just something that stood out.
Just done google search on CWM backup location and seems to be /sdcard/clockworkmod/backup - so you could try copy the zip and/or files there and try restore from CWM recovery and see if that works.
pjc21 said:
Just done google search on CWM backup location and seems to be /sdcard/clockworkmod/backup - so you could try copy the zip and/or files there and try restore from CWM recovery and see if that works.
Click to expand...
Click to collapse
Interesting that there was no 'backup' folder inside that folder. Have created it and putting the files and zip in there now.
Was also googl'n and found this article:
http://miuiandroid.com/community/th...d-restore-error-while-restoring-sd-ext.15611/
Someone mentioned to now open the zip file when it downloads. I'll try your suggestions and this and let you know what happens tomorrow.
Thanks again
Morning,
Have downloaded the .zip file again twice and put it onto the SD and clockwork Mod backup folder and it has aborted again.
Any ideas on what to try from here?

[Q] How to use other people's cwm backup file???

Hi guys,
does anyone know how to use downloaded CWM backup file?
download as the "M7 CWM Nandroid Backup CID OPTUS001 1.29.980.x.rar"
but what should i do with it?
Extract it or copy it direct to sdcard/clockworkmod/backup?
Plz help
smallsen said:
Hi guys,
does anyone know how to use downloaded CWM backup file?
download as the "M7 CWM Nandroid Backup CID OPTUS001 1.29.980.x.rar"
but what should i do with it?
Extract it or copy it direct to sdcard/clockworkmod/backup?
Plz help
Click to expand...
Click to collapse
I haven't used CWM in ages, but up to version 6.0.4.6, the backup location used to be /data/media/clockworkmod/backup/
not sure if it was ever updated to /data/media/0/...
extract the .rar file on your PC, it will give you a folder called similar to "2013-mm-dd.hh.mm.ss" place it in your adb folder then push it:
adb push 2013-mm-dd.hh.mm.ss /data/media/clockworkmod/backup/2013-mm-dd.hh.mm.ss <- replace mm, dd etc. to what the download gave you
in recovery select RESTORE, it should show you the above backup, so select "2013-mm-dd.hh.mm.ss" and restore it.
Thanks for you reply nkk71,
I've exact the file but got a folder called 2013-04-30.10.59.31 without SS.
Can I add the ss as the file type and push it into backup folder on the phone?
smallsen said:
Thanks for you reply nkk71,
I've exact the file but got a folder called 2013-04-30.10.59.31 without SS.
Can I add the ss as the file type and push it into backup folder on the phone?
Click to expand...
Click to collapse
i dont think the name of the folder matters, just push it to the right location on your, phone.
Thanks Guys, problem solved!!!!!!!
Thanks so much

[Q&A] [Stock ROM] Easy Stock Reset | Many Versions | Stock ROM + Recovery + Radio In

[Q&A] [Stock ROM] Easy Stock Reset | Many Versions | Stock ROM + Recovery + Radio In
Q&A for [Stock ROM] Easy Stock Reset | Many Versions | Stock ROM + Recovery + Radio Included
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [Stock ROM] Easy Stock Reset | Many Versions | Stock ROM + Recovery + Radio Included. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Can' t Flash
Every time I try to flash the Optus AU reset onto my VODAPHONE AU M7, it either gets stuck at 10% if i do it with a full wipe, or 0% if I don't. Also, it never passes and MD5 verification, after multiple separate downloads.
Anyone know what to do?
Thanks.
TWRP back up of stock rom and stock recovery OTA 6.11.980.12
Crushalot
I have a TWRP backup of stock rom from OTA 6.11.980.12 (Optus Australia) if you are interested I can pm the link to you along with the stock recovery that came with that OTA, for you to make (when you have time ect) an aroma reset tool for Optus Aussie users that is current and only just pre Android L release for sense roms.
Let me know if that would help
Australian Optus Firmware & Nand of stock rom Rom
Crushalot
In case the mood takes you, and you one day feel like making an easy aroma reset for Optus Aussie users that will reset HTC m7-ul PNO7400 devices back to a (only just) pre Android L update, here is a TWRP back up of stock rom (ota 6.11.980.12) Optus Australia as, well as the Optus Aussie OTA 6.11.980.12 (contains stock recovery) 2x OTA links originally posted by deevan
TWRP Nand of stock rom Android 4.4.3, from ota 6.11.980.12 (Australia Optus)
mega.co.nz/#!BhBXBaBT!Fjsg4FNe3AzUCR-aTdiNOwM71zx6-zzKkVbuY-rZqWk
GREAT work BTW! I used your tool to successfully return my device to stock (for the purposes of updating my firmware) worked like a charm!!
firmware.6.11.980.10.zip 43.1 MB (by deeevan)
mega.co.nz/#!QlIjzZoA!R18LEGCFJ85YV91rgiViohqw-QCzXO4fVEVm9h4ab68
firmware.6.11.980.12.zip 19.1 MB (By deeevan)
mega.co.nz/#!N4oS3aSZ!z2aM04WPtN2p1d9cWnmwkBi6UY_sNCbDB0ZBDAe 2RMY
Im still under 10 posts so I cant post full links.
This may help ppl go back to stock in time for the Android L OTA push!
GREAT work BTW! I used your tool to successfully return my device to stock (for the purposes of updating my firmware) worked like a charm!!
Joeisgood99 said:
Crushalot
I have a TWRP backup of stock rom from OTA 6.11.980.12 (Optus Australia) if you are interested I can pm the link to you along with the stock recovery that came with that OTA, for you to make (when you have time ect) an aroma reset tool for Optus Aussie users that is current and only just pre Android L release for sense roms.
Let me know if that would help
Click to expand...
Click to collapse
You can make that your self
You want to I can help you
It's easy
1st time with help of @crushalot I made 4 reset Rom for India version
Make TWRP backup of Rom which you want to make stock Rom reset zip
Install ubuntu open ubuntu
Extract backup file in ubuntu
You need system folder + data/preload folder + stock Recovery + boot.img + radio.img (all files from same version)
Extract any of old reset Rom zip
Replace files and folders from New one
Now edit aroma script in meta-inf folderwith notepad +
Edit details Rom version radio version etc
Zip all files and folders
It's ready
yatindroid said:
Install ubuntu open ubuntu
Extract backup file in ubuntu
Click to expand...
Click to collapse
If you want to use windows instead of linux, you can extract twrp backup using cygwin. All you need to do is to rename your backup files adding .tar extension then extract them using cygwin
Code:
tar -xvf your_file_name.ext4.win.tar
eg. If you want to extract system.ext4.win000, system.ext4.win001 and data.ext4.win, rename them system.ext4.win000.tar, system.ext4.win001.tar and data.ext4.win.tar. Move the system backup files to C:\Cygwin\Home\UserName\backup\System and data backup to C:\Cygwin\Home\UserName\backup\Data
open a cygwin command prompt and change directory to the correct location:
Code:
cd C:\Cygwin\Home\UserName\backup\System
then in cygwin command prompt:
Code:
tar -xvf system.ext4.win000.tar
tar -xvf system.ext4.win001.tar
Code:
cd C:\Cygwin\Home\UserName\backup\Data
tar -xvf data.ext4.win.tar
Then you have 2 folders, One System folder and one Data folder you can use to make you reset rom.
alray said:
If you want to use windows instead of linux, you can extract twrp backup using cygwin. All you need to do is to rename your backup files adding .tar extension then extract them using cygwin
Code:
tar -xvf your_file_name.ext4.win.tar
eg. If you want to extract system.ext4.win000, system.ext4.win001 and data.ext4.win, rename them system.ext4.win000.tar, system.ext4.win001.tar and data.ext4.win.tar. Move the system backup files to C:\Cygwin\Home\UserName\backup\System and data backup to C:\Cygwin\Home\UserName\backup\Data
open a cygwin command prompt and change directory to the correct location:
Code:
cd C:\Cygwin\Home\UserName\backup\System
then in cygwin command prompt:
Code:
tar system.ext4.win000.tar
tar system.ext4.win000.tar
Code:
cd C:\Cygwin\Home\UserName\backup\Data
tar data.ext4.win.tar
Then you have 2 folders, One System folder and one Data folder you can use to make you reset rom.
Click to expand...
Click to collapse
Yes sir, that's exactly the method i use :good:
Thank you So MUCH!
I'll try that as soon as I get a chance, and report back
Cheers for the help. ?
yatindroid said:
You can make that your self
You want to I can help you
It's easy
1st time with help of @crushalot I made 4 reset Rom for India version
Make TWRP backup of Rom which you want to make stock Rom reset zip
Install ubuntu open ubuntu
Extract backup file in ubuntu
You need system folder + data/preload folder + stock Recovery + boot.img + radio.img (all files from same version)
Extract any of old reset Rom zip
Replace files and folders from New one
Now edit aroma script in meta-inf folderwith notepad +
Edit details Rom version radio version etc
Zip all files and folders
It's ready
Click to expand...
Click to collapse
yatindroid said:
You can make that your self
You want to I can help you
It's easy
1st time with help of @crushalot I made 4 reset Rom for India version
Make TWRP backup of Rom which you want to make stock Rom reset zip
Install ubuntu open ubuntu
Extract backup file in ubuntu
You need system folder + data/preload folder + stock Recovery + boot.img + radio.img (all files from same version)
Extract any of old reset Rom zip
Replace files and folders from New one
Now edit aroma script in meta-inf folderwith notepad +
Edit details Rom version radio version etc
Zip all files and folders
It's ready
Click to expand...
Click to collapse
alray said:
If you want to use windows instead of linux, you can extract twrp backup using cygwin. All you need to do is to rename your backup files adding .tar extension then extract them using cygwin
Code:
tar -xvf your_file_name.ext4.win.tar
eg. If you want to extract system.ext4.win000, system.ext4.win001 and data.ext4.win, rename them system.ext4.win000.tar, system.ext4.win001.tar and data.ext4.win.tar. Move the system backup files to C:\Cygwin\Home\UserName\backup\System and data backup to C:\Cygwin\Home\UserName\backup\Data
open a cygwin command prompt and change directory to the correct location:
Code:
cd C:\Cygwin\Home\UserName\backup\System
then in cygwin command prompt:
Code:
tar system.ext4.win000.tar
tar system.ext4.win000.tar
Code:
cd C:\Cygwin\Home\UserName\backup\Data
tar data.ext4.win.tar
Then you have 2 folders, One System folder and one Data folder you can use to make you reset rom.
Click to expand...
Click to collapse
Thanks Mate.
I will try on Ubuntu first as I use that about 90%of the time. I'll reply with results hopefully tomorrow! Excited to make my own easy reset with aroma.
Had to unlock bootloader via HTC token when my phone is S-Off...
My HTC M7 UL (PID)PNO7400, was rooted and later S-Off with fire water.
I had custom rom and recovery ect. After 6 months of this I wanted to update my firmware but for various reasons didn't want to do it via RUU so I found and used crushalots Easy Recovery Reset Tool.
This worked perfectly.
During the aroma install I chose NOT to install any firmware, just stock recovery and rom.
I also chose not to keep root as I believed that I may not be able to install OTA updates with rooted stock. (right or wrong?)
Immediately after everything was installed I was running stock 2.24.980.2 rom and recovery on 4.20.980.x firmware.
After relocking my bootloader via fastboot, there was no issues, my phone just downloaded several OTA in a row, installed each without a hitch, and about an hour and a half later I had a stock phone with the latest 6.11.980.12 firmware and software, with S-Off.
(BTW re locking the bootloader did not delete any of my data.)
As soon as this was finished I wanted to re install my beloved eragon rom, re gain root, and get my phone back the way it was pre the firmware update.
Having S-Off I thought this would be easy (fastboot flash recovery path/to/custom/recovery.img)
Didn't work.
Unfortunately I didn't keep a copy of the error message I got in terminal, however, I didnt have write permissions on that particular partition. (apologies to anyone trying to help as I know details are important here)
This stumped me, as I have rooted 3 other (older) HTC desire by getting S-Off then flashing custom recovery.img, (These phones were running 1.44 version of fastboot as opposed to my M7s 1.57) I tried to un lock the bootloader via fastboot commands just in case that worked post S-Off ie (fastboot oem unlock) but that didn't work. Firewater doesn't install its own bootloader so locking and unlocking via the s-off tool were not an option either.
I had to re apply to HTC for an unlock token and flash that before I could flash a custom recovery. I plan go back to stock again for the purposes of taking carrier OTA when my carrier starts updating with Android L, so would like to know if this is normal, if not how I possibly stuffed up.
Can any one explain why I had to unlock bootloader via HTC site when my phone is S-Off?
I'm interested in peoples thoughts/knowledge
Many thanks
yatindroid said:
You can make that your self
You want to I can help you
It's easy
1st time with help of @crushalot I made 4 reset Rom for India version
Make TWRP backup of Rom which you want to make stock Rom reset zip
Install ubuntu open ubuntu
Extract backup file in ubuntu
You need system folder + data/preload folder + stock Recovery + boot.img + radio.img (all files from same version)
Extract any of old reset Rom zip
Replace files and folders from New one
Now edit aroma script in meta-inf folderwith notepad +
Edit details Rom version radio version etc
Zip all files and folders
It's ready
Click to expand...
Click to collapse
Hi Mate.
Thanks again. A little help needed.
When extracting the .rar from the TWRP recovery I made, using terminal command line [7z x /path/to/some.rar] in ubuntu i get 4300 of this type of error
can not open output file system/bin/mkswap
can not open output file system/bin/mkswap
can not open output file system/bin/readlink...ect
Basically at the end I get a system folder with about 3 items in it, as 7zip .rar tool cant decompress most of the files from the .rar
Right clicking on system.ext4.win.000 and system.ext4.win001 and selecting 'Extract files here' or 'open archive' results in error "could not open 'xx'. Archive type not supported."
Are you able to give me more detailed instructions on how to extract/unpack the system.ext4.win.000 and system.ext4.win001
Do I need to change the file name before extracting ?
Extracting the files from crushalots tool and extracting the files from the new TWRP then replacing relevant files and changing the manifest to reflect said change in Easy Recovery tool seems quite simple, however Im having trouble just extracting the files....
Im missing something obvious.
Thanks.
Joeisgood99 said:
Hi Mate.
Thanks again. A little help needed.
When extracting the .rar from the TWRP recovery I made, using terminal command line [7z x /path/to/some.rar] in ubuntu i get 4300 of this type of error
can not open output file system/bin/mkswap
can not open output file system/bin/mkswap
can not open output file system/bin/readlink...ect
Basically at the end I get a system folder with about 3 items in it, as 7zip .rar tool cant decompress most of the files from the .rar
Right clicking on system.ext4.win.000 and system.ext4.win001 and selecting 'Extract files here' or 'open archive' results in error "could not open 'xx'. Archive type not supported."
Are you able to give me more detailed instructions on how to extract/unpack the system.ext4.win.000 and system.ext4.win001
Do I need to change the file name before extracting ?
Extracting the files from crushalots tool and extracting the files from the new TWRP then replacing relevant files and changing the manifest to reflect said change in Easy Recovery tool seems quite simple, however Im having trouble just extracting the files....
Im missing something obvious.
Thanks.
Click to expand...
Click to collapse
I simply extract system.ext4.win000 file in Ubuntu nothing more needed not a single error
its tar not rar !
Whoops! . Tar.
Thanks again I'll keep trying.
Did crushalot send you any written instructions? Are they in a thread somewhere, or just basically what you already posted?
Thanks for your time.
Joeisgood99 said:
Whoops! . Tar.
Thanks again I'll keep trying.
Did crushalot send you any written instructions? Are they in a thread somewhere, or just basically what you already posted?
Thanks for your time.
Click to expand...
Click to collapse
I asked some questions via PM he just replied that
ask anything when you stuck
yatindroid said:
I asked some questions via PM he just replied that
ask anything when you stuck
Click to expand...
Click to collapse
For anyone else following this thread atm I solved the problem by re naming the system file extension in TWRP recovery from . win to . tar. In some TWRP back ups there were 2 system folders. A system.4ext000.win and system. 4ext001.win I just merged them during the extraction process.
Also there was no Data/preloaded folder in crushalots reset tool or in any twrp backup I have made.
Haven't tested the modified reset tool yet but will let u all know if I did it correctly!
Joeisgood99 said:
For anyone else following this thread atm I solved the problem by re naming the system file extension in TWRP recovery from . win to . tar.
Click to expand...
Click to collapse
Exactly, see post #6
In some TWRP back ups there were 2 system folders. A system.4ext000.win and system. 4ext001.win I just merged them during the extraction process.
Click to expand...
Click to collapse
Exactly, there are 2 system archive because of the file size restriction. Merging them after extracting the files is correct.
Also there was no Data/preloaded folder in crushalots reset tool or in any twrp backup I have made.
Click to expand...
Click to collapse
Without /data/preload, your reset rom will not be ota update ready. You don't have /data/preload in your backup probably because you have unlocked the bootloader and did the nandroid backup after (unlocking bootloader erase /data/preload)
Joeisgood99 said:
For anyone else following this thread atm I solved the problem by re naming the system file extension in TWRP recovery from . win to . tar. In some TWRP back ups there were 2 system folders. A system.4ext000.win and system. 4ext001.win I just merged them during the extraction process.
Also there was no Data/preloaded folder in crushalots reset tool or in any twrp backup I have made.
Haven't tested the modified reset tool yet but will let u all know if I did it correctly!
Click to expand...
Click to collapse
In Ubuntu install 7zip software
don't rename anything just open with archive manager
system.4ext000.win open this
crushalot tool not have data/preload because most of tool was 3.xx version sense 5.5 that time preload files included in system folder
yatindroid said:
In Ubuntu install 7zip software
don't rename anything just open with archive manager
system.4ext000.win open this
crushalot tool not have data/preload because most of tool was 3.xx version sense 5.5 that time preload files included in system folder
Click to expand...
Click to collapse
Thanks again yatindroid
I already have 7zip installed, However there is no option in archive manager to extract anything with it. After cd to file location I can view the . win file in terminal using [7z l file. win] but the [7z x file.win - d folder/i-want/extracted/to] command outputs the same error as stated in above post.
Q1) That aside the last step in this whole process is to zip it all up again as a . zip, so I'll be changing the file extension anyway, so does it matter if I change the file extension from . win to .tar for the purposes of extracting? If so ease explain why.
Q2) the ONLY place I have found a data/preload folder is inside a firmware .zip extracted from an OTA. It's definitely not in any TWRP back up. Did you leave that detail out of your initial instructions? Can you please tell me where to get the /preload folder from if not from the same OTA the recovery.img comes from.
Q3) do I put the data/preload folder inside the system folder of the reset tool or have it separate, along with radio.img, boot. img, recovery.img and aroma files ect.
Thanks for your time.
---------- Post added at 09:46 AM ---------- Previous post was at 09:33 AM ----------
alray said:
Exactly, see post #6
Exactly, there are 2 system archive because of the file size restriction. Merging them after extracting the files is correct.
Without /data/preload, your reset rom will not be ota update ready. You don't have /data/preload in your backup probably because you have unlocked the bootloader and did the nandroid backup after (unlocking bootloader erase /data/preload)
Click to expand...
Click to collapse
Thanks array.
I replied to the other post before yours came up. Forgive me if I ask similar questions.
I'm assuming I just copy the /preload folder from the same OTA I get the radio and recovery. img from.
Do I put the /preload folder inside any other folder within reset tool for a 6.xx version or have it beside the system folder and .img files.
Regards and Thanks.
Joeisgood99 said:
I'm assuming I just copy the /preload folder from the same OTA I get the radio and recovery. img from.
Click to expand...
Click to collapse
It should work. The data/preload folder from an ota zip usually (afaik this is true for the dev edition version) include all /data/preload files. If its the same thing for your version then you should be fine. In /data/preload you should have these files:
YOUR_CID.XML
All the weather animations (mp4 files)
some .png files for photo editing
htc preloaded app like flashlight.apk and calculator.apk. You might have more app depending your version.
Do I put the /preload folder inside any other folder within reset tool for a 6.xx version or have it beside the system folder and .img files.
Regards and Thanks.
Click to expand...
Click to collapse
the folder must be in your_reset_rom.zip/data/preload
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
alray said:
It should work. The data/preload folder from an ota zip usually (afaik this is true for the dev edition version) include all /data/preload files. If its the same thing for your version then you should be fine. In /data/preload you should have these files:
YOUR_CID.XML
All the weather animations (mp4 files)
some .png files for photo editing
htc preloaded app like flashlight.apk and calculator.apk. You might have more app depending your version.
the folder must be in your_reset_rom.zip/data/preload
Click to expand...
Click to collapse
Thanks for your excellent and timely reply.
More Qs.
I now have all folders as per your above post. I have taken data/preload, boot.img radio.img and recovery.img straight from OTA. 6.11.980.10
However my stock nand was of 6.11.980.12.
Q1) So do you know if having a system folder derived from a slightly newer version work? As far as I know the .12 OTA was a patch for the 'no voice during call' bug. OTA. 6.11.xxx. 12 did not contain a radio.img AND I can't get a data/preload folder for that ota as I can only find a 6.11.xxx.12 firmware. Not the whole OTA, which is why I reverted to making a . 980.10 reset tool despite having a slightly newer NAND.
Q2) I have edited the updater script in META-INF to reflect new radio and Android version ect. Do I need to update the MANIFEST. MF?
Hope that was clear enough to understand.
A big THANKS for your Help and time!

Categories

Resources