[Q] ADB Install : Where does it install apk? - G2 and Desire Z Themes and Apps

If I install an apk from adb : adb install apkname.apk where is the location that it sends the apk? Where does it install.
I've tried /data/app but not there.
pls advice.
P.S. I'm trying to pull apks from certain ROMs that I like and push to the ROM that I choose. please advice if there is something I should keep in mind as well!

Typically it would be installed in /data/app /data/app-private or /system/app
Sent from my T-Mobile G2 using XDA App

You're right
The confusion was that I pull an apk from system that's named a certain way and after i do adb install it changes name.
That's the reason for not being able to find it under the same name.
if someone has more experience maybe they can explain
p.s. Is there a way to do a WILD SEARCH FROM SHELL through adb? ex:
Code:
find *car*

Be careful with what apps you pull, you might need more then just the apk
Or some apps will lock you out of the market *hint* T-Mobile is one step ahead of the game
Or simply, some apps are not compatible with the phone, yet

Mikey1022 said:
Be careful with what apps you pull, you might need more then just the apk
Or some apps will lock you out of the market *hint* T-Mobile is one step ahead of the game
Or simply, some apps are not compatible with the phone, yet
Click to expand...
Click to collapse
that's something new that i need to consider
what's the risk of using apps that will lock me out of the market. Need to understand that a little better so don't run into it.

Related

Installing AOSP apps on the evo

Hi everybody,
This is a total n00b question, but I was hoping someone could point me in the right direction. I want to install some of the AOSP apps onto my rooted Evo. So I downloaded eclair from google and built it it. Then I copied the Gallery.apk onto my SDK card and tried to install it. It goes through the motions, even as far as telling me which permissions that the app needs to run (Storage, etc).
Then it says, "Application not installed." with a done button.
I probably simply can't do what I'm trying to do, but if you can point in the right direction, I'd love to have a hand. I can't find log files or anything that would be useful.
-Ted
I'm not sure about AOSP apps, but here's what you do to add HTC apps back into roms:
1. Get something like Root Explorer so you can easily write to /system/
2. Copy your apk to /system/app/
3. Change it's permissions to match those of other apk's in the folder
4. Reboot phone
(And this should have gone in Q&A, but it's all good )
K I'm also confused about this but the HTC app part. If I wanted the stock clock widget can I make them work with launcher pro?
Also kind of confused about what exactly asop is in laments terms
Sent from my PC36100 using XDA App
I posted something along these lines in Q&A. Of course the problem with Q&A is there aren't nearly as many people around, but I did eventually get somewhat of an answer.
I was trying to take the apks from bugless beast and install the AOSP dialer, calendar, calculator, browser, and messaging apps into another ROM. I love bugless beast, but ironically it has some pretty bad bugs, hopefully we will see some updates.
At any rate, I eventually got some assistance on installing from adb, you may want to just look at the thread, but the short explination is to run
Code:
adb remount
and then you can do an adb shell command to get onto the phone (or use "adb shell <on-phone command>") to run
Code:
install <apk name> /system/app
This will be a very easy way to bugger things up, as I have found out from trying to get the contacts/dialer app running. I would love to hear what all I need to do to get the contacts/dialer/phone portion running as it is in bugless beast.
http://forum.xda-developers.com/showthread.php?t=715635
Thanks for this. It didn't error or anything, but it didn't work either. The app isn't available.
tedroden said:
Thanks for this. It didn't error or anything, but it didn't work either. The app isn't available.
Click to expand...
Click to collapse
So you did the remount, and then either ran adb shell install <apk> /system/app or ran "adb shell" which entered the phone, and then tried "install <apk> /system/app ???
There were no error messages, and then did you reboot?
If you did all of that, what apk were you trying to install?
I really want the calendar app. I tried doing something like this to install the calendar on the emulator. It didn't work there either. It acted like it worked, but all I got was a calendar app that would launch then fail immediately.
nlowhor said:
I really want the calendar app. I tried doing something like this to install the calendar on the emulator. It didn't work there either. It acted like it worked, but all I got was a calendar app that would launch then fail immediately.
Click to expand...
Click to collapse
You probably need the calendar provider apk. I'm using the apks from bugless beast, other ones may have problems I'm not having.
did the remount, and then ... ran "adb shell" which entered the phone, and then tried "install <apk> /system/app ???
There were no error messages, and then did you reboot?
If you did all of that, what apk were you trying to install?
Click to expand...
Click to collapse
Yep, I did all of that. Trying to install Gallery.apk
From what I recall about install, it just copies the file with the proper permissions, it's not doing anything super fancy. I can manually verify that the apk is in the /system/app folder, so technically, 'install' worked. It's just not showing up as an app that I can use.
laydros said:
You probably need the calendar provider apk. I'm using the apks from bugless beast, other ones may have problems I'm not having.
Click to expand...
Click to collapse
I have them both and put that into the same folder. Didn't seem to be good enough to make the emulator happy.

Removing stock apps from JPK

How can I remove some of the stock apps from JPK, SGStools seems to be able to remove the bulk of them but apps like latitude,places,navigation,maps,voice search and ect are still left over.. is this possible to remove ?
Either do it manually
rm /system/app/name.apk
rm /system/app/name.odex
pm uninstall <package name>
or
Link
EarlZ said:
How can I remove some of the stock apps from JPK, SGStools seems to be able to remove the bulk of them but apps like latitude,places,navigation,maps,voice search and ect are still left over.. is this possible to remove ?
Click to expand...
Click to collapse
Try root explorer (new version, just out on market). And there is topic about removing stuff, Im sure it describes other options.
Here is the link for the apps you can remove: http://forum.xda-developers.com/showthread.php?t=712546
As dupel has said, download root explorer from the market, it's a great app for rooted users.
Daneshm90 said:
Either do it manually
rm /system/app/name.apk
rm /system/app/name.odex
pm uninstall <package name>
or
Link
Click to expand...
Click to collapse
Why do you need the third line?
itaykoren said:
Why do you need the third line?
Click to expand...
Click to collapse
It uninstalls the package and removes traces of the app from your phone.
So if u just delete the apk/odex, ur app will still exist in /data/data and packages.xml and its dex will probably still exist as well in dalvik-cache.
In windows terms, its like deleting the program from C:\Program Files vs uninstalling it. That example will either make it clear or confuse u even more
Edit : That is why i wrote that app, doing it manually everytime u flashed a rom is very time consuming lol (im referring to my htc magic where i'd flash cm nightly's everyday )
Thanks for the quick reply.
Does that also apply when unrooting? (when I unrooted, I deleted the superuser.apk, and don't recall I uninstalled any package).
In addition, how do I know the name of the package?
Is it always identical to the .apk?
And a general question: Isn't it more logical to do the third line first, then the other two? Does it matter?
itaykoren said:
Thanks for the quick reply.
Does that also apply when unrooting? (when I unrooted, I deleted the superuser.apk, and don't recall I uninstalled any package).
In addition, how do I know the name of the package?
Is it always identical to the .apk?
And a general question: Isn't it more logical to do the third line first, then the other two? Does it matter?
Click to expand...
Click to collapse
The apk must be accessible (permission wise) in order to run the uninstall command and getting a "successful" in return. When u do so on a system app, it cannot delete the apk hence it returns a "unsuccessful". Hence u need to delete the apk/odex first, then run that command in order to get a "success" message.
The name of the package can be found in 2 ways :
Look inside the /data/data folder for folder names that resonate with that of the apk or u can make out which package name it is (sometimes not so obvious).
Open the apk, look inside the manifest for the package name or just look at the folder structure.
Behind the scenes thats what my app does, goes inside the apk, looks for the package name, hence when u tap on the item, it deletes the apk and presents you with the uninstall dialog where you uninstall the app like a regular app.
Thanks again for your swift reply.
This app of yours sounds interesting...
Tell me, if I don't do the third line, or I do it but I do not remove all the relevant packages (if there may be more than one) then will the icon of the app still be visible? Will it FC when I try to open it? Or will the icon not appear?
itaykoren said:
Thanks again for your swift reply.
This app of yours sounds interesting...
Tell me, if I don't do the third line, or I do it but I do not remove all the relevant packages (if there may be more than one) then will the icon of the app still be visible? Will it FC when I try to open it? Or will the icon not appear?
Click to expand...
Click to collapse
No it won't show up, but future revisions might cause trouble (sometimes)
You can always go through ur /data/data folder and find a folder name that resonates that of an apk u deleted and then run the pm uninstall command on it.

how to pull apk NO ROOT!

how can i get a apk from my phone to the computer
i have seen someone has done it with astro manager but i cant find the app so can someone tell me how please ?
I don't think it's possible without root.
But you find installed apps in /data/app if you want to try.
you can pull apps from /data/app/ with no root, but not /system/app/ also if its a paid app and has any kind of drm it prob wont work on another device
AndroHero said:
you can pull apps from /data/app/ with no root, but not /system/app/ also if its a paid app and has any kind of drm it prob wont work on another device
Click to expand...
Click to collapse
its says directory empty

[Q] How can I remove "My Services" and "Search People"?

They show up in the app drawer, any way to remove them?
Try with Titanium backup you can uninstall system apps with it.
Well, I went through /system/app and deleted a load of APKs (so now just have 1 page of apps in the app drawer, and then another 2 which I want to get rid of)
I can't find the APKs for these though
http://forum.xda-developers.com/showthread.php?t=1050283
Thats a link to a rom cleaning script which lists many apps and the name of the .apk for that app,you may find what you need to know there.Just watch what you are deleting as could cause system problems
LooieENG said:
Well, I went through /system/app and deleted a load of APKs (so now just have 1 page of apps in the app drawer, and then another 2 which I want to get rid of)
I can't find the APKs for these though
Click to expand...
Click to collapse
If the script doesn't work, you can use the package manager commands through terminal (or adb shell) to determine apk location.
Use root un installer pro
http://www.mediafire.com/?tsr2luf19n9vp9a
Sent from my T-Mobile G2 using XDA Premium App

Android 6.0, install system apps

Does anyone know if there is a way to install apps manually?
I know in KitKat, you could place .apk's in the /system/app folder, or /data/app folder, restart, and have your apps installed. Just wondering if there's some method to achieve the same outcome in Marshmallow (i.e. Android 6.0).
I have some of the Samsung apps, like snote, that I would like to still use if possible. Any ideas of help are appreciated. Thanks.
palmaswildbill said:
Does anyone know if there is a way to install apps manually?
I know in KitKat, you could place .apk's in the /system/app folder, or /data/app folder, restart, and have your apps installed. Just wondering if there's some method to achieve the same outcome in Marshmallow (i.e. Android 6.0).
I have some of the Samsung apps, like snote, that I would like to still use if possible. Any ideas of help are appreciated. Thanks.
Click to expand...
Click to collapse
You could always try it the same way. Just move the folder and apk files to system/app or system/priv-app and set the permissions like the rest of the folders and apps. The folders should be set to 0755 and the apk files to 0644. Then reboot to test the apps after that. I would recommend doing them one at a time to test them. Where did you get the apps from? It would be good to get a whole 6.0+ based ROM to make sure you put them in the correct path.
Sent from my SM-N920T using Tapatalk
ludeawakening said:
You could always try it the same way. Just move the folder and apk files to system/app or system/priv-app and set the permissions like the rest of the folders and apps. The folders should be set to 0755 and the apk files to 0644. Then reboot to test the apps after that. I would recommend doing them one at a time to test them. Where did you get the apps from? It would be good to get a whole 6.0+ based ROM to make sure you put them in the correct path.
Sent from my SM-N920T using Tapatalk
Click to expand...
Click to collapse
Thanks very much for your reply. Sorry I'm just getting back to this (after like 2 months), wasnt trying to be rude or unappreciative, just been busy.
I had extracted the apps from a couple of other roms, lollipop based. Its basically some of the samsung apps, for the note. Before upgrading to 6.0 I had a stock/rooted kitkat rom. I was used to using SNOTE for note taking, and liked the abiltiy to take 360° photos withe samsung camera surround effect. I realize that most people probably see these as bloatware, but I havent really seen anything comparable.

Categories

Resources