For MAC users. Multiple-App installing script - G1 Android Development

So I was tired of having to install my apps one by one after a wipe or x problem. So with a lot of help from an apple scripting forum, I made this droplet app.
To use it you must have at least adb installed. Connect your phone to your mac via usb. Put all the apps you want installed into a folder. I would avoid naming the folder "untitled folder". I don't know why, I just had a problem when I tried it once. So after all of the apps are in the folder, drag the folder onto this application. All you need to do is wait, the applications will install and you are done.
I am keeping this application in my /android/tools/ folder, just so that I don't lose it.
Feel free to edit the script in any way. Enjoy.
http://www.mediafire.com/?sharekey=c3b7d500bfc2706d1f8e0fff488e27e0e04e75f6e8ebb871

yaaaayyy! great work my friend

great job on this!

is this the same as using adb?
adb push *.apk /data/app/
I would like to have a way to fresh install all the apk after wipe
but i think apk installed via adb would not be automatically tracked for new version by market, right?

kiddyfurby said:
is this the same as using adb?
adb push *.apk /data/app/
I would like to have a way to fresh install all the apk after wipe
but i think apk installed via adb would not be automatically tracked for new version by market, right?
Click to expand...
Click to collapse
this is using the adb install command not push. But I don't know the difference between the two. I have such a small understanding of this. I don't believe that the applications are tracked by the market with this, but I would love to know how it could be done.
Does anyone know if there is a way to install them and have them be tracked?

Solid contribution. Really like what you've done. I don't need it, but I'm sure a lot of people without a full linux distro will enjoy it.

Anything for the mac side of things has got to be good. Mucho props for this.

So I still know nothing about installing the apps so they are recognized by the market. However i did remember that aTrackDog does just that. So as long as most of the programs you install fresh on your device are relatively new, then aTrackDog should be able to help.
I do realize that updating an app(uninstall and reinstalling) takes just as long as the initial install. but at least it would be fewer at a time right?

i noticed that if you restart the phone mid way through installation,
the download would resume after reboot.
so I was thinking if I could inject information into the vending app
that way I can hopefully trick market into downloading the latest app for me
and update tracking would work
I messed around with assets.db->assets10 a bit
I did found the package name and status there, tried adding a new record but the market app is not picking it up
my guess: we might need some corresponding data on google mothership for that to work
i do not like aTrackDog, i prefer native market tracking instead
maybe i can try backing up the whole data folder for the market app next time i wipe

where would the market app save the data once you download it? would we be able to replicate that process? like sending the data from each app we install to the market app? because that would be unbelievable!

Related

Auto install after Wipe

smeone has probably already thought of this, but incase not i wanted to throw it out there, back on windows mobile we had the ability to set up SDconfig to instal our cab files after we flashed a new rom, saving us time on doing it ourselves. has anyone started to write a script to automatically grab apps from the market if we have to wipe our phone, i have had to wipe my phone 3 times in less than the month thati've had it and it's a bit of a hassle to try and find all the apps from the market again. just wondering if anyone had any idea on how to do this. i'm not that good at the whole coding thing but it would be great if this was implemented somehow.
You could always copy the apk files and do an "adb install x.apk" after a wipe.
The other option right now is to use ASTRO to back up all your apps. Download it in the market, it will copy all of your apps to your SD. Unfortunately you have to reinstall one at a time, but it puts them all in a list. Between this and Mybackup I don't lose anything when I wipe my phone except for data created by individual apps. I am sure I could back this info up too, but it just isn't important to me. Hope this helps.
trmacdonal said:
The other option right now is to use ASTRO to back up all your apps. Download it in the market, it will copy all of your apps to your SD. Unfortunately you have to reinstall one at a time, but it puts them all in a list. Between this and Mybackup I don't lose anything when I wipe my phone except for data created by individual apps. I am sure I could back this info up too, but it just isn't important to me. Hope this helps.
Click to expand...
Click to collapse
So make an update.zip with all your apks and favorite theme rolled-up. This way you can image your phone and then apply the update and you are set...
Or you can simply roll your own build of your image with your applications/themes already applied so you have a "live" image (so to speak).

Build Your Own alt+w Wipe...(edit: if you don't use apps2sd...)

First Note: These apps will become uninstallable! (much like any other stock rom apk) and must be deleted using the console, somehow.. anybody care to shed some light on how?
Hopefully someone can add more to this or use this info to build a much more thorough how-to, but for now here's what I've got...
Instead of building your own update.zip you can modify your alt+w wipe data to reinstall the downloaded/backed-up apks of your choice. This can also be used to install 3rd party apks without having access to any other installer, for instance if you wipe then find yourself without any access to the internet/market or a computer.
To do this you must first have the apps on the sd. I used astro to backup apps which puts the apks in /sdcard/backups/apps
I'm doing this on IonR2, your system apps may be elsewhere, mine are located in /system/app, you'll need to know where they are for this to work.
Power off your phone and do this (enter the bold stuff only, replace my directories with yours):
home+power (enter recovery)
alt+x (to go to console)
hit enter (cause the prompt says so..)
/ # mount sdcard
/ # mount system
/ # cd sdcard/backups/apps (or cd to where ever your backed up apks are)
/sdcard/backups/apps # ls *appname* (this may be useful for finding the exact *.apk name)
/sdcard/backups/apps # install -cp org.appName.com.apk /system/app (remember to capitalize where necessary)
at this point it should hang for a second then return to the "/sdcard/backups/apps #" prompt, if so the apk has successfully been added.
/sdcard/backups/apps # reboot (or install more apks if you like)
home+power then alt+w to test if you so desire. now your backed up apk should reinstall itself if you ever have to do an alt+w wipe again..(weather the apk is on the sd card or not)
I know, not very thorough but wth, I figured someone might find this as useful as I did(or be able to expand on it a bit, data, app settings etc). Also cool if you happen to have no net connection, no pc access and a wiped phone with no real useful/fun apps...
u only have to do this once, and it'll flash the new roms WITH these apps installed? how do we 'clear' these apps if we don't want to have them installed when we wipe?
Is it possible to install all the apps in your backup directory at once, with some sort of batch command?
These apps will become uninstallable! (much like any other stock rom apk) and must be deleted using the console, somehow.. anybody care to shed some light on how?
@ Lieu10ant, yeah, you only have to do once/updated rom, this modifies the base install. the newely added apks will be installed every time you alt+w (wipe). If you apply an update.zip this process will need to be redone(I'm pretty sure, haven't tried).
@ lukekirstein, I'm sure there's a way but I'm not sure how. Really hoping someone more knowledgable jumps in here with a bit more info :/
I've added a file manager(with backed up apps installer) and wifi tether because I always need/use em and never really planned on uninstalling em..
Im pretty sure you would have to use "rm" and individually remove all apps you dont want.
instead of backing up your apps, just run apps to sd and never reinstall any apps again
Breakthecycle2 said:
Im pretty sure you would have to use "rm" and individually remove all apps you dont want.
Click to expand...
Click to collapse
you would mount the system again from the recovery console and 'rm' each app you don't want. You would want to be careful not to batch delete stuff.
sonikamd said:
These apps will become uninstallable! (much like any other stock rom apk) and must be deleted using the console, somehow.. anybody care to shed some light on how?
@ lukekirstein, I'm sure there's a way but I'm not sure how. Really hoping someone more knowledgable jumps in here with a bit more info :/
Click to expand...
Click to collapse
Wouldn't it be a nice thing to make them uninstallable? That would, in theory, make them a lot more stable like the stock apps and can only be updated, not modified. You can probably delete them through console in recovery or even through ADB if you wanted to. It'd definitely be impossible to do it through some basic installer or the package uninstaller while the phone is running normally. The same process as a stock app.
I know you can't do it while the phone is running (bummer :/) but I was hoping it's possible when the phone is off.
@ Breakthecycle2, cool, I figured rm through console after mounting but haven't tried so wasn't 100% on that one.
@ Sirus20x6, I prefer this method to apps2sd, mainly because everything's stored in the phone's internal memory. Although I know most folks now seem to be using an apps2sd of some sort.
@ lukekirstein, yeah. That's why I do it this way, but some may want them uninstallable so I figured I better make a point to inform those folks
Wouldn't this decrease your internal memory since these apps are being saved to the phone so you can later wipe?
jusplainmike, I would assume so. Something to keep in mind.
Would a nand be better?
sonikamd said:
I'm doing this on IonR2, your system apps may be elsewhere, mine are located in /system/app, you'll need to know where they are for this to work.
Click to expand...
Click to collapse
(10c)
perhaps, depends on what you want I suppose. I wipe clean every so often just to get a fresh start, speed things back up etc. Sometimes while installing themes I wipe multiple times and also just want a clean slate.
This is definitely not the way to go for a complete backup-restore. Just seems a good way to reinstall a few missing by stock apps after a wipe.
lol soulife i know, i know
I believe apps2sd is the best bet for keeping apps after a wipe or fresh install.
retort
sonikamd said:
lol soulife i know, i know
Click to expand...
Click to collapse
The only reason is because you push a market app to internal memory it read only. If there's an update you have to open terminal or adb and rm and push the update back. Plus if you flash a new update it will wipe them out. With a2sd however you can update them no hastle, and even if you flash a new build, with a2sd the reinstall themself. Much more convient as long as you smart with your partitioning.
I think you guys may be doing this the hard way. If you are wiping and moving to a compatible ROM, just leave the sd card as it is and the new ROM should be able to find and install the apps as long as it has apps2sd built in.
If you are moving to an incompatible ROM you will have to remove old sd app directory first.
rm -r /system/sd/app
then you should be able to just copy over your entire apk backup directory to your sdcard as follows.
cp- a /sdcard/yourdirectoryname /system/sd/app
and if you are installing a ROM that has app2sd built in, it should find all the apps and install them.
If the ROM you use does not have apps to sd, then you will be able to use Lucid script to move apps from phone to sd card app directory (with already copied apps) and link directory
Tru, I just don't use apps2sd. My sd is constantly getting mangled for one reason or another..
uh, by doing this you're filling up your /system folder which actually needs memory to improve. and you can uninstall them by
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm/system/app/nameof.apk
on another note wouldnt wiping while having info in the system ; wipe?
anyways

install only Market app after CyanogenMod-6 rom

Is it possible to just extract and install Only the Google Market app from the gapps-mdpi-20100816-signed zip file. It does not seem likely to work but I thought I would ask anyway.
It is a real bummer trying to buy apps from developers when you have no access to the apk files. Not to mention the apps I already purchased and now I have to figure out how to contact the dev and get a copy. Should have backed up my individual apps, lesson learned.
Yea I just tried installing Vending.apk and MarketUpdate and they do not work. The market app shows up but fails to launch. This is a serious flaw with this rom unless I am missing something. How is every one putting apps on their phone? For example Evernote or any of the other apps that are only accessible via the market?
anika200 said:
Is it possible to just extract and install Only the Google Market app from the gapps-mdpi-20100816-signed zip file. It does not seem likely to work but I thought I would ask anyway.
It is a real bummer trying to buy apps from developers when you have no access to the apk files. Not to mention the apps I already purchased and now I have to figure out how to contact the dev and get a copy. Should have backed up my individual apps, lesson learned.
Click to expand...
Click to collapse
I removed the apps I didn't want from the zip and then installed via clockwork.
Sent from my Liberty using XDA App
Thanks for the reply and it was a good idea, unfortunately it did not work for me. I have no idea why. I finally resorted to installing the whole gapps package and that worked. It would be nice to get this figured out.
When I removed various apps from the zip and re-zipped the recovery did not seem to want to install it properly. As a test to see if it was installing I added maps in addition to the market and niether were installed on reboot. I may reflash and try again, It bothers me to have those extra apps hanging around. I think it may be important to have the firstrun stuff (OnetimeInitilizer) on there but I am not sure.
Any more ideas?
anika200 said:
Thanks for the reply and it was a good idea, unfortunately it did not work for me. I have no idea why. I finally resorted to installing the whole gapps package and that worked. It would be nice to get this figured out.
When I removed various apps from the zip and re-zipped the recovery did not seem to want to install it properly. As a test to see if it was installing I added maps in addition to the market and niether were installed on reboot. I may reflash and try again, It bothers me to have those extra apps hanging around. I think it may be important to have the firstrun stuff (OnetimeInitilizer) on there but I am not sure.
Any more ideas?
Click to expand...
Click to collapse
Install the gapps package, then remove the apps you don't want via adb. After removing them, clear dalvik cache and that will remove the dex files no longer in use and free up the space.
http://forum.xda-developers.com/showthread.php?t=735255 explains how to remove with adb, if you need the info.
ahh yes, that method works good thanks. I quess wiping the dalvik cache takes the place of the "pm uninstall *.apk /data/system/packages.xml" on 2.2 devices.

[Q] Installing apps after installing new rom

So when install a new rom, its a clean install so theres no apps or anthing.
to get all the apps back i just appbrain and install all the apps that i have sync'd from my previous rom.
this takes FORRREEVVVVEERRRR because it prompts me to install each app one by one from the market.
theres got to be a better way to do this.
i cant seem to find anything though, some people said to use titanium backup but that was even slower because it takes longer to prompt you to install each app.
is there some way that you can install a whole group in one go.
also assuming that i go from a 2.2 rom to a 2.2 rom, the apps that i have installed on my sd card, will they remain installed after i flash a new rom?
please help this would be flashing such a easier process!!!!
oh and i have a rogers captivate i896 on rogers.
thanks in advance guys!
Backup to your desktop before you flash, wipe, then use adb to mass install the apps. Cd to the folder you saved your apps in, "adb install *" should do the trick.
Could someone point me the direction of some tutorial or guide on how to do this as I'm not to comfortable with adb
Sent from my SAMSUNG-SGH-I897 using XDA App
I would also suggest Titanium Backup. Appbrain is a pain because it asks you to accept and download the apps one by one. But with Titanium Backup you just go to the backup screen then do a batch reinstall of all missing apps. Plus, if you choose to you can also back up the data with the apps. So once you choose to reinstall the apps there is also an option that says reinstall apps + data. it might take about 5 min. depending on how many apps you have, but its just a push of one button. As far as the apps staying on your SD card, I don't believe they stay there. The only apps that stay are in the market and they are your purchased apps. Unless your using a new rom, sometimes the sprint apps are taken out and put on the sd card. Hope I helped. Take care.
cool this is the best i have heard yet on android os

[Q] YouTube OFF?

Hi Guys,
Every ROM I flash I try to Freeze/Uninstall and remove from Boot Many, the YouTube App.
I don;t use it ever, but even if it says freezed successfully it still comes back after reboot.
What's so special about it and will it creat a problem if I delete it and main question is how?
Thank you
odeccacccp said:
Hi Guys,
Every ROM I flash I try to Freeze/Uninstall and remove from Boot Many, the YouTube App.
I don;t use it ever, but even if it says freezed successfully it still comes back after reboot.
What's so special about it and will it creat a problem if I delete it and main question is how?
Thank you
Click to expand...
Click to collapse
In my other android device experience, Nook Color / Simple Touch, YouTube is instrumental in the Google Apps authentication process. For instance to get market working on nooted versions of those devices you had to sign into YouTube first.
Why are you trying to get rid of it?
promiseofcake said:
In my other android device experience, Nook Color / Simple Touch, YouTube is instrumental in the Google Apps authentication process. For instance to get market working on nooted versions of those devices you had to sign into YouTube first.
Why are you trying to get rid of it?
Click to expand...
Click to collapse
Never used it, if I need to I can view it in the brother. Just another app that loads up on boot and sits there using the battery
odeccacccp said:
Never used it, if I need to I can view it in the brother. Just another app that loads up on boot and sits there using the battery
Click to expand...
Click to collapse
Fair enough. Why don't you give it a try? Make a nandroid backup and then delete the file via ADB in recovery mode (or move it to /data/local/tmp for easy restore). Clear Cache / Dalvik reboot and see if anything isn't working properly.
I would say you can delete via ADB in ICS but many people, myself included, are having issues mounting /system in ICS. It could be possible that this failure for /system to consistently mount could be why TiBu isn't freezing it properly.
Use root uninstaller, its how I have removed all system apps since my gb 2.3.1 days on my x10. A very effective method
Thank you for responces.
The proper way I found would be to transfer it to a User App and uninstall.
odeccacccp said:
Thank you for responces.
The proper way I found would be to transfer it to a User App and uninstall.
Click to expand...
Click to collapse
Just delete the .apk before you even put the zip on your phone
xcrazydx said:
Just delete the .apk before you even put the zip on your phone
Click to expand...
Click to collapse
What do you use to modify and save zip's, just WinRar will do?
odeccacccp said:
What do you use to modify and save zip's, just WinRar will do?
Click to expand...
Click to collapse
I use 7zip. open the archive and delete it, or add whatever .apk you desire. I always do this before I even flash a rom. Winrar should work fine, though.

Categories

Resources