[Question] How to Backup an APK with App data in it - General Questions and Answers

Can anyone please tell the process to backup app data into apk. This question already asked in this site but no one tell the whole process.
http://forum.xda-developers.com/showthread.php?p=50135115
whiper said:
Is it possible to create an apk from an app which includes the data/data/app directory from an backup?
I want to backup an app including data (on a rooted device) and i want to restore this app on a non-rooted device.
Accessing data/data without root is not possible. Can i include the data/data/app files in the existing apk so this data is installed when installing an app? I've got apktool and can recompile an app.
Click to expand...
Click to collapse

Related

Titanium Backup and AT&T apps

If we were to delete the ATT apps with TiBackup, couldn't we sideload them back on (for god knows what reason?) ?
Yup! I did it when I thought removing an AT&T app had screwed up my WiFi, but the problem was something else, so then I took it off again (once put on manually, you can take it off again using the settings screen).
Yeah, if you can find the .apk file, then you can install it. Or if you backed them up with Titanium Backup, you can reinstall them that way.
djgleebs said:
Yeah, if you can find the .apk file, then you can install it. Or if you backed them up with Titanium Backup, you can reinstall them that way.
Click to expand...
Click to collapse
This is not correct. Titanium backup does not backup the .apk file of system apps. However, you can find the .apk elsewhere and install with no problems.
AT&T is more than happy to provide you with their "Pay Us" apps. You can get all the AT&T apps from their website.
( i feel dirty typing "media net" )
dontshakepandas said:
This is not correct. Titanium backup does not backup the .apk file of system apps. However, you can find the .apk elsewhere and install with no problems.
Click to expand...
Click to collapse
Doesnt Titanium Backup backup the apk's and put them in a .tar.gz file?
If those arent the apk's in those .tar.gz files, whats in them? and what good are they and what good is it to backup your apps with Titanium Backup?

Swipe .APK

I extracted the .APK file for Swipe just in case anyone needs it. I am planning on using it once custom roms come out and i need to reinstall swipe. I have not tested this, so it may not work.
Mediafire
would you be able to extract the touchwiz apk file for me i was able to backup all my apps via FTP except that one and its no longer on my system please any help would be great
ericos123 said:
would you be able to extract the touchwiz apk file for me i was able to backup all my apps via FTP except that one and its no longer on my system please any help would be great
Click to expand...
Click to collapse
How did touchwiz get deleted? If all you did was a system restore it should still be there. I was trying to backup some system apps also with Titanium Backup, but for whatever reason they did not have .APK files, so it was a little out of my league to figure out how to do it.
nbs11 said:
How did touchwiz get deleted? If all you did was a system restore it should still be there. I was trying to backup some system apps also with Titanium Backup, but for whatever reason they did not have .APK files, so it was a little out of my league to figure out how to do it.
Click to expand...
Click to collapse
i had uninstalled it lol because i was using launcher pro so i have every apk file i need except that one

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.

[Q] Recompile or Rebuild ?

hello friend. can i know something ?
how can i save apk with data inside it ?
i mean after using some app , the app will generate data (save)
so , can i save the data inside the apk ?
ermm its mean when we install the modified apk, we will get the data too without using any
backup app to restore the data.
any answer ?? :good::good:
No I don't think you can do that..because after installation , it places it's files in the data partition of our phone.
Sent from my ST23i
Shafwan7 said:
hello friend. can i know something ?
how can i save apk with data inside it ?
i mean after using some app , the app will generate data (save)
so , can i save the data inside the apk ?
ermm its mean when we install the modified apk, we will get the data too without using any
backup app to restore the data.
any answer ?? :good::good:
Click to expand...
Click to collapse
App data is saved in /sdcard/Android_secure/ or /sdcard/Android/ and in /data/app_private/. The data its self is not saved in the apk.

Convert Textra to System App

Hi,
I'm running the latest 5.1.1 stock Deodexed from Tekxodus (official TMO) and have been trying to convert Textra into a system application.
Titanium backup just stays at processing.
I've tried copying the folder manually to /system/app - but it doesn't show up after reboot.
Is there another method I should be looking at?
Try using lucky patcher
I had similar problem with converting xmod to a system app with titanium backup
But lucky patcher worked like a charm
Teflanzy said:
Try using lucky patcher
I had similar problem with converting xmod to a system app with titanium backup
But lucky patcher worked like a charm
Click to expand...
Click to collapse
I don't see any option to convert the app in there. It just browses the files.
I've tried copying it manually to both /System/Priv-App/ and /System/App but at no success.
If I can get Textra to install as a system-app it will allow MMS of Wi-Fi on TMO roms.
Is there a way to Deodex the APK itself?
shadezero said:
I don't see any option to convert the app in there. It just browses the files.
I've tried copying it manually to both /System/Priv-App/ and /System/App but at no success.
If I can get Textra to install as a system-app it will allow MMS of Wi-Fi on TMO roms.
Is there a way to Deodex the APK itself?
Click to expand...
Click to collapse
Check again
See attached photo
Long press on the app you want to convert and you will see the option "move to system/app"
And since it is not a system app it is already deodexed
Only apps in system/app or system/priv-app are odedex in stock roms
Teflanzy said:
Check again
See attached photo
Long press on the app you want to convert and you will see the option "move to system/app"
And since it is not a system app it is already deodexed
Only apps in system/app or system/priv-app are odedex in stock roms
Click to expand...
Click to collapse
Turned out I was using the wrong patcher.
I downloaded the correct APK, and it worked perfectly.
Thank you!
shadezero said:
Turned out I was using the wrong patcher.
I downloaded the correct APK, and it worked perfectly.
Thank you!
Click to expand...
Click to collapse
you are welcome

Categories

Resources