Backup and Restore Apps and Data [Manually] - Samsung Galaxy SL i9003

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.

Related

[Q] Trying to create a CW zip with all the apps i want to install automatically

Can some one provide some instructions on how to go about making a CW zip file to flash and install all the apps that is on my phone?
I've seen a few of these floating around in the forum, and wanted to make my own to save time after every ROM flash
Do I just grab all the APK files throw them into a folder and Zip & Sign it?
or do I have to do a Nandroid backup first, then only use the app files from the backup?
I would like to know this too....
Would be nice as well instead of restoring
Sent from my Nexus S using XDA App
Take an existing update.zip type file. Add a folder to it with the full proper path for your apps you want to pre-install (typically this will be /data/app) and put all the apps in that folder. Should look something like this in a windows/mac explorer window:
Code:
META-INF
/com/google/android/updater-script
data
/app/myfirstapp.apk
/app/mysecondapp.apk
Then use a text editor to edit the META-INF/com/google/android/updater-script file to include the commands to copy over your stuff. It would something along the lines of:
Code:
ui_print("Installing New App Files to /data");
package_extract_dir("data", "/data");
Edit out anything in the update template you're working out of that you don't want to happen (ie., format or symlinks, etc).
Repackage the zip file and make sure nothing else got in there by mistake by re-opening it (like those pesky Mac .ds-store files).
You can re-sign it with the android tools, but I don't believe you need to with Clockwork.
I would have a fresh nandroid before testing anything, of course.
You feel this approach is better than just using Titanium to restore apps? You won't get back any app data that isn't stored on the sdcard.
Thanks!
yes, now that makes sense, i recall reading that some where else to add extra APK to the ROMs
so it's the same idea, just without the ROM portion
now i get it
distortedloop said:
Take an existing update.zip type file. Add a folder to it with the full proper path for your apps you want to pre-install (typically this will be /data/app) and put all the apps in that folder. Should look something like this in a windows/mac explorer window:
Code:
META-INF
/com/google/android/updater-script
data
/app/myfirstapp.apk
/app/mysecondapp.apk
Then use a text editor to edit the META-INF/com/google/android/updater-script file to include the commands to copy over your stuff. It would something along the lines of:
Code:
ui_print("Installing New App Files to /data");
package_extract_dir("data", "/data");
Edit out anything in the update template you're working out of that you don't want to happen (ie., format or symlinks, etc).
Repackage the zip file and make sure nothing else got in there by mistake by re-opening it (like those pesky Mac .ds-store files).
You can re-sign it with the android tools, but I don't believe you need to with Clockwork.
I would have a fresh nandroid before testing anything, of course.
You feel this approach is better than just using Titanium to restore apps? You won't get back any app data that isn't stored on the sdcard.
Click to expand...
Click to collapse
Ya essentially this method is doingan advanced nandroid restore for data only except without the settings.
Sent from my MattedBlues CM7 Nexus S from the XDA Premium app.
kenvan19 said:
Ya essentially this method is doingan advanced nandroid restore for data only except without the settings.
Sent from my MattedBlues CM7 Nexus S from the XDA Premium app.
Click to expand...
Click to collapse
I suppose if you want the app data restored as well, you would just need to identify it's location in the /data directory and add it to the /data folder in the update you're making. Seems like most of the app data goes into /data/data.
Just thinking out loud here...
So for a sample app on my phone I have called jefit pro I'd put the following in the update file.
Code:
/data/je.fit.pro-1.apk <---apk itself
/data/data/je.fit.pro <--the folder
/data/data/je.fit.pro/databases/data
/data/data/je.fit.pro/lib
/data/data/je.fit.pro/preferences/preferences.xml
I'd just pull the whole folder for the /data/data/je.fit.pro from the phone via adb.
I'm not sure how useful putting the data back is, since that's not a static set of files on many apps, but for some apps where the data is just some settings or preference files it may be a nice touch.
I don't really see any advantage to this over just use Titanium to restore apps and data, but it should work.
(<<---- this would be the whole folder and its subfolders that I pulled via adb off the phone)
distortedloop said:
I don't really see any advantage to this over just use Titanium to restore apps and data, but it should work.
Click to expand...
Click to collapse
AllGamer, I'm glad you brought this up, while I don't personally have any apps I want to put on the phone in this method, except perhaps titanium itself, I just realized we could of course do the same thing for all those little custom tweaks we put on our phones, like for me I push my personalized ringtones/notification sounds to /system. That's easy enough with adb or rootexplorer, but why not just flash them from a zip while in CW after a wipe or install of a new rom?
distortedloop said:
AllGamer, I'm glad you brought this up, while I don't personally have any apps I want to put on the phone in this method, except perhaps titanium itself, I just realized we could of course do the same thing for all those little custom tweaks we put on our phones, like for me I push my personalized ringtones/notification sounds to /system. That's easy enough with adb or rootexplorer, but why not just flash them from a zip while in CW after a wipe or install of a new rom?
Click to expand...
Click to collapse
the idea came up from several places, first Titanium Backup itself offers to create a signed .zip installer for CW
and i've seen other devices forums with people packing up like 100+ apps/tweaks/mods into it to flash after CW is done flashing the new ROM
yes, of course we can use TI, i have TI pro and it's very easy, but Ti is slow.... at restoring 300+ Apps
but everytime i see CW restoring a Zip file or even a full Nandroid backup, it does it so fast and quickly, that i though... hell might as well keep an updated signed .zip wtih all my must have apps, and flash it along right after any new ROM flash (when testing out different Custom ROMs) then i don't need to spend like an hour everytime restoring + configuring the phones
i noticed that Ti works a hell of a lot faster if the apps are already installed, and you only need to restore the data.
and that is the main reason i want to compile a list of all the apps
once they are all installed, then i can use any of the good market utilities that can do mass Apps2SD and i'll be up and running in as quickly as 15min vs. a whole hour waste on a restore/config everytime you change the ROM
using Ti i found most of the System settings can be restored safely without corrupting the new ROM
email
accounts & syncs
bluetooth pairings
wifi
... ah shoot forgot the rest
only do not restore settings for:
launcher,
wireless network (phone company)
android market
and anything that has to do with default settings
probably this weekend i'll dissect the CW zip created by Ti itself, and add more to it
Sounds like a good plan...but you've got 300+ apps if I recall correctly. I imagine that will take a long time to restore either method!
The Titanium update zip is a good place to start. Use the setting to make it a "user" app and it will put it in /data, where you want the rest of your apps as well. You could just dump what you want right into the zip file there in the folder that has titanium's apk itself and not even worry about messing with the updater-script file.

[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

[Q] Need help on restoring save game file...PRO'S help me.

Hello guys...first of all, i would like to thank you for your time reading my thread and about my problem
And i am sorry if i posted this on the wrong section.
I have been searching for days and in many forums, also googled about my problem...but to no use
I hope the pro's out there can help me out.
Okay..i am playing maplestory live deluxe game from the play store.
The problem is that i want to restore a maplestory live save game file. The save game file is from another link on the internet, which someone else played and uploaded it for other people to use. I want to use it. The save game has many godly items that i need.
But i dunno how to patch the save game file to my maplestory live file, so that i can use that save game.
I use android device (samsung galaxy tab 2 7.0 gt-p3100)
It has [email protected] rooted
Already install titanium backup
The person who posted the save game link said that, the save game file must be extracted and placed under sdcard/titanium backup folder on my device. Then open the titanium backup app and search for the folder...then hit restore.
The biggest problem is, my titanium backup could not detect the save game file that i got from the link.
I know the file is not corrupt cause other people who downloaded it has no problem whatsoever in restoring the file.
I already tried menu>prefrences>backup folder location>detect>whole device on my TB, but it says "no backup location was found"
The save game file is there under sdcard/titanium backup. I can see it clearly...but for some reason TB cannot detect it under the backup/restore tab.
I have also tried reboot to recovery and fix permission...but the problem persist.
Do help me...and thank you in advance
Anyone??...help..
I'm not sure but what i think is u already have a backup in ur titanium backup so it wont show to restore data from the new saved file.
So try this
1. Take a backup of tb folder (in case u mess up)
2. Except the apk file in tb folder in sd card delete other 2 files.
3. Then try the same procedure as above (i.e. copy the data to tb folder again....and so on)
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
sbetatester said:
I'm not sure but what i think is u already have a backup in ur titanium backup so it wont show to restore data from the new saved file.
So try this
1. Take a backup of tb folder (in case u mess up)
2. Except the apk file in tb folder in sd card delete other 2 files.
3. Then try the same procedure as above (i.e. copy the data to tb folder again....and so on)
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
Click to expand...
Click to collapse
Sorry..but i don't get what u are saying.
Delete other 2 files? Which file?
There are 3 files on your tb folder
1. Apk
2. Tar.gz (data)
3. Properties file (all compressed)
U have to delete the tar.gz (the data file) in ur tb folder and then put the new data file in that folder and try restore again.
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
Negative...does not work for me.
Okay...its my first time using TB..
I think the main problem is that i dunno how to access folder or file from TB.
Whenever i hit the Backup/Restore in TB it only opens a list of app that says "Ordered by app name (click to change)"
The list of app name is very long and have 3 colours : red, green and white.
Well i know the red coloured is the OS Kernel and can malfunction your device if u delete or wipe it.
But i do not see any file or folder to access from there (Backup/Restore)
So, how do i backup or restore any file or folder if it isn't there..?
For example, u said to backup my tb folder...i know that the tb folder is under sdcard/titanium backup..
But i don't see it in the Backup/Restore in TB. Is there something i'm missing here?
kraken83 said:
Negative...does not work for me.
Okay...its my first time using TB..
I think the main problem is that i dunno how to access folder or file from TB.
Whenever i hit the Backup/Restore in TB it only opens a list of app that says "Ordered by app name (click to change)"
The list of app name is very long and have 3 colours : red, green and white.
Well i know the red coloured is the OS Kernel and can malfunction your device if u delete or wipe it.
But i do not see any file or folder to access from there (Backup/Restore)
So, how do i backup or restore any file or folder if it isn't there..?
For example, u said to backup my tb folder...i know that the tb folder is under sdcard/titanium backup..
But i don't see it in the Backup/Restore in TB. Is there something i'm missing here?
Click to expand...
Click to collapse
I didnt mean backup/restore tab ... what i said was just copy your tb folder from sd card to pc in case u mess and can restore easily.
And can u just send me the file so that i can check on my side if it works.
Ok..i dunno how to put the file in this post.
But u can get the file here.. http://www.mediafire.com/?g9pvpg26gqtfg
Its a list of save game that this person uploaded and share with other people to use
I need the maplestorylvdelx.zip file and having trouble with it.
Like i said..when i extract it and put it under sdcard/titanium backup...TB just not detecting it.
When i hit Backup/Restore in TB and click on Maplestory icon to restore data...there is no restore option...only backup option.
kraken83 said:
Ok..i dunno how to put the file in this post.
But u can get the file here.. http://www.mediafire.com/?g9pvpg26gqtfg
Its a list of save game that this person uploaded and share with other people to use
I need the maplestorylvdelx.zip file and having trouble with it.
Like i said..when i extract it and put it under sdcard/titanium backup...TB just not detecting it.
When i hit Backup/Restore in TB and click on Maplestory icon to restore data...there is no restore option...only backup option.
Click to expand...
Click to collapse
Well the problem at last .... its not a tb backup file..
If u wanna see how does a tb saved game file actually look like, download a7 (i.e. asphalt 7 game file) from the same link u gave me and open the zip.
Those are the tb files needed to restore game data using tb software like i told u previously (tar.gz and properties file).
Now for your solution
As your file is simple save game data file......
You only need to copy the downloaded file (i.e. maplestory.zip) to root/data/data
And start the game and u will get the saved data.
Hit thanks if i helped you
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)
Okay...first of all, thank you for your patience with me.
Now i finally know the difference between a TB save file and a normal save game data.
Just one last noob question...
U said to extract the maplestory.zip then put it under root/data/data right?
Errr...where do i find the root/data/data folder?....lol
When i open My Files under storage>sdcard , there is no root or root/data/data folder..
But, i do have ES File Explorer and ASTRO File Manager app..
When i use both this app to look in my device...there is also no root/data/data folder... BUT there is a folder named root that is located under device...along with other folders (acct, cache, config, d and so on)
Is that the folder u are mentioning? But the root folder is empty.
And exactly what do i see in this root/data/data folder anyway?
Is it empty or have something in it?
kraken83 said:
And exactly what do i see in this root/data/data folder anyway?
Is it empty or have something in it?
Click to expand...
Click to collapse
Use recova
Sent from my HTC Explorer A310e using Tapatalk 2
Use recova? What is that?
kraken83 said:
Use recova? What is that?
Click to expand...
Click to collapse
Use root explorer ...... the first screen it shows after start is the root folder now
Scroll down and find the data
Then open that and u ll see another data folder
Open it and paste ur file in that folder.
Sent from A2 running
System 1 : Jb leak 4.1.2
System 2 : Useless (Almost)
System 3 : Slimbean
System 4 : Slimkat (latest)

How to retain a paid copy offf amy app

Hi guys
I so not promote piracy or sharing a paid version of app in free.
This guide is for those who have actually bought tha app and now they have changed their device.
So download es file manager and swipe from left edge. There you will find many options tap on library and a dropdown menu opens up. In that menu you tap on apps and the user appa will own up
Long press on paod apps amd then click on backup.
The backup apps will be stored on the internal sd card in a folder named backup.
NOW WE HAVE THE APP BUT WHAT ABOUT THE DATA AMD SETTINGS OF THE APPS
dont worry i have a solution for that also.
Download titanium backup and busybox.
Imstall both of then amd open busybox amd click on smart install and close it
Open titanium backup and on the top tiles click on backup tile.
Apps will open. Now select thae app which you backuped using es file manager and in the menu opened.in front of you click on backup.
The apps data and settingd will.be stored in a titanium backup folder.
NOW WE HAVE APK.DATA.SETTINGS OF PAID APPS
copy the backup and titamium backup folder on the new device and imstall all es file explorer,busy box,titanium backup.
Setup.busybox as before and imstall the apks from backup folder.
After installing the apk open titanium backup amd goto backup amd click on same app amd click on restore.
After doimg this for all apps you have a full paid app from your previous device to new device.
With all data and settimgs lile before.
This is a guide for those alteady having paid apps.
Do mot use this for piracy.
Peace
i can do any thing except damaging your device. GOD DOES NOT DO THAT
Woah groundbreaking
Sent from my SM-G386T1 using Tapatalk
Why use es file Explorer? Titanium backup can do all the backing up.... Paid and free apps, and data in one step. Then transfer the backup folder to a cloud server or pc..... Done.
:good:
Darth said:
Why use es file Explorer? Titanium backup can do all the backing up.... Paid and free apps, and data in one step. Then transfer the backup folder to a cloud server or pc..... Done.
:good:
Click to expand...
Click to collapse
Because that would be too easy. I've used Titanium Backup for years and it works great. No need for another app.
If he just said back it up using TiBu there would be no guide for him to make
Sent from my SM-G386T1 using Tapatalk
In my case i use a custom rom made by me and in thatbrom my titanium fails to backup apps
i can do any thing except damaging your device. GOD DOES NOT DO THAT

[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