How do I remove internal apps thru update.zip - Galaxy S I9000 Android Development

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.

Related

[Q] How to install batch of APK

sry if title is wrote wrong..
but i want install i think a hundred of apks.. and i want do it with one command..
But it must be without ADB. bec on tytn adb dont workin if i know..
thx for help
U can copy the apks directly into /data/app/ and they will appear in ur app drawer. Then u can run them normally.
However there r some apks dont support this method, e.g. mybackup, camera360, etc, u should still install them.
u think copy my apps to androidinstall.tar/data/app/
or its job in installed android
both are OK.
I've tried it.
If u have backuped the configrations of some apps (from /data/data/*), u can even copy the /data/data/* into androidinstall.tar. Then right After install the system, u can have the apps already configured.
BSG
you can use boot script generator, select correctly your system location and data location and put your apk in /sdcard/andboot/apps/

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.

[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 about removing apps

Hello everybody,
I'm currently on LeeDroid HD v.3.3.3 a2sd.
I want to remove some apps which I don't use. I read a couple of threads on this subject and in most of them the proposed method was removing the .apk files from /sd-ext.
1. Does the described method above removes COMPLETELY the specific app from my phone? If so, then the installation process of an app (via Market) is equivalent to simply copying the appropriate .apk to /sd-ext ?
I don't think this is right.
What is then required to completely remove the app?
2. Are the 'adb install' and 'adb uninstall' equivalent to 'install' and 'uninstall' in the application manager in the phone?
I would be glad if someone would help me to understand the essence of the subject.
Thanks alot,
Alexei.
removing an .apk from /sd-ext will completely remove it from your phone and when you install an app from the market it will put the .apk in the /sd-ext (for your rom anyway).
the only reason for deleting .apk s from /sd-ext is if they cannot be uninstalled in the usual way (i.e. they came with the rom)
hope this helps
alexei_kom said:
Hello everybody,
I'm currently on LeeDroid HD v.3.3.3 a2sd.
I want to remove some apps which I don't use. I read a couple of threads on this subject and in most of them the proposed method was removing the .apk files from /sd-ext.
1. Does the described method above removes COMPLETELY the specific app from my phone? If so, then the installation process of an app (via Market) is equivalent to simply copying the appropriate .apk to /sd-ext ?
I don't think this is right.
What is then required to completely remove the app?
2. Are the 'adb install' and 'adb uninstall' equivalent to 'install' and 'uninstall' in the application manager in the phone?
I would be glad if someone would help me to understand the essence of the subject.
Thanks alot,
Alexei.
Click to expand...
Click to collapse
Try this http://androidcommander.com/, you need Android SDK for it to work (and java JDK for the SDK to work lol). All you do is plug in your phone via USB, select the apps you don't want and delete them. And you're done.
Manual with Room explorer.
raslond said:
removing an .apk from /sd-ext will completely remove it from your phone and when you install an app from the market it will put the .apk in the /sd-ext (for your rom anyway).
the only reason for deleting .apk s from /sd-ext is if they cannot be uninstalled in the usual way (i.e. they came with the rom)
hope this helps
Click to expand...
Click to collapse
Yes, you are right. Downloaded an apk file and just pushed it to /sd-ext. It is appearing as being installed.
Thanks for the clarification!
After you delete app apk's, I would suggest that you reboot into recovery, wipe dalvik, reboot into OS.
-Jobo

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