Removing stock apps from JPK - Galaxy S I9000 Android Development

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.

Related

How do I remove internal apps thru update.zip

I heard some people can remove internal apps thru update.zip , to reclaim internal storage space.
For example, the internal google maps still exist even though newer version of google maps is updated from market. it is wasting of space.
Either do it using adb (check other thread ive posted commands)
Most prolly if ur upgrading through market n system version exists then u can simply delete the apk/odex
Or
Search for Systemapp remover on market.
Daneshm90 said:
Either do it using adb (check other thread ive posted commands)
Most prolly if ur upgrading through market n system version exists then u can simply delete the apk/odex
Or
Search for Systemapp remover on market.
Click to expand...
Click to collapse
one more question, it is required a rooted device to use adb commands to remove internal/system/built-in apps ?
adrianmak said:
one more question, it is required a rooted device to use adb commands to remove internal/system/built-in apps ?
Click to expand...
Click to collapse
Yea u need root, as u have to delete the apk/odex before running "pm uninstall"
Edit : Well i suppose if u have a testkey accepting recovery like ours, u could technically delete a file on /system using a update.zip
Should work, haven't tried it though. Also note this : deleting an apk is not equivalent to uninstalling it
Apk exists in several places to be confirmed as installed (packages.xml,dalvik-cache,data/system,.odex)
In order to properly delete a system app, u must delete its apk/odex followed by running the uninstall command on its package name.
You can put a script in update.zip that just executes with root privileges.
Rom makers use this method, however they usually format the system partition then start writing to it.

[Q] ADB Install : Where does it install apk?

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.

[Solved][Help] Req. the Contacts app

Well, I deleted one app too many from my Defy. Titanium Backup is wonderful, but it backs up ONLY DATA for system apps, so I'm hosed UNLESS...
Could someone mail me the original Contacts app? It's data backup is named 'Contacts-2.1-update1' with the internal name 'com.motorola.blur.contacts'. I think that's all I'd need. There's also 'ContactsUnconnected-2.1-update1' and 'Work-Contacts-2.1-update1' so it wouldn't hurt to get them too.
BTW, the symptoms? When I try to dial by tapping on a contact name the call fails, a red stop sign flashes over the signal strength bars, and an alarm message is posted saying something to the effect that the network service is not available. To make a call I need to do a long press and choose Call from the menu. Ouch!
So, please, anyone who knows how to do it (I use Ghost Commander, a free app, which has a Send built in) send this app to 'Mars-On-Earth at dslextreme dot com'.
Thanks a bunch!
Sign up as a developer at Motorola, it's free. Then you can download "Motodev Studio" which among other things, will let you accesss /system/app
Otherwise, reflash the rom using RSD Lite, there's a guide for it here:
http://android.modaco.com/content/m...ering-bricked-firmware-on-your-motorola-defy/
Sorensiim said:
Sign up as a developer at Motorola, it's free. Then you can download "Motodev Studio" which among other things, will let you accesss /system/app
Click to expand...
Click to collapse
Are you saying the "Motodev Studio" includes the original app files?
MarSOnEarth said:
Are you saying the "Motodev Studio" includes the original app files?
Click to expand...
Click to collapse
MOTODEV Studio does not contain app files. It is Motorola's developer tools for Android phones. Sorensiim is referring to the DDMS perspective that ships with it. DDMS allows you to extract files off the phone and there is an Eclipse view in MOTODEV Studio.
If you already have the Android SDK installed, you can run the DDMS desktop application from sdk/tools (on windows, it's a .bat file).
Sorensiim said:
Sign up as a developer at Motorola, it's free. Then you can download "Motodev Studio" which among other things, will let you accesss /system/app
Click to expand...
Click to collapse
Do you even have to sign up for anything?
I haven't and yet I was able to find this download page by Googling 'MotoDev Studio'.
Anyway, I just wanted to double-check/see if I understood things correctly, does MotoDev Studio let you delete/uninstall apks from the handset?
Could it be used as a simpler method of doing this.
Motodev studio gives you a nice graphical interface to pushing and pulling files, for instance, one could push the contacts apk to the phone.
If you sign up, it will even download the latest Android SDK for you
@Sorensiim, @ericcl:
Thanks, but my problem is I deleted the app. Erased, puff, gone. I do have the tools to put it back, I don't have anything to put in there. And there is in /system/app and what is the native Contacts application binary. SO, would some kind soul grab the binary off of their healthy system and send it off to me. Please.
Get the apk from here lad
http://modmymobile.com/forums/639-m...motorola-defy-system-boot-recovery-dumps.html
Download the system.zip and extract the apk from there
Oh and a tip - dont delete apks rename them to say .bak especially if you are messing about trying to see whats safe to delete, that way you can just change the name back
Higgsy is saving the day! Yey!
Higgsy said:
Get the apk from here lad
http://modmymobile.com/forums/639-m...motorola-defy-system-boot-recovery-dumps.html
Download the system.zip and extract the apk from there
Click to expand...
Click to collapse
Thanks a bunch!
Higgsy said:
Oh and a tip - dont delete apks rename them to say .bak especially if you are messing about trying to see whats safe to delete, that way you can just change the name back
Click to expand...
Click to collapse
Good call! [ & embarrassed]
Rats! This is so close, maybe close enough, but the ROM dumps are for the UK model. The USA Defy has newer software (it appears. The US version is 2.1-update1) and the apps seem structured differently. In the USA ROM there is just one Contacts app, on the UK one it seems to be split in two, *Data and *Provider app. Hmm.
Hi, sorry for the language..
Id deleted some apps yesterday and i have no menu anymore... so i think i just failing during my choose. When i restart the phone i only can have access to my account on motoblur... and it doesn't work as well cause he cannot connect or something more, i don't know what happened.
I'm so disappointed. Must I install system.zip by the pc ? I'll try that when it finishs to dl but...
EDIT : Flashing the rom, i success... omg so much fear thank you for your guide
MarSOnEarth said:
Rats! This is so close, maybe close enough, but the ROM dumps are for the UK model. The USA Defy has newer software (it appears. The US version is 2.1-update1) and the apps seem structured differently. In the USA ROM there is just one Contacts app, on the UK one it seems to be split in two, *Data and *Provider app. Hmm.
Click to expand...
Click to collapse
the uk version is 2.1 update 1 too. The moto apps are the same as far as I know/have read? then again I have never seen the US system/app.
There are many Dev's who have reflashed the UK .sbf (because the us one is not available) - fixed the 3g and wifi calling and say its the same
in my dump I have
contactsdata.apk
contactsprovider2_0.apk
contactsunconnected.apk
Think we need another US user to check their system/app and let us know what they have.
Higgsy said:
the uk version is 2.1 update 1 too. The moto apps are the same as far as I know/have read? then again I have never seen the US system/app.
There are many Dev's who have reflashed the UK .sbf (because the us one is not available) - fixed the 3g and wifi calling and say its the same
in my dump I have
contactsdata.apk
contactsprovider2_0.apk
contactsunconnected.apk
Think we need another US user to check their system/app and let us know what they have.
Click to expand...
Click to collapse
Ok I just pulled back the system/app dump JBoogie3 posted from the Tmobile US rom from Here
It has exactly the same 3 contact apks as the uk rom. So not too sure where you are getting there was only 1 lol.
Higgsy, you just beat me to posting that link to the US ROM dump.
Now, the discrepancy in naming stems from how different utilities display the app names. In TitaniumBackup the file I junked is called 'Contacts-2.1-update1' with domain 'com.motorola.blur.contacts', and I'm still not quite sure what is its file system name. TitaniumBackup does not display it.
I ran a diff on the file list in JBoogie3's ROM dump and my Defy's file system (in the attachment) and the most likely match for the above file would seem to be the BlurContacts.*
Which begs the question, what file manager do you guys use? What for SMB access? FTP? Is it one and the same utility, or separate.
So far SwiFTP (a server on the phone) has been solid for me, and with WinSCP (on a PC) it's been a good combination at home. What's good/can be trusted on (standalone) Android?
root explorer (application) will let you show whats actually in system/app - titanuim aint gonna show you this. Titanium IMO is only good for backing up user apps
Also you can use motodev studio and browse system/app via that
Or good old adb
Theres probably a 101 other ways too - these are my suggestions.
EDIT: an FTP client is not the way forward for sure
oh and blurcontacts.apk also resides in both the UK and US system/app, so thas the one you've deleted and need to replace.
I would either install root explorer or motodev studio (easiest way for you) and check your system/app against the dump and replace any files as required
Higgsy said:
root explorer (application) will let you show whats actually in system/app - titanuim aint gonna show you this. Titanium IMO is only good for backing up user apps
Click to expand...
Click to collapse
As I found out the hard way. It only backs up data for the sys apps.
Higgsy said:
Also you can use motodev studio and browse system/app via that
Or good old adb
Click to expand...
Click to collapse
I've got both downloaded (but not yet installed).
Higgsy said:
Theres probably a 101 other ways too - these are my suggestions.
Click to expand...
Click to collapse
And I thank you for it.
Higgsy said:
EDIT: an FTP client is not the way forward for sure
Click to expand...
Click to collapse
Right, the file permissions, but a good FTP utility is always good for /sdcard and backups, right? ;-)
Higgsy said:
oh and blurcontacts.apk also resides in both the UK and US system/app, so thas the one you've deleted and need to replace.
I would either install root explorer or motodev studio (easiest way for you) and check your system/app against the dump and replace any files as required
Click to expand...
Click to collapse
Again, thanks for the suggestions. Slowly I'll settle in with my workflow.
MarSOnEarth said:
Right, the file permissions, but a good FTP utility is always good for /sdcard and backups, right? ;-)
Click to expand...
Click to collapse
yeah it fine for transferring between sdcard etc i have one set up myself - I use Andftp
Higgsy said:
Ok I just pulled back the system/app dump JBoogie3 posted from the Tmobile US rom from Here
It has exactly the same 3 contact apks as the uk rom. So not too sure where you are getting there was only 1 lol.
Click to expand...
Click to collapse
I'd like to thank Higgsy for much advise, and JBoogie3 for posting the US ROM dumps from which I got the needed apps. Through many twists and turns my goof up has been remedied. And I really mean twists and turns, the latest being that even after the deleted apps had been copied back to their place they were still not being recognized, until after I realized that all but the restored apps in /system/app were owned by 'root', while the restored apps were owned by 'sdcard_rw', or something similar. chmod and chown'ing finally got it all working.
Thanks again.

[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

Question How to actually delete gmail app from system?

I'm looking for a way to actually delete/uninstall gmail from system.
I know you can do a command in adb to uninstall, but that just disables the app and leaves the files in the partition.
Looking for a way to actually delete the file, and when i install it through Play Store, it just installs like a regular app, not as system app.
I've been looking through files with MiX explorer. But I'm scared if i delete the file i find, that it bricks my phone after reboot.
it shouldn't
root and use system app remover
I'm rooted and use debloater module in magisk to delete system apps. I like that I can save the list of apps I want to delete and just flash the module after each update to repeat the process.
Deleting an app folder shouldn't break anything, but if you ever have concerns just rename the folder instead of deleting. That way the system can't find it, but it's still there if you need it back.
Make sure usb debugging is active on phone in developer options, download fastboot tools connect phone to computer and select always allow usb debugging from this computer on text pop up on phone.
Open cmd line in fastboot tools dir and type
adb shell pm uninstall --user 0 com.google.android.gm
Or try this
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
toolhas4degrees said:
Make sure usb debugging is active on phone in developer options, download fastboot tools connect phone to computer and select always allow usb debugging from this computer on text pop up on phone.
Open cmd line in fastboot tools dir and type
adb shell pm uninstall --user 0 com.google.android.gm
Or try this
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
Click to expand...
Click to collapse
This is the command i was talking about. It doesn't delete the apk. After i run this and reinstall the app from play store, it is back into system app.
Why are you reinstalling it if you want to delete it?
Maybe look at systemize module to move it from system to data if that's what you are trying to do
FizzyAps said:
it shouldn't
root and use system app remover
Click to expand...
Click to collapse
That doesn't work.
It is only able to delete the updates. System apk remains.
According to the app it is located here:
/product/app/Gmail2/Gmail2.apk
I dunno if i can delete it, since this phone uses A/B partitions. Usually system apps are located in a different folder.
toolhas4degrees said:
Why are you reinstalling it if you want to delete it?
Maybe look at systemize module to move it from system to data if that's what you are trying to do
Click to expand...
Click to collapse
I'm trying to delete it to see if it fixes the notifications.
This phone is hunted with push notifications not receiving at all for this app.
Hoping that this would fix it.
bokkoman said:
I'm trying to delete it to see if it fixes the notifications.
This phone is hunted with push notifications not receiving at all for this app.
Hoping that this would fix it.
Click to expand...
Click to collapse
Try a different email app hasn't been solved yet, lot of false claims around here. There is a thread on it.
toolhas4degrees said:
Try a different email app hasn't been solved yet, lot of false claims around here. There is a thread on it.
Click to expand...
Click to collapse
I've read all those. No one has tried this yet.
Hence I'm trying to delete it
bokkoman said:
I'm looking for a way to actually delete/uninstall gmail from system.
I know you can do a command in adb to uninstall, but that just disables the app and leaves the files in the partition.
Looking for a way to actually delete the file, and when i install it through Play Store, it just installs like a regular app, not as system app.
I've been looking through files with MiX explorer. But I'm scared if i delete the file i find, that it bricks my phone after reboot.
Click to expand...
Click to collapse
I use alpha backup pro to delete gmail (and many other apps), which will permanently remove a system app (need root), however, if you want to do it the safe way, use de-bloater (playstore), which removes apps via magisk, i.e systemless, so you can revert if you f something up. cheers
Titanium Backup (root) can delete, freeze, and of course, backup system and user apps. Make a backup first, and look over the list of system apps, there are a lot there which are google-related. Freezing will do the same as pm disable....... Uninstall will remove it completely. Whether your device is A/B or not will not matter.
The nice thing about TB is you can see the actual (full) filenames of the packages, and any uninstall/freezes are easily reversible. There are probably other (google) notification service-type apps which are giving you the undesired notifications,
Good luck!
All these apps can't delete the actual apk in the /products folder.
I guess I'll have to do it manually.
bokkoman said:
All these apps can't delete the actual apk in the /products folder.
I guess I'll have to do it manually.
Click to expand...
Click to collapse
Not sure what you mean. Several of these apps do exactly that.
De-bloater Pro (from playstore) deletes the apk from /product (or /vendor, etc.) and moves it to its own folder in /data/adb/modules so that you can restore it later if you so choose (or if you accidentally delete the wrong thing and bootloop).
Debloater (magisk module for terminal) does the same thing. I use it to fully remove several system apps (Netflix, YouTube, YTMusic, etc.) in order to install non-system versions.
terlynn4 said:
Not sure what you mean. Several of these apps do exactly that.
De-bloater Pro (from playstore) deletes the apk from /product (or /vendor, etc.) and moves it to its own folder in /data/adb/modules so that you can restore it later if you so choose (or if you accidentally delete the wrong thing and bootloop).
Debloater (magisk module for terminal) does the same thing. I use it to fully remove several system apps (Netflix, YouTube, YTMusic, etc.) in order to install non-system versions.
Click to expand...
Click to collapse
Well, the apps i tried all failed with an error it could not delete it.
I didn't try that one you mentioned, because you have to pay for it.
So i went and tried the debloater module, and you are right. It did delete it. Thank you!
Let's see if this makes any difference.
So far, so good.
I have been receiving notifications from Gmail since i deleted the system app and installed it from Play Store as a regular app
Let's see if this continues working.

Categories

Resources