Related
Can some one provide some instructions on how to go about making a CW zip file to flash and install all the apps that is on my phone?
I've seen a few of these floating around in the forum, and wanted to make my own to save time after every ROM flash
Do I just grab all the APK files throw them into a folder and Zip & Sign it?
or do I have to do a Nandroid backup first, then only use the app files from the backup?
I would like to know this too....
Would be nice as well instead of restoring
Sent from my Nexus S using XDA App
Take an existing update.zip type file. Add a folder to it with the full proper path for your apps you want to pre-install (typically this will be /data/app) and put all the apps in that folder. Should look something like this in a windows/mac explorer window:
Code:
META-INF
/com/google/android/updater-script
data
/app/myfirstapp.apk
/app/mysecondapp.apk
Then use a text editor to edit the META-INF/com/google/android/updater-script file to include the commands to copy over your stuff. It would something along the lines of:
Code:
ui_print("Installing New App Files to /data");
package_extract_dir("data", "/data");
Edit out anything in the update template you're working out of that you don't want to happen (ie., format or symlinks, etc).
Repackage the zip file and make sure nothing else got in there by mistake by re-opening it (like those pesky Mac .ds-store files).
You can re-sign it with the android tools, but I don't believe you need to with Clockwork.
I would have a fresh nandroid before testing anything, of course.
You feel this approach is better than just using Titanium to restore apps? You won't get back any app data that isn't stored on the sdcard.
Thanks!
yes, now that makes sense, i recall reading that some where else to add extra APK to the ROMs
so it's the same idea, just without the ROM portion
now i get it
distortedloop said:
Take an existing update.zip type file. Add a folder to it with the full proper path for your apps you want to pre-install (typically this will be /data/app) and put all the apps in that folder. Should look something like this in a windows/mac explorer window:
Code:
META-INF
/com/google/android/updater-script
data
/app/myfirstapp.apk
/app/mysecondapp.apk
Then use a text editor to edit the META-INF/com/google/android/updater-script file to include the commands to copy over your stuff. It would something along the lines of:
Code:
ui_print("Installing New App Files to /data");
package_extract_dir("data", "/data");
Edit out anything in the update template you're working out of that you don't want to happen (ie., format or symlinks, etc).
Repackage the zip file and make sure nothing else got in there by mistake by re-opening it (like those pesky Mac .ds-store files).
You can re-sign it with the android tools, but I don't believe you need to with Clockwork.
I would have a fresh nandroid before testing anything, of course.
You feel this approach is better than just using Titanium to restore apps? You won't get back any app data that isn't stored on the sdcard.
Click to expand...
Click to collapse
Ya essentially this method is doingan advanced nandroid restore for data only except without the settings.
Sent from my MattedBlues CM7 Nexus S from the XDA Premium app.
kenvan19 said:
Ya essentially this method is doingan advanced nandroid restore for data only except without the settings.
Sent from my MattedBlues CM7 Nexus S from the XDA Premium app.
Click to expand...
Click to collapse
I suppose if you want the app data restored as well, you would just need to identify it's location in the /data directory and add it to the /data folder in the update you're making. Seems like most of the app data goes into /data/data.
Just thinking out loud here...
So for a sample app on my phone I have called jefit pro I'd put the following in the update file.
Code:
/data/je.fit.pro-1.apk <---apk itself
/data/data/je.fit.pro <--the folder
/data/data/je.fit.pro/databases/data
/data/data/je.fit.pro/lib
/data/data/je.fit.pro/preferences/preferences.xml
I'd just pull the whole folder for the /data/data/je.fit.pro from the phone via adb.
I'm not sure how useful putting the data back is, since that's not a static set of files on many apps, but for some apps where the data is just some settings or preference files it may be a nice touch.
I don't really see any advantage to this over just use Titanium to restore apps and data, but it should work.
(<<---- this would be the whole folder and its subfolders that I pulled via adb off the phone)
distortedloop said:
I don't really see any advantage to this over just use Titanium to restore apps and data, but it should work.
Click to expand...
Click to collapse
AllGamer, I'm glad you brought this up, while I don't personally have any apps I want to put on the phone in this method, except perhaps titanium itself, I just realized we could of course do the same thing for all those little custom tweaks we put on our phones, like for me I push my personalized ringtones/notification sounds to /system. That's easy enough with adb or rootexplorer, but why not just flash them from a zip while in CW after a wipe or install of a new rom?
distortedloop said:
AllGamer, I'm glad you brought this up, while I don't personally have any apps I want to put on the phone in this method, except perhaps titanium itself, I just realized we could of course do the same thing for all those little custom tweaks we put on our phones, like for me I push my personalized ringtones/notification sounds to /system. That's easy enough with adb or rootexplorer, but why not just flash them from a zip while in CW after a wipe or install of a new rom?
Click to expand...
Click to collapse
the idea came up from several places, first Titanium Backup itself offers to create a signed .zip installer for CW
and i've seen other devices forums with people packing up like 100+ apps/tweaks/mods into it to flash after CW is done flashing the new ROM
yes, of course we can use TI, i have TI pro and it's very easy, but Ti is slow.... at restoring 300+ Apps
but everytime i see CW restoring a Zip file or even a full Nandroid backup, it does it so fast and quickly, that i though... hell might as well keep an updated signed .zip wtih all my must have apps, and flash it along right after any new ROM flash (when testing out different Custom ROMs) then i don't need to spend like an hour everytime restoring + configuring the phones
i noticed that Ti works a hell of a lot faster if the apps are already installed, and you only need to restore the data.
and that is the main reason i want to compile a list of all the apps
once they are all installed, then i can use any of the good market utilities that can do mass Apps2SD and i'll be up and running in as quickly as 15min vs. a whole hour waste on a restore/config everytime you change the ROM
using Ti i found most of the System settings can be restored safely without corrupting the new ROM
email
accounts & syncs
bluetooth pairings
wifi
... ah shoot forgot the rest
only do not restore settings for:
launcher,
wireless network (phone company)
android market
and anything that has to do with default settings
probably this weekend i'll dissect the CW zip created by Ti itself, and add more to it
Sounds like a good plan...but you've got 300+ apps if I recall correctly. I imagine that will take a long time to restore either method!
The Titanium update zip is a good place to start. Use the setting to make it a "user" app and it will put it in /data, where you want the rest of your apps as well. You could just dump what you want right into the zip file there in the folder that has titanium's apk itself and not even worry about messing with the updater-script file.
I would like to remove one of my backups that are no longer needed. How would I go about to delete them? Thanks!
Click on 'manage and restore backups' . From the list of backups long press on the backup you wish to delete. You will get options to 'restore, rename,or delete '. Choose delete.
Sent from my HTC Desire using XDA App
Thanks! I thought I would see an option when I long-press. I guess all I needed to do was short press to see an option.
Or go to /sdcard/clockworkmod/backup/ and find the folder (dated) and delete it
I have been palying around with various Zoom configuration. As I get one close I do a nandroid backup with CWM Recovery. I would like to be able to rename them with discriptive names so that I can find a specific backup when needed. Every time I try I get an MD5 sum error.
Does anyone know how to rename a backup and fix the MD5 sum?
REHolt218 said:
I have been palying around with various Zoom configuration. As I get one close I do a nandroid backup with CWM Recovery. I would like to be able to rename them with discriptive names so that I can find a specific backup when needed. Every time I try I get an MD5 sum error.
Does anyone know how to rename a backup and fix the MD5 sum?
Click to expand...
Click to collapse
You will need a file manager, such as Astro or what I use, Super Manager. Your nandroid back ups will be under folder "external 1" , clockworkmod, backup.
It's all in the file manager
I use root explorer. One thing to remember is that you can't use certain characters. I don't know exactly what they are, but if you only use what are in the original as far as punctuation you should be all set.
REHolt218 said:
I have been palying around with various Zoom configuration. As I get one close I do a nandroid backup with CWM Recovery. I would like to be able to rename them with discriptive names so that I can find a specific backup when needed. Every time I try I get an MD5 sum error.
Does anyone know how to rename a backup and fix the MD5 sum?
Click to expand...
Click to collapse
Use a md5 checker and check the whole folder, find the md5 file and open a text editor and add the md5 you just got in place of the old one
And if you put any special characters in the name or spaces you will get a md5 sum error
Sent from my ADR6400L using Tapatalk
the easiest way is use root explorer and stick to numbers and alphabet characters as much as possible. it will handle the md5 for you. just renaming the files with a file manager will ruin the backup.. DONT DO IT. I found out the hard way unfortunately.
As a test, I copied a CWM backup folder from my phone to my Windows PC. I renamed the folder without spaces or special characters and then copied the entire folder back to the phone. Upon restoring using CWM 5.0.2.7, it successfully passed md5 test and restored. I then rebooted with no problem.
I also compared the md5 sums in the nandroid.md5 files from the original folder (before renaming) and after renaming and they are identical.
The key is to avoid spaces or special characters; use underscore "_" instead of spaces in the folder_name.
I hope this helps!
you can use - instead of space
md5 fail with space, if rename again it will re-work, data is NOT ruined if you rename
Here is what it says had to remove it as it was fcin
Sent from my HTC Sensation using xda premium
have the same problem with you..
ppl here suggest use root explorer, go tos system/data/app/ and search for a file with titanium backup odex extension and delete it.,
me myself, try to do those thing above but find no titanium backup extension..
Next time use titanium backup to create an "update.zip" to flash right after you flash whatever rom you want. The update.zip is just the program to install onto your device so you don't have to hunt for the apk in the market.
I'll attach mine to see if it'll help.
Hello guys...first of all, i would like to thank you for your time reading my thread and about my problem
And i am sorry if i posted this on the wrong section.
I have been searching for days and in many forums, also googled about my problem...but to no use
I hope the pro's out there can help me out.
Okay..i am playing maplestory live deluxe game from the play store.
The problem is that i want to restore a maplestory live save game file. The save game file is from another link on the internet, which someone else played and uploaded it for other people to use. I want to use it. The save game has many godly items that i need.
But i dunno how to patch the save game file to my maplestory live file, so that i can use that save game.
I use android device (samsung galaxy tab 2 7.0 gt-p3100)
It has [email protected] rooted
Already install titanium backup
The person who posted the save game link said that, the save game file must be extracted and placed under sdcard/titanium backup folder on my device. Then open the titanium backup app and search for the folder...then hit restore.
The biggest problem is, my titanium backup could not detect the save game file that i got from the link.
I know the file is not corrupt cause other people who downloaded it has no problem whatsoever in restoring the file.
I already tried menu>prefrences>backup folder location>detect>whole device on my TB, but it says "no backup location was found"
The save game file is there under sdcard/titanium backup. I can see it clearly...but for some reason TB cannot detect it under the backup/restore tab.
I have also tried reboot to recovery and fix permission...but the problem persist.
Do help me...and thank you in advance
Anyone??...help..
I'm not sure but what i think is u already have a backup in ur titanium backup so it wont show to restore data from the new saved file.
So try this
1. Take a backup of tb folder (in case u mess up)
2. Except the apk file in tb folder in sd card delete other 2 files.
3. Then try the same procedure as above (i.e. copy the data to tb folder again....and so on)
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
sbetatester said:
I'm not sure but what i think is u already have a backup in ur titanium backup so it wont show to restore data from the new saved file.
So try this
1. Take a backup of tb folder (in case u mess up)
2. Except the apk file in tb folder in sd card delete other 2 files.
3. Then try the same procedure as above (i.e. copy the data to tb folder again....and so on)
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
Click to expand...
Click to collapse
Sorry..but i don't get what u are saying.
Delete other 2 files? Which file?
There are 3 files on your tb folder
1. Apk
2. Tar.gz (data)
3. Properties file (all compressed)
U have to delete the tar.gz (the data file) in ur tb folder and then put the new data file in that folder and try restore again.
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
Negative...does not work for me.
Okay...its my first time using TB..
I think the main problem is that i dunno how to access folder or file from TB.
Whenever i hit the Backup/Restore in TB it only opens a list of app that says "Ordered by app name (click to change)"
The list of app name is very long and have 3 colours : red, green and white.
Well i know the red coloured is the OS Kernel and can malfunction your device if u delete or wipe it.
But i do not see any file or folder to access from there (Backup/Restore)
So, how do i backup or restore any file or folder if it isn't there..?
For example, u said to backup my tb folder...i know that the tb folder is under sdcard/titanium backup..
But i don't see it in the Backup/Restore in TB. Is there something i'm missing here?
kraken83 said:
Negative...does not work for me.
Okay...its my first time using TB..
I think the main problem is that i dunno how to access folder or file from TB.
Whenever i hit the Backup/Restore in TB it only opens a list of app that says "Ordered by app name (click to change)"
The list of app name is very long and have 3 colours : red, green and white.
Well i know the red coloured is the OS Kernel and can malfunction your device if u delete or wipe it.
But i do not see any file or folder to access from there (Backup/Restore)
So, how do i backup or restore any file or folder if it isn't there..?
For example, u said to backup my tb folder...i know that the tb folder is under sdcard/titanium backup..
But i don't see it in the Backup/Restore in TB. Is there something i'm missing here?
Click to expand...
Click to collapse
I didnt mean backup/restore tab ... what i said was just copy your tb folder from sd card to pc in case u mess and can restore easily.
And can u just send me the file so that i can check on my side if it works.
Ok..i dunno how to put the file in this post.
But u can get the file here.. http://www.mediafire.com/?g9pvpg26gqtfg
Its a list of save game that this person uploaded and share with other people to use
I need the maplestorylvdelx.zip file and having trouble with it.
Like i said..when i extract it and put it under sdcard/titanium backup...TB just not detecting it.
When i hit Backup/Restore in TB and click on Maplestory icon to restore data...there is no restore option...only backup option.
kraken83 said:
Ok..i dunno how to put the file in this post.
But u can get the file here.. http://www.mediafire.com/?g9pvpg26gqtfg
Its a list of save game that this person uploaded and share with other people to use
I need the maplestorylvdelx.zip file and having trouble with it.
Like i said..when i extract it and put it under sdcard/titanium backup...TB just not detecting it.
When i hit Backup/Restore in TB and click on Maplestory icon to restore data...there is no restore option...only backup option.
Click to expand...
Click to collapse
Well the problem at last .... its not a tb backup file..
If u wanna see how does a tb saved game file actually look like, download a7 (i.e. asphalt 7 game file) from the same link u gave me and open the zip.
Those are the tb files needed to restore game data using tb software like i told u previously (tar.gz and properties file).
Now for your solution
As your file is simple save game data file......
You only need to copy the downloaded file (i.e. maplestory.zip) to root/data/data
And start the game and u will get the saved data.
Hit thanks if i helped you
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
Okay...first of all, thank you for your patience with me.
Now i finally know the difference between a TB save file and a normal save game data.
Just one last noob question...
U said to extract the maplestory.zip then put it under root/data/data right?
Errr...where do i find the root/data/data folder?....lol
When i open My Files under storage>sdcard , there is no root or root/data/data folder..
But, i do have ES File Explorer and ASTRO File Manager app..
When i use both this app to look in my device...there is also no root/data/data folder... BUT there is a folder named root that is located under device...along with other folders (acct, cache, config, d and so on)
Is that the folder u are mentioning? But the root folder is empty.
And exactly what do i see in this root/data/data folder anyway?
Is it empty or have something in it?
kraken83 said:
And exactly what do i see in this root/data/data folder anyway?
Is it empty or have something in it?
Click to expand...
Click to collapse
Use recova
Sent from my HTC Explorer A310e using Tapatalk 2
Use recova? What is that?
kraken83 said:
Use recova? What is that?
Click to expand...
Click to collapse
Use root explorer ...... the first screen it shows after start is the root folder now
Scroll down and find the data
Then open that and u ll see another data folder
Open it and paste ur file in that folder.
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)