Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old January 25th, 2009, 06:07 PM   #1 (permalink)
Member
 
devolio's Avatar
 
Join Date: Oct 2008
Location: Michigan
Posts: 339
 
Device(s):
Thanks: 0
Thanked 33 Times in 11 Posts
Send a message via AIM to devolio
Default Back up and Restore applications (nearly automatic)

Disclaimer: As usual, I am not responsible for any damage done to you or your device by these scripts. They're simply what I use to do my own stuff.

What it does

Copies the application installers to the SD card into a folder, and makes a list of installed applications that can be used to generate an auto-installer for them.


Prerequisites

A rooted phone with Busybox (any JesusFreke modified update) and the Android SDK Tools (specifically adb).


Installation
Copy the included file onto the SD card.

Download it here


Usage
Make sure you're unmounted and unplugged so that you can access the SD card.

Open up the Terminal emulator

cd /sdcard

Get root
su


Backing up Applications

sh backupapps.sh

Once you've run the script, you'll have two things on your SD card: the applications folder (/sdcard/app-apks) and the application list (/sdcard/applist.txt)


To generate a restore script

(Windows batch or Linux shell script) go here.

As long as adb is running and connects fine with your phone (check with adb devices), you can give that page your SDK folder location and where you stored your application backup (on your computer) and it will generate an auto-installer for your applications. Save it, run it, and it will reinstall all your applications.

Easy. I'll make a new restore script generator a little later, I just whipped this up to have it done.


Caveats
If you're going to back up your applications more than once, make sure you move the first backup off of the phone first, otherwise it nests the folders. I don't want to delete a directory off the phone if it's used already.

__________________
Guides
FAQ | Rooting | Installing SDK/Eclipse

My Stuff
Twitter | Apper | Yz | Yz Donation
devolio is offline  
Last edited by devolio; January 25th, 2009 at 06:12 PM.
Reply With Quote
Sponsors
Old January 25th, 2009, 07:47 PM   #2 (permalink)
Premium Member
 
justjimjpc's Avatar
 
Join Date: Nov 2008
Location: Washington DC, USA
Posts: 10,584
 
Device(s): G1(2ea) 1 rooted, MT3G v1.0, Samsung Vibrant
Thanks: 5
Thanked 203 Times in 98 Posts
Default

I dont know how many of you use the app "ASTRO" as a file manager for all storage items on the SDCard ... but I use it to make easy backups of all app's *apk files ...

Start Astro program ... then press MENU then select "Application M.."

the app will load all apps currently installed in phone memory... you can select indiviual apps to backup/restore ... or Backup all apps in one process.... by clicking very top checkbox then clicking on the backup button ... easy as pie ....

Click on the TAB "Backed Up Apps" and you will get all packages that you have backed up .... Apps in green are installed ... Apps in white can be reinstalled ... by using the standard long-press ...

All packages are saved in /sdcard/backups/apps ....

Older versions are overwritten if you install any update and then perform a backup ...
so if you want to keep all versions you will want to do that manually ...

I use this program everyday in conjunction with "aTrackDog" ... for keeping programs up-to-date

This works great for those of us that dont have root or not brave or technical enough to do the required operatons ...

Hope this helps those who cant use Devolio's great techniques ... Thanks To him for all of his expertize
justjimjpc is offline  
Reply With Quote
Old January 25th, 2009, 07:51 PM   #3 (permalink)
Member
 
devolio's Avatar
 
Join Date: Oct 2008
Location: Michigan
Posts: 339
 
Device(s):
Thanks: 0
Thanked 33 Times in 11 Posts
Send a message via AIM to devolio
Default

Very nice, didn't know that That's much easier, but I thought astro was going paid only in March or something?
devolio is offline  
Reply With Quote
Old January 25th, 2009, 07:57 PM   #4 (permalink)
Premium Member
 
justjimjpc's Avatar
 
Join Date: Nov 2008
Location: Washington DC, USA
Posts: 10,584
 
Device(s): G1(2ea) 1 rooted, MT3G v1.0, Samsung Vibrant
Thanks: 5
Thanked 203 Times in 98 Posts
Default

Quote:
Originally Posted by devolio View Post
Very nice, didn't know that That's much easier, but I thought astro was going paid only in March or something?
It may but i have not heard that ... so I will keep my free version if it does ... I would assume that the paid would have added native readers for more file types ... BTW this was the old "Bender" app

EDIT: I checked the app and it does say it is a Beta and Expires 2/28/09 ...
justjimjpc is offline  
Last edited by justjimjpc; January 25th, 2009 at 08:03 PM.
Reply With Quote
Old January 26th, 2009, 09:30 AM   #5 (permalink)
Senior Member
 
dkaufman1's Avatar
 
Join Date: Oct 2008
Posts: 1,200
 
Device(s):
Thanks: 3
Thanked 22 Times in 11 Posts
Default

Quote:
Originally Posted by justjimjpc View Post
I checked the app and it does say it is a Beta and Expires 2/28/09 ...
For those unaware....expirations are coded by the dev and render the program useless. Meaning keeping the old free copy just results in an app that doesn't work.
dkaufman1 is offline  
Reply With Quote
Old July 17th, 2009, 04:34 AM   #6 (permalink)
Junior Member
 
Join Date: Jul 2009
Location: London, UK
Posts: 16
 
Device(s): Motorola Dext
Thanks: 4
Thanked 1 Time in 1 Post
Default

Hi I just had a go at this - doesn't seem to work maybe cupcake changed it? Any way I can edit the script to get it going properly? It's all a bit over my head

Thanks!
jomtones is offline  
Reply With Quote
Old November 18th, 2009, 05:06 AM   #7 (permalink)
Junior Member
 
Join Date: Jul 2009
Location: London, UK
Posts: 16
 
Device(s): Motorola Dext
Thanks: 4
Thanked 1 Time in 1 Post
Default

spam alert, mods please ban...
jomtones is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn Off Automatic Restore Feature Ufkal Incredible - All Things Root 9 May 12th, 2011 06:18 AM
Support Back up and restore Billy1036fm Sony Ericsson Xperia X10 1 December 5th, 2010 05:37 AM
Support Back up and restore whiteboy Sony Ericsson Xperia X10 6 November 21st, 2010 10:05 AM
Orange Customers: Restore your Google applications terranim HTC Tattoo 46 September 26th, 2010 05:45 AM
Automatic translation of applications ? obones HTC Desire 5 August 30th, 2010 03:37 AM



All times are GMT -5. The time now is 02:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.