Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUTORIAL]How to reinstall user apps (Quickly/Safely)

OP LeftyGR

29th January 2014, 08:32 PM   |  #1  
LeftyGR's Avatar
OP Senior Member
Flag Bloomington, IL
Thanks Meter: 883
 
1,277 posts
Join Date:Joined: Oct 2011
More
This was created in response to several people asking the safest way to reinstall user apps after flashing a ROM.

**This post shows you how to do it yourself.

**Please check out the second post to see apps verified to work that will perform this for you.

As the title implies, this will show you an easy and safe way to reinstall your apps after a clean ROM flash. I made this easy to do and easy to understand, so experts and new users can figure it out.

YOU WILL OBVIOUSLY NEED TO BE ROOTED FOR THIS.

To do this you will need 3 or 4 things things on your phone.

1. Download the attached file below named "AppBackup.zip". This is the file structure to correctly flash user apps. I built it to only install apps in /data/app. More advanced users may edit it to include system files, but that is beyond the scope of this tutorial (for now).

2. From the Play Store, install a file explorer with root access capability. For this tutorial, I will be using ES File Explorer. (ROOT REQUIRED)

3. From the Play Store, install ZArchiver. this app creates zip and other format archive files.

4. (Optional) From the Play Store, install ZipSigner. This app signs the zip file.

Click image for larger version

Name:	01Apps.jpg
Views:	141
Size:	39.4 KB
ID:	2547107

>>ES File Explorer

To enable ES File Explorer's root functions:

Quote:

Open the app and press the menu key. Select tools, and Root Explorer

Click image for larger version

Name:	02ESsetup1.png
Views:	147
Size:	153.3 KB
ID:	2547108

Your super User app will request permissions for ES File Explorer. Allow it, then choose "Mount R/W"

Click image for larger version

Name:	03ESsetup2.png
Views:	131
Size:	172.7 KB
ID:	2547109

Make sure that "/" and "/system" is chosen as r/w.

Click image for larger version

Name:	04ESsetup3.png
Views:	146
Size:	170.5 KB
ID:	2547110

ES File Explorer is now able to r/w your /data folders

----continued

Quote:

In the file explorer app, navigate to where "AppBackup.zip" is located and decompress (upzip) it.

In the file explorer app, navigate to /data/app, and select all the apps you want to copy.

Click image for larger version

Name:	04SelectApps.jpg
Views:	135
Size:	160.2 KB
ID:	2547137

Then navigate to the "AppBackup" file and post them into data/app.

Click image for larger version

Name:	05PasteApps.png
Views:	139
Size:	86.3 KB
ID:	2547138

>>ZArchiver

**Note: ZArchiver's default location for completed zip files is in /storage/emulated/0/archives. You may change the destination in settings.

Quote:

Using ZArchiver, navigate to INSIDE the "AppBackup" file! If you navigate only to the folder that "AppBackup" is inside, the zip will not work.

Choose the multi-select button.

Click image for larger version

Name:	06Z01.jpg
Views:	123
Size:	130.9 KB
ID:	2547146

Select data and META-INF folders, then press the checkmark

Click image for larger version

Name:	07Z02.jpg
Views:	128
Size:	123.0 KB
ID:	2547147

Press the tools button and select compress

Click image for larger version

Name:	08Z03.jpg
Views:	139
Size:	126.2 KB
ID:	2547148

In the resulting pop up menu, ensure the highlighted values are selected. Press OK.

Click image for larger version

Name:	09Z04.jpg
Views:	132
Size:	120.2 KB
ID:	2547149

This will take a minute or two, depending on how many apps you chose. When finished you will have a zip file!

Click image for larger version

Name:	10ZipDone.png
Views:	135
Size:	94.2 KB
ID:	2547182

>>Optional ZipSigner

I list this as optional, because the "AppBackup" file should flash fine without being re-signed. But, I will show it to you, nonetheless!

Quote:

Open ZipSigner and select "Choose in/out"

Click image for larger version

Name:	11Sign1.jpg
Views:	121
Size:	144.8 KB
ID:	2547191

Navigate to the new zip file you created.

Click image for larger version

Name:	12Sign2.png
Views:	124
Size:	90.6 KB
ID:	2547192

Select Sign the file. It will take a minute or two depending on how big the zip file size is.

Click image for larger version

Name:	13Sign3.jpg
Views:	143
Size:	134.0 KB
ID:	2547193

When it is done, close the app and navigate to where the original new zip file was (using the file explorer app). You will see one with the same name + "-signed".

Click image for larger version

Name:	14Done.png
Views:	125
Size:	119.9 KB
ID:	2547194

This is your new zip, and you may delete the old one and delete the "AppBackup" file if you wish to free up space.


YOU ARE DONE!

If you have questions or suggestions on how to make this tutorial better, please let me know!!

AppBackup.zip
Last edited by LeftyGR; 31st January 2014 at 12:41 AM.
The Following 5 Users Say Thank You to LeftyGR For This Useful Post: [ View ]
29th January 2014, 08:38 PM   |  #2  
LeftyGR's Avatar
OP Senior Member
Flag Bloomington, IL
Thanks Meter: 883
 
1,277 posts
Join Date:Joined: Oct 2011
More
Apps that can do it for you:


>> Titanium Backup w/Pro Key.

A Pro version feature will allow you to create an Update Zip file for any backed up app. There are many other features that make the purchase of the Pro Key worth the $$!

>> ZipMe

A stand alone program by JRummy. This program is listed as in beta, but has not been updated since mid 2013. It seems to work, but may have bugs. JRummy's main focal app "ROM Toolbox Pro" has this functionality slated to be included in a future update.


Other useful tip regarding backup of files and data:

-You never know what may happen. So when you back up anything, put it on your external sd card (odin wipes everything internal, including internal sd storage - thanks @Grompy ).
-Any experienced PC owner has lost things and learned to back up to cd or external hard drives. SD cards can fail. I make it a habit to back up my ext sd card at least once a month. My laptop then gets backed up to an external hard drive. Trust me. Don't learn this habit the hard way!
Last edited by LeftyGR; 1st February 2014 at 08:26 PM.
The Following 2 Users Say Thank You to LeftyGR For This Useful Post: [ View ]
29th January 2014, 09:20 PM   |  #3  
Grompy's Avatar
Senior Member
Flag Noblesville, IN
Thanks Meter: 156
 
432 posts
Join Date:Joined: Oct 2009
More
Will this work for apps that require lib files in /data/app-lib/? Like chrome, adobe reader, es file explorer etc..

Sent from my SM-N900V using Tapatalk
29th January 2014, 10:17 PM   |  #4  
LeftyGR's Avatar
OP Senior Member
Flag Bloomington, IL
Thanks Meter: 883
 
1,277 posts
Join Date:Joined: Oct 2011
More
Yes. I use this method to install tibu and es file explorer after a rom flash, and never have problems.
The Following User Says Thank You to LeftyGR For This Useful Post: [ View ]
29th January 2014, 11:15 PM   |  #5  
Junior Member
Flag Florence, SC
Thanks Meter: 2
 
15 posts
Join Date:Joined: Feb 2011
More
Check out a new app from JRummy Apps called ZIPme. It is in beta but seems to work great and does it all.

Sent from my SM-N900V using XDA Premium HD app
The Following User Says Thank You to themoneyman For This Useful Post: [ View ]
29th January 2014, 11:35 PM   |  #6  
Frank Westlake's Avatar
Senior Member
Thanks Meter: 182
 
525 posts
Join Date:Joined: Nov 2013
More
This is very useful.

Frank
Last edited by Frank Westlake; 30th January 2014 at 02:03 AM.
The Following User Says Thank You to Frank Westlake For This Useful Post: [ View ]
31st January 2014, 12:43 AM   |  #7  
LeftyGR's Avatar
OP Senior Member
Flag Bloomington, IL
Thanks Meter: 883
 
1,277 posts
Join Date:Joined: Oct 2011
More
Updated. 2nd post now lists apps available to create recovery flashable zip files for you, rather than manually creating them.

<Note3>
1st February 2014, 08:03 PM   |  #8  
Grompy's Avatar
Senior Member
Flag Noblesville, IN
Thanks Meter: 156
 
432 posts
Join Date:Joined: Oct 2009
More
Hey guys after losing all my backed up data, I just wanted to warn everyone to make sure that you back up everything to your external SD card when you use odin. I backed up everything using this method and using titanium backup, but both were saving to my internal SD card. When I odined everything was lost. I've since changed my backup location of titanium backup to my external and urge you all to do the same.

Sent from my SM-N900V using Tapatalk
The Following 2 Users Say Thank You to Grompy For This Useful Post: [ View ]
5th February 2014, 08:02 PM   |  #9  
Junior Member
Thanks Meter: 1
 
13 posts
Join Date:Joined: Dec 2012
This is helpful, thanks.

The Following User Says Thank You to jordanabc For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes