[Tool][Windows][Root] Backup/Restore APKs for clean ROM flash!!! - Android General

[size=+4]Backup and Restore APKs Tool​[/size]
[size=+2]Description[/size]
This tool helps you to preserve your APKs files for a clean ROM flash. Once you have backed up your files, you do not need to download them again from playstore, instead you can just restore them from this tool.
Note: This tool only backs up applications and does NOT back up application data! Your device must be rooted for this tool to work. Use Super Backup if you want to backup app data and have a rooted device.
[size=+2]How to use this tool...[/size]
Download the zip attached below.
Extract the zip file.
Run "Run-Me.bat"
Your APKs are backed up in the Backup Directory.
Changelog
v1.5
Now you can backup from roms which do not provide su permissions to adb shell i.e. stock firmwares.
Added a loop which restarts the script if invalid input is given.
Fixed a bug which always congratulated even if the script failed to backup files. In fact I revoved it entirely.
v1
Initial release...
Piece of crap...
so I removed it entirely.
Wishlog
Add a filter to remove updated system applications and gApps / Fetch only the 3rd party applications
Make the script more intelligent to handle abnormal situations.
Someday transform it into an application.
[size=+2]Problem reporting[/size]
I always welcome feedback and reports. A screenshot would be appreciated with appropriate details of your device and failure type.

Related

[Q] Adding Titanium Backup to custom rom

I'm running a custom rom (CM7.2-RC3-APOCALYPSE-BAREBONE v12-06-12, by itasoulas, based on CM7.2 RC3 by vo-1 v31-05-12) on my Galaxy Ace (GT-S5830D). I'm about to flash a newer version of the custom rom, but I wanted to add Titanium Backup and S2E to the rom, so that my ext partition is mounted automatically after flashing, and Titanium Backup is already on and ready to restore.
I have the apk files for S2E & Titanium, do I just add them to the system/app folder in the rom zip? Or do I put them in the data/app folder, in which case I'd have to create said folder in the rom zip? Please let me know, as it would let me eliminate a whole 2/3 steps in the flash/restore process (flash->install S2E->reboot to mount ext->install Titanium->restore becomes flash->restore).
Any help would be greatly appreciated. I'd post this in the CM7.2-RC3-APOCALYPSE thread, but this is my first post and I'm not allowed to post there yet.
As you can see, I didn't get any response from my post, so I rolled the dice and went for it.
So here's how it works for those who don't know:
To add system apps to a rom, place the apk files in the system/app folder in the zip. If you want the apps installed as user apps, place them in the data/app folder in the zip. Worked like a charm. I flashed, booted, configured S2E (installed w/rom), rebooted, ran Titanium Backup and restored everything.
BTW, I was also able to add the APN info for my carrier into the rom. You can do that by editing the apns-conf file in the system/etc folder in the zip. This is handy because when I flash a custom rom I have no APNs set up, as well as no wireless networks saved, so by doing this I was able to run the initial setup when you first reboot the phone (instead of just skipping it, missing Gapps, and adding my account later).
Hope this helped for anyone who is interested.
Neat. Though I'd likely keep titanium as a user app, I'm definitely going to try this.
Sent from my U8150 using XDA
There is an app to move apps from users space to system space available on the google play. It is called app-mover. It is simple tool. If you are already using link2sd then there is a menu option for moving the apps.

[BACKUP][PC][ADB][BATCH-INSTALL-APK][NO-ROOT]ADB Toolbox

This project was made by me while playing around with the basics of Batch and ADB
It uses the native Android backup framework
Tested until the latest 4.2.2 firmware in Xperia L
Check Attachments for download
Features:
1.Backup App data along with apks
2.Backup system apps data
3.Backup SD app data
4.Restore *.ab ADB backups
5.Batch install any number of apks by placing in the folder provided
note:
>Does not backup user accounts or synced contacts and other sensitive data though messages etc will be backed up
>Enabling apk backup in first option will backup system apks also in the case that system backup is enabled
>Run the batch file at least once so as to create folders
>ADB Debugging must be enabled
>All backups must be in the required folder so as to restore
>You will need to activate the process in the phone so please keep your screen unlocked
>While installing apks the name must not contain multiple '.com' or unwanted symbols(such files will be omitted)
>Existing apps will be reinstalled with your apk without loss in data
Can we do selective backup ? Or we can only backup as a whole nice tool
Sent from Sony Xperia L
Navneet Suresh said:
Can we do selective backup ? Or we can only backup as a whole nice tool
Sent from Sony Xperia L
Click to expand...
Click to collapse
thanx
Backup of user data is done by default
-but u can choose to do it along with apk and sd data
-u can also backup system data
-also remember if 1st option is chosen ie..with apk..system backup if chosen will also be done with apk
this is bacause of how adb backup command works.
Thanks man! Very useful tool this is!

[Tutorial] How to restore SMS and Contacts from old CWM backup.

Normally, to restore SMS or MMS from an old backup, one can just restore the nandroid backup, use a third party SMS backup program to backup the data to sdcard or gmail, restore or install new rom, then restore the SMS from the third party backup software.
However, in my case, I had a nandroid with data on it that I wanted to keep but that wouldn't boot.
So I did some searching and others have had this problem before but I figured I'd put it here for others that may have the same problem. I am not taking credit for this I just found various pieces of info around the web and xda.
Requirement:
1. Winrar.
2. CWM backup
3. Windows
4. Brain
Here's the process:
To restore SMS/MMS from a CWM backup using MS Windows:
1. Install Winrar on your system
2. Open CWM backup folder
3. Now extract data.ext4 on your system
4. The contents of the data.img will be extracted to this folder. Wait for extraction to complete
5. Browse to data\data\com.android.providers.telephony\databases in the extracted folders
6. copy mmssms.db, mmssms.db-journal, to sdcard
7. use root explorer to copy these three files to \data\data\com.android.providers.telephony\databases
To restore contacts/call log from a CWM backup:
Repeat above process for \data\com.android.providers.contacts\databases
contacts2.db, contacts2.db-journal
Note: Be aware that replacing the existing files with those extracted from the backup will remove the existing data so if you're not 100% sure what you're doing, change the names to mmssms_OLD.db or otherwise back them up before pasting the files from the backup.
NOTE : You can also use Nandroid Browser , Nandroid Manager
Sorry to say.....not worked for me....
good work
Thank you, it works on my Samsung Galaxy S2 Gt-I9100,
you are my Hero.
I had no luck with this as the app versions seemed to differ. But there's this awesome python tool on github -- github.com - t413 - SMS-Tools -- which let's you export the db file's content into an xml file which can then be restored with "SMS Backup & Restore". That worked!

RESTORE .APKs FROM CWM

Hello Friends This is my first TUTORIAL.
DO, ANYONE RATHER THAN ME (AS A NOOB) NEEDS SOME SYSTEM OR USER INSTALLED .APKS from CWM (clockwork mod) Backups? It would be easy to get them just by Re-installing the Backups. But in some Cases we don’t want to restore the whole system backup instead of SOME APPS or DATA Only.
So Here’s the Tutorial to Extract the .APKs or DATAs From the Backups which is in the .tar format. (CWM RECOVERY only.) found By ME. (I don’t know if anyone Other than me have already found this Method. Coz I Didn’t find any.)
Steps:-
1. The BACKUP of your ROM (from which you want to Restore .APKs / DATA)
2. A Computer / Android Device.
3. 7 – Zip installed (for a Computer PC) / 7 zipper (free in the Play Store) Installed (for a Android Device)
4. Now go the Backup folder and Open It.
5. If you want to restore System (Pre-installed) .APKs of CWM RECOVERY find the File Named “system.ext4.tar.a”
6. If you want to restore your USER INSTALLED .APKs of CWM RECOVERY find the File Named “data.ext4.tar.a”
7. Open it with the Respective Installed “7-Zip | 7 Zipper” via the Device you have.
8. And Navigate to the Folder “system --> app” for Pre-Installed | and for USER installed APK.s “data --> app”
9. Now you’ve got to the Respective Place and you have the Whole .APKs of your Android. Restore / Copy them Which ever you want.
10. By this Method you can obtain much more than just APKs. Coz it has simply all the Vital Data or Information of your ROM.
Note: For Installing SYSTEM APPS you have to put it to your Root/System/App folder. And give it the Appropriate PREMISSIONs.
I hope You find it Helpful Noobs. just like me.
Thanks. & Regards,
v_singh (VIPIN SINGH)
v_singh said:
Hello Friends This is my first TUTORIAL.
DO, ANYONE RATHER THAN ME (AS A NOOB) NEEDS SOME SYSTEM OR USER INSTALLED .APKS from CWM (clockwork mod) Backups? It would be easy to get them just by Re-installing the Backups. But in some Cases we don’t want to restore the whole system backup instead of SOME APPS or DATA Only.
So Here’s the Tutorial to Extract the .APKs or DATAs From the Backups which is in the .tar format. (CWM RECOVERY only.) found By ME. (I don’t know if anyone Other than me have already found this Method. Coz I Didn’t find any.)
Steps:-
1. The BACKUP of your ROM (from which you want to Restore .APKs / DATA)
2. A Computer / Android Device.
3. 7 – Zip installed (for a Computer PC) / 7 zipper (free in the Play Store) Installed (for a Android Device)
4. Now go the Backup folder and Open It.
5. If you want to restore System (Pre-installed) .APKs of CWM RECOVERY find the File Named “system.ext4.tar.a”
6. If you want to restore your USER INSTALLED .APKs of CWM RECOVERY find the File Named “data.ext4.tar.a”
7. Open it with the Respective Installed “7-Zip | 7 Zipper” via the Device you have.
8. And Navigate to the Folder “system --> app” for Pre-Installed | and for USER installed APK.s “data --> app”
9. Now you’ve got to the Respective Place and you have the Whole .APKs of your Android. Restore / Copy them Which ever you want.
10. By this Method you can obtain much more than just APKs. Coz it has simply all the Vital Data or Information of your ROM.
Note: For Installing SYSTEM APPS you have to put it to your Root/System/App folder. And give it the Appropriate PREMISSIONs.
I hope You find it Helpful Noobs. just like me.
Thanks. & Regards,
v_singh (VIPIN SINGH)
Click to expand...
Click to collapse
or easier just restore from nandroid manager
ngoralph said:
or easier just restore from nandroid manager
Click to expand...
Click to collapse
hmm... thanks for your advice sir.
but does it offers to restore odex files.?
and other kind of files like built.prop etc.?

[GUIDE] How I debloated my S7 Edge (SM-G935W8) when Titanium Backup did not work

When I look up an online guide on how to debloat my Android device, most of them said to use Titanium Backup or another app related to debloat. Unfortunately, when I uninstalled apps in TiBu, it would reinstall on the next reboot (Maybe a system restriction). When I did an All-In-One uninstallation of the apps in Titanium Backup, my device was stuck on the boot logo forcing me to reflash firmware (I did not have any backups ). Fortunately, I found another way to do it, it was to flash a debloat script.
First of all download, Titanium Backup, even if it does not work when uninstalling, it will give us details when editing updater-script
Secondly, go to DEVELOPER OPTIONS and ENABLE OEM Unlock and USB Debugging. This is so less errors would occur. Keep then ENABLED after finished flashing the scripts
Scripts I used:
Just some scripts I used to debloat my device. Backing up is a MUST! I learned my lesson the harsh way :angel:
Debloater 4.2 Terminal - I used Option R
Nougat Debloat Script - I edited updater-script on my computer so it does not uninstall apps I need. After I edited, I rezipped the file and flashed it on my phone
Heavy Debloater - Made a file on my pc called "clean.sh". Edited the text so it does not remove apps I need. Rezipped. Sent to my phone. Flashed. Wipe davlik cache/cache
After using all these 3 tools, all my uneeded system apps were removed and I was not stuck on the boot screen.
How to Edit updater-script
1. First of all I used Notepad++ on my computer cause it is easier to manage
2. Extract the updater-script from "META-INF/com/google/android" to desktop.
3. Right-Click and select edit with Notepad++ (or a text editing tool).
4. I removed this part in the text because I want to wipe the dalvik and cache manually.
ui_print("Cleaning Cache and Dalvik-cache");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
Click to expand...
Click to collapse
5. Remove the lines you NEED. For example, when I WANT YOUTUBE INSTALLED ON MY PHONE, I will remove the line...
run_program("/sbin/rm", "-rf", "system/app/YouTube");
Click to expand...
Click to collapse
If I want to get rid of a system file, I keep the line there. For example, I DO NOT WANT TO KEEP WEBMANUAL, I will keep the line...
run_program("/sbin/rm", "-rf", "system/app/WebManual");
Click to expand...
Click to collapse
5. Rezip (or replace) the original updater-script with the new one you just edited.
6. Send the zip file to your phone (Email, Mediafire, Google Drive, etc)
7. Boot into recovery
8. Install/Flash ZIP
9. Wipe dalvik and cache
10. Reboot. It will take a bit longer than usual to reboot so you will have to wait
11. If anything fails restore backup.
----
Sometimes, the script does not include apps I want to remove. So what I did was add the code for the designated app on the updater-script manually. This is where Titanium Backup comes into play.
1. Open Titanium Backup
2. Select an app you want to uninstall in the Backup/Restore section
3. Click on the designated app
4. You will see 4 buttons BACKUP!, FREEZE!, UNINSTALL! and below uninstall is WIPE DATA. Beside the WIPE DATA, it shows yellow text. Click on that
5. You will see a window called Current Version Info
6. Look at the APK Path
7. Go back to updater-script and add...
run_program("/sbin/rm", "-rf", "*APK PATH OF THE APP*");
8. As you can see if you select Adapt Sound (just an example) you will see /system/priv-app/Hearingdro_V52_N. So in the updater-script you will add...
run_program("/sbin/rm", "-rf", "system/priv-app/Hearingdro_V52_N*");
(NO SLASH IN FRONT OF SYSTEM)
9. Do this for the other apps you want to uninstall.

Categories

Resources