Does anyone know can point me to the right direction on creating an install script that can be flash from recovery to install apps? I've tried searching but can't find a solution. Someone suggested from previous threads about using adb to do it but I want to be able to just flash an update and have all the apps install on the phone, thanks in advance.
You can save all apks on your computer and make a .bat file to push. Discussed in this thread for the opposite purpose of rm. http://forum.xda-developers.com/showthread.php?t=663014
Another alternative is to just use Titanium backup, the paid version in Market even saves your market apps link to market.
danknee said:
You can save all apks on your computer and make a .bat file to push. Discussed in this thread for the opposite purpose of rm.
Another alternative is to just use Titanium backup, the paid version in Market even saves your market apps link to market.
Click to expand...
Click to collapse
I can do a batch file for it but there are times when I flash a ROM while away from my computer which I can't use batch file for.
As for the thread you mentioned I did read through all the posts on there and that is how I got my update.zip to remove all the stock apps before the first load after flashing a new ROM. But I also want to add apps that I've already downloaded and apps that I download that is not on the market on the phone.
I found a thread that I can just put the apks in either
Code:
/data/app
or
Code:
/system/sd/app
that it will automatically show up but it only show up for some not all the apps that I have.
Anyone??? What about the developers?
coderli said:
Does anyone know can point me to the right direction on creating an install script that can be flash from recovery to install apps? I've tried searching but can't find a solution. Someone suggested from previous threads about using adb to do it but I want to be able to just flash an update and have all the apps install on the phone, thanks in advance.
Click to expand...
Click to collapse
Download A2SD v2.5: http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip
Then break it out (unzip it).
You should see an install.sh in the root of the zip. Grab that.
Also grab the /META-INF/com/google/android/update-script. That will show you how the install.sh is launched.
That should give you a starting point.
Related
I wasn't able to find info about this until now. But I need to know how to make the apks I include in a rom removable. I guess, maybe, I have to copy into a different folder instead or /system/app. is it right?
thanks
you have to install it in data directory not in system directory. so data/app
ok, thanks, but, if it doesn't exist, should I create it?
no u should not create it because then it wouldnt be a proper directory for your rom, the rom may not recognize it, i think.
which rom are you on? most rom has a data directory, that is where third party apps are installed and where apps downloaded from the market is also installed
this one
http://forum.xda-developers.com/showthread.php?t=556962&highlight=enomther
ok i see what u mean when there's no data directory. what you should test out first is go to market and download an app. then see where that app is install. see if it created a data directory or not. it should...
I had a look using root explorer, and there is a folder in the root called /data/app , and there inside are every installed apk, even the ones I installed by astro...
and there is another one called /data/data where I find folder of every app too
ANd another one called /data/app-private (there I found one apk that I downloaded from market.
I try to download a new one
Yup put your apks in data/app
on a related note, is there any way to flash unsigned ROMs? like if I want to drop .apk 's into the data folder of a rom before flashing?
The_Chrome_Coyote said:
on a related note, is there any way to flash unsigned ROMs? like if I want to drop .apk 's into the data folder of a rom before flashing?
Click to expand...
Click to collapse
I think no, but have a look for a program called autosign.
It very easy
NguyenHuu said:
Yup put your apks in data/app
Click to expand...
Click to collapse
but it only appear in my phone,not in the files of the rom.
Anyway I'm going to ask enomther, the creator of the rom, maybe he can help me
joshuas_79 said:
but it only appear in my phone,not in the files of the rom.
Anyway I'm going to ask enomther, the creator of the rom, maybe he can help me
Click to expand...
Click to collapse
ok your running a reg rom system, thus meaning 1.5/1.6 non hero. i can teach you step by step on how to set up "signing .zip's". its super super convenient!! i promise and its not to hard. just pm me if you need help. its way way easier to flash a rom with whatever apk you want then to push them and hope you pushed them to the right spot.
Alright, so I can't seem to figure this out. I've browsed the forums and found a few different answers to this question. All of the threads I've read state that apps are in /data/app and /data/app-private. I was going to use ADB to pull these to my SDCard and then to my computer. The problem is I don't see any of the apps in /data and there is no /data/app-private.
And yes, I do have root. Anyone have any suggestions?
Backing up for the purpose of being able to restore at a later point?
Why not use titanium backup (free in market) and then copy the backup folder off your sdcard to your computer?
Cuda1337 said:
Alright, so I can't seem to figure this out. I've browsed the forums and found a few different answers to this question. All of the threads I've read state that apps are in /data/app and /data/app-private. I was going to use ADB to pull these to my SDCard and then to my computer. The problem is I don't see any of the apps in /data and there is no /data/app-private.
And yes, I do have root. Anyone have any suggestions?
Click to expand...
Click to collapse
I'd just download Astro File Manager.
Usage:
1. Hit Menu Button
2. Hit Tools
3. Application Manager/Backup
I was using Astro. Odd thing, not sure if this is supposed to be teh case, but Astro doesn't see that folder. Root Manager does though, so I've figured how to do this. Mods can delete this thread if they want.
Hi all.
I play with quite a few different roms, and currently add a little program apkinstaller to the rom before I load it.
I use the apkinstaller to first re-install TB off the SD card, and then I use TB to re-install everything else, then I go setup my accounts for market and syncing (don't need the cloud servers to do the re-installs wasting bandwidth).
It would be even better if I could put this apkinstaller and TB into a zip file which I could install after loading the rom.
If I can get it to load from a zip file, then I wouldn't even need the apk installer; I would just install TB from the zip file, reboot, and reload from there.
Where can I find information about what I need to do in a zip file to install an apk?
Thanks all.
Yeah I have the same question. Any one have any suggestions?
no-one able to assist
Seems there isn't much interest in replying - I assume this rather than no-one actually knowing.
I need my post count up anyway so I might as well reply with what I have seen. There was a thread somewhere else that I saw someone had a fresh_install.zip script to delete a set of files, and add launcher pro. I guess I need to pull that apart and see what I can work out from it. I only want to do the single file add, so it hopefully will be simple.
easier solution already available
Adding to my own thread again in case anyone else is interested.
I have been looking at the file, and have information about what would need to be done, but now find an easier alternative. It seems that many (most?) of the file managers have an apk installer built in. The roms typically come with a file manager, so I can just use that to start off my re-install process- nothing else required.
Will probably still play with the .zip file though just to understand what it needs.
Is it possible to save an app that i downloaded from the market to use at a later date?
Basically I downloaded and use MyBackup Root as my backing up app for my phone which is free from the market and i would like to have that apk on my phone so i can install after i flash a new rom rather than going into the market to have to do it all the time.
Create an update zip that you can flash from recovery, there should be "how-to's"
hanging around.
If not post up your apk and me or someone else will create one for you.
Hope this helps
I always use Titanium Backup to restore apps when I flash new roms. Works flawlessly.
If you have root you can copy the .apk to external memory. If your new rom comes with any kind of file explorer, you just open it and it will install.
-----
N1; CM7.0.nightlies
If not, what else is done under the covers?
Also, what are the differences when installing applications
•From the android market
•sideloaded from web download
•sideloaded using adb install
•sideloaded using adb push
I copied this question from another place (I cannot put link here because I am new here) because I also have the same question and want to know more about this.
oldyoungguy said:
If not, what else is done under the covers?
Also, what are the differences when installing applications
•From the android market
•sideloaded from web download
•sideloaded using adb install
•sideloaded using adb push
I copied this question from another place (I cannot put link here because I am new here) because I also have the same question and want to know more about this.
Click to expand...
Click to collapse
Some .Apk's can be placed in system/data/app while others can't , make sure the .apk you're trying to place in system/data/app is supported or you may end up restoring your device. if the apk can run from the system /data/app then yes with the right permissions ...
Apk's from the market will give you detailed info from the apk like permission needed , supported devices ect, even the developers contact info ( in other word they are approved by Google.
while "sideloaded" apk or web apk (not coming from Google) are pirates apk,modified apk ect. who knows what permissions it needs or what info you are sharing with whoever modified the apk...
So be careful what you get into your device and where is placed on your device
Sent from my SPH-M930BST using Tapatalk 2
oldyoungguy said:
If not, what else is done under the covers?
Also, what are the differences when installing applications
•From the android market
•sideloaded from web download
•sideloaded using adb install
•sideloaded using adb push
I copied this question from another place (I cannot put link here because I am new here) because I also have the same question and want to know more about this.
Click to expand...
Click to collapse
Simply placing the apk into the correct folder is not enough. You will also need to set the permissions to the same as the other apps in that folder (I can't remember the permissions off the top of my head). This can easily be done using Root explorer, or using an adb shell and the chmod command.
Play Store installs and sideloaded installs achieve the same result, however you will want to be careful where you download apk files from. Apps from the Play Store are less likely to be malicious in nature, and , of course, you should never be pirating paid apps.
Adb push would not be enough as you would still need to set permissions. Unless you are installing a system app, it is better just to use adb install.
rootedVette said:
Adb push would not be enough as you would still need to set permissions. Unless you are installing a system app, it is better just to use adb install.
Click to expand...
Click to collapse
Are you saying the "adb push" will only copy file into the target location but "adb install" will copy the file into the target location AND also set the proper permission for you?
With all of the usual warnings about the source/safety of "side-loaded" apps aside. . .
I simply put the .apk file onto the SD card (anywhere), and then use a file manager like Astro to "open" it (root access not required). You will be prompted to see if you really wanted to install the app. Then let Android do its thing. The app will be installed where it belongs, with all the permissions it needs.
For this to work, you must first tell the device to allow installation of apps from unknown sources. Go to Settings | Security, and check Unknown Sources.