[Automated Downgrade][Lollipop GPe to KitKat][batch file] - Moto G General

Hi
These is a Windows batch file applications which can automatically downgrade your
1) Moto G XT1033 on Lollipop GPe to KitKat Asia Retail version, or
2) Moto G XT1032 on Lollipop GPe to KitKat GPe
Downgrade is possible and i have successfully done it.
There is a slight bug that every time you boot a line appears flickering the screen for some time and i don't take any responsibility if you end up bricking your phone
Information
The contents of both the firmwares are renamed according to their version and the commands are also modified to be compatible with the renamed components.
The components are renamed so that cmd can differentiate between both the firmwares.
Also 'motoboot.img" and 'gpt.bin' are removed from both the firmwares since they cause error during flashing and are not required.
So you can either download the modified firmwares from below or if you already have the original firmwares downloaded then make the following changes :-
1) Delete 'motoboot.img' and 'gpt.bin' from both the firmwares.
2) For GPe firmware rename the contents by adding gpe before each file. Eg. NON-HLOS.bin to gpeNON-HLOS.bin
For Asia Retail firmware rename by adding 33 before each file. Eg NON-HLOS.bin to 33NON-HLOS.bin
Instructions :-
1) Download and install "Minimal ADB and Fastboot" in a separate folder.
2) Download the batch file and put it in that folder.
3) Now if you want to downgrade just to GPe 4.4.4 then just download the GPe 4.4.4 zip file and extract it to the same folder. If you want to downgrade to Asia 4.4.4 then download both GPE 4.4.4 and Asia 4.4.4 zip files and extract it to that folder.
4) Connect your phone to the computer and ensure USB Debugging is enabled
5) Then just execute the batch file.
Downloads
Batch file - https://drive.google.com/file/d/0BzJVjgEmc7G_Y0NCVFJyVUE4cDA/view?usp=sharing
GPe firmware - https://drive.google.com/file/d/0BzJVjgEmc7G_OG9PNzlEUC1GT1U/view?usp=sharing
Asian firmware - https://drive.google.com/file/d/0BzJVjgEmc7G_bWxZZXJrbThYNEE/view?usp=sharing
Minimal ADB and Fastboot - https://docs.google.com/file/d/0B1S0LCuXCnnmSWh6NGJmSE1BUWc/edit
Cresdits - RootJunky for batch script, xda members for firmwares.

Meuuks13 said:
Hi
These is a Windows batch file applications which can automatically downgrade your
1) Moto G XT1033 on Lollipop GPe to KitKat Asia Retail version, or
2) Moto G XT1032 on Lollipop GPe to KitKat GPe
Downgrade is possible and i have successfully done it.
There is a slight bug that every time you boot a line appears flickering the screen for some time and i don't take any responsibility if you end up bricking your phone
Information
The contents of both the firmwares are renamed according to their version and the commands are also modified to be compatible with the renamed components.
The components are renamed so that cmd can differentiate between both the firmwares.
Also 'motoboot.img" and 'gpt.bin' are removed from both the firmwares since they cause error during flashing and are not required.
So you can either download the modified firmwares from below or if you already have the original firmwares downloaded then make the following changes :-
1) Delete 'motoboot.img' and 'gpt.bin' from both the firmwares.
2) For GPe firmware rename the contents by adding gpe before each file. Eg. NON-HLOS.bin to gpeNON-HLOS.bin
For Asia Retail firmware rename by adding 33 before each file. Eg NON-HLOS.bin to 33NON-HLOS.bin
Instructions :-
1) Download and install "Minimal ADB and Fastboot" in a separate folder.
2) Download the batch file and put it in that folder.
3) Now if you want to downgrade just to GPe 4.4.4 then just download the GPe 4.4.4 zip file and extract it to the same folder. If you want to downgrade to Asia 4.4.4 then download both GPE 4.4.4 and Asia 4.4.4 zip files and extract it to that folder.
4) Connect your phone to the computer and ensure USB Debugging is enabled
5) Then just execute the batch file.
Downloads
Batch file - https://drive.google.com/file/d/0BzJVjgEmc7G_Y0NCVFJyVUE4cDA/view?usp=sharing
GPe firmware - https://drive.google.com/file/d/0BzJVjgEmc7G_OG9PNzlEUC1GT1U/view?usp=sharing
Asian firmware - https://drive.google.com/file/d/0BzJVjgEmc7G_bWxZZXJrbThYNEE/view?usp=sharing
Minimal ADB and Fastboot - https://docs.google.com/file/d/0B1S0LCuXCnnmSWh6NGJmSE1BUWc/edit
Cresdits - RootJunky for batch script, xda members for firmwares.
Click to expand...
Click to collapse
Not sure, but why does everyone keep saying Simple tutorial and they keep going into complicated stuff, cant people just make a Folder called downgrade, have two more folders in it called Flash First and another flash second, instead of giving all this information and files that complicates the random user just make it simple, also, just stop talking about how its done because the random user doesnt care, they just want to downgrade which is why you made another thread which has the same c**p as the next one... Also, flashing 4.4.4 stock after GPe does need the GPT and Motoboot file as the partition table is different and it will refuse to flash the system dump files as the "image is too large"

NextGenGTR said:
Not sure, but why does everyone keep saying Simple tutorial and they keep going into complicated stuff, cant people just make a Folder called downgrade, have two more folders in it called Flash First and another flash second, instead of giving all this information and files that complicates the random user just make it simple, also, just stop talking about how its done because the random user doesnt care, they just want to downgrade which is why you made another thread which has the same c**p as the next one... Also, flashing 4.4.4 stock after GPe does need the GPT and Motoboot file as the partition table is different and it will refuse to flash the system dump files.
Click to expand...
Click to collapse
Oo i am sorry, i didn't realize that executing a batch file was more complex for the normal user than typing in commnads

Meuuks13 said:
Oo i am sorry, i didn't realize that executing a batch file was more complex for the normal user than typing in commnads
Click to expand...
Click to collapse
If executing batch files isn't a problem why have you made another thread when there is a thousand more of this exact tutorial? Also, its not am it is I'm... Idiot

NextGenGTR said:
If executing batch files isn't a problem why have you made another thread when there is a thousand more of this exact tutorial? Also, its not am it is I'm... Idiot
Click to expand...
Click to collapse
I didn't make any other thread about downgrading

Meuuks13 said:
I didn't make any other thread about downgrading
Click to expand...
Click to collapse
Who said you did? I said since there is 100 threads on the same thing why have you added on to this bulk by making one yourself when you haven't contributed any useful difference? I thought XDA was meant for people who know English and if they don't they can use a translator? Here is a useful link for you: https://translate.google.co.uk/

NextGenGTR said:
Who said you did? I said since there is 100 threads on the same thing why have you added on to this bulk by making one yourself when you haven't contributed any useful difference? I thought XDA was meant for people who know English and if they don't they should use translator? Here is a useful link for you: https://translate.google.co.uk/
Click to expand...
Click to collapse
yes i follow that site everyday, teaching my dog to how to interact with me.
And it is pretty much useful because it contains a batch file that gets things done.

Meuuks13 said:
Hi
These is a Windows batch file applications which can automatically downgrade your
Click to expand...
Click to collapse
There is an existing thread for this discussion.
http://forum.xda-developers.com/moto-g/general/guide-xt1033-downgrade-lollipop-5-0-to-t2969729
Thread closed for being a duplicate

Related

[GUIDE] Fix "assert failed: apply_patch_check" error

Overview:
This thread is a guide on how to fix the apply_patch_check error message experienced during an upgrade of the Android OS. Specifically, this will detail the steps for an upgrade of Jelly Bean from 4.1.1 to 4.1.2 on the Nexus 7 with CWM Recovery for a user of Windows. I'm sure similar steps will work for other recoveries/upgrades/devices and PC OSes.
You should only bother with this if you don't want to flash the entire system.img file to your phone, which is way easier.
Here is an example of the error message I'm talking about:
Code:
assert failed: apply_patch_check("/system/app/Chrome.apk", "819b34b66335c6faec86404d736a002b8871600", "9d6b55e63b0bf20bea433fb1ee7089f88ab73fb6")
E: Error in /sdcard/03a4eaf95f73.signed-nakasi-JZO54K-from-JRO03D.03a4eaf9.zip
(Status 7)
Installation aborted.
A few notes about the error:
This doesn't have to happen with the Chrome.apk specifically -- it could happen with any app in /system/app or .so in /system/lib.
Those random strings of numbers/letters are SHA-1 hashes of the apk.
The first one is the hash of the apk installed on your device. In my example, this happens to be the version of Chrome that comes with JB 4.1.2.
The second one is the expected hash of the apk that comes with JB 4.1.1.
Cause of the problem:
The reason this error occurs is because the file was somehow modified from its original state. In my case -- and most likely your case -- this was done by Titanium Backup. TB has an option to "Integrate updates of system apps into ROM", which will cause the apk in /system/app (and associated library files in /system/lib, if needed) to be overwritten with the updated apk.
Solution:
Download this zip file which contains the full /system/app and /system/lib directory from the JB 4.1.1 factory image. *
Extract the zip to a location of your choosing on your PC.
In the extracted folder, locate the .apk or .so file referenced in the error message on your device.
Copy this file to your device via your preferred method (USB cable works fine). I put my file in /sdcard/Download.
On your device, use a root file explorer to move the file from /sdcard/Download to /system/app (or /system/lib).
If you don't have a program that can do this, I use ES File Explorer. Be sure to go to Settings > Root Settings and turn on Root Explorer, Up to Root, and Mount File System.
Reboot into your Recovery and try to install the update again.
Repeat steps 3-6 for each subsequent file that produces an error. You will basically need to do this for each app you integrated using TB and maybe a few library files, too. **
* Future updates (above 4.1.2):
Since I won't be keeping the zip file from step #1 up-to-date, here's how to get the directories that I included in the zip for yourself:
Obtain a factory image for your device's current Android version (the version you're updating from).
For JB 4.1.1, this file is called nakasi-jro03d-factory-e102ba72.tgz.
If you're reading this guide at a later date, the JB 4.1.2 file is called nakasi-jzo54k-factory-973f190e.tgz.
You can try your luck at the official Google site, but they seem to only provide the version you're trying to update to, not from.
Extract the .tgz file somewhere on your PC.
Locate the image-naksi-jro03d.zip file and extract that, as well.
In the folder you just extracted from the previous step, located the system.img file.
Download and use a program called sgs2toext4 (View attachment 645320) to convert the system.img to system.ext4.img. ***
Download and use a program called Linux Reader to open system.ext4.img.
Do this by going to Drives > Mount Image > Next > select your file.
It will then be listed under the Hard Disk Drives section in red as "Linux Ext Volume 1".
Navigate to: Linux Ext Volume 1/system.
Right-click on the app (or lib) directory and pick Save > Next > Output to dir of your choice.
You now have the directories that were included with the zip file from Solution step #1, so just follow those steps now.
** How to avoid repeating steps:
If you'd rather not have to try to reinstall after updating only one file, just to find another file that needs updating, try this:
Obtain the /system/app and /system/lib folders from the factory image and save them to your PC.
For the sake of this guide, let's say you save them to C:\factory_app and C:\factory_lib.
Copy the /system/app and /system/lib directories from your phone to your PC.
For the sake of this guide, let's say you saved them to C:\phone_app and C:\phone_lib.
Download the File Checksum Integrity Verifier utility from Microsoft.
Start > Run > cmd
fciv.exe -sha1 -xml factory_app.xml -wp C:\factory_app
fciv.exe -sha1 -xml factory_app.xml -v -bp C:\phone_app
Don't ask me why, but you need to use -bp instead of -wp for the second command.
Don't forget the -v on the second command.
The output of the last command will show you the list of files that are different. These are the files you need to take from C:\factory_app and put into the /system/app directory on your phone.
Do the same for the lib directories (just replace all instances of "_app" with "_lib" in the previous commands).
Summary:
I hope that this post helped some of you who really didn't want to have to flash the system.img or wipe your device just to update. In the future, use TB to back up the original.
I wouldn't normally bother writing up a guide like this (it took almost as long to write as it did to figure out how to do this) but I couldn't find this solution anywhere even though I saw that I wasn't the only person with the problem. Sorry for not posting this guide sooner (update has been out for a while now), but the forum required me to make a bunch of useless spam posts before I could include any links in my guide and I didn't get around to making those posts right away.
*** I would like to thank balamu96m for his guide on extracting data from the system.img file and drphrozen for making the sgs2toext4 program.
Thanks for this. Will try now.
Worked great. Had to copy the apk and odex file.
Good job! It's great to see the steps for Windows users!
Just a heads up that I simply extracted the files I needed from and on my N7 using Root Explorer, without using my PC at all.
Great guide! Method worked perfectly on my Nexus 7 going from 4.1.2 to 4.2, thanks
Please... is there some other way to update the files w/o installing Java on my Windoze PeeCee? I accidentally messed up my YouTube.apk with Titanium Backup... now I can't update from 4.1.2 --> 4.2 JB.
EDIT: JavaPortable FTW... updating (fingers crossed)
EDIT: SUCCESS TY OP!
For anyone who flashed the 4.2 clock/keyboard already
Hey, for anyone who flashed the 4.2 clock and keyboard on their Nexus 7 already and need to roll back to do the 4.2 update, I used OP's method to make a flashable zip that puts the 4.1.2 clock and keyboard back.
Worked perfectly for my Nexus 7 to get me up and running. Hope it helps anyone!
cantthinkofa.com/files/RestoreClockKeyboard.zip
galaxy nexus
Hi can you post a guide for galaxy nexus? Or if it is the same, can you post the link of JB factory image for galaxy nexus? Sorry, I can't find any thread for galaxy nexus, and I don't want to complete flash the stock image since I don't want to wipe my phone.
Thanks in advance!
Nice Guide
perfect, the guide works just fine. Now finally running 4.2.
Awesome guide... Thanks... Happily running 4.2 now aften beeing stuck at libutils.so...
Sent from my Nexus 7 using xda premium
damagno said:
Hi can you post a guide for galaxy nexus? Or if it is the same, can you post the link of JB factory image for galaxy nexus? Sorry, I can't find any thread for galaxy nexus, and I don't want to complete flash the stock image since I don't want to wipe my phone.
Thanks in advance!
Click to expand...
Click to collapse
I don't have a Galazy Nexus, but I think the steps should be the same. Here is a link to the factory images: https://developers.google.com/android/nexus/images#takju . It looks like they now have links for older versions, rather than just the newest images (which is how it was when I made my guide). So that's pretty sweet.
Thanks a lot man, i succeeded to "patch" my system files to update from 4.2 to 4.2.1. I first check what files didn't correspond with fciv (9 files counting both apks and odex) and then replaced them in system/app. In fact they were the apps I previously integrated with tb (learned lesson: never do it if you want to remain stock and receive OTAs). I also noticed many not-matching files in system/lib but i didn't touch them and the update went smooth the same.
Another thing: when in the OP you say it's way easier just to reflash the system.img you mean just run from bootloader "fastboot flash system system.img" (taken from the factory image as usual) or there's some other thing to do in order to fix the system partition in the right way?
GallStones said:
Thanks a lot man, i succeeded to "patch" my system files to update from 4.2 to 4.2.1.
Click to expand...
Click to collapse
I was wondering if you could tell me how you did it? I'm searching a way to install 4.2.1 with no avail as of yet :crying:
GallStones said:
Thanks a lot man, i succeeded to "patch" my system files to update from 4.2 to 4.2.1. I first check what files didn't correspond with fciv (9 files counting both apks and odex) and then replaced them in system/app. In fact they were the apps I previously integrated with tb (learned lesson: never do it if you want to remain stock and receive OTAs). I also noticed many not-matching files in system/lib but i didn't touch them and the update went smooth the same.
Another thing: when in the OP you say it's way easier just to reflash the system.img you mean just run from bootloader "fastboot flash system system.img" (taken from the factory image as usual) or there's some other thing to do in order to fix the system partition in the right way?
Click to expand...
Click to collapse
Yes. I am having the same issue. I cannot update mine from 4.2 to 4.2.1. I wonder to know which original stock image you have used. Can you list a detail procedure?
Thank you very much.
Ric
dev/block/param
legom said:
Overview:
This thread is a guide on how to fix the apply_patch_check error message experienced during an upgrade of the Android OS. Specifically, this will detail the steps for an upgrade of Jelly Bean from 4.1.1 to 4.1.2 on the Nexus 7 with CWM Recovery for a user of Windows. I'm sure similar steps will work for other recoveries/upgrades/devices and PC OSes.
You should only bother with this if you don't want to flash the entire system.img file to your phone, which is way easier.
Here is an example of the error message I'm talking about:
Code:
assert failed: apply_patch_check("/system/app/Chrome.apk", "819b34b66335c6faec86404d736a002b8871600", "9d6b55e63b0bf20bea433fb1ee7089f88ab73fb6")
E: Error in /sdcard/03a4eaf95f73.signed-nakasi-JZO54K-from-JRO03D.03a4eaf9.zip
(Status 7)
Installation aborted.
A few notes about the error:
This doesn't have to happen with the Chrome.apk specifically -- it could happen with any app in /system/app or .so in /system/lib.
Those random strings of numbers/letters are SHA-1 hashes of the apk.
The first one is the hash of the apk installed on your device. In my example, this happens to be the version of Chrome that comes with JB 4.1.2.
The second one is the expected hash of the apk that comes with JB 4.1.1.
Cause of the problem:
The reason this error occurs is because the file was somehow modified from its original state. In my case -- and most likely your case -- this was done by Titanium Backup. TB has an option to "Integrate updates of system apps into ROM", which will cause the apk in /system/app (and associated library files in /system/lib, if needed) to be overwritten with the updated apk.
Solution:
Download this zip file which contains the full /system/app and /system/lib directory from the JB 4.1.1 factory image. *
Extract the zip to a location of your choosing on your PC.
In the extracted folder, locate the .apk or .so file referenced in the error message on your device.
Copy this file to your device via your preferred method (USB cable works fine). I put my file in /sdcard/Download.
On your device, use a root file explorer to move the file from /sdcard/Download to /system/app (or /system/lib).
If you don't have a program that can do this, I use ES File Explorer. Be sure to go to Settings > Root Settings and turn on Root Explorer, Up to Root, and Mount File System.
Reboot into your Recovery and try to install the update again.
Repeat steps 3-6 for each subsequent file that produces an error. You will basically need to do this for each app you integrated using TB and maybe a few library files, too. **
* Future updates (above 4.1.2):
Since I won't be keeping the zip file from step #1 up-to-date, here's how to get the directories that I included in the zip for yourself:
Obtain a factory image for your device's current Android version (the version you're updating from).
For JB 4.1.1, this file is called nakasi-jro03d-factory-e102ba72.tgz.
If you're reading this guide at a later date, the JB 4.1.2 file is called nakasi-jzo54k-factory-973f190e.tgz.
You can try your luck at the official Google site, but they seem to only provide the version you're trying to update to, not from.
Extract the .tgz file somewhere on your PC.
Locate the image-naksi-jro03d.zip file and extract that, as well.
In the folder you just extracted from the previous step, located the system.img file.
Download and use a program called sgs2toext4 (View attachment 645320) to convert the system.img to system.ext4.img. ***
Download and use a program called Linux Reader to open system.ext4.img.
Do this by going to Drives > Mount Image > Next > select your file.
It will then be listed under the Hard Disk Drives section in red as "Linux Ext Volume 1".
Navigate to: Linux Ext Volume 1/system.
Right-click on the app (or lib) directory and pick Save > Next > Output to dir of your choice.
You now have the directories that were included with the zip file from Solution step #1, so just follow those steps now.
** How to avoid repeating steps:
If you'd rather not have to try to reinstall after updating only one file, just to find another file that needs updating, try this:
Obtain the /system/app and /system/lib folders from the factory image and save them to your PC.
For the sake of this guide, let's say you save them to C:\factory_app and C:\factory_lib.
Copy the /system/app and /system/lib directories from your phone to your PC.
For the sake of this guide, let's say you saved them to C:\phone_app and C:\phone_lib.
Download the File Checksum Integrity Verifier utility from Microsoft.
Start > Run > cmd
fciv.exe -sha1 -xml factory_app.xml -wp C:\factory_app
fciv.exe -sha1 -xml factory_app.xml -v -bp C:\phone_app
Don't ask me why, but you need to use -bp instead of -wp for the second command.
Don't forget the -v on the second command.
The output of the last command will show you the list of files that are different. These are the files you need to take from C:\factory_app and put into the /system/app directory on your phone.
Do the same for the lib directories (just replace all instances of "_app" with "_lib" in the previous commands).
Summary:
I hope that this post helped some of you who really didn't want to have to flash the system.img or wipe your device just to update. In the future, use TB to back up the original.
I wouldn't normally bother writing up a guide like this (it took almost as long to write as it did to figure out how to do this) but I couldn't find this solution anywhere even though I saw that I wasn't the only person with the problem. Sorry for not posting this guide sooner (update has been out for a while now), but the forum required me to make a bunch of useless spam posts before I could include any links in my guide and I didn't get around to making those posts right away.
*** I would like to thank balamu96m for his guide on extracting data from the system.img file and drphrozen for making the sgs2toext4 program.
Click to expand...
Click to collapse
my error 7 was generated by emmc: dev/block/mmdblk0p7 (the file is "param" any suggestions?
Thanks. After searching for a lot of time, this post helped me updating my SGS3.:victory: I previously tried to integrate youtube update into rom using titanium backup.
GallStones said:
Another thing: when in the OP you say it's way easier just to reflash the system.img you mean just run from bootloader "fastboot flash system system.img" (taken from the factory image as usual)
Click to expand...
Click to collapse
Yes, that's what I mean. The reason I didn't want to do this on my device is because I had modified some other system files that I wanted to keep the modifications for.
Wow, thanks a lot OP! Your guide helped me fixing an error during the update to 4.2.2 on my Nexus 4.
please include a video ,im getting lost in the details
solved.

[GUIDE] House of Moto

Ok since there is a new house of moto and some of the instructions have changed I am deleting the old instructions go here http://www.droidrzr.com/index.php/topic/28162-house-of-moto-20/ and follow Samuri's instructions if you get stuck I will still attempt to help you out I am not going to re write all the instructions again. Trying to piece it together will cause more confusion then help. Please read then re-read his instructions they are all you need after all he created the house of moto. If you cant figure it out pm me or post here and I will try to help the best I can. Here are his instructions for quick reference but you have to got to the above link to download everything.
ALL CREDIT GOES TO SAMURI HL FOR CREATING THIS AWESOME TOOL.
Please do yourself a favor and read, read again, and read one more time before installing and using this tool. If it's set up correctly, it's very easy to use. But if you don't follow directions, it'll either not work or not do what you expect. Failure to read and follow the directions is NOT a defect of the tool!
Mission statement for tool:
This will allow users to have a user friendly framework automation tool for new Motorola devices. Easily customized for any device that allows RSD or fastboot flashing of custom scripts that perform various functions. Most notably is when a user screws something up and the phone no longer boots (so called soft bricking). The KEEP DATA and/or FULL scripts can restore the partitions of the phone to minty factory fresh in the event that your phone doesn't boot.
WARNING: Upgrades from 1.4 are NOT supported. Install CLEAN. You have been warned.
SETUP:
Required Steps
o) You MUST have the latest Motorola USB driver installed: http://lmgtfy.com/?q...rola USB driver
o) Download: HouseOfMoto_2.0.zip
o) Extract the HouseOfMoto folder in the zip to your hard drive. IMPORTANT: Make sure no spaces are in the path. (Windows users should extract it to C:\)
o) Download the support file for your device and extract into your HouseOfMoto directory. (see device support below)
o) Download your FXZ from here: http://sbf.droid-developers.org/ [Site is back, BUT, very limited. It'll take time to repopulate it]
o) Add the FXZ files to your HouseOfMoto\FXZ_xtYYY directory. (see Adding the FXZ below)
Optional Steps
o) If root exists for your device, add the files to the root folder. Make sure run.bat and/or run.sh exists.
CLARIFICATION: When I say "if root exists for your phone" I'm referring to a root exploit that has a run.bat script in order to install root. If that doesn't exist for your phone, or your root exploit does not have a run.bat, this does not apply to you. This is ONLY for adding an option to root your phone to the House of Moto menu as a convenience option. It is NOT a required step.
Linux/Mac Notes:
o) You may need to chmod +x HouseOfMoto.sh
o) You may need to run HouseOfMoto.sh as sudo
Usage:
o) Your phone MUST be in AP Fastboot mode. Try holding volume down and pressing the power button when the phone is off.
o) Run the HouseOfMoto.bat or HouseOfMoto.sh in your HouseOfMoto directory
o) On first run:
Enter your device model (xt926, xt875, etc)
For Windows: Select flash mode: rsd or fastboot
o) Flash mode on Windows can be changed from the main menu
o) Phone model can be changed from the main menu
o) Select the script you wish to flash
o) Follow directions!
Adding the FXZ:
This part confuses a LOT of people so I'm going to use the FXZ for the xt926 as an example of how this should work. Obviously you'll need to use the proper FXZ for your device, but, the concept is generally the same.
This is a point that many get wrong so please follow this carefully...
When you open your VRZ_XT926_9.8.1Q-79-1_CFC.xml.zip file, you will see a directory inside it. You must go INTO the directory inside the zip. There you will see a whole bunch of files. Select them all, and extract them into the FXZ_xt926 folder. All the files must be at the root of the FXZ_xt926 folder, NOT in a sub folder within it. If you have this:
HouseOfMoto\FXZ_xt926\VRZ_XT926_9.8.1Q-79-1_CFC.xml\boot.img
It's wrong. If instead you have this:
HouseOfMoto\FXZ_xt926\boot.img
It's correct.
DEVICE SUPPORT:
o) xt875
o) xt907
o) xt912
o) xt926
o) xt1030
o) xt1080
NOTES:
o) xtYYY is the device model...i.e. xt1058, xt895, etc
DA FAQ:
Q: What flash mode should I pick?
A: Whether you use RSD or fastboot is a personal choice and completely up to you. If you have problems flashing in one mode, you can switch to the other and try again to see if you get better results.
SUPPORT:
If I tell you to create a log and post it, you are to run the CreateLOG.bat file to your c:\HouseOfMoto directory and post the results in this thread.
OP Plz update on Houseofmoto v1.4 when creating the FXZ version only the phone model, (i.e. FXZ_xt1080) Is needed. Also the Thread name needs to be [GUIDE] Return to stock and stickty IMO
You are a Godsend. The House of Moto website was pretty confusing.
Just want to make sure I'm understanding this right. I rooted my Maxx with PwnMyMoto. I also made some modification to allow for wifi tethering. I'm pretty sure I want to return to 100% stock, so that I can receive OTA updates. I can use House of Moto to accomplish this, and my Maxx will be like it was, fresh outta the box?
Ansky11 said:
Just want to make sure I'm understanding this right. I rooted my Maxx with PwnMyMoto. I also made some modification to allow for wifi tethering. I'm pretty sure I want to return to 100% stock, so that I can receive OTA updates. I can use House of Moto to accomplish this, and my Maxx will be like it was, fresh outta the box?
Click to expand...
Click to collapse
Yes what is better is you can choose the save data fxz and it will return you to stock but leave all your apps and data alone.
Which flash mode do we use? Fastboot [snapdragon]?
bigv5150 said:
** Moderators if this is in the wrong forum please move it also be advised I have contacted Samuri and he is fine with me posting this information.
ALL CREDIT GOES TO SamuriHL
Ok guys we have root this is great but I keep seeing guys having problems with installing it jcase has been great in evolving the root apk to accommodate us. I just thought I would try to lend some assistance because I know he is busy and a lot of us aren't as computer savvy as these guys. If you didn't have a bionic then you may not know who Samuri is but he made a tool for bionic owners it was great and very useful. He has since moved on from the bionic but after I contacted him about a tool for the Maxx he as usual came through. He created a Moto tool for several of the new devices and old. It is located here---> http://www.droidrzr.com/index.php/topic/28162-house-of-moto/ This tool will let you fxz full or fxz save data. If you don't know the difference fxz full will wipe the phone to out of the box fresh. Save data will install just the system but not touch your user data ie apps, wallpaper etc. Now to the good news any one that is having an issue still with root download use the above tool and use the fxz save data option it will wipe out root and you can start fresh. It will give you back your stock recovery as well. I had no problem with root but I tested this to make sure it would work. I just re-rooted the whole process took less than 15 minutes.
Below I will give instructions for the laymen if you find the instructions a little confusing in the House of Moto. If you get stuck PM me and I will try to help I am no genius when it comes to this but I have made most of the mistakes and learned from them. If I can't figure it out then you will have to contact the creator Samuri. But be forewarned he has little patience for stupidity. This is the reason I am taking the time to do this to assist him with the less knowledgeable. Remember he no longer owns a moto phone he did this out of the goodness of his heart.
Set up and installation:
1) install the House of Moto 1.2
2) Run it and let it extract to c:\HouseOfMoto it does this automatically
3) Create an FXZ_xxx_xtYYY directory where xxx is the FXZ version (MR4, 98.72.22, etc) and xtYYY is your device (xt926, xt875, etc) it should look like this FXZ_12.7.7_xt1080. You can go here---> http://sbf.droid-developers.org/ and download the FXZ for your device
4) Add the FXZ files to your new FXZ_xxx_xtYYY directory
5) Add the scripts for your device to your rsd_scripts and/or fastboot_scripts directories. See Adding support for an xtYY device. The scripts are at the bottom of the first post under support just find your phone download and execute, it will put them in the proper file in the house of moto.
6) the next step talks about root but we don't need that since we have an apk to re-root so I disregarded this step.
Using the House Of Moto:
1) Run the HouseOfMoto.bat in your c:\HouseOfMoto directory be advised if you make a desktop short cut of the run bat. file it will throw an error stating you need to install rsd which is already installed in the tool. You have to run the House of moto bat. file from within the house of moto folder.
2) On first run: Enter your device model (xt926, xt875, etc) Select flash mode: rsd, fastboot [snapdragon], or fastboot [omap]
3) flash mode can be changed from the main menu
4) device model can be changed from the main menu
5) Select the script you wish to execute ie. Full FXZ Save Data FXZ
6) Follow directions!
There are further instructions in the above thread for creating the FXZ file. I will say this simply when you create the FXZ file it should not have a file folder inside it. Meaning the FXZ file you placed in the House of Moto will say if you have a maxx FXZ_12.7.7_xt1080. When you open this file it shoud contain the whole FXZ not another file you have to open. So extract the FXZ then cut and paste it in the FXZ folder if you don't you will get an error.
This is what your house of moto should look like when you open it:
fastboot_scripts---> will contain Full_xt1080(or whatever phone you use) and Keep-data_xt1080 (or whatever phone you use)
FXZ_12.7.7_xt1080--->again when you open this file you should see the FXZ files not a folder that you have to access.
root
rsd
rsd_scripts---> will contain Full_xt1080(or whatever phone you use) and Keep-data_xt1080 (or whatever phone you use)
utils
flashmode
House of Moto
phone--->you will not see this until you type in what phone you want to use in step 2 above under using the house of moto
Just to sum things up the above tool will put everything where it needs to be except the FXZ that you have to do yourself. Good luck this is truly a useful tool.
One more thing I sent Samuri the xml files for the moto x (verizon and at&t models) also the mini and ultra he said the xml files are so close it was ridiculous. This is a quote from Samuri for being able to use this tool with an ultra mini or moto x
An anonymous donor sent me the xt1030, xt1058, and xt1060 FXZ xml's. They all use the same files as the xt1080 in their respective FXZ's. It's just a matter of me renaming the xt1080 scripts a bunch of times for the different models and packaging them up. Or if people need it before I get them posted, take the xt1080 package and rename the 4 scripts to xt10xx depending on your model and it'll work just fine. Moto's making my life a lot easier that's for sure! In fact I'll write a batch file so that if I ever have to change them for any reason it'll just create them all. LOL.
Click to expand...
Click to collapse
Dammit. I knew I'd be the one idiot.
Followed to the letter and when I run the .BAT, I get :
"Warning: Please check input file. Either XML format is wrong or image files associated with it are missing."
Any ideas that an idiot may be able to follow along with?
FIGURED IT OUT:
Didn't save to C drive. saved it to desktop.
Trying to do this but it seems to fail to install recovery even though it says successful. Tried to download fxz file a couple times and it always gives errors on unpacking, which may be issue.
It was successful at destroying my sim card though.... I have no service now.
One thing to keep in mind that stumped me for a few was the model number. When you go to download the FXZ file the droid maxx is xt1080m. You don't use that as your model number you type into house of moto. Just use xt1080.
Difficulties with howto...
Sorry guys,
I'm having a hell of a time but I have a problem related to this. At current my phone took the OTA while I was rooted and its now boot-looped. I'm trying to revert to the stock firmware, and someone suggested this option. I'm having problems with the step here:
5) Add the scripts for your device to your rsd_scripts and/or fastboot_scripts directories. See Adding support for an xtYY device. The scripts are at the bottom of the first post under support just find your phone download and execute, it will put them in the proper file in the house of moto.​
This step is odd, what scripts are you supposed to add to the RSD/Fastboot scripts? Where do I get the scripts? From the FXZ passage?
Qb411 said:
Sorry guys,
I'm having a hell of a time but I have a problem related to this. At current my phone took the OTA while I was rooted and its now boot-looped. I'm trying to revert to the stock firmware, and someone suggested this option. I'm having problems with the step here:
5) Add the scripts for your device to your rsd_scripts and/or fastboot_scripts directories. See Adding support for an xtYY device. The scripts are at the bottom of the first post under support just find your phone download and execute, it will put them in the proper file in the house of moto.​
This step is odd, what scripts are you supposed to add to the RSD/Fastboot scripts? Where do I get the scripts? From the FXZ passage?
Click to expand...
Click to collapse
the scripts are near the bottom of the post where you download houseofmoto, scroll down til you see Support in bold. theres a link for xt1080 scripts, just download them and place them in the correct folder.
hmmmm
beelow319 said:
the scripts are near the bottom of the post where you download houseofmoto, scroll down til you see Support in bold. theres a link for xt1080 scripts, just download them and place them in the correct folder.
Click to expand...
Click to collapse
I had trouble with this when I chose fastboot omap and did the "keep data" option. It went through said it flashed stuffs, but I still had root. I changed it to fastboot snapdragon and did it again and then it worked. I have a Droid Maxx and used Pwnmymoto a month ago, which flashed my recovery, thus the need to fixor that.
---------- Post added at 07:07 PM ---------- Previous post was at 06:46 PM ----------
the3dolla said:
I had trouble with this when I chose fastboot omap and did the "keep data" option. It went through said it flashed stuffs, but I still had root. I changed it to fastboot snapdragon and did it again and then it worked. I have a Droid Maxx and used Pwnmymoto a month ago, which flashed my recovery, thus the need to fixor that.
Click to expand...
Click to collapse
Also, just FYI, update went fine and hotspot still works, guess I won't worry about adaway working until an easy root method is found, so I can unroot easier for kitkat.
Just chiming in to say if you all need anything let me know. I've helped a lot of people today get their MAXX back to stock so they can take the ota. Seems to be working once people get it setup properly.
Sent from my Xoom using Tapatalk 4
Post for easy access later.
Sent from my DROID MAXX via Tapatalk 4.
BMWPower06 said:
Which flash mode do we use? Fastboot [snapdragon]?
Click to expand...
Click to collapse
I have the same question.
Kinda stuck. Tried using the flash with data for my XT1080 and the screen says waiting on device. I know i did something wrong but not sure what. Any help would be appreciated.
Device is plugged in via USB. I think I have everything in the right folders. Can I just close the command prompt window without hurting the phone?
Ok I updated the instructions I wrote these instructions with the first house of moto and the naming of the fxz changed. Your FXZ file in house of moto should look like this FXZ_xt1080 or what ever phone you are using not FXZ_12.7.7_xt1080. Sorry for the confusion if you were having a problem with house of moto finding the FXZ this is why.
If this was an issue for anyone I am sorry to be honest I stopped checking this thread a while ago. I created this thread on Sept. 19 and kept trying to tell people to download the tool even if they did not need it, better to safe then sorry. I kept checking but no posts or ?'s so after a month or so seeing no one posting here I figured no one cared or wanted this tool and I forgot about it until I received a pm a few days ago. If you have a question I will try to help but please give me as much info as possible.
bigv5150 said:
Ok I updated the instructions I wrote these instructions with the first house of moto and the naming of the fxz changed. Your FXZ file in house of moto should look like this FXZ_xt1080 or what ever phone you are using not FXZ_12.7.7_xt1080. Sorry for the confusion if you were having a problem with house of moto finding the FXZ this is why.
Click to expand...
Click to collapse
That got me passed my issue. Phone rebooted and now its updating. We'll see what happens from here. Thanks for the update.
In regards to what flash mode to use its rsd for the fxz keep data or full fxz. If you want to run fast boot commands then you would chose fastboot snapdragon.
daca1001 said:
That got me passed my issue. Phone rebooted and now its updating. We'll see what happens from here. Thanks for the update.
Click to expand...
Click to collapse
You should be good now this tool is awesome you will use it again and again trust me. You will do something stupid to your phone and have a DOH!!! moment and this will fix it.

[GUIDE] How to extract system files from stock firmware

First of all: Tool to be used in this guide was developed by user And_pda from Russian 4pda.ru forum. So all credits must go to And_pda
The original thread (in Russian) is here. Actually the original thread is about several tools to works with different images for different phones. But we will talk only about Moto X.
The guide will describe how to extract all files from system partition from stock firmware. The tools works under Windows (I personally tested it on Win 7).
If you unzip any stock firmware you will find one file, which represents system partition: system.img.
To extract all files from system.img please do:
1. Download ImgExtractor_1_3_4.rar and extract it.
2. Create directory System in the folder where system.img is located;
3. Copy ImgExtractor.exe into the folder where system.img is located;
4. Run CMD and "cd" to the folder where system.img is located
5. In CMD run the following: ImgExtractor system.img System
After ImgExtractor finished you will have all system files and folders in System directory.
That's all
PS. ImgExtractor also can extract modem firmware (NON-HLOS.bin)
Anyway to extract system image on 4.4, inject su binary re-image, and msfastboot flash?
Sent from my XT1080 using Tapatalk
djnikko said:
Anyway to extract system image on 4.4, inject su binary re-image, and msfastboot flash?
Sent from my XT1080 using Tapatalk
Click to expand...
Click to collapse
Maybe. But to get the locked recovery to flash it must be signed by moto thousand bit code.
extract for something like my signature?
Hey this will mos def save some time. Thanks my dude
Sent from my XT1095
Can you get this to work with motoboot.img? It'll make it possible to downgrade to bootloaders such as 4-21, 3-15, etc.
mr_verystock said:
Can you get this to work with motoboot.img? It'll make it possible to downgrade to bootloaders such as 4-21, 3-15, etc.
Click to expand...
Click to collapse
Phone's cid partition changes with every firmware update so bootloader downgrade will not work. The phone just won't boot up. I know the man who tried all this tricks - he flashed dumps from phones with unlocked bootloaders.
Pretty cool tool... I just wished it would keep the original timestamps for the directories and files....
Is there any way to assemble extracted files and build original system files?
Sent from my SM-N910C using Tapatalk
Latest version if any need it
It can't handle large img files though.
works on Samsung Galaxy S6 , Note 4 , cache.img , hidden.img , files which ext4 unpacker couldn't handle.
How big were the img files? It can't handle the 4GB LG G4 .img files but works fine with the smaller Motorola RAZR HD Maxx .img files.
i used it only for cache and hidden, so <250MB. I didn't tried on larger files.
That's why it works.... the Motorola img files were 1 GB or less... it can't handle the LG G4 files.
it would be great if the author patched/forked the original ext4 unpacker, so it can open newer img's like this (sparse with moded header) , so we would've had a GUI, because imgextractor is only text.
imgextractor is the only one that works on Motorola img files.
yes, even with Samsung Galaxy Note 4 / S6 and newer devices, on the IMG file - the ext4 sparse header is not standard, but i said, since this program (imgextractor) is based on ext4 unpacker sources, it could've keeped that GUI and only mod a little.
Anyway, you could also open IMG with the original ext4 unpacker if you fix it first with IMGEXTRACTOR. to fix: convert IMG file from MODED SPARSE EXT4 to normal EXT4 (> imgextractor.exe original.img temp.ext4 -conv) and then back to FIXED SPARSE EXT4 (> imgextractor.exe temp.ext4 fixed.img -conv). Now open fixed.img in ext4 unpacker program and it will work.
l.e. I found what the problem was, on Samsung Exynos devices, and the newer ones, the IMG files headers are 32 bytes, instead of the normal 28, Chainfire explains it here. So that's why ext4 unpacker gives error on opening. For alternative fix (instead of the conversion i explain upper in this post using imgextractor) you can use Chainfire's sgs4ext4fs tool , works on Windows/Linux, builds and other useful tool here.
Also there is a tool for Motorola IMG files there, see the Usage section.
gracias
tanks bro work in motorola razr hd stock kitkat system.img
BenjaminW8 said:
can you maybe make a more detailed guide how you did this
i cant seem to make sytem.img to extract for the s7 Edge
Click to expand...
Click to collapse
I believe you want be able to utilize Imgextractor as the S7 system.img exceeds the supported size of the Imgextractor

[6045*] [TWRP] custom recovery 2.8.7.0

TWRP 2.8.7.0 custom recovery
thanx to user @Unjustified Dev we have TWRP custom recovery for our phone.
download HERE
So anyone who download the TWRP should send him a dollar for beer or at least thank him!
Of course you do everything on your own!
To test before installation (linux users need sudo before fastboot):
Code:
fastboot -i 0x1bbb boot twrp-2.8.7.0-idol3.img
To install (linux users need sudo before fastboot):
Code:
fastboot -i 0x1bbb flash recovery twrp-2.8.7.0-idol3.img
!BEFORE YOU START, PLEASE READ THIS!
And don´t forget to thank Famewolf for the tutorial, because this could save your phone when something go bad!​
Thanks, tried it. It worked.
I also just installed SU directly, bypassing the previous root thread.
1. Download the .zip package from here: https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip
2. Put it on the root of my SD card.
3. In TWRP click install and find the .zip.
Wonderful. Just a question: is this recovery for Idol 3 4.7 (6039) or 5.5 (6045) ?
Gynoid said:
Wonderful. Just a question: is this recovery for Idol 3 4.7 (6039) or 5.5 (6045) ?
Click to expand...
Click to collapse
It's for 6045. For 4.7 TWRP, see this post: http://forum.xda-developers.com/showpost.php?p=61976520&postcount=18
Thanks!
is it functional for backing up our system in TWRP?
@DallasCZ could you please provide the original link to TWRP. That was a bit unfair to upload it elsewhere as I tend to track the number of downloads.
Sent from my LGMS395 using Tapatalk
gecko702 said:
is it functional for backing up our system in TWRP?
Click to expand...
Click to collapse
Yes although to my knowledge noone has actually done a restore yet. He's fixing some minor bugs and will be releasing a new version at some point.
famewolf said:
Yes although to my knowledge noone has actually done a restore yet. He's fixing some minor bugs and will be releasing a new version at some point.
Click to expand...
Click to collapse
i am in touch with the dev and allready downloading the new build..will be soon on my google drive
Unjustified Dev said:
@DallasCZ could you please provide the original link to TWRP. That was a bit unfair to upload it elsewhere as I tend to track the number of downloads.
Sent from my LGMS395 using Tapatalk
Click to expand...
Click to collapse
sorry, i corrected the link...
Convert TWRP Backup into flashable rom zip
I found these instructions that explain how to take a TWRP backup and turn it into a flashable zip file. This would allow someone to create a "factory" rom pre-rooted to be flashed.
For TWRP Backup
Transfer the TWRP backup from Phone to PC.
You’ll see a file named system.ext4.win which is the System partition backup of your device. Rename it to system.ext4.tar (Changing its extension from .win to .tar)
Extract the system.ext4.tar using an archive software like Winrar or 7zip.
If your TWRP backup is not in compression mode, you will directly get the system folder, else you will get a file named system.ext4, which should be renamed again to system.ext4.tar and extract it to get the system folder.
Take the boot.emmc.win file and rename it to boot.img.
Now collect a META-INF folder from any custom ROM which is made for your device. Make sure you get the correct Meta-Inf folder, else the Zip won’t work and might worsen the condition of your device.
Select the META-INF, System folders and the boot.img and right click your mouse and select add to Archive.
In the Archive settings, choose the extension of the compressed file as Zip (Make sure of this part)
Now you can use this Zip file to flash it on your Custom recovery.
we dont have the meta-inf folder...there is one in the update i got, but i dont know if this id the right one.
and we dont have custom rom to get meta-inf from.
also the main thing is, that i cannot unpack the system win file when renamed to .tar i dunno why (i got latest 7-zip app).
DallasCZ said:
we dont have the meta-inf folder...there is one in the update i got, but i dont know if this id the right one.
and we dont have custom rom to get meta-inf from.
also the main thing is, that i cannot unpack the system win file when renamed to .tar i dunno why (i got latest 7-zip app).
Click to expand...
Click to collapse
What they primarily want is the "update-binary" which is device specific. I don't remember if the update had one....I did take apart an update-supersu.zip and it uses a script as it's update binary...thought about trying to convert that. Theoretically you could take a meta-inf for another device's rom...and use it's meta-inf making sure to replace the update-binary. It also has an installer script that tells it to mount system and data....extract files from the zip and where to put them. I learned a bit when I was trying to make an update.zip to fix my build.prop.
It untar'd fine for me on my linux pc:
[email protected]:/workarea/android/idol3/TWRP/BACKUPS/408adcbe/1970-01-01--22-28-53_LRX22G_release-keys/work > tar -xvf ../system.ext4.win000
tar: Removing leading `/' from member names
/system/app/
/system/app/AntHalService/
/system/app/AntHalService/AntHalService.apk
/system/app/AntHalService/arm64/
/system/app/AntHalService/arm64/AntHalService.odex
/system/app/BasicDreams/
/system/app/BasicDreams/BasicDreams.apk
/system/app/BasicDreams/arm64/
/system/app/BasicDreams/arm64/BasicDreams.odex
/system/app/Bluetooth/
/system/app/Bluetooth/Bluetooth.apk
/system/app/Bluetooth/arm/
/system/app/Bluetooth/arm/Bluetooth.odex
famewolf said:
What they primarily want is the "update-binary" which is device specific. I don't remember if the update had one....I did take apart an update-supersu.zip and it uses a script as it's update binary...thought about trying to convert that. Theoretically you could take a meta-inf for another device's rom...and use it's meta-inf making sure to replace the update-binary. It also has an installer script that tells it to mount system and data....extract files from the zip and where to put them. I learned a bit when I was trying to make an update.zip to fix my build.prop.
It untar'd fine for me on my linux pc:
[email protected]:/workarea/android/idol3/TWRP/BACKUPS/408adcbe/1970-01-01--22-28-53_LRX22G_release-keys/work > tar -xvf ../system.ext4.win000
tar: Removing leading `/' from member names
/system/app/
/system/app/AntHalService/
/system/app/AntHalService/AntHalService.apk
/system/app/AntHalService/arm64/
/system/app/AntHalService/arm64/AntHalService.odex
/system/app/BasicDreams/
/system/app/BasicDreams/BasicDreams.apk
/system/app/BasicDreams/arm64/
/system/app/BasicDreams/arm64/BasicDreams.odex
/system/app/Bluetooth/
/system/app/Bluetooth/Bluetooth.apk
/system/app/Bluetooth/arm/
/system/app/Bluetooth/arm/Bluetooth.odex
Click to expand...
Click to collapse
i allready build some roms for my older device, so i know what it is about.
For the proper rom zip you have to make the updater script with all the simlinks and metadata ...in the latest update there were no simlinks in the updater script...
without them you can brick your phone.
for example simlinks from 4.4.2 Os from zte V5
Code:
symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9306/wcd9306_mbhc.bin");
symlink("/data/misc/audio/wcd9320_anc.bin", "/system/etc/firmware/wcd9306/wcd9306_anc.bin");
symlink("/persist/WCNSS_qcom_cfg.ini", "/system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini");
symlink("/persist/WCNSS_qcom_wlan_nv.bin", "/system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin");
symlink("/system/lib/modules/pronto/pronto_wlan.ko", "/system/lib/modules/wlan.ko");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
symlink("mksh", "/system/bin/sh");
this you cannot copy from another device....
Never mind. I installed the second build.
How do I boot into the custom recovery? Is it power up + power button on the Idol 3?
Acreo Aeneas said:
Never mind. I installed the second build.
How do I boot into the custom recovery? Is it power up + power button on the Idol 3?
Click to expand...
Click to collapse
Reboot or power on till you see the alcatel screen pop up....right away hold down up arrow and it should go into recovery.
Thank you so much...been waiting for this....
so now let ROM's start pouring in )))))))
Hmm odd. I had to reflash it. For some reason it didn't take the first time I flashed the second build TWRP to my Idol 3.
What partitions should I backup using TWRP? I'd assume: Boot, System, and Data? Should I include System Image too?
Acreo Aeneas said:
Hmm odd. I had to reflash it. For some reason it didn't take the first time I flash the second build TWRP to my Idol 3.
What partitions should I backup using TWRP? I'd assume: Boot, System, and Data? Should I include System Image too?
Click to expand...
Click to collapse
The default of boot, system and data should be fine for personal use however if you have not yet rooted please read here first! http://forum.xda-developers.com/idol-3/help/want-to-able-to-install-ota-updates-t3163745
So Awesome! best looking twrp Ive seen yet xD. Also, works well too. I havent tested backing up data, but I did a successful restore of the system and boot So far so good!

[Guide]How to backup DRM, unlock and root(for noobs)

Hey friends! I was looking at this thread: http://forum.xda-developers.com/xperia-z5/general/guide-rooting-unlocking-bootloader-t3354307 and I decided to create my own thread about the same topic, however this thread is much more simplified and is for those people who are new to rooting Xperia smartphones.
So without further ado here are the steps
Part One: downloading prerequisites
in order to flash .ftf firmware files to downgrade your phone to lollipop for TA backup you will need.
1. Java JDK :
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. XperiFirm(not neccesary if you plan to stay on LP)
http://forum.xda-developers.com/cro...xperifirm-xperia-firmware-downloader-t2834142
3. Flashtool
http://www.flashtool.net/downloads.php
4. Android SDK
http://developer.android.com/sdk/index.html#downloads
5. iovyroot(not necessary if you do not want to backup DRM)
http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
other prerequisites:
Patience
Mountain Dew or Starbucks
A small bit of knowledge on command line interfaces
Part Two: Downloading firmware
1. Open up XperiFirm
2. Select your device from the list
3. Select your model number(can be checked in Settings > about phone > Model Number
4. Pick your country and carrier(does'nt really matter, best firmware to use is UK customised and Singapore customised)
5. Click the latest release in 'available releases'
6. A dialogue should pop up, tick 'automatic unpack'
7. Wait for download to complete
Part 2.5: Creating FTF
Open up Flashtool
1. Click on tools > bundles > Create
2. Select the firmware folder
3. Double click on the Device section and select your device
4. Type in the firmware build number(at the end of the folder name) as for branding type in the country and carrier from which you downloaded the firmware from.
5. Go to file explorer and delete 'fwinfo.xml' from the firmware folder
6. IMPORTANT DO NOT TRANSFER THE FILES WITH A .TA FILE EXTENSION IT WILL BRICK YOUR DEVICE with that disclaimer out of the way go back to flashtool, transfer all the files using the arrows (except those with a .ta file extension)
7. Click create, you should be able to sit back and relax while it does its thing
Part Three: Downgrading firmware
Download the firmware here: http://www.xperiablog.net/forum/resources/xperia-z5_e6653_32-0-a-6-152_central-europe-5_generic.477/
1. Place the file in c: Users/*account name*/.flashtool/firmwares
Open up Flashtool
2. Press the lightning bolt icon
3. Choose Flashmode and click ok
4. choose the firmware you downloaded(Do not choose the one you created)
5. Tick "user data" in the box at the top right hand corner
6. Press flash and wait
Part Four: DRM backup and unlock
1.Extract iovyroot
2. make sure USB debugging and unknown sources are enabled
3. Open up backupdrm.bat and wait
4. make sure there are no errors before proceeding(this usually takes a couple of tries)
5. IMPORTANT keep a safe online backup of your DRM keys.
6. Open up flashtool
7. click on BLU
8. Go to http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
9. Select your device and follow the instructions
9. after getting the unlock key, paste it inside the BLU dialogue in flashtool
10. wait, then profit!
11. now flash the .FTF that you created
12. boot your device into fastboot(plug in power cable and press vol down when your phone is switched off)
13. Download androplus kernel v23 and above from here: https://kernel.andro.plus/
14. Extract boot.img and put it in the android SDK inside of 'platform-tools'
15. Press shift+right click inside of the same folder
be sure to install xperia z5 fastboot drivers)
16. click 'open command window here'
17. run fastboot devices and make sure it detects your device
18. run this command here : fastboot flash boot boot.img
19. Reboot and DONE
Just a quick note, from my experience with downgrading in the past, you MUST wipe your user data, the phone won't boot else. This happened on multiple Sony phones with multiple different firmware versions.
gamer649 said:
Just a quick note, from my experience with downgrading in the past, you MUST wipe your user data, the phone won't boot else. This happened on multiple Sony phones with multiple different firmware versions.
Click to expand...
Click to collapse
I just corrected it, thanks for the quick note. Btw my z5 booted with minor issues when downgrading without wiping userdata
_LLJY said:
I just corrected it, thanks for the quick note. Btw my z5 booted with minor issues when downgrading without wiping userdata
Click to expand...
Click to collapse
Every other Sony phone I've owned (M, Z1 compact, Z2) refused to boot after a downgrade. The main thing to remember when downgrading is to take a backup before doing so to prevent data loss, I've experienced it myself firsthand so I know how stressful it can be.
In the TA backup part you should add a step to make sure the script actually worked and didn't stop with an error, before proceeding on to unlocking BL. I had to reboot my phone & run the script several times before successfully pulling it off.
Hello!
I'm new to the Sony family as you can see in my signature and I wouldn't call myself n00b, but the whole procedure with the extra partitions is so confusing! Thank you for trying to break it down!
the usual 3 step way (1 unlock bootloader, 2 flash recovery, 3 flash SuperSU) is still present but there are some other steps before them.
As i can understand, all the hassle is just for the backup of the TA partition.
I think that we must start with your step 3, just to avoid confusion such as the step 3.4. Please post a direct link to the firmware you suggest, I can't download it because it requires me to register there too.
Also, you should break the part 4 at the step 11. If I'm not mistaken, the order should be 1, 3, 4 (1-10), 2 , 2.5, 4 (11-19).
In the guide, restoring DRM keys also should be added. ?
Nice guide mate.
Sent from my E6683 using Tapatalk
DeathStroke said:
In the guide, restoring DRM keys also should be added. ?
Nice guide mate.
Sent from my E6683 using Tapatalk
Click to expand...
Click to collapse
Latest andro kernel have drm keys intergrated bro
working for e6633 dual ?
I had a doubt! On Part Three, can I use the given E6653 ftf for my E6683? Or I should download the .152 ftf for my exact device model i.e. E6683?
Help me bro @_LLJY
good guide
easy follow
had overheat problem i need help...!
any one please ?
updated from support ( device no pc)
after update full overheat on camera use
Can you guys please help me?
My friend got a 5803, I backed up his DRM keys and unlocked the bootloader but can't root it.
If someone could be so kind to help us it'll be great, I did it to my 6653 but for some reason I can't root this one.
Sent from my E6653 using XDA-Developers mobile app
i am trying to downgrade my z5 from 6.0.1 to a 5.1.1 ftf...but when i begin to flash it stops ERROR - processing of loader.sin finished with errors....please someone can help me?
feesta said:
i am trying to downgrade my z5 from 6.0.1 to a 5.1.1 ftf...but when i begin to flash it stops ERROR - processing of loader.sin finished with errors....please someone can help me?
Click to expand...
Click to collapse
Unpack firmware Ftf file with flashtool and see is there file called FWINFO.Delete this file and pack Ftf using Ftool and you will not have peoblems with flash.
Sent from my Sony Xperia Z5
Here is a stupid question, what now that i have don all steps? i still dont have cmw or root?
feesta said:
i am trying to downgrade my z5 from 6.0.1 to a 5.1.1 ftf...but when i begin to flash it stops ERROR - processing of loader.sin finished with errors....please someone can help me?
Click to expand...
Click to collapse
I did two things to try to fix this:
1: Use the previous version of flashtool (0.9.18.6) instead of the current one
2: Use the Software Repair function of Sony's Xperia Companion application
I don't know which of these helped (it might have been neither, actually) but in the end I was able to flash Lollipop 5.1.1 onto my Z5 and use iovyroot to back up the TA partition.
Hi, this is kind of off-topic but this is the best thread for this question I could find.
I was in a hurry to get rid of the bloated, horrible stock rom, and I did not back up my DRM keys. I did patch my current kernel with the DRM fix from another thread here at XDA. Now my question is:
What kind of functionality did I lose from this, except not being able to restore to stock and relocking bootloader?
klemen241 said:
Here is a stupid question, what now that i have don all steps? i still dont have cmw or root?
Click to expand...
Click to collapse
Hello, look at this video:
h**ps:.youtube.com/watch?v=dTlosea6SJE
But at first, i installed at my Z5 the latest Kernal v36 and then i installed the TWRP 2.8.7.0, but i think you can install the newest TWRP too.
At last you install the SuperSu with TWRP, than you have full root!
Creating FTF not possible
hej,
i have a problem creating the FTF as described in Part 2.5:
-i downloaded the latest version via xperifirm (E6653_Customized DE_1298-3675_32.2.A.0.253_R3C)
-i deleted the fwinfo.xml & all .TA files from the folder
-flashtool is hanging here now:
-05/016/2016 09:16:25 - INFO - Streaming from file : C:\Users\hek\Desktop\Sony Xperia Z5\E6653_Customized DE_1298-3675_32.2.A.0.253_R3C\boot\boot_delivery.xml
05/016/2016 09:16:25 - INFO - Adding rpm_S1_Boot_MSM8994_LA1_2_2_40_AID_1_KITAKAMI-TEST-HWID009400E1-SWID0A-OEM0-AID1-DEBUG00_S1-BOOT-TEST-B316-0001-MMC.sin to the bundle
05/016/2016 09:16:25 - INFO - Adding Sumire_S1BootConfig_MiscTA.ta to the bundle
-tried it with singapore customized and german customized (&not deleting the .TA-files & manually unselecting all TA files in flashtool)
what could be the issue here or is there another way to get the latest version on the phone after unlocking it?
or is it safe just to install the latest version as described here without deleting the .TA-files? (http://forum.xda-developers.com/xperia-z5/general/guide-sony-xperia-z5-unlock-root-tweaks-t3298224)
thanks for any input!
--
Part 2.5: Creating FTF
Open up Flashtool
1. Click on tools > bundles > Create
2. Select the firmware folder
3. Double click on the Device section and select your device
4. Type in the firmware build number(at the end of the folder name) as for branding type in the country and carrier from which you downloaded the firmware from.
5. Go to file explorer and delete 'fwinfo.xml' from the firmware folder
6. IMPORTANT DO NOT TRANSFER THE FILES WITH A .TA FILE EXTENSION IT WILL BRICK YOUR DEVICE with that disclaimer out of the way go back to flashtool, transfer all the files using the arrows (except those with a .ta file extension)
7. Click create, you should be able to sit back and relax while it does its thing
I used iovyroot and it created taxxxxxx.img that it has 2mb. I think so I read so time ago that taxxxxx.img had 500kb... Is it my ta wrong?? Or it's normal??
Thanks!
Enviado desde mi Z1 mediante Tapatalk

Categories

Resources