[Q] Deleting APKs from /data/app - General Questions and Answers

Thinking like Linux, the APKs being stored in /data/app (in Adroid) that I could delete these installer files. Then everything started crashing, so I figured I would force a reboot. Now my Nexus 5 is stuck in an animated bootup. I cannot force it OFF to do a factory reset, as I cannot pull a battery. I will have to let the battery drain.
Factory reset as I understand is VOL UP & DOWN and POWER buttons
Any comments?

What name file are you deleted
Sent from my PICOpadGCE

fresti said:
What name file are you deleted
Sent from my PICOpadGCE
Click to expand...
Click to collapse
all the APKs similar to deleting the DEB/RPM installer files in Linux ROOT
However, I resolved this issue with:
Nexus ROOT Toolkit v1.8.0 to reset to factory
I am now back to factory
BTW, do NOT delete APKs from /data/app unless you do not want that app anymore.

I think your deleting apk is system app... so u always go to boot loop cause your system cant load data system after you delete that...
Sent from my PICOpadGCE

Related

Restoring a system app?

So here's the case- I used the zero camera mod, and don't have a recovery backup before that point, although I have made a backup copy of the two files, which the mod replaces. Now I want to restore the original camera app, but I can't.
Here is what I have tried:
Manual replacement with root explorer, after setting the right permissions, and the app just disappeared from drawer. After that, tried wiping cache and dalvik-didn't help.
So next thing-replaced my original files with those from the zerocam zip and flashed them, again with wiping caches and fixing permissions, and again no luck....
Any ideas why the s##t isn't working, like it's supposed to, and how to get back the original camera app? I've done such things thousands of times on other phones, without any problems, and can't figure out what's the problem here....
Sent from my HTC One S using Tapatalk 2
Boot into recovery and replace the files through adb. You cant replace system apps while the system is running, in most cases.
Tried with the file manager of trwp - again, the app just disappeared... Fixing permissions and wiping caches didn't help either...
Sent from my HTC One S using Tapatalk 2

[SOLVED] video upload freezes phone

Hi. First let me say that the search index is being rebuilt so I couldn't search to see if this has already been addressed. My issue is that I was in Quickpick --> share -->youtube to upload video and it gets stuck there. Phone completely freezes up. Tried reboot, recovery - dalvik & cache wipe, can't even finish connecting it to USB/computer before it starts trying to upload, thus freezing phone. I've only got about 30 sec. once phone starts up to do anything, and that's media scanning. Tried the 1-click kill but it won't work until media finishes scanning, and once media finishes scanning it automatically starts trying to upload again. This happened before and I could only re-flash the ROM (yeah, I forgot and made the same mistake ). I just don't have a current backup this time (I have older backups though) so I'm trying to avoid that mess.
Does anyone know a trick to stop that damn upload from re-trying automatically? I wish I could remove either Quickpick or Youtube apk and see it that doesn't stop it... Ideas?
If you are on GB (and sigs don't lie) , you can boot recovery, run the infuse toolkit, then use the aroma file manager and navigate to the following two locations to remove both youtube and quickpic apks:
/system/app
/data/app
(you may need to delete youtube in both places)
once deleted, wipe dalvik and reboot.
If the problem persists boot recovery then try moving or deleting the file you were trying to share.
Zen Arcade said:
If you are on GB (and sigs don't lie) , you can boot recovery, run the infuse toolkit, then use the aroma file manager and navigate to the following two locations to remove both youtube and quickpic apks:
/system/app
/data/app
(you may need to delete youtube in both places)
once deleted, wipe dalvik and reboot.
If the problem persists boot recovery then try moving or deleting the file you were trying to share.
Click to expand...
Click to collapse
Zen, I think I love you. That's exactly the kind of idea I was looking for. Thank you!!!
Update:
Deleting youtube apk solved issue. (Also deleted file.) Thanks again Zen!

google prey or similar apps to be installed as system app

i would like to install google prey or similar apps as an system app, or default app so when you factory reset the device it is already installed with the user and configuration, are the tutorials "installing app as system app" the ones that will work?
any tips for where to go or what to do? thanks
jvds said:
i would like to install google prey or similar apps as an system app, or default app so when you factory reset the device it is already installed with the user and configuration, are the tutorials "installing app as system app" the ones that will work?
any tips for where to go or what to do? thanks
Click to expand...
Click to collapse
If you're rooted you can use Titanium Backup to convert it to a system app or you can use ES File Explorer with root explorer enabled to manually push it to your /system/app folder then boot to recovery and wipe cache and Dalvik/Art cache then reboot to system.
You can also use adb to adb push it to /system/app folder.
Sent from my SCH-I535 using Tapatalk
Droidriven said:
If you're rooted you can use Titanium Backup to convert it to a system app or you can use ES File Explorer with root explorer enabled to manually push it to your /system/app folder then boot to recovery and wipe cache and Dalvik/Art cache then reboot to system.
You can also use adb to adb push it to /system/app folder.
Click to expand...
Click to collapse
thanks, i tried it with airdroid, but factory reset still delete the settings, the app stays like intended but configurations and login to app is all gone. any tips?
jvds said:
will factory reset still delete it or delete the settings?
Click to expand...
Click to collapse
It won't delete the app but it will delete the settings but you can also use Titanium Backup to backup and restore the app data for that app, you can also backup the app data to google and you can restore it from Google.
Sent from my SCH-I535 using Tapatalk
Droidriven said:
It won't delete the app but it will delete the settings but you can also use Titanium Backup to backup and restore the app data for that app, you can also backup the app data to google and you can restore it from Google.
Sent from my SCH-I535 using Tapatalk
Click to expand...
Click to collapse
but will titanium backup survive factory reset?
do any one know if you can also move the settings to specific locations to avoid them being deleted? for airdroid, or google prey or any other app that can track?
for airdroid the apk and the lib files hat to be moved to system folders and it stays after a factory reset, but anything that looses the settings over a factory reset is pretty much useless for stolen devices, the first step a thief takes is factory reset and format the device. all aps on play store is as good as nothing when it comes to recovering a stolen device. :silly:
jvds said:
but will titanium backup survive factory reset?
do any one know if you can also move the settings to specific locations to avoid them being deleted? for airdroid, or google prey or any other app that can track?
for airdroid the apk and the lib files hat to be moved to system folders and it stays after a factory reset, but anything that looses the settings over a factory reset is pretty much useless for stolen devices, the first step a thief takes is factory reset and format the device. all aps on play store is as good as nothing when it comes to recovering a stolen device. :silly:
Click to expand...
Click to collapse
Titanium Backup will back up whatever apps, app data and settings that you want it to.
You can use Titanium Backup to make itself a system app, it won't get removed by the factory reset, then just use it to restore everything that you backed up.
There is plenty of information about all of this all over XDA and all over the internet if you'll just take the time to do some searching. Get off your butt and get to looking and you'll see.
As for the device being stolen, there are apps that you can install on the device that can be used to lock the device or wipe the device or even track the device to its location or last known location, whichever of those apps you use to secure your device can also be made into system apps using Titanium Backup. Then if its stolen and wiped the apps will still be there.
It isn't rocket science, why are you over thinking and complicating it?
Sent from my SCH-I535 using Tapatalk
Droidriven said:
Titanium Backup will back up whatever apps, app data and settings that you want it to.
It isn't rocket science, why are you over thinking and complicating it?
Click to expand...
Click to collapse
hi, i'm not trying to over complicating it, the thing is that i tried moving aps like google prey and airdroid that can locate a device to the system folders but when i factory reset the device, the apps are there but the configuration of the aps is gone, i want the configuration to stay alive with the aps, because thieves just factory reset the device at the moment they steal it and then you kiss your device good bye, at least if i can get the configuration to stay alive then i have a 50% chance against thieves, at the moment the chance is next to none.
the reason i ask is to not waste time testing things that some one already know, i searched but don't find good tutorials on that, and i'm not sure if Titanium Backup will work for that, i was expecting some one knowing the software like Titanium Backup can tel me that if i do convert an app to a system app with Titanium, that the system app and its configuration will sirvive a reset and not just the app.
i will test Titanium Backup later today when i have some free time, thanks
jvds said:
hi, i'm not trying to over complicating it, the thing is that i tried moving aps like google prey and airdroid that can locate a device to the system folders but when i factory reset the device, the apps are there but the configuration of the aps is gone, i want the configuration to stay alive with the aps, because thieves just factory reset the device at the moment they steal it and then you kiss your device good bye, at least if i can get the configuration to stay alive then i have a 50% chance against thieves, at the moment the chance is next to none.
the reason i ask is to not waste time testing things that some one already know, i searched but don't find good tutorials on that, and i'm not sure if Titanium Backup will work for that, i was expecting some one knowing the software like Titanium Backup can tel me that if i do convert an app to a system app with Titanium, that the system app and its configuration will sirvive a reset and not just the app.
i will test Titanium Backup later today when i have some free time, thanks
Click to expand...
Click to collapse
Factory reset removes all data and settings when you factory reset even for system apps, there is no way to protect that data from a factory reset. You can back it up and restore it but you can't prevent it from being wiped.
There is an alternative though, you can remove the recovery, then turn USB debugging off then password/PIN protect your system settings app.
Removing recovery ensures that they can't use recovery to factory reset.
Turning off USB debugging ensures that they can't flash the device with PC or use adb/fastboot because PC won't recognise the device.
Password/PIN protecting your system settings app prevents them from getting into your system settings so they can't factory reset from settings.
The one issue with this setup is that if your device encounters an issue where it won't boot or bootloops then even YOU won't be able to fix it because you won't have recovery and you won't be able to connect to PC because you won't be able to get into settings to turn USB debugging back on to be able to flash it.
Research these things to verify its safe to do on your device because all devices are different and things are different depending on the device in question.
Sent from my SCH-I535 using Tapatalk
thank you
I'm interested in this topic, since nobody seems care that much to write up a friendly method to do that...
Not friendly
These guys claim to know these things but fail to even give a link to a tutorial on how to do it. Its infuriating. They tell us to research but asking here on XDA is part of research. Pls give a valid tutorial on how to secure prey data so it doesn't get deleted.

LG Sunset (LG33L) deleted wrong app question

I know this is probably a shot in the dark, but the phone was rooted with kingroot and working great, I decided to be an idiot and factory reset. I must've deleted a system app that made the phone function properly. The lock screen doesn't work. The recent apps button does nothing either. Also, when I restart the phone it starts the whole factory reset process over. Does anyone have any idea what LG app may govern these things? The phone works besides this, but that is pretty major stuff. I know it's a cheap phone but I thought it was worth asking.
CaptainPatterson said:
I know this is probably a shot in the dark, but the phone was rooted with kingroot and working great, I decided to be an idiot and factory reset. I must've deleted a system app that made the phone function properly. The lock screen doesn't work. The recent apps button does nothing either. Also, when I restart the phone it starts the whole factory reset process over. Does anyone have any idea what LG app may govern these things? The phone works besides this, but that is pretty major stuff. I know it's a cheap phone but I thought it was worth asking.
Click to expand...
Click to collapse
If you can find a copy of your stock firmware, you can:
1) extract the system apps from the firmware(they'll be in the /system/app and /system/priv-app folder, extract the ones that you don't currently have on the device), then push those apps to the corresponding folder on the device using adb push or by using an app that has a root browser.
2) extract the /system/app folder and the /system/priv-app folder, then use adb push to push them back to /system on the device.
3) extract the entire system.img from the firmware then use adb shell and a dd command to dd the system.img on the device to replace the corrupted system with a complete system.
Or you can get copies of what you don't have from another member here with the same device and firmware then use those to replace the deleted apps
After getting them back to where they go, boot to recovery and wipe cache but don't factory reset.
It's always best to disable or hibernate system apps first to determine whether they are needed, if disabling/hibernating them cause issues then you know they can't be deleted, in this case, re-enable/unhibernate the app. If disabling/hibernating an app doesn't cause an issue, then it's safe to remove/uninstall that app. Do this process one app at a time and you'll figure out what you have to keep and what can be gotten rid of. And remember, after removing or adding system apps, you have to boot to recovery and wipe cache partition (and/or dalvik/ART cache if you have custom recovery). Failing to do the wipe will definitely cause issues.
@CaptainPatterson, I added more info.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Changes to /system/app and priv-app doesn't save.

Hi
I have trouble making Greenify a system app.
Everytime I reboot all my changes to /system/app and/or /system/priv-app reverts itself. All my changes are gone after reboot.
Tried to just make folders etc and they won't stick after reboot.
My banking app looses the fingerprint verifikation as well.
How do this happen and why? How do I fix this?
My Guess is that System is corrupted and needed to be formated or removed and added again to fix this?
Thanks.
Problem solved.
Did a repair filsystem on System and then a Factory Reset.

Categories

Resources