[q] Backup/Transfer Apps via Folder Move - TouchPad Q&A, Help & Troubleshooting

In the past I was able to move a folder containing the aps on to a computer, flash to a new rom and move the folder back.
Problem is I can't remember what folder(s) I moved to do so. Any thoughts?

/data/app
Sent from my aokp_tenderloin using xda premium

Do a search with your file explorer for a known app and see what locations it is stored in .

./adb backup
./adb restore
when you run ./adb it will show you the options. ADB will set you free.

Related

How to Mass Install Apps with ADB?

So, I want to do a flash and have backed up all the APPs into a folder. So, is there anyway to install all the apps onto the phone that is in inside the backed up folder using ADB after I reinstalled? I know this should be possible since there is a way to do a mass pull using ADB.
shaolinx said:
So, I want to do a flash and have backed up all the APPs into a folder. So, is there anyway to install all the apps onto the phone that is in inside the backed up folder using ADB after I reinstalled? I know this should be possible since there is a way to do a mass pull using ADB.
Click to expand...
Click to collapse
Could write a batch file/shell script to iterate through a folder and adb install the contents of it.
shaolinx said:
So, I want to do a flash and have backed up all the APPs into a folder. So, is there anyway to install all the apps onto the phone that is in inside the backed up folder using ADB after I reinstalled? I know this should be possible since there is a way to do a mass pull using ADB.
Click to expand...
Click to collapse
Sure there is:
If you have app2sd:
adb push folder of apps /system/sd/app
If not:
adb push folder of apps /data/app
Assuming adb is in your path, open a command prompt at the folder containing your APKs and issue:
Code:
for %f in (*.apk) do adb install "%f"
Thanks all, both of your way works.
Thanks
Awesome thank you for the help. Have been trying to figure this out for a while.
AdamPI's answer will only work if you use a virus instead of an operating system. The correct answer is this;
for FILE in *; do /path/to/adb install "$FILE"; done

Looking for the best batch installer/uninstaller app

I'm looking for the best app for batch uninstalls for root or non-root. As for batch installs I'm looking for the best non-root app since I use backup for root.
ADB
10char
How about an app? Also I know you can do 'adb install asdf.apk' but how can I do it batch? Like what specific command is it?
ThR1LL said:
How about an app? Also I know you can do 'adb install asdf.apk' but how can I do it batch? Like what specific command is it?
Click to expand...
Click to collapse
I dont think there is an app right now in the market that can do batch install/uninstall. you have to do it on your pc. I also use backup for root, and i backup all my apps. since i dont use apps2sd on my magic, i have everything internal, so after a wipe/flash i need a fast way to reinstall all my apps. found this on the forum and works great.
create a batch file.
1. open up notepad n copy and paste this code: for %%f in ("LOCATION_OF_APK_DIRECTORY\*.apk") do adb install "%%f"
2. replace with the location to your actual APK folder.
3. save as a a batch file (.bat)
For example, mines is like this:
for %%f in ("F:\Backup\Files\Mobile_Stuff\Android\HTC_MAGIC\01_CupCake\apk\*.apk") do adb install "%%f"
and I saved as apkinstall.bat
So now, whenever you want to install batch apks, just drop the apks into the folder you selected above, and double click the batch file.
Gphonemanager
It does batch uninstall. You just have to select 'ok' one by one until you've uninstalled all the apps that you wanted to.
put all your apps in a folder called
app
app-private
depending on which one it was
open command prompt in the folder containing those two folders and use the commands
Code:
adb remount
adb push app /system/sd/app
adb push app-private /system/sd/app-private
adb shell reboot
Is there any way to relink an .apk (coming from a backup, usually) with its origin on Market ?
I have hundreds of market-installed apps and after each reset I have to reinstall one by one, if would keep the market download update feature...
Thanks

Need Help With ADB/apps

I have a folder of all my backed up apps on my computer...so to install all of them(about 160+ apps) i adb push them to system/sd/app...now heres the problem: they all get pushed but when i check my phone they aren't all installed ...when i check the system/sd/app directory with root explorer it shows that they are all there, but they wont show up in the app drawer
what should i do????
g1junky said:
I have a folder of all my backed up apps on my computer...so to install all of them(about 160+ apps) i adb push them to system/sd/app...now heres the problem: they all get pushed but when i check my phone they aren't all installed ...when i check the system/sd/app directory with root explorer it shows that they are all there, but they wont show up in the app drawer
what should i do????
Click to expand...
Click to collapse
Same here. I was to use adb pull to pull my apps. Then I used:
adb push app-private /system/sd/app-private
reboot
to push my private apps back to phone. It was sucessful but all were broken files I had to re-install 1 by 1 w/ appinstaller. as well...
Why don't you adb install them all, not push.
for %%f in ("[folder with apps]\*.apk") do adb install -f "%%f"
You don't need the -f, that only forces the install/upgrade if app is present.
Did you push them to /system/sd/app or /system/sd/ ?
And did you reboot? lol sorry sometimes its the simplest answers. when you push that many files, it may take a while to dexopt them
Apaca1ypse said:
Same here. I was to use adb pull to pull my apps. Then I used:
adb push app-private /system/sd/app-private
reboot
to push my private apps back to phone. It was sucessful but all were broken files I had to re-install 1 by 1 w/ appinstaller. as well...
Click to expand...
Click to collapse
How did you adb push app-private with no %pathto% in front of it? And don't push to any specific folder just push to
/system/sd/
adb shell reboot
Naimand said:
How did you adb push app-private with no %pathto% in front of it? And don't push to any specific folder just push to
/system/sd/
adb shell reboot
Click to expand...
Click to collapse
if he is running the prompt from the same folder that contains the app-private folder, its not necessary to have a path
i.e
C:\appbackup\> adb push app-private /system/sd/app-private
assuming there is a folder, app-private, within the folder appbackup
B-man007 said:
if he is running the prompt from the same folder that contains the app-private folder, its not necessary to have a path
i.e
C:\appbackup\> adb push app-private /system/sd/app-private
assuming there is a folder, app-private, within the folder appbackup
Click to expand...
Click to collapse
Ahh true I didn't think about that. Alright well I learned something new tonight and figured out that I am too tired to think clearly so helping people should be called quits tonight.

[Q] How to push an apk into apps folder

I recently installed aospGBMod and would like to install Quickoffice. I know that I have to push the apk file into the system/app folder, but I'm not sure how to do so. Can this be done using the terminal emulator and if so what are the commands? Thanks for your help!
You could use one of the following methods:
1. Once connected via USB and having your USB debugging on: adb install <path_to_apk>
2. Move the apk file to the SDcard (doesn't matter where), enable "Install from unknown source" under manage applications and then use a file manager to access the apk, it should ask you to install it... go ahead and install
3. Execute following commands:
adb remount
adb push <location/apk file> /system/apps/
adb remount
adb restart
Hope this helps.
It didn't work. The apk file that I was using was from a sense rom. I wonder if that makes a difference. Is there a way that I could copy the apk file from CM6.1 and push it into the system/app folder? Has anybody else gotten this to work?
Sent from my HTC Hero CDMA using XDA App
Go here: http://forum.xda-developers.com/showpost.php?p=8135299&postcount=1. The post has a link for passionquickoffice.apk. Download it and use any of the above methods to push/install it.
THANK YOU!!!

[GUIDE][Windows] Making backups with adb

NOTE: The Nexus 4 does not have a physical sd card. However, the user directory on the phone is located at /storage/sdcard0/ and will, for the purposes of this guide, be referred to as the sdcard.
Click to expand...
Click to collapse
Making sdcard backups with MTP is often unreliable. First of all, files are not always immediately updated with the ones on your phone. As a result, there may be folders missing, files that you deleted on your phone still showing up, etc. Also, the Date modified values of files are changed to the time that the files were moved onto your computer, which can cause errors when restoring them to your phone; i.e. photos in gallery not appearing in order. Other times, MTP is simply not available (if you have an older computer or an unsupported OS, for example). The best way to go about a backup is by using adb (Android Debug Bridge).
So, let's get started.
1. First, you're going to need some variant of the Android SDK/Software Development Kit as well as the Nexus 4 drivers installed. I won't show you how to do this, as there are already many guides and tutorials available.
Here's the link to the official Google ADT/Android Developer Tools.
2. Once you've got everything on your computer set up, open up the Settings app and go to About phone. Scroll down and quickly tap the Build number tile seven times. You have now enabled Developer options.
Go back, enter Developer options and enable USB debugging. An authorization pop-up will appear; allow it.
3. Now, open up a command prompt window and change directory to the location of adb on your computer. If you installed the official SDK, this will be under
Code:
folderyouextractedto\sdk\platform-tools
Connect your phone via USB and type
Code:
adb devices
You should see something like this:
Code:
List of devices attached
random numbers and letters device
If you don't, you probably don't have the drivers installed properly OR you failed to authorize your computer for USB debugging.
4. Make a folder on C:\ (or whatever your OS drive is) with NO SPACES in the file name. You can now make the backup.
Type
Code:
adb pull /storage/sdcard0/ C:\folderyoumade
You are now backing up your entire sdcard. This can take a while, depending on how many files you have on your phone.
When the copy is complete, you should see something like
Code:
x files pulled. 0 files skipped.
0 files skipped is very important, as it confirms that all of the files were copied over correctly.
To backup specific folders on it, simply change the command to that directory on your phone.
i.e.
Code:
adb pull /storage/sdcard0/folderyouwant/ C:\folderyoumade
5. To restore a backup, simply type
Code:
adb push C:\folderyoumade /storage/sdcard0/
NOTE: Restored folders DO NOT replace existing folders on your sdcard. They are merged (so pre-existing files in a folder remain, while any new files are copied in).
Click to expand...
Click to collapse
NOTE: I recommend that you do not use your phone during a backup or restore so as to make sure all files are properly copied.
Click to expand...
Click to collapse
Remember, this is only an sdcard backup. App and system data are NOT copied over. If you want to make a backup of your app data, the easiest way to do this is with Titanium Backup, Helium, or a similar app and then backup those files using adb pull. If you wish to make a complete backup of your file system (not including sdcard though), make a nandroid from recovery.
Reserved
klvnhng said:
Reserved
Click to expand...
Click to collapse
Good method if MTP failes or crashes! Thanks!
Thanks!
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
nphone said:
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
Click to expand...
Click to collapse
You forgot the frontslash at the end of 0. Try that
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
Or much shorter;
adb pull /sdcard C:\SDCARDBackUp
__________________________________________________
Device: Google Nexus 4 (LG-E960) 16GB (MAKO)
ROM: SimpleAOSP-L-ROM (Stable Build 7)
Kernel: Stuxnet v4.5 (3.4.105)
Gapps: PA-Gapps-5.0.1-BETA4 (MINI)
_________________________________________________
Is there a way for pull to skip files which already exist in your specified destination? Sometimes it errors in the middle of a long transfer because it doesn't like a file name or something.
I was looking for a better way to push my virtual sd card backup, as using the copy and paste method in windows doesn't copy all of the files for some reason. It will copy all the files from the sd card to the PC, but not back again. I was having to search through every folder and copy and paste to get everything copied back. Thank you so much for this tutorial. I knew about adb push command, but I never tried it, because I always thought the copy and paste method would be easier. Boy was I wrong. This way pushes all the files in one try. Soooo much easier.
I have a question, can I also backup this file directory: /storage/emulated/0? Or is this something else, I checked both folder and they seem to be the same.
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
NikoBe00 said:
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
Click to expand...
Click to collapse
Sounds like the adb backup didnt copy the /storage/sdcard0/android/ folder on the sdcard perhaps? Maybe try using adb pull to copy the scdard seperately in addition to doing the adb backup to be safe. You could push the sdcard data back manually if the restore doesnt. See below:
scandiun said:
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
!
Click to expand...
Click to collapse
it doesnt work
Why?
klvnhng said:
You forgot the frontslash at the end of 0. Try that
Click to expand...
Click to collapse
I font understand why is the front slash required?
I also forgot the front slash and was facing the same problem. Now its working after adding the front slash.
So, why is the front slash required and what does it mean ?
can I backup the sd card even if it is external using this method (apps are moved there too)?
edit: ok, I got the android folder from sd card, the message was:
/storage/sdcard1/Android/: 147 files pulled. 0 files skipped.,
but how am I supposed to see them?
I contacted AppMgr III, maybe they can tell me

Categories

Resources