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

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!

Related

[Q] Go backup restored problem

I hope it is the right forum to ask.
I've just flashed my GS2 to JB 4.1.2 and Rooted.
Before that I made a mistake and backup my files with Go backup pro.
Now I can't restored because it is not find my backup files on the path..
I have searched in your forum vertically and horizontally and I found some thread about this problem but without a solution.
Could someone please advice me how to restore my files back?
Thank you very much.
Tomer.
tomer_inbar said:
I hope it is the right forum to ask.
I've just flashed my GS2 to JB 4.1.2 and Rooted.
Before that I made a mistake and backup my files with Go backup pro.
Now I can't restored because it is not find my backup files on the path..
I have searched in your forum vertically and horizontally and I found some thread about this problem but without a solution.
Could someone please advice me how to restore my files back?
Thank you very much.
Tomer.
Click to expand...
Click to collapse
I also backup my files using Go Backup pro. The backups by default are in external sdcard ( sdcard1). After flashing a rom you reinstall Gobackup Pro from Play Store. Launch the app and you will see the two tabs onscreen : backup tab and restore tab. Just click the restore tab and you see a prompt showing all backup files. Choose the latest files and click restore.
terrynguyen said:
I also backup my files using Go Backup pro. The backups by default are in external sdcard ( sdcard1). After flashing a rom you reinstall Gobackup Pro from Play Store. Launch the app and you will see the two tabs onscreen : backup tab and restore tab. Just click the restore tab and you see a prompt showing all backup files. Choose the latest files and click restore.
Click to expand...
Click to collapse
I tried it and still I don't have any backups on screen.. :crying:
See which storage has been set as default. ( under settings - storage)
If you backed up to SD and now internal memory is made as default, it won't show the files. (as it searches only internal memory)
- - - - - - - - - - - - - - - - - - - - - - - - - -
LIFE!
IT'S WHAT YOU MAKE OUT OF IT!
Thank you for your answer.
I did backup on the SD card.
I did check and both shows no backup..
GoBackup doesnt recognize old backup files problem solved!
OK...got something for all of u punks like me out there. After installing new ROM i couldn't restore my backuped upfiles with GoBackup coz app couldn't recognize or find old backup files. I really had some important stuff there and wasn't intending to just give up. I have read many forums but everyone said to just give it up and forget it. Said hell no! So after few days of trying (reinstalling rom,gobackup,deleting caches and god knows what else i have tried) i came a cross of this lame idea . I actually opened GoBackup files on my GoogleDrive(so.... i had backup but app couldn't find it or recognize it to be able to restore it) and checked what i had installed. Made a list and installed all apps i had when i was making backup. Then i installed apps and made backup via gobackup. And here it goes... i copyed old backup files in latest backup directory , renamed old backup files using names from new files. So u get your old backup using file names of latest backup. Now app will recognize your old backup coz u renamed them. App thinks your old backup is actually latest backup. U just go into app and restore your things.
So:
1.Check out your GoBackup directory where u have your backup files (which after rooting app doesn't find or recognize) and make a list of apps u wanna restore
2.Install apps from your list
3.Make new backup of all apps u wanna restore later(old ones u had installed)
4.Now open backed up files that u wanna restore and open latest backup directory and rename old files using names from new backup files.
5.After renaming old backup files, move them into latest backup directory replacing latest backup files with renamed ones.
6.Go to GoBackup app and make restore of latest backup which is actually old one .
Found an easy solution
1. Connect your phone via cable.
2. Open SD card, locate GOBackup folder and press copy.
3. Go to local memory and press paste.
Now open GOBackup on your device, and its a miracle, all your backup there

Backup and Restore Apps and Data [Manually]

Hello folks,
I am tired of restoring all my apps settings and replaying my games from the beginning each time I install a new rom or do a factory reset so I was looking (a couple of hours ago) for how to restore my apps setting and especially my games progress after every data wipe......
I read that many users faced problems using helium and some similar apps (Titanium Backup seems to be perfect for this job but it's a paid app and that is the problem:laugh and after all this I figured out that what were doing these apps to make a full backup of an app is just making a copy of the app.apk and the app folder in /data/data where app is the name of the considered app(sorry if this is well-known but I really didn't know)
So I made this tutorial on how to backup/restore your apps and data MANUALLY because this let you choose which app to backup/restore...
This tutorial is for noobs (because I am noob!!!!!)
Requirements:
Galaxy SL or any other android device.
ES explorer or any other file explorer with root access support.
Your phone needs to be rooted.
Backing up app and data:
Enable your explorer read/write permissions (for ES explorer >>settings>>root options).
Go to /data/app and copy the app.apk to your SD card backup folder.
Go to /data/data and copy app folder to your SD card backup folder.
that's it, now your app is fully backed up.
Restoring app and data:
Install app.apk from backup folder
Go to /data/data and remove the existing app folder (don't launch the app now because it won't start)
Copy the app folder from the backup folder to /data/data
launch your app now, it should work!
that's it, now your app is fully restored.
Notes:
I tried this to backup and restore NFS most wanted progress and it WORKED!!!!
Maybe this methode don't work for some apps but it should work for the rest of them.
For system apps go to /system/app .
app folder should start with "com." (for example "com.ea.games.nfs13_na" for NFS most wanted).
I don't know what is the difference between this methode and the adb methode so can someone tell me if there is a difference.
Restoring apps settings from/to different android versions may not work
hey guys, this is my first thread so please don't blame me if it's not good enough
sorry for my bad English and hope this will be helpful for you
Best regards
any replays here???
how to restore helium backup manually????
:fingers-crossed::fingers-crossed::fingers-crossed:
ASMI1 said:
3. Copy the app folder from the backup folder to /data/data
4. launch your app now, it should work!
Click to expand...
Click to collapse
Thanks, it works!
But there is some small point. The Android system uses technical users to separate the data of the apps from each other. If you copy the files this way then the copied files will belong to root and be accessible for all apps.
So you should also take care that the file and folder attributes for rights, users and groups are correctly set. Therefore start and stop the installed app again, it will create its folder in /data/data. You can then see (and set) the attributes in the properties entry of ES file explorer. And only then overwrite the files with the backup and after this set the attributes.
Unfortunately this is not very comfortable with ES file explorer, because it has to be done for each and every file/folder separately and the technical user has to be chosen from a long list...
ThemGo said:
Thanks, it works!
But there is some small point. The Android system uses technical users to separate the data of the apps from each other. If you copy the files this way then the copied files will belong to root and be accessible for all apps.
So you should also take care that the file and folder attributes for rights, users and groups are correctly set. Therefore start and stop the installed app again, it will create its folder in /data/data. You can then see (and set) the attributes in the properties entry of ES file explorer. And only then overwrite the files with the backup and after this set the attributes.
Unfortunately this is not very comfortable with ES file explorer, because it has to be done for each and every file/folder separately and the technical user has to be chosen from a long list...
Click to expand...
Click to collapse
Hi ThemGo! You have reopened a bit old thread :laugh: Now a days, the play store is bull of useful apps to backup almost everything on your android device. I found that Titanium backup Pro is the best among them all. Its a paid app but it really deserve it
Kind Regards
ASMI1 said:
the play store is bull of useful apps to backup almost everything on your android device
Click to expand...
Click to collapse
Of course, but what - as happened to me last month - if your phone dies suddenly, you get yourself a new one and fortunately have a not too old backup made with cwm recovery, what will you do?
Yes, extract the necessary data from the backup and then copy it manually to the new phone.
ThemGo said:
Of course, but what - as happened to me last month - if your phone dies suddenly, you get yourself a new one and fortunately have a not too old backup made with cwm recovery, what will you do?
Yes, extract the necessary data from the backup and then copy it manually to the new phone.
Click to expand...
Click to collapse
Havent really tried that but if both phones are using same android version that may work. Because some of my apps that were backed up on Jellybean are not working on Kitkat & Lollipop even when using the same phone so I guess the backup procedure is not just a matter of copying & pasting.

[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!

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

[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.

[TUTORIAL] Backup of viber messages All in One

Hello,
I've recently been working to backup all of Viber messages/conversations along with media files.
Came across multiple threads and solutions. Wanted to gather them up here for everyone struggling with it, so we don't waste time again.
Here are solutions:
1. Posted by @rsadalarasu https://forum.xda-developers.com/showpost.php?p=54406849&postcount=51 :
rsadalarasu said:
Hi, I have been trying to restore the viber messages whenever i change phones but i never had possible solution to fix the problem.
Today i was trying something and interestingly it worked!! Try to follow the below mentioned steps it might work for you too..
1) Take a backup of the viber using Helium ( https://play.google.com/store/apps/d...a.backup&hl=en ). This app works both for rooted and non rooted phones. For non rooted phones you have to connect to computer to activate the backup mechanism.
2) Install Helium in your new phone and select restore and sync option and then select the old device ( which will show up if you are in same wifi) and then select viber app and restore it.
3) Now open the viber app - Viber as usual ask for activation, just activate the it. This time you will not get the restored messages.
4) Again try to repeat the step 1 and step 2
5) reboot the phone and open the viber app. dont be surprised it will again ask for activation. Activate it again, but this time you will see all the old messages in viber.
6) to get the pictures and videos, copy the Viber Images/ Viber Videos from SDCARD -- > viber --> media from old phone to new phone.
Hope it works for all
Click to expand...
Click to collapse
2. Posted by @MeraVeer https://forum.xda-developers.com/showpost.php?p=63105431&postcount=81 :
MeraVeer said:
Fool Proof Guide to fix Viber crash and restore messages/data
Force Stop Viber
In TitaniumBackup folder find com.viber.voip-(some numbers).tar archive
Open \data\data\com.viber.voip\.\databases using file explorer in android or transfer the .tar file to computer and open with WinRar program.
Find both "viber_messages" AND "viber_messages_journal" files
Copy them to \data\data\com.viber.voip\databases on the phone
change permission for viber_messages to RW RW --
change permission for viber_messages_journal to RWX RW --
And change the "group" and "owner" to same as the com.viber.voip folder - these are the permissions needed for the Viber app to access those files or it will constantly crash.
Restart phone and that's it, you will have all your messages
Click to expand...
Click to collapse
3. Posted on StackExchange by @gabor_ http://android.stackexchange.com/questions/68796/how-to-transfer-viber-message-history-to-a-new-phone/123260#123260 :
You can do it without root access
Requirements:
Install ADB and OpenJDK 8 (I had nothing to do with security extension) by following adb backup guide on XDA
Download adbextractor
Then do
Code:
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install android-tools-adb android-tools-fastboot
Now, do the following
Connect the old mobile, create backup with adb backup (disable WiFi and data and forget the old phone)
Code:
sudo adb backup com.viber.voip -f /home/user/Downloads/viberoldphone1.ab
sudo java -jar abe.jar unpack /home/user/Downloads/viberoldphone1.ab /home/user/Downloads/viberoldphone1.tar
Install Viber on new phone and activate Viber, connect the new phone and create backup with adb backup
Code:
sudo adb backup com.viber.voip -f /home/user/Downloads/vibernewphone2.ab
sudo java -jar abe.jar unpack /home/user/Downloads/vibernewphone2.ab /home/user/a/vibernewphone2.tar
Open TAR archives in an archive manager (found Archive manager for GNOME 3.14.2 on my Lubuntu LiveCD). Copy files below from viberoldphone1.tar DB directory to vibernewphone2.tar
viber_data
viber_data-journal
viber_messages
viber_messages-journal
Repack to .ab and restore data to phone
Code:
sudo java -jar abe.jar pack /home/user/a/vibernewphone2.tar /home/user/Downloads/vibernewok.ab
sudo adb restore /home/user/Downloads/vibernewok.ab
Works like a charm. I have just tested on Android 4.1 and 5.0. I run into problems on Win7 with adb so finally used Lubuntu.
You can try to edit Viber DB files with SQLite editor. Probably DB files could be restored directly but I had no time to test
References:
http://dbremes.wordpress.com/2013/02/11/how-to-get-a-backup-of-your-android-applications-database-in-windows/
http://stackoverflow.com/questions/2078710/android-adb-access-to-application-databases-without-root
Click to expand...
Click to collapse
4. Posted by @kmmc https://forum.xda-developers.com/showpost.php?p=53093637&postcount=2 :
kmmc said:
Smile Fixed! Android Viber Backup and Restore Successful
Okay, thank Jesus I managed to get this fixed and this is what it took.
This solution required a Rooted device.
Restore Viber backup (for me I did this using MyBackup Pro)
Install SQLite Debugger from the Play Store
Using SQLite, try locating the Viber database files by selecting App then choosing Viber from the list (if you want to locate the database manually, for me it was under /data/data/com.viber.voip/databases)
Choose the "viber_data" database
Open the database, scroll to the bottom, choose "Create backup"
Save the backup somewhere on your SD card (not inside the viber folder or else it will get deleted)
Repeat the same steps for the "viber_messages" database
Uninstall Viber (or if you are using MyBackup Pro, go under Toolbox and "Wipe the Cache & Data" for Viber)
Reinstall Viber so that a fresh, clean working set of databases are generated by the app (or re-open Viber)
Do the usual setup of entering your phone number, letting it sync contacts etc
Once Viber has settled down, close it
Re-open SQLite Debugger
Navigate back to the "viber_data" database
This time, choose Restore Backup
Select the backup file from your SD card
Kill Viber if requested and wait for the restoration
Rinse and repeat for the "viber_messages" database
Once it is all done, reboot your device and hopefully, the next time you open Viber, the old messages & calls are all there! Unfortunately for me, presumably due to the change in ROMs, the photos sent in Viber messages are in my Gallery but NOT in Viber itself.. I suspect this can be fixed if the path is saved somewhere in the messages database - but right now, I'm just glad to have the text back.
If you get repeated errors from Viber during this process, try freezing the app using MyBackup Pro Toolbox (I believe Titanium Backup also has this option)
====
If this helped you, please click the THANKS
Click to expand...
Click to collapse
5. Posted by @lordalireza https://forum.xda-developers.com/showpost.php?p=56294723&postcount=62 :
lordalireza said:
Thumbs up This one is gold
OK Guys this is the only 100 percent way and after restore the activation screen wont ruin every thing
first: u need you backed up com.viber.voip .tar.gz file
second : u creat an empty zip file by right click . create zip
third: you drag the data folder that was in .tar.gz file and drop it in the zip file
fourth: you rename the zip file the same az .tar.gz file
fifthpen the zip file go into "com.viber.voip" folder inside the zip file and remove everything exept "database" folder
sixth:go inside "database" folder and remove everything exept "viber_messeges" and "viber_messeges-journal"
ok now and this is the most important part
seventh: go to www zamzar com convert zip-to-tar.gz and convert your zip file to *.tar.gz file
eighth:copy the converted .tar.gz file to the "go backup" or "titanium backup" folder (be careful the name of your file must match the original name)
ok now your good to go just go inside "go backup" or "titanium backup" on your phone and restore viber
THIS GUIDE WONT DISAPOINT YOU
Click to expand...
Click to collapse
5*. Additionally Posted by @pellajl https://forum.xda-developers.com/showpost.php?p=59361419&postcount=69 :
pellajl said:
I have used this method many times with great success. If both the old and new devices are rooted, all you have do is:
First - Activate Viber in the new device
Second - copy /data/data/com.viber.voip/databases/viber_messages to the same location on the new device.
Third - copy the entire contents of /sdcard/Viber to the same location on the new device.
Fourth - Reboot the phone
Job done......
Click to expand...
Click to collapse
6. Posted by @Sera_6969 https://forum.xda-developers.com/showpost.php?p=55691471&postcount=54 :
Sera_6969 said:
Thanks to everyone posting here. I tried all the suggestions and nothing worked, Viber would boot and ask for authorisation then crash every time after i had copied files into the databases folder.
What eventually worked for me was...
- Back up with Titanium and restore as normal in your new device
- Let Viber go through the activation code procedure
- Unpack the com.viber.voip.xxx-date-xxx.tar.gz in the Titanium Backup folder using ES FIle Explorer
- Unpack the subsequent com.viber.voip.xxx-date-xxx.tar file with ZArchiver
- Use File Explorer to copy the "viber_messages" file from the newly created data/data/com.viber.voip/databases folder into the main /data/data/com.viber.voip/databases folder on the device
- Change "viber_messages" permissions to rw- rw- ---
- Change owner from root to the same as it is for other files in the folder (on my device this was changed to u0_a142)
- Change group from root as well (on my device this was also changed to u0_a142)
- Restart Viber
Click to expand...
Click to collapse
Bonus. short one Posted by @dracula8275 https://forum.xda-developers.com/showpost.php?p=67377118&postcount=91 :
dracula8275 said:
Hi all, problem resolved with the copy of the old files from data. After signing in with the new number must close viber, copy the old message history on viber file and all it's ok
Click to expand...
Click to collapse
PS: some of them might be similar, check whats best for you and share
That's a fine collection. Thanks!
I was hoping to find something that would backup and the messages and convert them to some other format to read them without Viber...
In 2018 we should not have to root our devices and jump through hoops on PCs to have something basic as an automatic backup-restore of app data. Viber is bad, and its developers should feel bad.
ai.unit said:
That's a fine collection. Thanks!
I was hoping to find something that would backup and the messages and convert them to some other format to read them without Viber...
Click to expand...
Click to collapse
That's easy: burger menu -> Settings -> Calls and Messages -> Email message history
But, since Viber now for some time has a backup option (to Google Drive), did anybody succeed in restoring messages and afterwards having images/pictures shown inside the conversations?

Categories

Resources