[Q] Auto-install APKs at First Boot? - HD2 Android Q&A, Help & Troubleshooting and Genera

Did some searching on this but it came up blank, so maybe someone has a brilliant idea for this
Almost every other day we are getting new builds for Android. I'm sure many of you are like me and have a set of APKs you install with every build. For example SWYPE.
I would like to know if there is a way, when installing a new build, you can have certain apps auto-installed. This would really save me time.

Can't you just put them in the "AndroidApps" folder that usually comes with every build..?

shadiku said:
Can't you just put them in the "AndroidApps" folder that usually comes with every build..?
Click to expand...
Click to collapse
Wasn't sure if that was the proper way it was done. I tried that once, needless to say it didn't work out to well. Had to eat a hard reset.
Anyways, can anyone confirm that this is the best way to do it, or if you know of another that would be great. Please share!

Yup!
yes, i'm 99.9% sure that this is a way to auto-install apps onto your phone, as i've read this in other threads which say the same thing

I did this myself with darkstone's builds. I just loaded up the android apps folder. On second boot I had issues so I then deleted all those apps through winmo and everything was fine again. Not sure with this folder that everytime you boot it tries to reinstall or not. Would like some clarification on that.

Not worked for me

I would suggest downloading 7zip file manager, then when you download your desired rom then just open it up. Navigate to the data/apps folder and drop your apps in there, when you flash the rom then your personal apps will be flashed and installed as if they came with the rom already.
That's what I do and I have never had an issue.

Or there always is ADB

HypoTurtle said:
Or there always is ADB
Click to expand...
Click to collapse
there are some adb apk tools that could probably do a batch install

Am i right that after putting those in your folder, after hard reset all those apps that were there will reinstall(those that you wanted, and those you uninstalled)? Or there will be trouble uninstalling as it is part of ROM?
Personally i used one of those App Backup & Restore apps from market. I had to spend 10 minutes pressing "Accept" cause they install by regular way, but it was quite fast anyway.

Marquo said:
Am i right that after putting those in your folder, after hard reset all those apps that were there will reinstall(those that you wanted, and those you uninstalled)? Or there will be trouble uninstalling as it is part of ROM?
Personally i used one of those App Backup & Restore apps from market. I had to spend 10 minutes pressing "Accept" cause they install by regular way, but it was quite fast anyway.
Click to expand...
Click to collapse
Now which folder are you referring to? When I mentioned placing apps, I was talking about putting them into the data/app folder of the rom zip you are flashing so they will be installed on first boot.
As for backing up and restoring apps, I suggest using MyBackup as it does apps plus their associated data as a batch backup/restore. It doesn't require you to accept each one.
Please mybackup will do sms/mms, call logs, browser shortcuts, and so on. Here is the market link for it: MyBackup

chrisrj28 said:
Now which folder are you referring to? When I mentioned placing apps, I was talking about putting them into the data/app folder of the rom zip you are flashing so they will be installed on first boot.
Click to expand...
Click to collapse
I got you right, and i thought that as they are part of ROM, they will be saved and restored when hard reseting(even if you uninstalled them on purpose).
Thiss app sounds really nice, i shall try it out.
EDIT
Look what i found when i came to forum by main site of xda: http://forum.xda-developers.com/showthread.php?p=23291051
Seems nice.

Related

Restoring Applications After Flashing?

I'm sorry if this has been covered already, but I couldn't find anything specific dealing with it through search. I swear I've seen it somewhere on the forums before, but I couldn't find it again for some reason.
Basically, I'd like to know if there is any way to restore my applications and settings after a full wipe. I'm getting tired of having to wipe and install a giant list of programs every time I want to troubleshoot, and I figure that there is a way to do this via apk or something else.
I've also heard that it's possible with Cyanogen to run applications off of the SD card with the right partition. Is this stable enough to merit the benefit of not having to wipe every time that I update?
Astro app from Market can do what you want.
ruffneckc said:
Astro app from Market can do what you want.
Click to expand...
Click to collapse
I have the astro app, but restoring every application that I want from SD card separately seems to be as exhaustive a procedure as re-downloading the applications in the first place.
I'll check out the interface and see how easy it is. Thanks for the response!
Edit: Oh crap, I was thinking the "app manager" application. Astro's version is a lot more in-depth. Thanks.
I believe "AppManager" on market does batch backup.. not sure about batch installs though.. may want to check it out.
I have used astro to back them up to sd the used appmanager to install them from the sd card. since it backs up to the fat32 partition you can then transfer the folder to your cpu in case you have to reformat the sd card after the flash. Just remember to go to settings and allow for the unknown sources once you get the new rom up then you will have to download the appmanager from the market (at least I think you do) then you can install all of your apps. sorry if I went into too much detail.
sorry looks like you already got the answer you needed. guess i should have kept reading before I replied.

[Android] Paid apps

Most of you know that if you use the Market Enabler you will be able to see (and presumably purchase) paid apps in the Market. Since I change my Android build sometime several times a day, is there a way to "keep" paid apps and move them from build to build, or even phone to phone? (I have a TouchPro, RAPH800 and am trying to help with debugging Android there, too.) Also, being able to back up phone logs and sms might be nice in order to move from build to build or phone to phone, if anyone knows of apps that do this. I find I really like Google keeping my contacts synced. Thanks.
You can write a script which will copy your data folder to a folder on sdcard. You will need to run this script from adb or terminal in the build.
I may write a bat file sometime this afternoon if someone does not come up with better idea.
sshark said:
You can write a script which will copy your data folder to a folder on sdcard. You will need to run this script from adb or terminal in the build.
I may write a bat file sometime this afternoon if someone does not come up with better idea.
Click to expand...
Click to collapse
Two things. First, I'm not sure I want to reuse the whole data file, as sometimes I'm moving from, say Hero to Eclair. (I'm about to get my laptop out and to format an SD card to ext2 and load Shidell's new Eclair build.) Also, not sure I could reuse the whole data.img, moving from Vogue to RAPH800, either. I really only want apps, sms and maybe phone logs.
Second, could we have a decent terminal app in all the builds, please! Sometimes the add-on apps won't install, or I've had trouble installing a good terminal app from the Market. I once used an SU app and had to write one line at a time. I couldn't see what I was doing. It got the job done, but it was crude.
Thanks.
smarcin said:
Most of you know that if you use the Market Enabler you will be able to see (and presumably purchase) paid apps in the Market. Since I change my Android build sometime several times a day, is there a way to "keep" paid apps and move them from build to build, or even phone to phone? (I have a TouchPro, RAPH800 and am trying to help with debugging Android there, too.) Also, being able to back up phone logs and sms might be nice in order to move from build to build or phone to phone, if anyone knows of apps that do this. I find I really like Google keeping my contacts synced. Thanks.
Click to expand...
Click to collapse
I use MyBackup from the market. It's only a 30-day trial...but that renews every time you switch builds. For example, when I switch to a new build, I just go into market, download MyBackup, install it and restore my apps. You can backup apps, contacts, sms, phone log, maybe more I can't recall.
drewden123 said:
I use MyBackup from the market. It's only a 30-day trial...but that renews every time you switch builds. For example, when I switch to a new build, I just go into market, download MyBackup, install it and restore my apps. You can backup apps, contacts, sms, phone log, maybe more I can't recall.
Click to expand...
Click to collapse
Are you backing up to your SD card or using their online option?
smarcin said:
Are you backing up to your SD card or using their online option?
Click to expand...
Click to collapse
SD. Just backup to sd and when u reinstall mybackup on a new build it will find your backup on your sd.

Any way to auto-install a bunch of apps?

For example, after wiping and re-flashing a new Desire rom
Paul22000 said:
For example, after wiping and re-flashing a new Desire rom
Click to expand...
Click to collapse
Back them up with titanium backup (free version is fine) first then you can batch reinstall with it after.
You could write a batch script with a loop to install all the apks in a folder via adb.
britoso said:
You could write a batch script with a loop to install all the apks in a folder via adb.
Click to expand...
Click to collapse
That's a good idea and doable with one line
from windows command line
for %a in (c:\path\to\files\*.apk) do adb install %a
or in batch file (2 % signs)
for %%a in (c:\path\to\files\*.apk) do adb install %%a
Question relating to this type of thing...
I backed everything up with Astro prior to flashing Cyanogen's ROM...after doing so and reinstalling, all apps work, however only apps that I've installed from the market since that time show updates available...the others never notify me, I only find out if I use a program like atrackdog to track the version #'s. Is this a known issue, and is there a fix?
gIMpSTa said:
from windows command line
for %a in (c:\path\to\files\*.apk) do adb install %a
Click to expand...
Click to collapse
Hah, that's awesome!
[Edit]: Will they not show up in the Market as described above if installed via adb?
mikeybags said:
Question relating to this type of thing...
I backed everything up with Astro prior to flashing Cyanogen's ROM...after doing so and reinstalling, all apps work, however only apps that I've installed from the market since that time show updates available...the others never notify me, I only find out if I use a program like atrackdog to track the version #'s. Is this a known issue, and is there a fix?
Click to expand...
Click to collapse
Try backing them up with titanium backup (free edition is fine) and then restoring them, i think that will rewrite your packages file. At least, everything i've restored via titanium updates.
Paul22000 said:
Hah, that's awesome!
[Edit]: Will they not show up in the Market as described above if installed via adb?
Click to expand...
Click to collapse
I think they will, but if not, try the titanium backup method i mentioned.
Use Titanium Backup (It will save all app data and restore that as well) Also Donate version has batch install without prompts to install each app
Titanium Backup Donate. Seriously worth the money man
Any other method of installation than Titanium Backup will cause apps not to show in Market, and you will not be notified of updates. So, use Ti Backup. ;-)
gIMpSTa said:
Try backing them up with titanium backup (free edition is fine) and then restoring them, i think that will rewrite your packages file. At least, everything i've restored via titanium updates.
I think they will, but if not, try the titanium backup method i mentioned.
Click to expand...
Click to collapse
Just downloaded. It looks like auto-install is only for the $4 version?
Paul22000 said:
Just downloaded. It looks like auto-install is only for the $4 version?
Click to expand...
Click to collapse
It's worth the money, but you can batch reinstall without the pay version, you just have to click "ok/done" for each one, but it's quick and easy.
+1 For titanium Backup donate. I dont know how I ever got along without it
Albaholic said:
+1 For titanium Backup donate. I dont know how I ever got along without it
Click to expand...
Click to collapse
But how do I batch-install apps that I did not backup using TiBackup before? e.g. I downloaded a couple of apk files somewhere and want to batch install them, how do I do that?
You can also use AppBrain for batch reinstalling.
Actually, my Nexus One reinstalls all the apps from the market after I wipe.
mikeybags said:
Question relating to this type of thing...
I backed everything up with Astro prior to flashing Cyanogen's ROM...after doing so and reinstalling, all apps work, however only apps that I've installed from the market since that time show updates available...the others never notify me, I only find out if I use a program like atrackdog to track the version #'s. Is this a known issue, and is there a fix?
Click to expand...
Click to collapse
Use Amon_RA recovery and do "Fix UID mismatches" or whatever it's called. It will match your apps to the Market.
I thought if you sign into your google account it will automatically reinstall apps after wipe, or am i missing something?
Mokurex said:
I thought if you sign into your google account it will automatically reinstall apps after wipe, or am i missing something?
Click to expand...
Click to collapse
Yes. Root/custom ROM. The auto-install is for 100% stock I believe.
Am talking more about apps that I didn't have before on my device before wiping/upgrade. Or lets just start with a fresh device where I have absolutely nothing installed: apps or custom settings:
I have a bunch of apk files which I downloaded before via my PC
I haven't even set up my Market/Google account yet on my device
I want to conserve my bandwidth (3G or Wifi, it doesn't matter) and rather want to batch-install the whole bunch of my 100+ apk apps
how do I do that? what app do I use? from the Market?
Moe5508 said:
Am talking more about apps that I didn't have before on my device before wiping/upgrade. Or lets just start with a fresh device where I have absolutely nothing installed: apps or custom settings:
I have a bunch of apk files which I downloaded before via my PC
I haven't even set up my Market/Google account yet on my device
I want to conserve my bandwidth (3G or Wifi, it doesn't matter) and rather want to batch-install the whole bunch of my 100+ apk apps
how do I do that? what app do I use? from the Market?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=5875487&postcount=4
I have set up a category on AppBrain personally.. My must-install apps... So when I install a new ROM (when I get around to doing so) I should hopefully be able to easily pick and choose which are installed and none of the misc stuff I like but don't need for day to day use, or to make testing the new ROM faster etc.

Perfectly Clone one Vibrant to another vibrant

I have a Vibrant with fusion 1.1 that is going back to T-mobile. Is there a way to just clone everything on this phone to the new phone.
Can I just copy Titanium backup form the old phone and put it on the sd card of the new one. Is there a better method?
You need to flash back to stock using odin, just go to the development section and click om the.sticky, under odin roms. Click the.stock one and flash,
Sent from my SGH-T959 using Tapatalk
iwillkillyou said:
You need to flash back to stock using odin, just go to the development section and click om the.sticky, under odin roms. Click the.stock one and flash,
Sent from my SGH-T959 using Tapatalk
Click to expand...
Click to collapse
That wasn't his question... Like at all...
I'd do a nandroid and back up the apps and data in titanium and save them to the SD and then put that SD in the new phone that comes.
Oh haha sorry I didnt read the whole thread, yea peform a nandroid
Sent from my SGH-T959 using Tapatalk
kuhan said:
That wasn't his question... Like at all...
I'd do a nandroid and back up the apps and data in titanium and save them to the SD and then put that SD in the new phone that comes.
Click to expand...
Click to collapse
What would happen if I copied all the contents of the internal memory (all files ,all folders) then copied those over the contents of the new phones internal memory?. Nandroid and TB are not normally saved to the external SD card.
Or should I just load the new rom on the new phone and just copy the TB folder to the new phone and restore from that?
Nandroid and titanium are a good start but neither of those will do things like modem files.
So I would add on the new phone do a base install of fusion 1.1 with the appropriate kernel, i think you said was your rom, then a nandroid restore and that should get you there
ransome7 said:
I have a Vibrant with fusion 1.1 that is going back to T-mobile. Is there a way to just clone everything on this phone to the new phone.
Can I just copy Titanium backup form the old phone and put it on the sd card of the new one. Is there a better method?
Click to expand...
Click to collapse
I'll chime in with my opinion. Granted my opinion comes from my experiences constantly experimenting with different roms. I've flashed the phone this month almost as often as I've received actual phone calls for crying out loud!
The amount of time expended on looking for such a perfect method seems to be greater than the amount of time spent merely reconstructing an equivalent environment.
Keeping all of my contacts on google and using appbrain to have the ability to keep a known inventory of apps...I can reconstruct my daily driver environment from one rom to another in about 30 minutes max without the need to explicitly backup anything.
Though this may not work for everyone, it surely would work for most. Just a thought...
Using AppBrain would mean you would have to constantly re-download your apps. Also, this does not save the settings and what about apps that are not on the market?
I use Titanium Backup if I want to transfer all my apps and settings. Nandroid would be very appropriate to transfer over all the of phone's data, granted you also manually include the correct modem and kernel.
Doing a Titanium Restore surely takes less time then redownloading and installing from the market, especially if you have the Pro version as it is MUCH MUCH quicker.
kangxi said:
Using AppBrain would mean you would have to constantly re-download your apps. Also, this does not save the settings and what about apps that are not on the market?
I use Titanium Backup if I want to transfer all my apps and settings. Nandroid would be very appropriate to transfer over all the of phone's data, granted you also manually include the correct modem and kernel.
Doing a Titanium Restore surely takes less time then redownloading and installing from the market, especially if you have the Pro version as it is MUCH MUCH quicker.
Click to expand...
Click to collapse
Titanium can save some time, but honestly not enough to write home about, at least for me. It's a matter of a few minutes different in my experience.
The reason why I do not use Titanium, despite the fact that it can save some time is that it can lead to complications especially when bouncing between 2.1 and 2.2 derivative roms, depending on what you back up of course. I'll use it when I'm staying within the domain of 2.1...or staying within the domain of 2.2. Crossing those domains however I never use Titanium. I've had more problems than not, and admittedly that may be due to my ignorance of what things are truly safe to restore across different versions of Android.
Then again I'm probably unusual compared to the OP, in that I experiment with EVERYTHING, up to and including a little bit of my own firmware cooking after the fact. Every firmware and experimental firmware and filesystem hack has at some point been on this phone, but that's how I roll.
Doing without deliberate backups hasn't drastically changed my restore times. Setting up the few apps that require setup takes a matter of seconds when I decide to use that app.
It's nice to get a fresh install - just TB and and reinstall after!
iwillkillyou said:
Oh haha sorry I didnt read the whole thread, yea peform a nandroid
Click to expand...
Click to collapse
You didn't even read the title of the thread before clicking it, bro....
-bZj
if you want exact - nandroid
otherwise use TitaniumBackup Pro
This is what I would do. I would perform a nandroid. After doing so I would then copy everything in the internal sd to your computer. When the new phone comes. Copy everything into the new phone's internal sd. Root your phone, install clockwork mod. Flash a new rom if you want if not no biggy. Load up into clockwork mod, do an advanced restore, restore data only. Reboot. Reboot again. Load back into clockwork mod, clear cache and dalvik. Reboot twice. Run fix permissions. Reboot. Everything should work with no errors and it will look identical to your last vibrant. You could condense this but I wrote it so that you could install buncha diff roms without having to do titanium restore because that just takes a ****ing long time if you have a **** load of apps installed.
Mouahmong said:
This is what I would do. I would perform a nandroid. After doing so I would then copy everything in the internal sd to your computer. When the new phone comes. Copy everything into the new phone's internal sd. Root your phone, install clockwork mod. Flash a new rom if you want if not no biggy. Load up into clockwork mod, do an advanced restore, restore data only. Reboot. Reboot again. Load back into clockwork mod, clear cache and dalvik. Reboot twice. Run fix permissions. Reboot. Everything should work with no errors and it will look identical to your last vibrant. You could condense this but I wrote it so that you could install buncha diff roms without having to do titanium restore because that just takes a ****ing long time if you have a **** load of apps installed.
Click to expand...
Click to collapse
Thanks for the lengthy explanation , that makes the most sense.
I will try this method . Thanks for taking the time.
Hey rancome7 - did you try this method? How did it work for you.. I may just do this right now as im in the same situation of wanting to clone my Vibrant to a new Vibrant
Question - wont restoring data from a nandroid after installing a new ROM cause the rom to act funny since the old data may not agree with it or overwrite something?

[Q]TWRP Backup Questions

Rooted 6.2.2, TWRP installed. I ran backup of the stock ROM, before I install a different ROM like CM7 or the ICS that is being developed do I need to copy that backup off the Fire? After the new ROM has been flashed, does that backup stay on the Fire or does the flashing process wipe it out?
Also, after restoring that backup......am I completely at the point when I took the backup? Data, apps, etc should be just as they were when I took the backup?
THANKS
The backup image is stored in TWRD directory with the data and time name. Rename it as your stock Tom for future use.
The contents of the backup as a defualt has ROM and your application if you did not change parameters
Regards
Sent from my GT-S5830 using XDA App
Just remind you that I have got a weird issue that some of my games does show their icons and when I type to them it says something like "Cannot load, restart Go Launcher" ( I use Go Launcher). I found no way to restart my launcher so that I just reinstall them and it's fine.
ammubarak said:
The backup image is stored in TWRD directory with the data and time name. Rename it as your stock Tom for future use.
The contents of the backup as a defualt has ROM and your application if you did not change parameters
Regards
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
cruel91 said:
Just remind you that I have got a weird issue that some of my games does show their icons and when I type to them it says something like "Cannot load, restart Go Launcher" ( I use Go Launcher). I found no way to restart my launcher so that I just reinstall them and it's fine.
Click to expand...
Click to collapse
Thanks for the replies, but they don't answer my questions.
ontwowheels said:
Rooted 6.2.2, TWRP installed. I ran backup of the stock ROM, before I install a different ROM like CM7 or the ICS that is being developed do I need to copy that backup off the Fire? After the new ROM has been flashed, does that backup stay on the Fire or does the flashing process wipe it out?
Click to expand...
Click to collapse
The backups go to /sdcard/TWRP/backups/...
Unless you wipe your SDCARD they should not be touched.
You can always, copy them onto your computer if you want... which would be useful if you had to like replace the hardware and wanted to restore it onto the new hardware.
Also, after restoring that backup......am I completely at the point when I took the backup? Data, apps, etc should be just as they were when I took the backup?
Click to expand...
Click to collapse
Depends on what you backed up (What options you chose).
krelvinaz said:
The backups go to /sdcard/TWRP/backups/...
Unless you wipe your SDCARD they should not be touched.
You can always, copy them onto your computer if you want... which would be useful if you had to like replace the hardware and wanted to restore it onto the new hardware.
Depends on what you backed up (What options you chose).
Click to expand...
Click to collapse
Thanks....any suggestions on the options? Select all of them I assume? lol
Just like an image taken on a computer, when I restore it, I would want to be at the exact point where the image was taken. System, apps, data, etc.
the answer to ontwowheels question isn't truly answered yet. Like him, i'm rooted, with TWRP, and trying things out. i'd very much like to try MIUI but its not clear if i can completely revert back to stock Kindle [admittedly there are several conveniences i like about but unfortunately it aint a-la-carte unless i foolishly dive in making my own ROM!]. Can someone please provide some guidance as to what must be backed up to restore stock kindle again, just as i left it [settings, preferences, apps, registration with amazon and market, etc] or if that's even possible, or what won't be restored. i'm not a developer and i hesitate to go with trial and error
thank you very much for your patience
mebobbob said:
the answer to ontwowheels question isn't truly answered yet. Like him, i'm rooted, with TWRP, and trying things out. i'd very much like to try MIUI but its not clear if i can completely revert back to stock Kindle [admittedly there are several conveniences i like about but unfortunately it aint a-la-carte unless i foolishly dive in making my own ROM!]. Can someone please provide some guidance as to what must be backed up to restore stock kindle again, just as i left it [settings, preferences, apps, registration with amazon and market, etc] or if that's even possible, or what won't be restored. i'm not a developer and i hesitate to go with trial and error
thank you very much for your patience
Click to expand...
Click to collapse
To restore stock just use TWRP to flash the update.zip found on amazon. Once you download it, you will have to rename it to whatever.ZIP instead or whatever.BIN. Once that's done, go to settings on the stock ROM and hit device, then factory reset and you should be good to go

Categories

Resources