Combining APK + data into new APK? - Android Q&A, Help & Troubleshooting

Hello,
I'm trying to figure out if there is a way to convert a APK plus its data into a single new APK. The specific example is: I have downloaded and configured Authenticator for a number of accounts, and I'd like to back up both Authenticator and account data into a new installable APK.
Before you say "Titanium Backup" - note: I cannot install Titanium Backup onto the device as I cannot root the device, and the TiBkp backup file created by TiBa is NOT an installable APK.
Any suggestions?
Thanks.

Related

In which folder do the apps downloaded from the Market go?

Does anyone know in which folder do all the apps downloaded from the Market go? Where are they stored on the phone? It would be nice to transfer a copy of these downloaded files to the laptop for future use.
Install ASTRO (which is free in market), then try to perform a backup of all apps, it will store every installed APK files in a folder.
the pre-installed apks go to a cache folder that gets intermittently cleared out... the installed apk's go to data/apps
data>apps, btw, I had asked this question yesterday
TAEL said:
Install ASTRO (which is free in market), then try to perform a backup of all apps, it will store every installed APK files in a folder.
Click to expand...
Click to collapse
Thanks for the reply, I will install that app. But I wanted to be able to manually pick up the files which are downloaded from the Market and put them in my laptop as a backup so that I don't have to download them again. For that I need to know which folder are they stored.
@kryptoner: Only those files which I got from other than the market are stored in data>apps. I am talking about the installer package of the ones which are downloaded from the market. They are NOT stored in data>apps
@lennyUk: I wanted to know where they are stored while they are being downloaded from the market, before they are installed. When you order any app from the Market, it automatically downloads and installs it, and after that the installer package is nowhere to be found. Are you saying they are downloaded to the Cache folder and are immediately deleted after installing? Coz I can't see any of my previously installed apps in the Cache folder
TheMegastar said:
@kryptoner: Only those files which I got from other than the market are stored in data>apps. I am talking about the installer package of the ones which are downloaded from the market. They are NOT stored in data>apps
@lennyUk: I wanted to know where they are stored while they are being downloaded from the market, before they are installed. When you order any app from the Market, it automatically downloads and installs it, and after that the installer package is nowhere to be found. Are you saying they are downloaded to the Cache folder and are immediately deleted after installing? Coz I can't see any of my previously installed apps in the Cache folder
Click to expand...
Click to collapse
yes the cache immediately clears out, if you want to backup the app (which is silly as your google account always remembers purchases) then use an app like titanium backup or just copy the apk from a root file manager.
"just copy the apk from a root file manager".........
I have Root Explorer, that's why I was asking where the files are stored. Now after you've told me it's Cache, I will be able to copy it to some place else so that I'm able to transfer it outside the phone. That way I can use the file in another phone without having to download it again. Thanks. That's all I needed to know.
you can copy the .apk file using root manager in /data/app/
the installations from market do go under /data/app/

[Q] Titanim backup - how to resore an app from .TiBkp

I've created a backup called "app +data (easy import)".
Now I can't find any option to restore an app from this backup.
Not from dropbox nor from a titanium backup folder.
Titanium does not see this file and says there is no backup for that app.
So how to restore an app from this kind of backup??
Try clicking on the backup file either in Dropbox or the local file system and running it. Titanium Backup will then ask if you want to restore the app and or data. I know I saved my backup in Gmail, and after downloading, I just press view in Gmail itself and TiBackup will show that dialog.
Sent from my HSPA+ Nexus Prime using Tapatalk 2
it was enough to update to the nevest verssion.
Now I have a bigger problem.
It does not restore any data of system apps.
Not Go Launcher, nor Go sms, or rom settings are being restored.
I've tried to flash the rom again an then restore - no result.
How to force titanium to restore system apps data?
ps. I was able to do it before. It's just stopped working.
Hi I am having similar problems, backed up using easy backup apk & data, sent via gmail to my other phone with Titanium backup on it, when I open it TB recognises it and says please wait, but nothing happens the app does not install. It is only a widget that I want installed but its not having it :crying:
Also I have a tf101 which is not rooted is there anyway I can unzip without TB to use this free widget as its not on the general market, I have a paid version of TB and using the latest release, but obviously not on the tf101.
Any help appreciated as it is frustrating I cannot save apks to other phones.
Thanks
How to restor Titanium backup "TiBkp files
AngryBulleteyeTruth said:
I've created a backup called "app +data (easy import)".
Now I can't find any option to restore an app from this backup.
Not from dropbox nor from a titanium backup folder.
Titanium does not see this file and says there is no backup for that app.
So how to restore an app from this kind of backup??
Click to expand...
Click to collapse
I never found the correct answer to this question, which - from my experience - is a rather improbable one. This is the answer:
Find your TiBkp file with some kind of file explorer. In my case: I used "root explorer", probably any other one will do as well. Tap on it.
You will see: "No activity found to open this file."
Your options are
a) cancel
b) open as.
Choose "open as".
Now you get a lot of options (I see seven). One of them is: APK file. Choose it.
Now you may select an "option for null" (probably the null refers to the unknown file extension TiBkp) .
The options are: cancel, view and Install.
Choose install.
Now you get the option from Titanium backup to restore your files. And that works perfectly.....
Cheers :victory:
Hello, i Know this thread is old, but i seem to have run into the same problem. My tibkp file is grayed out and i can't access it. and when i navigate to it and try to open it, it won't give an option to open it with Titanium. Help please. Thank you
PS I have a rooted S7 Edge. Thank you
Hm.. I'm having a similar issue: I can't import .TiBKP files anymore; two devices, S6 Edge running SuperSU-rooted nougat, and Tab S2 running magiskSU-rooted nougat (in both cases the nougat itself is from samsung)
Hello im having troubles backing up an app.
Whenever i back up i get three files (.apk .tar and one PROPERTIES) instead of the .TiBkp. I cant restore said files.
Help please.
New phone, Old problem. Trying to use .TiBKP files to migrate apps&settings from my old phone to my new one, rather than just simply copy everything using smart switch, but opening them in Titanium Backup is NOT an option for .TiBKP files.
Any hints?

Using custom ROM (CrDroid) can I get my google account saved Wi-Fi passwords somehow?

Hey guys I'm using a custom ROM (CrDroid) can I get my google account saved Wi-Fi passwords somehow through PC and import them in this rom?
Voliminal_8 said:
Hey guys I'm using a custom ROM (CrDroid) can I get my google account saved Wi-Fi passwords somehow through PC and import them in this rom?
Click to expand...
Click to collapse
A couple of options:
1. install stock ROM, sync your account, extract data, install custom ROM, import them.
2. run Android emulator on a PC, sync your account, extract data, import them to custom ROM
3. install Google apps on custom ROM, sync account data, remove Google apps / reinstall custom ROM
On stock Android 9, Wifi passwords are in /data/misc/wifi/WifiConfigStore.xml. Locate this folder/file via ADB and download it to the PC. Passwords are in cleartext and you will need root to open the file.
_mysiak_ said:
A couple of options:
1. install stock ROM, sync your account, extract data, install custom ROM, import them.
2. run Android emulator on a PC, sync your account, extract data, import them to custom ROM
3. install Google apps on custom ROM, sync account data, remove Google apps / reinstall custom ROM
On stock Android 9, Wifi passwords are in /data/misc/wifi/WifiConfigStore.xml. Locate this folder/file via ADB and download it to the PC. Passwords are in cleartext and you will need root to open the file.
Click to expand...
Click to collapse
Niiice
I think the easiest for me at the moment is to go through the emulator route.
Is it possible to do the same extraction method of the file on PC too?
And when I want to import them in my Android 10 custom rom on the phone I just paste the file or the contents of it in a similar file in another directory?
Voliminal_8 said:
Niiice
I think the easiest for me at the moment is to go through the emulator route.
Is it possible to do the same extraction method of the file on PC too?
And when I want to import them in my Android 10 custom rom on the phone I just paste the file or the contents of it in a similar file in another directory?
Click to expand...
Click to collapse
I forgot one option - TItanium backup (free version should be enough) - backup data on emulator (or a phone with all Wifi passwords), copy it to your phone with custom ROM and restore with Titanium again. You don't need to worry about file format, location of system xml file etc.
If you want to go through the direct route - you might need to do some xml data reformatting, different Android versions use different files and probably format as well.
_mysiak_ said:
I forgot one option - TItanium backup (free version should be enough) - backup data on emulator (or a phone with all Wifi passwords), copy it to your phone with custom ROM and restore with Titanium again. You don't need to worry about file format, location of system xml file etc.
If you want to go through the direct route - you might need to do some xml data reformatting, different Android versions use different files and probably format as well.
Click to expand...
Click to collapse
That's cool! I'm trying this soon and I'll post for update!
Thanks!

How backup and restore WhatsApp (no Gapps) and everythi9ng else?

I have one Rom installed on my phone and it's already not the original one. I want to install the latetest version of a different one (from Ressurraction to CrDroid). I know how to do it and I know that I will have to format everything.
I don't have google drive or any google services installed. I do have access to a computer where I could just push and pull things with adb.
All my apps are form F-Droid, except for a few that I've manually downloaded, such as WhatsApp.
So, I have a few questions:
1. How do I fully backup WhatsApp so that I can restore it again, after formatting everything? When I follow WhatsApp instructions it just doesn't work: I receive a message that the backup could not be restored. Is there a way to make sure it would work? Maybe even backing up everything with another program?
2. Is there a way to back up all other APPs and data and everything installed and restore it in the new Android release? I've tried to manually use adb push/pull but it doesn't work.
Thanks in advance
For instance, under GNU/Linux you can generate an archive of your /home/user directory and extract it in your new computer and ALL your data from all installed apps will be restored just fine. You might need to reinstall all apps again, but the data will be there!
How to do something like that on Android?
You give me the impression that you have Magisk
Simply use Migrate app to backup all applications , contacts , call logs and messages , this should be enough if you are only installing new ROM
But if you are wiping the whole internal storage ethen
Also manually copy The WhatsApp , DCIM,Document ,Download,Pictures and other important folder to your PC via MTP and restore them

[Apk + Data = Apk] How-to ?

Hello,
I've been searching everywhere for this, but couldn't find a good answer..
I've found Titanium Backup Pro that does that, but doesn't work anymore (keeps crashing).
I've found Migrate, Neo Backup, Swift Backup, ZBackup.. but they all backup each individually (apk / data).
The only one that did what I was looking for is "App Cloner", but it's a paid app (for the full capabilities) and I don't want to rely on an app that might stop being maintained (like Titanium Backup was).
Though, it does create a copy of the apk with data, so that's exactly what I am looking for.
Can someone here, please tell me, how to create a copy of an apk, but that has data included in it, and without relying on an app ?
ADB can backup both separated (apk/data), or as one (ab file) but never as an apk from what I've seen....
So how do modders do to inject data into some apks ? (like auto login ?)
Thank you !!

Categories

Resources