• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Tool] SaveMyApp - Preinstall Your Apps

Steven58

Former Heavyweight Champion of AF-Early Bird Club
Moderator
Feb 19, 2010
34,790
28,753
USA
Credit to csscmaster3 @ XDA

OP NOTE: This looked very interesting to me.

Link with d/l's: [Tool] SaveMyApp - Preinstall Your Apps - xda-developers

Tired of having to redownload and reinstall all of your apps when you reflash your phone? SaveMyApp can help.

This script will setup your phone so that after your flash to your favorite rom, all* of your apps will be install on the first boot. These apps will show up in the market too!

Also, the script will allow you to backup your /data/data folder to your sdcard and then restore it after your reflash. The /data/data is where Most of your user data is stored. This is not guaranteed to fully restore everything. This also does not backup your Google, Android, or Motorola settings; this is to improve compatibility with roms.

*The /preinstall folder is limited to 120MB, so if you have more then of apps this script will not fully work.

This should work with all phones, however it has only been tested on the Droid 2/X.
If you want to test this script on a different phone, let me know the /preinstall size and if it worked or not.

v0.1.4.1 - 11/17/2010
-Improve safety of removing /preinstall/app

v0.1.4 - 11/16/2010
-Added option to clear the /preinstall/app folder
-Added messages to support clear /preinstall/app

v0.1.3 - 11/12/2010
-Added backup of /data/data
-Added messages to support Data Backup

v0.1.2 - 11/11/2010
-Added Backup /data/app-private
-Show /data/app size, prompt user for continue
-Additional messages added to improve user experience

v0.1.1 - 11/10/2010
-First Release
-Backup and Restore /data/app


Installation:
WARNING: This steps must be completed as listed, failure to do so may result in unexpected errors which I am not responsible for.

1. Enable USB debugging and make sure Sdcard is mounted on phone
1. adb push apps.sh /data
2. adb shell
3. cd /data
4. chmod 775 apps.sh
5. ./apps.sh
a. Follow the onscreen directions
6. Reboot and proceed to wipe and reflash
7. On boot, wait between 5 and 10 minutes depending on how many apps you have before logging into your account. (30 apps takes about 4-5 minutes)
8. Login to your account
9. Droid 2/X Bootstrapper -> Bootstrap Recovery
10. Enable USB debugging and make sure Sdcard is mounted on phone
11. adb shell
12. tar --overwrite -xvzf /sdcard/savemyapp/backup.tgz


FAQS:
Market isn't showing apps!
settings->applications->Manage Applications->All->Market->Force Stop, Clear data

Why is there a MACOSX file when I extract the archive?
Because I am lazy and I zipped it using Mac's built in archiver.

The script isn't working right away!
Redownload the newest script, just to make sure
 
I thought the same thing. Apparently this runs itself without having to go through titanium and selecting your apps to restore..I believe. Don't quote me, I'll deny it! ;)

But Froyo and Appbrain Will do this for you as well wont they? I always backup sync app brain before flashing, just in case the OS forgets to re-install something since I'm not sure how to see what is synced with the cloud, and to keep track of apps I did not install from the market like the Droid-X Bootstrapper.

I always just let android re-install all my apps by logging in after flashing when the phone runs setup, then reinstall data bookmarks etc (on a per app basis) selectively using ti-backup. I don't like to re-install data for apps that don't really need it.

Just wondering why this would be any better?
 
Upvote 0
I use TI and its pretty simple whether you hand pick the apps or batch install, its really quite simple. And my apps all sync with Market...

I'm not sure I'm seeing the benefit here?

What I'd like is a "SaveMyWidgets" app, I hate having to reinstall all the widgets when flashing new ROMS... also don't like setting up corporate sync email every time. Its like I forget how every frickin time lol
 
Upvote 0
It says it syncs to the market, when I've used titanium a few apps sync but most don't

:thinking:

I don't understand what this means. "Syncs" to market? You mean the market app recognizes which apps you have installed and will give you updates and stuff? Titanium Backup does this. I've done wipes of my phone probably 6 or 7 times now changing ROMs, themes, etc. and always use Titanium Backup to restore my apps, never had any that don't show updates in the market.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones