[TIPS] simplest way to install tons of app... - Galaxy S I9000 General

copy .apk(s) to any folder in sdcard, mine "marketapp"
then type these following commands below:
=====================================
adb shell
su
cd /sdcard/marketapp
for app in *.apk; do pm install -r $app; done
=====================================
this is the simplest way...
regards,
d4rkcell

Nice tip, thank you for this one!

the way i do it is via AppBrain
just click on Installapps, then all the all aps in your apps brain account will get installed back to the phone
it was very helpful the other day i had to format the phone because of a bug in Launcher Pro

Related

preserving market "my downloads" list between wipes/rom installs

I've wiped and installed a lot of roms lately, and generally when I go to 'my downloads' in the market, only my paid apps are there. So, I have to go though the process of searching the installing each app again. It's just easier when they are all in a list.
I figured it would be a good idea to backup all my apps and then reinstall them afterward with adb in linux as such:
for a in `ls *.apk`; do adb install $a; done
this works, but of course they don't show up under 'my downloads' and I don't get update notifications.
Is there a way around this?
gsgleason said:
I've wiped and installed a lot of roms lately, and generally when I go to 'my downloads' in the market, only my paid apps are there. So, I have to go though the process of searching the installing each app again. It's just easier when they are all in a list.
I figured it would be a good idea to backup all my apps and then reinstall them afterward with adb in linux as such:
for a in `ls *.apk`; do adb install $a; done
this works, but of course they don't show up under 'my downloads' and I don't get update notifications.
Is there a way around this?
Click to expand...
Click to collapse
You need to backup and restore the database file located in the market folder....it should be here...
Code:
/data/data/com.android.vending/databases
I'm assuming since you can backup and restore your apps thru adb then you can figure out how to pull and push this to your phone
I assume you would want to do this to get update notifications. If so you can grab "aTrackDog" from the market. It will list all you apps and when you refresh it will tell you when updates are available and give you a link to get the update from the market.
AdrianK said:
I assume you would want to do this to get update notifications. If so you can grab "aTrackDog" from the market. It will list all you apps and when you refresh it will tell you when updates are available and give you a link to get the update from the market.
Click to expand...
Click to collapse
will it only work for software installed through the market or will manually installed software show up as well?
DirectMatrix said:
You need to backup and restore the database file located in the market folder....it should be here...
Code:
/data/data/com.android.vending/databases
I'm assuming since you can backup and restore your apps thru adb then you can figure out how to pull and push this to your phone
Click to expand...
Click to collapse
Awesome. I'll do this next time I wipe and reflash with the latest coolest rom. =)
gsgleason said:
will it only work for software installed through the market or will manually installed software show up as well?
Click to expand...
Click to collapse
nope, works for the apps on my ext3 even after switching builds several times, works great.
DirectMatrix said:
You need to backup and restore the database file located in the market folder....it should be here...
Code:
/data/data/com.android.vending/databases
I'm assuming since you can backup and restore your apps thru adb then you can figure out how to pull and push this to your phone
Click to expand...
Click to collapse
For those of us who are not that familiar with adb, can you give a short tutorial on how to pull and then push that database folder?
well i just wiped and installed the latest cyanogen mod and when i went to the "my downloads" section of the store all the apps i had downloaded before were all there (paid and free)
I also thought it didnt do that, apperently it does
Gilliland12 said:
For those of us who are not that familiar with adb, can you give a short tutorial on how to pull and then push that database folder?
Click to expand...
Click to collapse
You don't need ADB, you can use the terminal emulator from the market or the recovery console.
To pull the database, open terminal or recovery and type:
Code:
su
cd /data/data/com.android.vending/
cp databases /sdcard
that will copy that database file to the root of your sdcard.
When pushing it back it is probably best to do it while the phone isn't running, so only use the recovery console:
Code:
cd sdcard
cp databases /data/data/com.android.vending/
reboot
I haven't tested this, but it will have the same results as the ADB method.
AdrianK said:
You don't need ADB, you can use the terminal emulator from the market or the recovery console.
To pull the database, open terminal or recovery and type:
Code:
su
cd /data/data/com.android.vending/
cp databases /sdcard
that will copy that database file to the root of your sdcard.
When pushing it back it is probably best to do it while the phone isn't running, so only use the recovery console:
Code:
cd sdcard
cp databases /data/data/com.android.vending/
reboot
I haven't tested this, but it will have the same results as the ADB method.
Click to expand...
Click to collapse
Many thanks.
Backup for Root works perfectly for me
if you got a paid app through adb and got a refund, can you still get updates for that app if you have it installed?
opasha said:
if you got a paid app through adb and got a refund, can you still get updates for that app if you have it installed?
Click to expand...
Click to collapse
No, you will not get updates without re-purchasing the app. And talking about ripping off app developers on this forum is frowned up so please stop discussing it.
opasha said:
if you got a paid app through adb and got a refund, can you still get updates for that app if you have it installed?
Click to expand...
Click to collapse
If you got a refund, then you shouldn't have the app. That's stealing and it's not nice. Most apps are cheap (a couple of bucks at most), stop being a cheapskate.
Originally Posted by AdrianK View Post
You don't need ADB, you can use the terminal emulator from the market or the recovery console.
To pull the database, open terminal or recovery and type:
Code:
su
cd /data/data/com.android.vending/
cp databases /sdcard
that will copy that database file to the root of your sdcard.
When pushing it back it is probably best to do it while the phone isn't running, so only use the recovery console:
Code:
cd sdcard
cp databases /data/data/com.android.vending/
reboot
I haven't tested this, but it will have the same results as the ADB method.
i tried this but it dodnt work.
when I did the first command it said ommiting databases. so I thought it worked.
flashed to the new cyanogen 4.0 rom (which is amazing btw!) did the second command and it said cannot stat file "databases" no such file or folder.
what gives??
Id say the databases were open and couldnt be backed up.
You should try to copy them from the recovery.
Also, after copying why didnt you check if the database files were in your sdcard (or the path you specified for the copy) before wiping? If the file is not there its obvious that it cant be restored after the wipe..
thought it might have been hidden or on my ext2 partition! never mind i got atrackdog!
addiosamigo said:
thought it might have been hidden or on my ext2 partition! never mind i got atrackdog!
Click to expand...
Click to collapse
Seems you can only copy each of the four db files individually... but copying the entire folder doesn't work.
All that is needed is assets.db
Open the terminal and enter
$ su
# cp /data/data/com.android.vending/databases/assets.db /sdcard
Wipe, flash, reboot.
YOU MUST OPEN THE MARKET AND AGREE TO THE TOS BEFORE RESTORING!!!!
Open the market, agree to the TOS, and close the market. Open the terminal and enter
$ su
# cp /sdcard/assets.db /data/data/com.android.vending/databases/assets.db
# reboot

Replacing HTC apps with ANDROID ones

Hi,
After reading this thread and learning that you CAN replace HTC's apps with stock Android ones, I have started messing around to see what other apps I can / should change. I'll use this thread as kind of a log, so if I mess things up I can come back and see where I went wrong. Fellow noobs can surely use it too!
I am using SDK in Ubuntu, but the procedure should be pretty similar in Windows.
First, follow the Unlockr's method to root your phone.
Download a stock Android rom and extract its /system/apps folder inside /sdk/tools. I named the folder "Apps-stock
Check if Ubuntu recognises your phone:
Code:
./fastboot devices
Load the recovery image and mount the system:
Code:
./fastboot boot cm-hero-recovery.img
./adb shell mount /system
Replacing HTC's calendar:
Code:
./adb shell rm /system/app/Calendar.apk
./adb shell rm /system/app/Calendar.odex
./adb push Apps-stock/Calendar.apk /system/app/
I'll edit the thread, add details as I go on
Nice one!
Please keep us informed!
Thanks for this thread.
Post moved to a more appropriate topic :
http://forum.xda-developers.com/showthread.php?p=4477971#post4477971
Thanks for setting this thread up!
Firstly, you should probably say in the first post that everyone should do a Nandroid backup first - it's saved my bacon. Might be an idea to link to the files, too?
Second, I've got a problem trying to run this method. I removed the original calendar.apk and .odex without any problems, and copied the new one over, but on rebooting, it wasn't in the list of applications anywhere. I browsed there in Astro and opened the file, which gave me an option to install it - which then gave an error of "Calendar could not be installed on this device".
I'm running the MoDaCo 2.1 custom ROM and using the calendar.apk from this thread.
Thanks for your time!
fastboot
can you tell me where this fastboot command is located? I am using Ubuntu too, but can not find fastboot. What is it for by the way?
dragonflyFZX said:
can you tell me where this fastboot command is located? I am using Ubuntu too, but can not find fastboot. What is it for by the way?
Click to expand...
Click to collapse
fastboot and adb are executables you get from the Android SDK - see here.
This thread does require your phone to be rooted, though, which would require you to have already used adb at least once....
frandavid100 said:
........
Replacing HTC's calendar:
Code:
./adb shell rm /system/app/Calendar.apk
./adb shell rm /system/app/Calendar.odex
./adb push Apps-stock/Calendar.apk /system/app/
I'll edit the thread, add details as I go on
Click to expand...
Click to collapse
how about simply replacing those files using a file explorer (like linda)? possible, or would that screw up my system?

Back up applications on non-apps2sd phone?

I've chosen not to use app2sd on my phone for various reasons and although I'm satisfied with my decision, flashing new roms has become quite a chore given the fact that I can't wipe without destroying all of my applications as well.
I've taken to using programs, but even using programs is a pain due to the long installation process. I'm currently using TI Package Installer.
Is there any way to backup and restore all applications (protected included) via adb shell or something in the recovery console?
I'm sorry if this has been asked and answered before, but I did a search and could not find anything specifically answering my question.
I'm running a Mytouch3g without a2sd with the newest AmonRa recovery.
I found this info on the following link:
http://forum.xda-developers.com/showthread.php?t=601567
So kudos to swissp:
backing up normal (public) apps:
adb shell cp -r -f /data/app/*.* /sdcard/backups/apps
private apps:
adb shell cp -r -f /data/app-private/*.* /sdcard/backups/apps
DullTree said:
I found this info on the following link:
http://forum.xda-developers.com/showthread.php?t=601567
So kudos to swissp:
backing up normal (public) apps:
adb shell cp -r -f /data/app/*.* /sdcard/backups/apps
private apps:
adb shell cp -r -f /data/app-private/*.* /sdcard/backups/apps
Click to expand...
Click to collapse
Going to make a nandroid backup and try this out. Thanks! Hoping it takes when I send them back.
Edit: Seems to have worked perfectly. For some reason i figured something that simple wouldn't work or it'd be included in Amon RA. Thanks!
My pleasure
If you then want to reinstall all the apps at once :
1. Mount the SD Card on the PC
2. Open a cmd window in the Android SDK\Tools folder and launch this
for %I in ("I:\backups\apps\*.apk") do adb install "%I"
(Replace I: with your mounted SD card's drive letter)
Quite useful
swissp said:
If you then want to reinstall all the apps at once :
1. Mount the SD Card on the PC
2. Open a cmd window in the Android SDK\Tools folder and launch this
for %I in ("I:\backups\apps\*.apk") do adb install "%I"
(Replace I: with your mounted SD card's drive letter)
Quite useful
Click to expand...
Click to collapse
Excellent. Thanks!

original Google Contacts App?

Hi,
can i download somewhere the original android contacts app? The one from HTC is very buggy
thx in advance
One option that is on my mind is to extract it from emulator as described here: http://discuz-android.blogspot.com/2008/01/extract-google-android-file-system.html
I'm just going to do that stuff, so if it goes well I will upload all apps somewhere.
...
there is even simpler method:
start emulator
from command shell run:
adb shell
ls /system/app (to see the .apk files)
ctrl+c to eit shell
than adb pull /system/app/xx.apk xx.apk
that will download xx.apk to local dir.
Extracted some apks from 2.1 emu and uploaded to http://android.fre****.pl/. Have no idea if they work on Desire (probably without root you can not replace Contacts, Email, etc). but here you go!
Contacts won't install, but email, music, dev installed successfully on desire.
Pity tha there is no way to install the contacts.apk. The htc's version sucks
What about the standard messages/SMS application?

[How To] Install new voice search and quick search

ONLY WORKS WITH ANDROID 2.2 (FROYO)
For those of you that don't know, Google released a new Voice Search that allows "actions". For more info go Here.
First off, I wanna thank Tsenru, klinster, devlogic, BinaryMan, and Synchromatic @ the CM forum for all the info.
This is instructions for ubuntu so make the proper adjustments for windows if needed.
From ADB
Code:
adb pull /system/app ~/Desktop/app/
adb remount
adb shell rm -f /system/app/VoiceSearch.apk
adb shell pm uninstall com.google.android.voicesearch
adb shell rm -f /system/app/GoogleQuickSearchBox.apk
adb shell pm uninstall com.google.android.googlequicksearchbox
Once this is done you can search market for "voice search" and "google search" then after they're installed, reboot.
Now for the next step.
If the search hard key doesn't bring up the quick search box (keyboard input), do this.
Code:
adb remount
adb shell ln -s /data/app/com.google.android.googlequicksearchbox-1.apk /system/app/com.google.android.googlequicksearchbox.apk
adb reboot
Now all should work!
I had a wierd name for quick search box (com.google.android.googlequicksearchbox-1) so keep that in mind if you have any issues.
Now enjoy you fancy new voice search!
tried everyone's suggestions so far, with your suggestions I get:
rm failed for -f, Read-only file system
Worked for me, thanks!
beyondinferno said:
ONLY WORKS WITH ANDROID 2.2 (FROYO)
Now for the next step.
If the search hard key doesn't bring up the quick search box (keyboard input), do this.
Code:
adb remount
adb shell mv /data/app/com.google.android.googlequicksearchbox /system/app
adb reboot
Now all should work!
I had a wierd name for quick search box (com.google.android.googlequicksearchbox-1) so keep that in mind if you have any issues.
Now enjoy you fancy new voice search!
Click to expand...
Click to collapse
Rather then using the command adb shell mv /data/app/com.google.android.googlequicksearchbox /system/app
I suggest the command ln -s /data/app/com.google.android.googlequicksearchbox-1.apk /system/app/com.google.android.googlequicksearchbox.apk
ln -s creates a symbolic link to the file rather then moving the file. It keeps the google search file where the installer put it. If you move the file are you causing an issue in the future when the next upgrade comes around?
mmace said:
tried everyone's suggestions so far, with your suggestions I get:
rm failed for -f, Read-only file system
Click to expand...
Click to collapse
adb remount first... and when using rm try busybox...
busybox rm <<file>>
painter_ said:
Rather then using the command adb shell mv /data/app/com.google.android.googlequicksearchbox /system/app
I suggest the command ln -s /data/app/com.google.android.googlequicksearchbox-1.apk /system/app/com.google.android.googlequicksearchbox.apk
ln -s creates a symbolic link to the file rather then moving the file. It keeps the google search file where the installer put it. If you move the file are you causing an issue in the future when the next upgrade comes around?
Click to expand...
Click to collapse
Thanks for the tip!
Changing how to now.
Can't wait to try this tonight.
Sent from my HERO200 using XDA App
Worked great! thank you!
This worked for me as well. Thanks.
Not having much luck reactivating the search button.
I can confirm that it got the job done cause when I tried again, it popped up an error that the file already exists, so it succeeded in creating the link... any suggestions?
Just tried it, works great. Thanks!
what does adb shell PM uninstall do as opposed to adb shell uninstall
If you have TB, uninstall voice search and google search from backup/restore, then reboot phone and go to market install both, worked for me
andygu3 said:
If you have TB, uninstall voice search and google search from backup/restore, then reboot phone and go to market install both, worked for me
Click to expand...
Click to collapse
thanks that worked and it was way easier than adb.
I'd love to have this feature, but I get "failure" when I enter the adb shell pm uninstall com.google.android.voicesearch command. I can't figure out what I'm doing wrong, except that I have no idea what the difference between Ubuntu and Windows commands are.
Thanks for all the hard work. Any help is greatly appreciated.`
EDITED: I got it working. Not sure how. Even though I got a "failure" during the adb uninstall, the old voice search appears to have uninstalled already. Went to the market and downloaded the new app and it works!
Perilousp69 said:
I'd love to have this feature, but I get "failure" when I enter the adb shell pm uninstall com.google.android.voicesearch command. I can't figure out what I'm doing wrong, except that I have no idea what the difference between Ubuntu and Windows commands are.
Thanks for all the hard work. Any help is greatly appreciated.`
Click to expand...
Click to collapse
I should add I'm running FROYO 2.1, vanilla based on Cynogen's Aug. 13 mod
Working!
10chars
DirtyShroomz said:
Working!
10chars
Click to expand...
Click to collapse
Can you tell me how you did it? I noticed you had problems earlier.
Perilousp69 said:
Can you tell me how you did it? I noticed you had problems earlier.
Click to expand...
Click to collapse
Used SUFBS (or any file explorer). Went to system/app and deleted voicesearch.apk, rebooted, went to market and downloaded voice search
Sorry for bumping the old topic, but does anyone know the difference
between:
com.google.android.voicesearch.x and
com.google.android.voicesearch ??

Categories

Resources