How to manually, I said manually, install an APK - General Questions and Answers

I have an APK that will not install. Just will not. "Package conflicts with another package with the same name", it says. The truth is that the package DOES NOT conflict with any package of the same name, but the system believes it does. So I need help. I've tried to troubleshoot this various ways, looking for any traces of old installations, but so far, I haven't been able to remove anything that makes a difference.
So listen, here's what I want to know. How do I manually install an apk? And when I say manually, I MEAN MANUALLY. I find all kinds of search results that claim to tell me how to manually install an APK, BUT THEY'RE LYING. They just tell me how to install an APK that I have downloaded using the existing system installer, WHICH DOESN'T HELP ME. Sorry, but I'm frustrated with all the guides that claim they're going to tell me what I need but don't deliver.
Manually. I mean manually. I want to put the APK into a folder in data/app, create any other folders that are needed, add the application info into whatever files Android has that tell it what is installed, do whatever else is necessary. I want to do a fully manual installation. No using the system installer. No using any root installers. Putting all the files where they go and making all the changes MANUALLY.
Can anyone please tell me how to do this?

Can you install the app via adb? adb install appname.apk? Sorry, I don't know how to install one manually. I understand what you're asking for but I don't know the answer.

I'd like to give the update that I did finally manage to install the app. I'm pretty sure what finally got me there was deleting its information from /data/system/packages.xml and rebooting. But I'd still like an answer to this question for the future. Failing that, though, if need arises, I would be inclined to take the steps in this guide, https://android.stackexchange.com/questions/200974/how-to-manually-remove-an-app, and follow them in reverse.

"Package conflicts with another package with the same name".
In fact, what identifies an app is its package id. So it means that they have a same package id.
For example, the package id for Instagram is 'com.instagram.android'.

FailSafeNow said:
I want to put the APK into a folder in data/app, create any other folders that are needed, add the application info into whatever files Android has that tell it what is installed, do whatever else is necessary. I want to do a fully manual installation. No using the system installer. No using any root installers. Putting all the files where they go and making all the changes MANUALLY.
Click to expand...
Click to collapse
I need a way to install an app manually without using package installer, by putting the apk and any related files in the correct places, anyone know how to do this? i have a rooted phone, I'm just not sure which files need to be edited so the phone "knows" the app is installed. Please help! Thanks!

Related

help: how to add removable apk to roms?

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.

real easy question

so i wanted to search but didnt now what terms to use in order to find what i need to know.
basically, after i install an .apk to my phone, can i delete the .apk file off my device?
as with windows, after you use the .exe to install, you can delete it
i thought for sure id have a few responses by now the way this forum moves lol
You may do so if you like. The apk is the installer file.
Sent from my SCH-I500 using XDA App
yes you can delete any .apk file that is downloaded to the phone. all you need to do is either download uninstaller by Rhytm Software in the market or you can just go into menu>settings>applications and go from there.

[Q] apk installer zip file to bootstrap app re-installs

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.

[Q] Is copying an .apk into /{system, data}/app sufficient to install an Android app?

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.

Question Install Android app with many apks

Help, i would like to try and install an app from my government id, so maybe I can go to more places without both wallet and cellphone. Knowing it's a government app, I'm 100% sure it will never make it to a smartwatch...
When I tried to pull the APK from the cellphone, i saw that on the path it had the base.apk and done others, like config_xx.apk, another .apk and one like arm64.apk...
If I shall try and install it to the watch, should I do it on each one of the apks? Adb install-multiple?
Uninstall all apks on phone, isolate the necessary apk & find it's dependencies
miravision said:
Uninstall all apks on phone, isolate the necessary apk & find it's dependencies
Click to expand...
Click to collapse
So I pulled all apk files from the app to my PC and used this program from here, called SAP (Split Apk Packer).
I was able to get it all into 1 apk, but when trying to install on the watch I get an error. If I don't sign the recompiled .apk with this SAP program I get the "failure collecting certificates". If I check the Sign apk on the program, then I get another error "failed to extract native libraries", as the photo attached.
I'm not an expert at all, I just try my stuff... so if anyone has any idea if it's at all possible, I would really appreciate the help.
EDIT: apparently, this error could mean that the device is not supported, from what I read. Don't know if that's really it though

Categories

Resources