FORUMS

Introducing Voices of XDA: Have Your Ideas Heard

By far the greatest assets we have at XDA-Developers are you, the developers, the eager … more

Unofficial Xposed For Lollipop Touchwiz With Flashable Zip

XDA Recognized Developer arter97 has released an unofficial build … more

YotaPhone 2 Pre-Order, Xperia Z1 Price Cut – XDA TV

Android Wear 5.1.1 OTA downloads are now available. That and much more news is … more

[FTF] Sony Xperia Z Lollipop Release

Sony rolled out a Lollipop update for Xperia Z just yesterday. If you still haven’t gotten … more
Post Reply Subscribe to Thread Email Thread

[GUIDE][TUTORIAL] Create small flashable zips to restore before applying MODs/Fonts

9th December 2014, 01:16 PM |#1  
bloof's Avatar
OP Senior Member
Thanks Meter: 1,002
 
Donate to Me
More
GUIDE: CREATING SMALL FLASHABLE ZIPs TO RESTORE FILES OR SETTINGS WITHOUT HAVING TO DO FULL NANDROID RESTORE

This will enable you to apply MODs without having to do a FULL NANDROID restore to recover if the MOD fails or if you don't like it

This brief guide will teach you how to create a flashable ZIP file that you can use to restore your phone to pre-MOD settings if you want to revert back or if the MOD simply does not work
WITHOUT having to do a full restore of your phone.

It is a very good idea to create these backup flashable ZIPs and keep them safe to recover from mishaps or when creating/testing MODs/themes.


************************************************** ************************************************** *********************************************
As usual: Disclaimer: I am not responsible for any loss of data or functionality on your phone. To be 100% sure, always make a NANDROID backup if you are not 100% certain you can recover.
************************************************** ************************************************** *********************************************

There are many reasons you might want to do this, for example when testing a MOD for another ROM that is similar to yours but not exactly the same (eg: Optimus G3 vs Cloudy G3) or when upgrading your ROM to a new version and wanting to re-apply old MODs.
There are many ways to get into boot loops or fail to boot, the biggest culprit being fonts installations, but include also bootanimations and others.


INSTRUCTIONS:

Part 1: general
1. Install ZIPme app from playstore
2. Find out which files are being modified by the MOD you are trying to apply, this is usually framework-res.apk, LGSystemUI.apk, lge-res.apk, but be aware that some MODs affect a lot of files. See part 2 for more details on how to do this.
3. If you are applying a font, don't worry, the FONTs section (see part 2) should cover all Fonts.
4. If you are applying a bootanimation, don't worry, the bootanimation section (see part 4) should cover all Bootanimations.
5. For every flashable ZIP you create you can test it straight away by booting into recovery and applying the zip file. There is no reason why it should not work.

Part 2: FONTS
1. In ZIPme select the following:
- ADD FOLDER: /system/fonts
- ADD FILE: /system/etc/system_fonts.xml
2. Create the flashable zip in an /sdcard location you can access from recovery



Part 3: MODs that affect framework-res.apk, LGSystemUI.apk or any other app
1. Find out which apks are being modified:
- You should of course read the OP (instructions for the MOD)
- The easiest way to find out modified apks is to download the MOD and open it: the zip file will contain either the apk files themselves or have directories with the names of the apks being modified.
- You can always ask the developer to make sure
2. Once you have a full list of files being affected you can create the flashable zip:
- in ZIPme, simply select "ADD -> File" for every file being affected
- If you have an ODEX ROM (.odex files are present) make sure you pick those too!
- save the flashable zip in an /sdcard location you can access from recovery



Part 4: Bootanimations
1. In ZIPme select the following:
- ADD FILE: /bin/bootnimation
- ADD FILE: /system/media/bootanimation.zip
- ADD FILE: /system/media/shutdownanimation.zip
2. Create the flashable zip in an /sdcard location you can access from recovery




Part 5: Other flashable files you should always keep handy
1. Always keep with you the following files for good measure: they don't take much space but can help recover from problems without having to fully restore from NANDROID backup
- original kernel from your ROM
- flashable bootloader (if you do not know what I am talking about then DON'T do it)
- flashable baseband (if you do not know what I am talking about then DON'T do it)
- flashable recovery image (TWRP, etc)
- "Xposed-Disabler-Recovery.zip": this is created by Xposed when you install it. It is located in the root folder of your sdcard. Copy it and put it somewhere safe.
- SuperSU: keep a flashable latest SuperSU with you to recover root



Any comments, suggestions, feedback are welcome
Last edited by bloof; 10th December 2014 at 07:57 AM.
The Following 44 Users Say Thank You to bloof For This Useful Post: [ View ]
 
 
9th December 2014, 01:30 PM |#2  
bloof's Avatar
OP Senior Member
Thanks Meter: 1,002
 
Donate to Me
More
reserved
The Following 3 Users Say Thank You to bloof For This Useful Post: [ View ]
9th December 2014, 02:25 PM |#3  
fLipz's Avatar
Senior Member
Flag ManiLa
Thanks Meter: 538
 
More
Quote:
Originally Posted by bloof

Any comments, suggestions, feedback are welcome

good work mate, i'm out of Thanks for today.
The Following User Says Thank You to fLipz For This Useful Post: [ View ]
14th December 2014, 09:18 AM |#4  
Junior Member
Flag Florence
Thanks Meter: 1
 
More
Just tried, nice and easy to use. Thank u
The Following User Says Thank You to Mich05 For This Useful Post: [ View ]
14th December 2014, 09:50 AM |#5  
Member
Thanks Meter: 7
 
More
does it save paired bluetooth and wifi devices?
14th December 2014, 01:31 PM |#6  
m0han's Avatar
Senior Member
Thanks Meter: 631
 
More
deleted
15th December 2014, 12:19 AM |#7  
countryfolk07's Avatar
Senior Member
Flag Columbus
Thanks Meter: 323
 
Donate to Me
More
Can you use this to make a zip of boot.img and libs? Not finding how to do that. Thanks for any information.
15th December 2014, 11:02 PM |#8  
bloof's Avatar
OP Senior Member
Thanks Meter: 1,002
 
Donate to Me
More
Quote:
Originally Posted by matusala

does it save paired bluetooth and wifi devices?

Nope. It saves what you tell it to save.
The guide as it is only saves files, was meant for modding restore, not other stuff.

If you try mods a lot and don't like a certain theme or icon set you don't need to do a full nandroid backup and full restore because you changed 3 files in your mod.
15th December 2014, 11:05 PM |#9  
bloof's Avatar
OP Senior Member
Thanks Meter: 1,002
 
Donate to Me
More
Quote:
Originally Posted by countryfolk07

Can you use this to make a zip of boot.img and libs? Not finding how to do that. Thanks for any information.

Not with what I wrote.
The app ZIPme can do a lot more than simple file recovery, but I am not an expert at flashable zips so can't comment on more advanced uses like buildprop etc.
I would certainly not write anything about boot images, way too likely to cause someone to screw up their phone....

Pick a flashable boot/libs zip file from somewhere and try to reproduce at your own risk.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes