APKs in data/apps. Can I delete them? - Android Q&A, Help & Troubleshooting

I just noticed I have 1.9GB of apks in this directory. They appear to be just apks of the apps I have already installed. If I click on one, it ask if I want to install it. Obvisually, it's already installed so I'm assuming these can be safely removed.
Will someone please confirm, and if possible explain why they are put there, and whether I have an option to keep them from be added there in the first place?
Thank you
Sent from my SAMSUNG-SGH-I337 using XDA-Developers Legacy app

Modify_inc said:
I just noticed I have 1.9GB of apks in this directory. They appear to be just apks of the apps I have already installed. If I click on one, it ask if I want to install it. Obvisually, it's already installed so I'm assuming these can be safely removed.
Will someone please confirm, and if possible explain why they are put there, and whether I have an option to keep them from be added there in the first place?
Thank you
Click to expand...
Click to collapse
When you install an app then it stored in data partition in apk package. If you delete these apps then it uninstalled from your android.

Thank you for the reply!
Sent from my SAMSUNG-SGH-I337 using XDA-Developers Legacy app

Apk files installed actually go to that directory(data/app)
If you Delete apk , your app will be uninstalled and as it is not uninstalled properly , you might face trouble installing the same app afterwards.
And i suggest not to uninstall using this method because apps will have leftover data which will occupy unnecessary space
Cheers

Do not uninstall or your apps will not work,

Related

protect apk from uninstall ?

hi
im been searching , but all i found is how to uninstall protected apk files.
im interested in protecting apk file from uninstalling it by a regular user.
i will explain , i have apk file who disable camera from working , its been ask by a fectory to install it so employ's cant take pic's in work. (the phones are from work) so is there any way to install this apk and put some code or protection over it so wont uninstall it ?
ye sounds legit...
m2smoe said:
ye sounds legit...
Click to expand...
Click to collapse
Well im asking myself about your answer and how its conected to my question....
How its a quastion for legit or not? If someone give his employs a phone and want to disable the camera?
Like in samsung fectory allowed to enter with cameras and phones with cameras? Right? Is it not legit?
Think before you answer....
Well, if the user who wants to uninstall an application from your phone doesn't know about root,titanium backup (there is an option to uninstall system apps there) etc then your best bet is to move it to /system/apps. If the app is there then it cannot be uninstalled through normal methods.
Bdw, you should've put your question in the Q and A section
Cheers!
Sent from my GT-I9100 using xda premium
ephraim033 said:
Well, if the user who wants to uninstall an application from your phone doesn't know about root,titanium backup (there is an option to uninstall system apps there) etc then your best bet is to move it to /system/apps. If the app is there then it cannot be uninstalled through normal methods.
Bdw, you should've put your question in the Q and A section
Cheers!
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
o.k
first thank you for your answer.
seconed next time i'll post my Q there
third ... when you say move the app to /system/apps.
meaning install the apk from there ? after install move it there ? or ?
thx
trabel said:
o.k
when you say move the app to /system/apps.
meaning install the apk from there ? after install move it there ? or ?
thx
Click to expand...
Click to collapse
to install an apk in /system/app , u should copy the apk using "root explorer" for example to that directory and set permissions to rw- r--r--(read write then read read ) but remember u have only limited space on ur /system directory about 500 mbs only
however u can use a launcher like apex , it has a feature to lock the desktop of launcher to prevent moving widgets or uninstalling apps from app drawer
u can also use an app like app locker and lock the installer app and settings app on ur phone with a secret code preventing anyone who doesnt know the code from accessing settings or unisnstall apps
https://play.google.com/store/apps/details?id=com.carrotapp.protectpronew&feature=related_apps
Tefanym said:
to install an apk in /system/app , u should copy the apk using "root explorer" for example to that directory and set permissions to rw- r--r--(read write then read read ) but remember u have only limited space on ur /system directory about 500 mbs only
however u can use a launcher like apex , it has a feature to lock the desktop of launcher to prevent moving widgets or uninstalling apps from app drawer
u can also use an app like app locker and lock the installer app and settings app on ur phone with a secret code preventing anyone who doesnt know the code from accessing settings or unisnstall apps
https://play.google.com/store/apps/details?id=com.carrotapp.protectpronew&feature=related_apps
Click to expand...
Click to collapse
well thank you very much i will look into it.
if with that app i can lock only this specific install then all good , if i disabled all other install uninstall its not good for me.
also for using root explorer i need to root the phone move the app install then unroot the phone
can i put that installer inside the rom and flash it ? will it auto install the app when flashing this rom ?

[Q] System App

Hello to all,
I would like to know, Android Jelly beans you can install an app as system app?? If it is possible in that folder must be inserted so that it can be installed as a system app?
thank you very much :highfive:
You can't install as system app without root. If you are root, I can help you, but if not, I can't
Sent from my GT-S5660 using XDA premium and Android 4.1.1
AngSanley said:
You can't install as system app without root. If you are root, I can help you, but if not, I can't
Sent from my GT-S5660 using XDA premium and Android 4.1.1
Click to expand...
Click to collapse
I'm sorry,
I took for granted that my smartphone was root.
So now you can proceed to tell me how to install an app like app system.
You know me also say that there are advantages to install an app like app system rather than as a normal app?
Some apps have to be installed as system apps, usually ones pulled from other devices or unofficial updates to a system apps which refuse to install from an apk. Besides for apks that won't install normally, I don't really see the reason to install an apk as a system app, unless you want to make it harder to uninstall.
Installing an apk as a system app is done with a rooted device only, by placing the apk in /system/app and changing the permissions to match other system apps. I like to use ES File Explorer.
Depending on the rom (but generally all alow debugging through adb) you should be able to install an apk to system parttion pushing it with adb to the /system/app/ directory
You can also use Titanium Backup or Link2SD to convert any user app to system app, and vice versa. Most of us have at least one of those apps installed, anyway.
post-mortem said:
You can also use Titanium Backup or Link2SD to convert any user app to system app, and vice versa. Most of us have at least one of those apps installed, anyway.
Click to expand...
Click to collapse
Yap, right!!
Sent from my GT-P5100 using XDA Premium HD app

Dead App Scrubber or System Cleaner???

I've noticed with a lot of cleaning app's they leave behind unused folders and files of app's that have since been removered and started up a small graveyard so to speak of these app's and their directories...
Is there an app that will inspect your installed app's and then clean and free up space according to what's installed and what's uninstalled but left behind?
Thanks
n1nj4Lo said:
I've noticed with a lot of cleaning app's they leave behind unused folders and files of app's that have since been removered and started up a small graveyard so to speak of these app's and their directories...
Is there an app that will inspect your installed app's and then clean and free up space according to what's installed and what's uninstalled but left behind?
Thanks
Click to expand...
Click to collapse
Yup there is an app called sdmaid which does exactly that thing it cleans all the dead files and corpse file there are two versions the pro and the free the free contains all the cleaning features and the pro contain that and also other non cleaning feature like biggest file finder,same file finder app control etc its like a ccleaner for android ..........press thanks if this helps
How can I unload the built-in application programs in the phones?
Lindsay02 said:
How can I unload the built-in application programs in the phones?
Click to expand...
Click to collapse
Do you have root access? Then maybe with a root app uninstaller like Clean Master, there's a few others out there, then a root explorer and delete the left over folders and then running something like SD Maid to clean up what might've been left behind.
anandisrocking007 said:
Yup there is an app called sdmaid which does exactly that thing it cleans all the dead files and corpse file there are two versions the pro and the free the free contains all the cleaning features and the pro contain that and also other non cleaning feature like biggest file finder,same file finder app control etc its like a ccleaner for android ..........press thanks if this helps
Click to expand...
Click to collapse
Thanks, yea I've been using this for quite awhile, some other options I don't get really but Corpse Finder is pretty good. I wish there was just a corpse finder app all by itself, sometimes I find myself not needing all those extra features.
n1nj4Lo said:
Do you have root access? Then maybe with a root app uninstaller like Clean Master, there's a few others out there, then a root explorer and delete the left over folders and then running something like SD Maid to clean up what might've been left behind.
Click to expand...
Click to collapse
I do not have ROOT phone, I was the root application using Clean Master, but inside my phone program and can not uninstall it, can uninstall my own installed programs.
Lindsay02 said:
I do not have ROOT phone, I was the root application using Clean Master, but inside my phone program and can not uninstall it, can uninstall my own installed programs.
Click to expand...
Click to collapse
Yea in order to uninstall system apps you need to root your phone.
System Apps - Preinstalled by the Rom/Firmware
User Apps - Apps you install yourself
n1nj4Lo said:
Yea in order to uninstall system apps you need to root your phone.
Click to expand...
Click to collapse
Be sure to ROOT phone?
Lindsay02 said:
Be sure to ROOT phone?
Click to expand...
Click to collapse
Yes in order to do so your phone needs to be rooted...
What phone are you using, model # et cetera... I'll try and help ya find a root tutorial thread for it.

[Q] Unable to install/restore APK

Hey, how's everyone?
I have a backup file made with Titanium Backup for GMD GestureControls, but for some reason I'm unable to restore it to the phone! It just hangs with the box saying "restoring" and at 0%. If I try to install it from the APK it just says "App is not installed".
Really frustrating because I've been able to install/restore things flawlessly before and now, what gives with this junk?
I've used ADB to push the apk to /system/app but that didn't work either!
Try lucky patcher and it will automatically remove unused odex filed...
Sent from my HTC Sensation using XDA Premium 4 mobile app
Stefen Jerrard said:
Try lucky patcher and it will automatically remove unused odex filed...
Sent from my HTC Sensation using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Well I'm familiar with Lucky Patcher but how exactly do I initiate the removal of the unused odex?
Edit: Well I tried to use Lucky Patcher to install the APK file that I had, and it said "must first uninstall the application before installing this apk-file as the signature applications are different because of the recompiling. Delete the app?" I clicked okay and it said "restore failed."
So I think there is something from the old app still there but I don't know how to remove it
Valiante said:
Well I'm familiar with Lucky Patcher but how exactly do I initiate the removal of the unused odex?
Edit: Well I tried to use Lucky Patcher to install the APK file that I had, and it said "must first uninstall the application before installing this apk-file as the signature applications are different because of the recompiling. Delete the app?" I clicked okay and it said "restore failed."
So I think there is something from the old app still there but I don't know how to remove it
Click to expand...
Click to collapse
Just install SystemCleanup from Playstore an CleanUp the system. It will erase unused ODEX files.
https://play.google.com/store/apps/details?id=com.SystemCleanup.Inteks.org
Stefen Jerrard said:
Try lucky patcher and it will automatically remove unused odex filed...
Sent from my HTC Sensation using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Guys, I need you to be very careful when discussing Lucky Patcher, it is almost always used as warez. I will let the discussion of it as a tool to remove unused odex files stay, since this a legitimate, non-warez producing use for it. But please, please, please, don't stray into a discussion of its other uses.
Thanks!

Is it possible to replace the bundled/default apps?

I know I can download new apps and make them the default but what I am wondering is if I could completely delete some of the stock/bundled apps that come with the phone with different versions.
For example, instead of Huawei's Contacts or Dialer or SMS applications, I want to use the Google provided ones (assuming they are compatible)
[Google Play URL]/store/apps/details?id=com.google.android.dialer
[Google Play URL]/store/apps/details?id=com.google.android.contacts
[Google Play URL]/store/apps/details?id=com.google.android.apps.messaging
Is this do-able? If so, how?
I am using the US version of Honor 8 that has been unlocked and rooted and running Android 6.0, if that matters.
YaddaSwamy said:
I know I can download new apps and make them the default but what I am wondering is if I could completely delete some of the stock/bundled apps that come with the phone with different versions.
For example, instead of Huawei's Contacts or Dialer or SMS applications, I want to use the Google provided ones (assuming they are compatible)
[Google Play URL]/store/apps/details?id=com.google.android.dialer
[Google Play URL]/store/apps/details?id=com.google.android.contacts
[Google Play URL]/store/apps/details?id=com.google.android.apps.messaging
Is this do-able? If so, how?
I am using the US version of Honor 8 that has been unlocked and rooted and running Android 6.0, if that matters.
Click to expand...
Click to collapse
U can for some apps. This is there in EMUI 5.0. I'm not really sure about EMUI 4 becoz I updated to EMUI 5.0 the day I got my phone.
Good luck!
Sent from my Honor 8 using XDA Labs
You need to be rooted to delete system apps and replace them with ones you download.
SolarisSixth said:
You need to be rooted to delete system apps and replace them with ones you download.
Click to expand...
Click to collapse
Do you have any instructions on how to do so? Or can you point me to where I can find them?
My phone is rooted, so if I can do it, I would love to.
ayush rao said:
U can for some apps. This is there in EMUI 5.0. I'm not really sure about EMUI 4 becoz I updated to EMUI 5.0 the day I got my phone.
Good luck!
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
There is something similar in EMUI 4 as well but all that does is make a new app the default. It doesn't get rid of the bundled apps from the system.
What I want to do is get rid of them completely from the system, so that there are no traces of them.
YaddaSwamy said:
I know I can download new apps and make them the default but what I am wondering is if I could completely delete some of the stock/bundled apps that come with the phone with different versions. Is this do-able? If so, how?
I am using the US version of Honor 8 that has been unlocked and rooted and running Android 6.0, if that matters
Click to expand...
Click to collapse
Install Magisk 11.1 from your custom recovery (11.1 is the only one that works right now).
Flash the linked zip from your custom recovery
This is a Magisk module I created to replace the Dialer, Messages, Calendar, and Contacts with the Google versions. It also replaces the stock Gallery with QuickPic. Like any other Magisk module, if you want to go back to stock, just disable the module and reboot.
https://drive.google.com/open?id=0B0zE1Kk8sIB6LU55Rm5POF9pV1U
Telperion said:
Install Magisk 11.1 from your custom recovery (11.1 is the only one that works right now).
Flash the linked zip from your custom recovery
This is a Magisk module I created to replace the Dialer, Messages, Calendar, and Contacts with the Google versions. It also replaces the stock Gallery with QuickPic. Like any other Magisk module, if you want to go back to stock, just disable the module and reboot.
https://drive.google.com/open?id=0B0zE1Kk8sIB6LU55Rm5POF9pV1U
Click to expand...
Click to collapse
Awesome! This is exactly what I was looking for. :good:
I don't know much about Magisk but is this compatible with any version of Honor 8? Or is limited to specific models? I have the US version (FRD-L04 running Android 6.0).
Also how easy is to modify this? For example, instead of using QuickPic, I would like to use Google Photos. I would also like to replace the Calculator, Clock, Email apps with the Google versions. Is that (easily) do-able?
YaddaSwamy said:
Awesome! This is exactly what I was looking for. :good:
I don't know much about Magisk but is this compatible with any version of Honor 8? Or is limited to specific models? I have the US version (FRD-L04 running Android 6.0).
Also how easy is to modify this? For example, instead of using QuickPic, I would like to use Google Photos. I would also like to replace the Calculator, Clock, Email apps with the Google versions. Is that (easily) do-able?
Click to expand...
Click to collapse
To answer your question, I'll give a brief answer on what Magisk does. Magisk stores all the mods to /system/ in a disk image on the /data/ partition. It injects itself early in the boot process to mount the Magisk image and mount/symlink the mods over top of your /system/ partition. This allows the end user to effectively modify /system/, without actually modifying /system/ -- the actual underlying stock files are untouched.
Conceptually this mod is compatible with all Honor 8 models -- at worst, it will add the Google versions in addition to the stock versions. In my zip I mount the new versions over top of the Huawei stock apps which is what "replaces" them.
It's pretty easily do-able to mod the zip. Just follow the instructions in config.sh and you should be good to go. Install App Inspector from the Play Store to find the install directory of the system apps you want to replace -- either in /system/app/ or /system/priv-app/ and note what they're named. From there, just drop the APK's you want into the proper folder in the zip, update the REPLACE directories as needed in the config, and then load it into Magisk. If a stock app you're replacing has library folders inside the app directory, you have to explicitly name that folder in config.sh so that it mounts over the entire folder instead of a merge-mount.
You may not be able to replace the stock Email client though since I think that will break the email intent service. But worst case scenario, just toggle your module off and keep editing it until it works the way you want. In the case of system apps that aren't tightly integrated, like the Calculator, I'd recommend just mounting a blank folder over top of the system app (essentially disabling it) and then installing your preferred calculator from the Play Store (RealCalc is what I use).
YaddaSwamy said:
There is something similar in EMUI 4 as well but all that does is make a new app the default. It doesn't get rid of the bundled apps from the system.
What I want to do is get rid of them completely from the system, so that there are no traces of them.
Click to expand...
Click to collapse
Aren't u rooted? Then just install titanium backup and uninstall the system apps.
Sent from my Honor 8 using XDA Labs
ayush rao said:
Aren't u rooted? Then just install titanium backup and uninstall the system apps.
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
Kind of new to the rooting/tweaking scene, so I wasn't aware I had other options. I went through most of the threads in the Honor 8 forum and there weren't a lot of mentions of how to uninstall the system apps. That's what led me to ask the question in the first place.
Titanium Backup looks cool. What would the benefit be between using Titanium Backup vs. Magisk?
YaddaSwamy said:
Kind of new to the rooting/tweaking scene, so I wasn't aware I had other options. I went through most of the threads in the Honor 8 forum and there weren't a lot of mentions of how to uninstall the system apps. That's what led me to ask the question in the first place.
Titanium Backup looks cool. What would the benefit be between using Titanium Backup vs. Magisk?
Click to expand...
Click to collapse
See titanium backup and Magisk r 2 completely different things.
So using Magisk u can use a module which can help u but if u want to edit it it gets complex. Magisk is like SuperSU on steroids. So it's main function is to provide root without modifying system so that Safetynet is bypassed. It also provides system-less modules to get more functionality.
Titanium backup is an app which can perform various functions with root access. Like backing up apps and their data or uninstalling system ones or moving apps to the SD card etc.
But if all u want is to uninstall system apps and if u already have SuperSU then just install this app: https://goo.gl/hK4n5H
It will simply uninstall the applications u select. Also once u uninstall the apps reboot ur phone.
Sent from my Honor 8 using XDA Labs
ayush rao said:
See titanium backup and Magisk r 2 completely different things.
So using Magisk u can use a module which can help u but if u want to edit it it gets complex. Magisk is like SuperSU on steroids. So it's main function is to provide root without modifying system so that Safetynet is bypassed. It also provides system-less modules to get more functionality.
Titanium backup is an app which can perform various functions with root access. Like backing up apps and their data or uninstalling system ones or moving apps to the SD card etc.
But if all u want is to uninstall system apps and if u already have SuperSU then just install this app: https://goo.gl/hK4n5H
It will simply uninstall the applications u select. Also once u uninstall the apps reboot ur phone.
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
Awesome. Thanks for the info! This is the first time I've looked at rooting/tweaking my phone, so I am learning a lot in a short time. :good:
Anyways, my intent is to have as close to a stock ROM as possible and until the custom ROMs stabilize, I thought I could get rid of the stock apps (such as Clock, Contacts, Dialer, etc.) and replace them with the Google version from the Play Store. Secondly, I also wanted to get rid of the unnecessary Google stuff and flash OpenGApps just to have the bare minimum.
For the first, @Telperion gave a Magisk module that he had written for himself to do exactly that but based on what you described, it sounds like I could just install Titanium Backup and uninstall those apps myself. That might be easier to do.
For the second part, there was a script @ganeshbiyer wrote to uninstall all the Google apps (https://forum.xda-developers.com/ho...-apps-list-t3521225/post71093292#post71093292) but I couldn't get it to work. But if I understand you correctly, I should be able to do that with Titanium Backup as well.
YaddaSwamy said:
Awesome. Thanks for the info! This is the first time I've looked at rooting/tweaking my phone, so I am learning a lot in a short time. :good:
Anyways, my intent is to have as close to a stock ROM as possible and until the custom ROMs stabilize, I thought I could get rid of the stock apps (such as Clock, Contacts, Dialer, etc.) and replace them with the Google version from the Play Store. Secondly, I also wanted to get rid of the unnecessary Google stuff and flash OpenGApps just to have the bare minimum.
For the first, @Telperion gave a Magisk module that he had written for himself to do exactly that but based on what you described, it sounds like I could just install Titanium Backup and uninstall those apps myself. That might be easier to do.
For the second part, there was a script @ganeshbiyer wrote to uninstall all the Google apps (https://forum.xda-developers.com/ho...apps-list-t3521225/post71093292#post71093292) but I couldn't get it to work. But if I understand you correctly, I should be able to do that with Titanium Backup as well.
Click to expand...
Click to collapse
Yup all can be done with Titanium​ Backup.
Sent from my Honor 8 using XDA Labs
TB fully removes/replaces the apps -- this might be desirable, but might not be. It's hard to go back and forth between the two once you uninstall.
Magisk mounts over top of the old ones so you get all the benefit without any actual changes to /system/ -- this is more flexible and more desirable for some users.
Personally, I think Magisk and other systemless mods are the future of custom tweaks so I'd suggest that if you think you'll be a tinkerer, learn Magisk modules and do it that way. Ultimately though it's preference.
Telperion said:
Install Magisk 11.1 from your custom recovery (11.1 is the only one that works right now).
Flash the linked zip from your custom recovery
This is a Magisk module I created to replace the Dialer, Messages, Calendar, and Contacts with the Google versions. It also replaces the stock Gallery with QuickPic. Like any other Magisk module, if you want to go back to stock, just disable the module and reboot.
https://drive.google.com/open?id=0B0zE1Kk8sIB6LU55Rm5POF9pV1U
Click to expand...
Click to collapse
Hey @Telperion,
I ran this module and it seemed to work OK for the most part. The Dialer, Messages, Calendar and Contacts all updated properly. But QuickPic doesn't seem to work though. I see that it's installed but when I try to open the app, it just closes and takes me back to the home screen. Any ideas on what might have happened?
YaddaSwamy said:
Hey @Telperion,
I ran this module and it seemed to work OK for the most part. The Dialer, Messages, Calendar and Contacts all updated properly. But QuickPic doesn't seem to work though. I see that it's installed but when I try to open the app, it just closes and takes me back to the home screen. Any ideas on what might have happened?
Click to expand...
Click to collapse
Strange, that happened to me in the first version of my zip, I set it as a merge-mod and for some reason the existing libraries in the /Gallery2/ folder cause QuickPic to crash. When I set it to 'overwrite' /system/priv-app/Gallery2 which made the libraries disappear, then QuickPic launched normally.
Do you have QuickPic currently installed from the Play Store? If so, uninstall first.
Update: Looked over the zip, it looks good. Try downloading and flashing the mod again, perhaps from Recovery this time (if you added from UI the first go-round). Let me know how that goes.
Telperion said:
Strange, that happened to me in the first version of my zip, I set it as a merge-mod and for some reason the existing libraries in the /Gallery2/ folder cause QuickPic to crash. When I set it to 'overwrite' /system/priv-app/Gallery2 which made the libraries disappear, then QuickPic launched normally.
Do you have QuickPic currently installed from the Play Store? If so, uninstall first.
Update: Looked over the zip, it looks good. Try downloading and flashing the mod again, perhaps from Recovery this time (if you added from UI the first go-round). Let me know how that goes.
Click to expand...
Click to collapse
No, I don't have QuickPic installed from the store. I ran the update on the stock device, before I even set up by Google account on it. And I did flash it from TWRP recovery, so I don't believe that is the issue either. But I'll try again and let you know if it works.

Categories

Resources