[Q] apk file issue!! - Galaxy 3 General

I have a confusion regarding android. this is very general query.
In Computer, first we have to have exe file to install anything and then we click on it to install the app on windows computer generally. when the app is installed on computer, we have installed app files in program files and then a dump (that is exe file) which we keep to install this app on any other computer.
Now, please let me know if this is applicable in android phones also?
I know that in android, there is .apk file instead of .exe file in computer. I observed that after installation apk file disappears. Is this true?

Not sure if in understood well, did you mean if instal anything from SD card? If you are asking that the answer is yes, i install everything from SD card and the apk file stay there after installation.

What if u install any app from Market?

vijay.gupta said:
I have a confusion regarding android. this is very general query.
In Computer, first we have to have exe file to install anything and then we click on it to install the app on windows computer generally. when the app is installed on computer, we have installed app files in program files and then a dump (that is exe file) which we keep to install this app on any other computer.
Now, please let me know if this is applicable in android phones also?
I know that in android, there is .apk file instead of .exe file in computer. I observed that after installation apk file disappears. Is this true?
Click to expand...
Click to collapse
Even in Android you can see the .apk files under /system/app. Also applications installed by you can be backed up & later restored using software available on market.

"Normally" these apks dissapear when you download from.market, but all of.your apks are stored in your phone, the thing is that you have to hav permission to do that, when you download an apk (the single file) and store it in sd card to install it, the apk is copied to the phone.
Sent from my GT-I5801 using XDA App

But if u back up ur apps as .apk and install them later using softwares (with exception of Titanium backup) u will loose connection between the app and android market (that means no updates)
the best option is to backup ur apps with titanium backup along with user data and restore it using the same

how do i access /system/app? Do I need to root the phone in order to see this directory?

vijay.gupta said:
how do i access /system/app? Do I need to root the phone in order to see this directory?
Click to expand...
Click to collapse
Download Terminal emulator from market & you are ready to go to /system/app !!!!

You can also download Root Explorer and so the same

Thank all. Can you please confirm what I am writing below:
Suppose I buy a android phone (with android 2.1 so you cannot install apps from SD card) in which I installed an application named XYZ from Market. Now, there is a apk file for XYZ which gets downloaded somewhere in the phone memory and then it gets installed automatically.
Now, I just want to know, where does this apk file go after XYZ is installed? Does it stay in phone memory with the installed files of XYZ.
If it goes to phone memory and not deleted from there, then phone memory

if u install .apk from market it will be stored and installed in /data/app in phone memory. i do not think it is stored twice in the phone.

Do u mean to say that only the installed file gets stored and. apk. File got deleted automatically after getting installed?

vijay.gupta said:
Do u mean to say that only the installed file gets stored and. apk. File got deleted automatically after getting installed?
Click to expand...
Click to collapse
Remember that an .apk file its a variant of the .jar files when you install an .apk this file gets stored inside the phone along with its necesary dependencies when the app starts, the os reads this file line by line while the app is executed.
In short terms the .apk file its the application itself that need a proper interpreter to run, in that way when you install and app to the phone, it copies this file and links the dependencies, so the .apks downloaded from makret are stored directly inside the app folder, in that way you can extract them from this folder and use it in another android phone.

You are relying too much on the windows ways of things. You see an exe file installion in windows essentially unpacking everything (other things aside) where it is needed and you then often see a bunch of files and folders. This is not what happens in android, the apk file is conserved when installed and can be found in the root part of your phone. Its data/app/ if installed on your phone, mnt/asec. (or something like asec) if installed on your sd card. You can copy that file to your sd card or send it to another device and install it again. I did just that today (I sent an apk to a friend)

anyway i dont think its same if i delete .apk + odex files from /data/app as i uninstall it with titanium backup. i think TB will be delete also data stored by the app inside the database (its the place where the apps are saving data, settings, etc...)

In case you are installing from Android Market:
1. When you are at market, it doesn't ask you to download. You will only get option either to install or update the existing app.
2. If you are a normal user, after installing, you won't be able to see the apk file anywhere on your memory card. But if you are a root user or with the help of special file managers and specific apps like root explorer and terminal emulators, you can locate those spk files in the phone's hidden memory.
3. If you are a root user, or with the help above mentioned type of apps, you can locate the apk files in phone memory and copy it on your memory card and distribute it to your wish.
4. If you are worried for paid apps and losing your phone or apps because of resetting or any other reason then stop worrying. A record of your paid apps is stored in google servers. So, even if you reset your phone or lose your phone, once you log in to a your new android device with the same google account, it will automatically show your paid apps. You don't have to pay for it again. Just need to install it again. This is applicable only if you are paying for the app through android market and you are logging into your android device with the same google account you had before losing your apps.
In case of installing via your SD card:
1. apk files are just like java files (.jad or .jar). You can download it on your PC from various sources and transfer it to your SD card or any of your friends' via USB, bluetooth or any other way.
2. After transfering the apk file to your SD card, it doesn't get automatically installed. You have to click it or open it to install, just like how we double click the exe file in windows.
3. Whether installed or not installed, the apk file you transfer to your SD card will always remain there unless and untill you or someone else delete it or you format your memory card.
4. Once installed, a copy of the same apk file would also be there in your phone's hidden memory, which you can access using special apps.
If you worried about losing your apps, try searching for other apps which backups apk... you can do so at android market. Moreover, also search on the net about having root access on your android device.. it'll let you access files in your phone's memory.
I hope, this would solve down all your queries !!!

Thanks next2 devil. Very gud explanation. It cleared almost all confusions. I have some more confusions that i want to clear out.
1) just a general query that just like exe file got unpacked after double clicking on it and install its files in c: genrally, does the same happen with apk, jad and jar files?
2) just want to clear out that phone memory which is hidden for normal users contains the copy of only those apk files that are currently installed on the phone and not the ones that are uninstalled or not installed at all?

vijay.gupta said:
Thanks next2 devil. Very gud explanation. It cleared almost all confusions. I have some more confusions that i want to clear out.
1) just a general query that just like exe file got unpacked after double clicking on it and install its files in c: genrally, does the same happen with apk, jad and jar files?
2) just want to clear out that phone memory which is hidden for normal users contains the copy of only those apk files that are currently installed on the phone and not the ones that are uninstalled or not installed at all?
Click to expand...
Click to collapse
1. I am not sure about JAD and JAR files, but yes, APK files unpack itself to get installed. You can come to know the exact size/space that would be taken by the app directly from the android market. Details would be given there.
2. Yes, the phone memory would be having copy of files only which is installed. There would be no copy of any apk file which in not installed.

Thanks next2devil. Your response give rise to one more query.
if i compare unpacking logic from windows, there is no need for original exe file to remain in existence after it has been installed and user can delete exe file after installing it. Deleting exe file has no negative impact on the working of installed app. Please let me know if this is also the case with apk files? If yes, then what is the need of apk file to remain in phone memory after it has been installed?

vijay.gupta said:
Thanks next2devil. Your response give rise to one more query.
if i compare unpacking logic from windows, there is no need for original exe file to remain in existence after it has been installed and user can delete exe file after installing it. Deleting exe file has no negative impact on the working of installed app. Please let me know if this is also the case with apk files? If yes, then what is the need of apk file to remain in phone memory after it has been installed?
Click to expand...
Click to collapse
Short and simple. Deleting the apk file from /data/app removes the app.
Sent from my Lestatious v1.4.5.5 Galaxy 3 FROYO

Related

File save to?

I'm just carious to where my Phone only apk is download to? It's not in the download folder and i would like to back it up in case something goes wrong with the phone. Anyone happen to know where i can find all the file i download off the market? Thanks.
If you installed an app from the market, the phone doesnt save the apk file, it just installs it. If you downloaded an apk from the browser, it will be in SD card/download.
Most of the time the app called appsaver will find installed programs and copy the apk to the card. There is also titanium backup.
I would use titanium to back up your apps. (Backs them up to sd card and you can then back up the folder to your computer.)
/data/app is where all the installed apk's go.

[Q] Any way to automatically delete downloaded .apk files after installing?

I just noticed my sdcard has a /downloads/ folder with all the non market apks I've ever downloaded just sitting there taking up space. Is there any way to delete them automatically, or will I just need to manually do it every so often?
(I use the stock browser)
A script will need to be made in order to do this, it's possible. Whether it's out there.. who knows ^-^
Btw, this should of gone in the Q&A section
A dev would def have to write up scripts for that to happen. I would just use root explorer or any file explorer and delete them if not needed. if you dont need any then just delete the whole folder. a new download folder will be made automaticaly next time you download.

App install Fails?

hey all iv noticed this a lot with the stock 2.2 rom on my POV Mobii tegra 2 (advent vega rebrand).
e.g i uninstalled a game called jelly defence, then tried to install an updated version of it. the install fails saying aplication not installed.
ok so i then tried to reinstall the first version i had working on the tablet, and that also fails to install saying again application not installed..
why would this be happening? iv noticed that it happens on a fair few number of apps that i install, then uninstall, then try to install again and they fail to install.
installation is done via apk file from sd card. even tried over wifi and still same error.
I know this might sound rude, but did you try Google?
http://stackoverflow.com/questions/4226132/application-not-installed-error-on-android
ahh, could be something to do with the certificates or the AndroidManifest.xml file.
where is this file located so that i can check its permissions?
This might be a tough nutt to crack...
"AndroidManifest.xml" file is inside .apk files.
ok i managed to fix the problem. i mounted my sd card to the pc with card reader, and in the android.secure folder there was a file called smdl2tmp1.asec , i deleted that and now the app installs fine. got both jelly defence and few others installed with no issues.
strange how i cant see that folder on the tablet itself because its hidden. need an app to see the folder and its contents directly on the tablet so i can delete it again if needed.
Yeah, folders and files with a dot infront of their names are invisible.
It's a Linux thing!
Glad you got that sorted out!
is there no file manager app that can see these files directly on the tablet?
Just tried "iFileManager" app I got with stock tablet software and it can see hidden files/folders.
I also tried Root Explorer and it can see hidden files/folders, but this is a paid app.
Astro File Manager can also see hidden files/folders, but you need to go into Preferences-->Look and Feel-->and enable "Show Hidden Files" option.
Maybe your current file manager app also has such an option?
Hope I helped, and don't forget to give a thanks!
ahh, i have stock ifilemanager, but i dont use it, i use ES File Explorer since i can access my LAN shares with it easily over the wifi. will give ifilemanager a go in few mins time.
thanks again.
just checked ifilemanager can see the folder but it cant see any of the file which are inside the folder.
Just checked some "hidden" folders myself on my tablet.
Some have files / sub-folders inside and some don't.
Not all folders need to have files inside.
but when i check the folder on the pc via sdcard reader, there are files in the folder.
cant see them directly on the tablet, but when connected to pc i can see the files in exact same location.

[Q] Where is the apk file downloaded from google play stored?

I have a question. You download an app from google play store to your device. And it fails to install due to device incompatibility or certificate error.
So where is the downloaded apk file stored in the device. Like in windows we have a temp folder, do we have a temp folder where the apk file is stored temporarily?
I don't think you can grasp the apk file after install failed as you can't even see the file after it installed correctly. (please correct me if that is wrong) I think this is about copyright protection issues.
Anyways as (almost) always there is an app for that: Try "appmonster". There is a free trial availbe in google play. It saves downloaded apk's to your sd card so you can install it again and again.
I hope that helped you ;-)
Manipur, try to look into /data/apps folder. You may require root permission to access this folder. There should be all user installed apk packages stored. But I'm not sure if there are also apks of applications that failed to install. Just look there and you'll see
boelze said:
I don't think you can grasp the apk file after install failed as you can't even see the file after it installed correctly. (please correct me if that is wrong) I think this is about copyright protection issues.
Anyways as (almost) always there is an app for that: Try "appmonster". There is a free trial availbe in google play. It saves downloaded apk's to your sd card so you can install it again and again.
I hope that helped you ;-)
Click to expand...
Click to collapse
Thanks. But applications that failed to install are not backed up.
t-fuse said:
Manipur, try to look into /data/apps folder. You may require root permission to access this folder. There should be all user installed apk packages stored. But I'm not sure if there are also apks of applications that failed to install. Just look there and you'll see
Click to expand...
Click to collapse
Apps that failed to install are not backed up though.
There is a program called "APK Downloader" (codekiem.com) which is able to download apk's from Google Play. It only works with free apps so it is "not illegal" but it is against the ToS of Google Play. Use at your own risk!
I have not tested it though...

How to install google store or other apps on the Relaunch on the nook

Hi, as the title says, I have a rooted Nook with Relaunch on it and I want to understand how I can install the google store app or other apps on the Relaunch system. thank you for your time. I've tried researching it but with no luck.
Dre000 said:
Hi, as the title says, I have a rooted Nook with Relaunch on it and I want to understand how I can install the google store app or other apps on the Relaunch system. thank you for your time. I've tried researching it but with no luck.
Click to expand...
Click to collapse
I assume you are referring to an old NST or NSTG, not the new Glowlight Plus.
You've come late to the party for the PlayStore. Google has rolled up the welcome mat for devices running Eclair (Android 2.1) as of June 30, 2017.
You can side-load apps using Relaunch by transferring the apk files from your PC via USB to you Nook (place in a convenient folder, preferably on the SD card). Using the file manager capabilities of Relaunch, navigate to the folder where you copied the apk files. Touching on the apk file icon should bring up the option to install.
You can find various apks by searching with Google or trolling the forum here (a bunch that work in the link in my signature).
nmyshkin said:
I assume you are referring to an old NST or NSTG, not the new Glowlight Plus.
You've come late to the party for the PlayStore. Google has rolled up the welcome mat for devices running Eclair (Android 2.1) as of June 30, 2017.
You can side-load apps using Relaunch by transferring the apk files from your PC via USB to you Nook (place in a convenient folder, preferably on the SD card). Using the file manager capabilities of Relaunch, navigate to the folder where you copied the apk files. Touching on the apk file icon should bring up the option to install.
You can find various apks by searching with Google or trolling the forum here (a bunch that work in the link in my signature).
Click to expand...
Click to collapse
Hi, do you by any chance no the search to show all the files found on the main memory my PC doesn't seem to show the SD card when I plug in my Nook, so I cant upload the apk to the SD card it seems. I tried /root/
Dre000 said:
Hi, do you by any chance no the search to show all the files found on the main memory my PC doesn't seem to show the SD card when I plug in my Nook, so I cant upload the apk to the SD card it seems. I tried /root/
Click to expand...
Click to collapse
If your USB drivers are installed correctly you should see two "drives" when the NST is attached. One is the user accessible internal partition. You can copy over apk files into the "My Files" directory there if need be, as long as you can navigate to that folder using Relaunch, and install from there as described above--at least I think you can. The second "drive" should be the SD card which will show a similar directory structure unless you have added folders yourself.
There is no way to access all files on the internal memory via USB. Only the user data partition can be seen. To get to anything else you need a root browser (I think Relaunch has settings which enable root browsing).
If you're not seeing the SD card you either have an issue with the USB connection or there is an issue with the card itself. Can you see the card with Relaunch?
nmyshkin said:
If your USB drivers are installed correctly you should see two "drives" when the NST is attached. One is the user accessible internal partition. You can copy over apk files into the "My Files" directory there if need be, as long as you can navigate to that folder using Relaunch, and install from there as described above--at least I think you can. The second "drive" should be the SD card which will show a similar directory structure unless you have added folders yourself.
There is no way to access all files on the internal memory via USB. Only the user data partition can be seen. To get to anything else you need a root browser (I think Relaunch has settings which enable root browsing).
If you're not seeing the SD card you either have an issue with the USB connection or there is an issue with the card itself. Can you see the card with Relaunch?
Click to expand...
Click to collapse
Yes I can see the card using Relaunch. And I was able to copy the apk into the My files directory, however, I was trying to figure out what the exact path is to specify in the Relaunch file browser/explorer so that i can see and install the apk? Do you know what it may be?
Dre000 said:
Yes I can see the card using Relaunch. And I was able to copy the apk into the My files directory, however, I was trying to figure out what the exact path is to specify in the Relaunch file browser/explorer so that i can see and install the apk? Do you know what it may be?
Click to expand...
Click to collapse
/media/My Files
nmyshkin said:
/media/My Files
Click to expand...
Click to collapse
Ok thank you. I managed to find the package, however I'm presented with the error "There is a problem parsing the package" when trying to install. I tried installing some of the apps from your signature also but still the same issue persists.
Dre000 said:
Ok thank you. I managed to find the package, however I'm presented with the error "There is a problem parsing the package" when trying to install. I tried installing some of the apps from your signature also but still the same issue persists.
Click to expand...
Click to collapse
Parsing errors generally mean the Android version is incorrect. That would not be the case for apps from my zip package.
How did you root your Nook?
Edit: try moving the apk files to the SD card and retry the install

Categories

Resources