Hey!
I have a lot of applications on my phone. I would like to collect all to my memory card in form of .apk-files, so I easily can install the programs I have now after I've flashed with another ROM.
How do I do this?
I have ADB Shell installed, my phone is rooted and so on and so forth.
I would like to avoid making a backup with Astro, since the installation probably won't come out clean (?).
EDIT: Solved it via ADB.
Wrote the following:
adb pull /data/app/ c:\"foldername"\
adb pull /data/app-private/ c:\"foldername"\
And all your installed applications will be copied to the folder you specify, as .apk-files.
After you backed up all your .apk files, did you have to manually re-install all your apps? or did you have a way to batch install them via adb? or is it possible to adb push those files back to /data/app/ and /data/app-private/ ?
Just push them. The directory is /system/sd/app/ if you have a2sd enabled.
Related
Hey friends!
I have a great problem.
After installing another rom, my market doesn't work properly.
I open the market and it's very slow. Everything I want to do takes a few seconds. Tapping on the downloads button, tapping on apps, downloading them... all slow.
Now I've figured some out:
Wipe everything
install another rom new
took another google account
market is fine
Then:
wiped
installed the rom new
took my first account
market is slow.......
Whats wrong with my account and how can I get it to work normal.
If I said slow, that isn't right. Right is sloooooow....
That's weird... lets see what others have to say...
Is it anything like this?
http://forum.xda-developers.com/showthread.php?t=670407
I still haven't fixed mine yet, trying desperately to..
Yes, same problem.
Sh*t.
Market is still unusable for me.
But now I can see paid apps, but it's terrible slow.
Can someone put this threads together? I think, I#ve searched wrong yesterday.
Try pushing another market apk to your phone?
You're right, it solved the problem. Thanks!
I've deleted the Vending.apk in folder /system/apps
Then I've installed another Vending.apk with ADB
Copy the attached file to your AndroidSDK/tools folder on PC (delelte the .zip extension!)
Plug your Phone with USB to the PC
Open up the shell (cmd)
Navigate to your AndroidSDK/Tools/ folder
Type in:
adb remount
adb shell push Vending.apk /system/apps
adb reboot
After the reboot, everything is fine!
Formel-LMS said:
You're right, it solved the problem. Thanks!
I've deleted the Vending.apk in folder /system/apps
Then I've installed another Vending.apk with ADB
Copy the attached file to your AndroidSDK/tools folder on PC (delelte the .zip extension!)
Plug your Phone with USB to the PC
Open up the shell (cmd)
Navigate to your AndroidSDK/Tools/ folder
Type in:
adb remount
adb shell push Vending.apk /system/apps
adb reboot
After the reboot, everything is fine!
Click to expand...
Click to collapse
This helped me too but you have a few commands wrong.
Firstly, to remove just do:
adb remount
adb shell rm -f /system/app/Vending.apk
Then, to install the older version:
adb push Vending.apk /system/app/
adb shell reboot
I also did the removal line again with a lower case v as I seemed to have two vending.apks, this may just be something specific to my phone though as I was messing around a lot getting this working!
Bugger, still didn't work for me...
something weird.
wiped, reflashed cm 5.0.7-t2 and gapps epe54b.
right after adding my gmail account the market started to download all my paid apps again. that made the market that slow.
now wiped again and reflashed 5.0.7-t2 and gapps.
installed titanium backup.apk and restored all apps and settings.
for now the market (v1713) works as usual.
I've tried everything advised and my market is still s-l-o-w.
I have tried:
Clearing cache
Uninstalling updates
Reflashing Gapps
Formel's replacement Vending.apk
Think I'm gonna resort to a full wipe once CM5.0.7 is out...
http://forum.cyanogenmod.com/index.php?/topic/2589-solved-market-slow-for-some-people/
on some phones it fixed itself.
So I deleted a few apps and am curious as to how I go about restoring them to the phone if I say, deleted them by accident. I made a backup of all of the apps on my pc in the SDK Tools subdirectory so they are all there. Also, will installing an .odex file be the same as an .apk file? Do I need to restore the .odex files or will they automatically be rebuilt?
How did you perform this backup? With adb? Then it will be easy to put the apps back. You should just be able to use adb with the install command. Just type in adb at the command prompt and read the help instructons for install. Not sure if the install command takes care of the .odex files. You could try it and then copy them over manually if they dont get copied. I am sure once you boot the phone the default .odex will be built, just a quess on that though.
anika200 said:
How did you perform this backup? With adb? Then it will be easy to put the apps back. You should just be able to use adb with the install command. Just type in adb at the command prompt and read the help instructons for install. Not sure if the install command takes care of the .odex files. You could try it and then copy them over manually if they dont get copied. I am sure once you boot the phone the default .odex will be built, just a quess on that though.
Click to expand...
Click to collapse
I would think that pushing the files back to the original location from recovery would be the safest bet. ADB install will install it to /data and I would think that the apps being system apps originally then they don't have the signatures anyway to allow an ADB install.
I think you're right
I believe I originally used ADB to put them in Android SDK Tools/Desktop/~ folder. When I tried installing them back I don't believe it worked. I specifically remember receiving an error when trying to install the .odex file about a database issue. Assuming it's a system file I'm trying to restore, does someone have the syntax for the push command or how I go about doing that?
If you have the .apk and .odex files on your computer, or really backed up anywhere, you can install them a few ways:
ADB Method
#Prerequisites:
Make sure you have the APK files in AndroidSDK/tools.
1. Connect the phone to your computer
2. Launch a command prompt and enter the following commands:
cd C:\AndroidSDK\tools
Replace "C:\AndroidSDK\tools" with the path to the tools folder in your SDK installation.
adb install filename.apk
Replace "filename.apk" with the name of the file you're trying to install.
Actually, **** it, the ADB method works anyway, why list a bunch lol
No wait, these are original files so you should probably put them back in their original location.
Just use "adb push filename.apk /system/app", replacing filename.apk with your filename, of course..
Push it
Okay, thanks for the tips. So I guess when you have files in the system/app directory on the phone it knows automatically to look there for program installs. This is good to know.
Hi. Can someone tell me the easiest way to remove bloatware like soundhound, amazon mp3 etc. My phone is rooted BTW.
Thanks
You'll need the android sdk installed on your computer but then:
adb remount
adb shell
cd system/app
rm whateveryoulike.apk
It goes without saying that a backup is a good idea before you start deleting stuff. Some things you can delete no worries but others may be dependencies etc. But as far as bloatware is concerned you shouldn't have a problem.
Or if you don't have the sdk installed you could install a file manager like astro file manager from the market and browse and delete the apk's directly on your phone. They're in /system/app/ anyway.
Firstly i rooted with GlowNooter, but the market wasn't working, so I figured might as well go with tinynooter as I don't any other gapps.
I've successfully rooted with tinynooter now, but I'm not sure how I can sideload applications. I have them copied onto the sd card, but how do i navigate to the sd card? The supermanager that's included isn't working
And amazon appstore doesn't work for me since I'm outside of the USA.
What's the easiest way to get a file manager installed (or is there one somewhere im unaware of) ?
What you need to do is set up ADB on your computer - ADB = Android Debug Bridge, and you can use it to install apk files to rooted devices.
ADB wireless, included in glownooter and tinynoot, lets you issue ADB commands to your device over the wireless connection, eliminating one hassle that many folks have - getting ADB running over USB. I think but don't remember for sure that you need to have the "allow non-market apps" tickbox ticked in the Nook Color tools for this to work.
The command to install an app via adb is just
adb install appname.apk
(that assumes that you are running the command from the same directory that you have the APK sitting in on your computer.)
To install files that you already have copied to your device, you can do:
adb connect x.y.a.b
where x.y.a.b is your wifi IP address
then (with tinynoot; glownoot users don't need this step, I don't think)
su
then
cd /sdcard
pm install appname.apk
(pm is the android package manger, which you are running directly in this case.)
How do you install ADB?
written guide:
http://forum.xda-developers.com/showthread.php?t=879701
video guide:
http://www.xda-developers.com/xda-tv-2/pro-tip-number-4-installing-applications-using-adb-xda-tv/
Thanks a dozen, I was just reading up on that, and i managed to get it to work
After doing a restore with CWM of 4.4.4 backup, I'm unable to save files to user storage. Owner is 0 root, GID is 1028 sdcard_r, permissions drwxrwx--x, same as on my N7 '13.
Drive can export a file to ./Downloads though. ?:| Other files can save to that folder.
Have tried with Nova Launcher backup (can save backup file to ./Download, but no other), ES File manager ("EACCES (Permission Denied)"), Total Commander file manager. Helium backup can't backup locally either.
Noticed yesterday that I couldn't delete folders or move files from folders (Alarms, Notifications, Pictures), so did it in Recovery with ADB shell. Think that's just another symptom.
Never encountered this before. Anyone ever see this, fixed this?
Oh, one note. During my 5.1.1 order, I did a fresh wiped boot of 4.4.4, set up accounts and basic apps, and did a CWM backup. Moved it off with adb (adb pull /sdcard/ ./sdcard/).
After flashing 4.4.4 completely, I used CWM and adb push to move the entire backed up /sdcard/ back to the device so I could do a restore (adb push /sdcard/ ./sdcard/). Restored in CWM.
Could this have been an issue? /sdcard/ created by adb ?
Solved. Did a CWM backup and was readying to pull that off, and checked on a hunch. After mounting /data/, I shelled in (adb shell) and checked permissions (ls -ald /sdcard/0/ ) and lo and behold -- many (not all) of the folders were owned by root:root, not media_rw:media_rw. /sdcard/0/Download/ was not.
Changed ownership of all under /sdcard/0 (chown -R media_rw:media:rw * ) rebooted, and can save in those folders again. Hopefully that didn't bork something else up.