Sry i duno where to ask this question.
So, i have nandroid backup done by Philz Touch Recovery. I want to edit the backup. Basically i want to delete some files in the backup to reduce the size of system file. i can see that
system.ext4.tar 0KB
system.ext4.tar.a 953mb
system.ext4.tar.b 953mb
system.ext4.tar.c 400mb
i tried to open files using 7zip but failed. is there a way to edit the backup and recompile them?
using s4 i9500 - Halcyon 6 - Voltaqe kernel - OD4 bootloader
thanks
Related
[Script] General Backup/Restore CWM script for Flasholic !
This is nothing but plain script which backup many commonly used applications to Sd card.
Basically i have made this for my MultiMod user, but I am reading daily new thread by new user, upload this and that as they loss it after flashing mod. Here this will come handy.
It includes backup of following applications/frameworks
SystemUI.apk
SystemUI.odex
SecPhone.apk
SecPhone.odex
SecSettings.apk
SecSettings.odex
SecMms.apk
SecMms.odex
FlashBarService.apk
FlashBarService.odex
SamsungCamera.apk
SamsungCamera.odex
Nfc.apk
Nfc.odex
SecLauncher2.apk
SecLauncher2.odex
ClockPackage.apk
ClockPackage.odex
JobManager.apk
JobManager.odex
SamsungIME.apk
SamsungIME.odex
SecCalculator2.apk
SecCalculator2.odex
SecContacts.apk
SecContacts.odex
SecDownloadProviderUi.apk
SecDownloadProviderUi.odex
SecNoteMyFiles.apk
SecNoteMyFiles.odex
csc/others.xml
services.jar
services.odex
android.policy.jar
android.policy.odex
framework-res.apk
twframework-res.apk
To whom it helpful
It's useful to anyone who want to make makeup of existing application before trying mod. If mod doesn't work, you can use revert zip to restore your previous stat (at time of backup)
Some Tips for newbies
-This will backup your current theme/mod and when you revert, it restore stat to 'time of backup'
-This will make backup of above said files to int sdcard/DrKetanMod
-It will backup as tree structure on device like System/app will be in DrKetanMod/app and system/framework files in DrKetanMod/framework folder.
So manually you can easily figure out where to place in case restoring single app.
-Better to make backup when you have device clean like just after flashing stock ROM. it will create complete stock backup. Now suppose you have one backup of stock applications and you have flashed many mods after that and you want to try one more mod, do this
rename your stock backup folder DrKetanMod to DrKetanMod-stock
Again make backup, try new mod , if doesn't work then flash revert zip, so that will restore your previous mod Not stock. and still you can preserve all previous mod. whenever you need to go complete stock, re rename DrKetanMod-stock to DrKetanMod and flash revert zip
Download
For CWM/TWRP user
Backup Utility
Revert utility
For Mobile Odin user
Download This, extract it and read read.txt inside.
hey guys I want to create a custom rom flashable in cwm I want to convert my nandroid backup to flashable zip but when i convert it doesn't have meta-inf only data, system and boot.img is there
.
I will use the meta-inf for my costom rom because i will copy some scripts in updater-script
.
Is there any options i will appreciate the one who can help me
jom23rd said:
hey guys I want to create a custom rom flashable in cwm I want to convert my nandroid backup to flashable zip but when i convert it doesn't have meta-inf only data, system and boot.img is there
.
I will use the meta-inf for my costom rom because i will copy some scripts in updater-script
.
Is there any options i will appreciate the one who can help me
Click to expand...
Click to collapse
You could find a way to
Flash system.img, data.img, and cache.img using scripts
then, use updater-script to copy those "scripts" that you want to
You could take a lil' help from here, http://forum.xda-developers.com/showthread.php?t=2266285, "reverse engineer" the tool for your requirements :angel:
THANKS
vineethraj49 said:
You could find a way to
Flash system.img, data.img, and cache.img using scripts
then, use updater-script to copy those "scripts" that you want to
You could take a lil' help from here, http://forum.xda-developers.com/showthread.php?t=2266285, "reverse engineer" the tool for your requirements :angel:
Click to expand...
Click to collapse
thanks for your help ill try that
________________________________________________
I APPRECIATE THE ONE WHO HELPED ME
________________________________________________
i misunderstand
vineethraj49 said:
You could find a way to
Flash system.img, data.img, and cache.img using scripts
then, use updater-script to copy those "scripts" that you want to
You could take a lil' help from here, http://forum.xda-developers.com/showthread.php?t=2266285, "reverse engineer" the tool for your requirements :angel:
Click to expand...
Click to collapse
I converted my nandroid backup into update.zip
.
The question now is
.
how can I flash system.img,data.img,cache.img to get those scripts for my updater-script?
U said flash system.img,data.img,cache.img using scripts
.
But i didn't have scripts?
.
I have a meta inf folder but updater-script is not edited because I didnt know what script I will put in this
.
Sorry i didnt understand how to get those scripts while I flash it
.
________________________________________________
I APPRECIATE THE ONE WHO HELPED ME
________________________________________________
jom23rd said:
I converted my nandroid backup into update.zip
But i didn't have scripts?
I have a meta inf folder but updater-script is not edited because I didnt know what script I will put in this
Click to expand...
Click to collapse
If you already have an update.zip that works, then, probably the existing updater-script flashes the system.img, data.img and cache.img... Could you please post the updater-script from the "update.zip" that you obatained :fingers-crossed:
Hi,
I need to change some file in system,ext4.tar generated from nandroid backup.
I try to open tar with 7zip. deleted some files in system/app and system/framework. Then added some files in the directories app and framework
then i fixed md5
But in restoring with nandroid backup I receive an error in restoring system files.
is there a right way to make new system.ext4.tar good for nandroid backup?
thanks and sorry for my poor english
Hi
For what device ?
So I give you some general links
I would suggest you to go here => [Guide] How to create EXT4 images.
and [GUIDE] Unpack/repack ext4 Android system images
and Android Development and Hacking > Android Software Development >[APP][v2.4] Nandroid Manager (idea from my colleague @Perseus71)
and finally go here => General discussion > XDA-University - The best place for learning
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
reserved
bloof said:
Any comments, suggestions, feedback are welcome
Click to expand...
Click to collapse
good work mate, i'm out of Thanks for today.
Just tried, nice and easy to use. Thank u
does it save paired bluetooth and wifi devices?
deleted
Can you use this to make a zip of boot.img and libs? Not finding how to do that. Thanks for any information.
matusala said:
does it save paired bluetooth and wifi devices?
Click to expand...
Click to collapse
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.
countryfolk07 said:
Can you use this to make a zip of boot.img and libs? Not finding how to do that. Thanks for any information.
Click to expand...
Click to collapse
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.
hi guys
i am going to make a guide for how to make a custom rom for yourself without a pc.
so straight forward first check that you have following things.
1--> a android device (rooted)
2--> clockworkmod recovery installed
3--> 100% battery
4--> atleast 1.5 GB free on external SD card
BEFORE STARTING THIS METHOD I RECOMMEND YOU TO TAKE A PRINTOUT OF WHAT THIS GUIDE SAYS BECAUSE YOU HAVE TO DO WORK WITHOUT A PC ON A NON MULTITASKING ANDROID AND LOOKING TO XDA SITE OR APP EVERY TIME IS NOT A GOOD IDEA.
STEP ONE :>
First of all move all your data on internal sd card to external one and then do a factory reset.
After that goto recovery mode and follow
wipe data
wipe catch
backup and restore --> backup.
after having a nandroid backup. turn on the device normally. and just install es file explorer(it is good and provide lots of options).
STEP TWO :>
now you have a nandroid backup. goto that folder and open it. there are many files and one of them is system.******* . now copy that to a new folder where you will make a rom and paste it {remember to copy only do not cut or disturbe the original copy in backup folder just copy it}.
in the new folder look at the name system.*** you will get the original extension of that file its either .rar or .tar or.zip
now rename it as system.(the extension you found)
after renamming it just extract it and you will edit in this folder to make a new rom.
STEP THREE :>
in that folder you will see many folders just have a look at all folders and write names of those folder which have .apk files in it on paper. now those folder which have apk files are to be edited.
THERE ARE TWO TYPER OF ROME
1--> DEODEXED {HAVING ONLY .APK FILES IN THOSE FOLDER}
2--> ODEXED {HAVING .ODEX FILE WITH .APK FILES IN THOSE FOLDER}
DESIDE WHATS YOUR ROME TYPE AND FOLLOW THW GUIDE SERIOUSLY
FOR DEODEXED ROM --> now you have to give shape to your rom. i will provide you with list of apps you can change in custom rom.
launcher
gallery
camera
lockscreen
keyboard
calculator
gapps
internet brouser
file manager
you can add special apps to your device like screen recording software
and remove the default apps listed above {first remove default app and then paste the app you like}
FOR ODEXED ROM --> now you have to give shape to your rom. i will provide you with list of apps you can change in custom rom.
launcher
gallery
camera
lockscreen
keyboard
calculator
gapps
internet brouser
file manager
you can add special apps to your device like screen recording software
and remove the default apps listed above
first delete the app and its odex file and then past the new app{if you leave odex there for default app the new app wil be transformed to older once so delete odex of only those apps which you cange}
STEP FOUR :>
now you have apps of your choice and you are exited to test it.
but now its time for trickest part editing build.prop in system
inside system folder you extracted there is a file named build.prop open it and start editing
#change lcd screen density
ro.lcd_density = {increase for magnified view and decrease for a zoomed out view}
#change ram alootment to apps
delvic.vm.heapgrowthlimit = set only one value {68, 96, 124 ,256} {set a higher value than default in your file}
delvic.vm.heapsize = ste higher value than heapgrowthlimit, set only one value {96, 124 ,256} {set a higher value than default in your file}
#to get navigation bar at the bottom with three icons
qemu.hw.mainkeys = 0
save these changes {these lines are not to be edited they are there in that file only change the values ok}
STEP FIVE :>
copy the nandroid folder onto pc and save a copy of that nandroid backup on pc.
YOU HAVE MADE A CUSROM ROM BUT IT CANT BE FLASHED SO NOT GOTO THE SYSTEM FOLDER WHERE YOU EXTRACTED IT AND SELECT ALL FOLDERS INSIDE IT AND MAKE A SAME EXTENSION FILE WHICH YOU EXTRACTED IT FROM {select all folders inside system folder and make same extension file do not just select the system folder from outside go inside the folder and then do that ok}
for this step you will need a pc ofcoz.
STEP SIX :>
GREAT JOB YOU HAVE A SYSTEM.XXX RENAME IT LIKE THE NANDROID BACKUP ONE AND REPLACE THE ORIGINAL SYSTE, FILE WITH YOUR MODDED ON AND JUST CROSS YOUR FINGURES.
all steps are complete and not its time to reboot to recovert
wipe data
wipe catch
advance/wipe delvic catch
backup andrestore/advance restore/restore system
and its done first boot will take time and you have a custom rome made for yourrself on android and time to test it.
remember if you face any problem just use that nandroid which you saved on pc the original one and restore that to go back to custom rom.
if this guide helped please hit thanks.
facing problem contact me my id is
[email protected]
peace