Restoring a system app? - HTC One S

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

Related

[Q] All apps using SD crashes after removing some system apps

Hello!
I've rooted my Nexus S and decided to remove some system apps that I don't use.
I downloaded Root Uninstaller from Market and removed this ones:
PHP:
BooksTablet_2.3.6.apk
com.google.android.apps.googlevoice-2_0.4.2.54.apk
com.google.earth-2_6.2.apk
HoloSpiralWallpaper_4.0.4-299849.apk
LiveWallpapers_4.0.4-299849.apk
Microbes_4.0.4-299849.apk
NoiseField_1.0.apk
PhaseBeam_1.0.apk
talkback_3.0.2.apk
VideoEditorGoogle_1.1.apk
Videos_1.4.11.apk
VisualizationWallpapers_4.0.4-299849.apk
VoiceDialer_4.0.4-299849.apk
VoiceSearch_3.0.1.apk
I thought that they are not so critical.
After rebooting I stucked with constant error from gapps and every other app that uses SD card. For example, error stack from Financisto:
Code:
java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: android.database.sqlite.SQLiteReadOnlyDatabaseException: attemt to write a readonly database.
Same thing with stock Exchange app, Gtalk and others. However, Total Commander can browse and view files on it. Mount to computer with USB also works fine.
I can try to wipe and/or flash custom rom, but want to save information from some apps. Stock 4.0.4 rom and Matr1x kernel.
Any suggestions how to fix this?
Back up your apps with titanium backup. It'll save the data as well. Just restore data+app for those select few. Wipe and reflash. Best bet is to always freeze apps because of stuff like this happening. You really aren't gaining any significant amount of space by deleting them anyways.
Sent by pocket technology.
Not to intrude, but could you help me with an issue with my Nexus S ?
Sent from my Nexus S 4G using XDA
All are fine to deleted except com.google.android.apps. Restore it and you shouldn't have any issues.
chronophase1 said:
Back up your apps with titanium backup. It'll save the data as well. Just restore data+app for those select few. Wipe and reflash. Best bet is to always freeze apps because of stuff like this happening. You really aren't gaining any significant amount of space by deleting them anyways.
Sent by pocket technology.
Click to expand...
Click to collapse
Thank you, but I was unable to install anything. Things got worse and I received constant errors from every google app. I tried to install Titanium several times from market or apk or recover deleted gapps from backup without success.
So I wiped my phone and now all is ok.

[Q] Insufficient Storage, but 14.7GB free

I just installed ExynosAbuse APK v1.40 and i now have root so i could regain my copy/paste function back. (I delete everything in data>clipboard)
However now when i go to install any app i get the error, insufficient storage. As the title says I have ~15gb free (says the settings>storage). Even when uninstalling an app I cannot re install it as it says i have insufficient space. For example, i uninstalled angry birds SW (which was 60mb) and i cannot reinstall it, or any other apps.
Oh, and i uninstalled the Exynosabuse (but left root enabled) and now i cannot reinstall it to disable root. I also tried uninstalling the google play updates, and nothing changed. Installing apps with either google play or ES file manager gives the same result (insufficient storage space)
Thanks for the help.
UPDATE:
I found the problem, and solution in post 20
I had the same problem with an app i tried installing once, but it only happened with that particular app. Maybe try wiping cache and dalvik cache.
Sent from my GT-N8013 using XDA Premium HD app
RussellEstridge25 said:
I had the same problem with an app i tried installing once, but it only happened with that particular app. Maybe try wiping cache and dalvik cache.
Sent from my GT-N8013 using XDA Premium HD app
Click to expand...
Click to collapse
Thanks for the reply. I went to data>dalvik cache and deleted everything in there and restarted. I gained about 200 mb but still i cannot install anything.
Njord0 said:
Thanks for the reply. I went to data>dalvik cache and deleted everything in there and restarted. I gained about 200 mb but still i cannot install anything.
Click to expand...
Click to collapse
Did you wipe cache and dalvik cache in recovery mode?
Sent from my GT-N8013 using XDA Premium HD app
Im trying a factory reset now since i've only owned this thing for a few days. Though if anyone knows a solution to this, please post. I've came across a few threads with a similar problem and they have gone unsolved.
RussellEstridge25 said:
Did you wipe cache and dalvik cache in recovery mode?
Sent from my GT-N8013 using XDA Premium HD app
Click to expand...
Click to collapse
No just deleted it with es file manager
Njord0 said:
No just deleted it with es file manager
Click to expand...
Click to collapse
You should do it in recovery mode.
Sent from my GT-N8013 using XDA Premium HD app
If you are getting it for a particular app then try searching for the it using its name it must have left some file over during your previous installion delete all files with the app name and try installing it should install
Try uninstalling the update of play store by going into settings applications
The first one should do the trick
samir_a said:
If you are getting it for a particular app then try searching for the it using its name it must have left some file over during your previous installion delete all files with the app name and try installing it should install
Try uninstalling the update of play store by going into settings applications
The first one should do the trick
Click to expand...
Click to collapse
All of the apps in the play store that i tired (ones that haven't been installed before) gave the same error, not just ones previously installed. I also deleted some bloatware updates and tried to reinstall their updates afterwards. The problem persists.
I did uninstall the playstore updates and clearing the cache. Nothing changed.
I've restored to factory and its working again. Crappy solution though..
thanks for the help
I solved this problem with lucky patcher. Run it when you have this problem and it will remove the unused odex file. Then install normally and you shouldn't have the error. I found this happens to me when uninstalling modified apks and trying to install the official app after.
Sent from my GT-N8013 using Tapatalk 2
i only have this Problem when there is less than 500mb free space.
common -.- i want to install a 2mb apk File And it complains because there is only 490mb free space -.- any way to change that?
PurpleSh4rk said:
I solved this problem with lucky patcher. Run it when you have this problem and it will remove the unused odex file. Then install normally and you shouldn't have the error. I found this happens to me when uninstalling modified apks and trying to install the official app after.
Sent from my GT-N8013 using Tapatalk 2
Click to expand...
Click to collapse
I did have lucky patcher installed when i had this problem. When opening the program it did remove some odex files but the problem was still there. Is there an option to force it to check for odex files?
You could check your data/apps folder and check if there's an apk for the file there. If it is delete and try to reinstall
Sent from my Galaxy Nexus using Tapatalk 2
Well it's happening again.
How do I get into recovery mode to delete dalvik cache? Is that where you hold down power and the volume button, cause I don't see anywhere to delete the cache when im in there. It's just a screen thqts says downloading.
I cleard the dalvik cache In link2sd but it says it's empty. Also cleared app cache with link2sd.
I did notice that the system file space is at 17% (243mb left) which is still large enough to install the apps I'm trying. I have 25gb free out of 32gb.
This problem is not limited to one app. It also happens with apps that never been installed on this tablet.
Thanks for the help.
Did you try what I mentioned
Sent from my Galaxy Nexus using Tapatalk 2
Power+Volume Up until you see the GTN8000 or whatever model you have screen then leave power button while keep pressing the volume up button until you get into recovery
Dude i suggested going into recovery and wiping cache and dalvik cache a while ago but got no response. You didnt ask how if you didnt know and you obviously didn't search for it. Not trying to be rude here but it just is a little irritating when you try to help and you get ignored. Volume up and power till you see the boot screen then let go. And youll see wipe cache, do it. Then scroll to advanced and then to wipe dalvik cache, do it. Then go back to the firdt sceen and select reboot.
Also gmfeny had a suggestion did you try that?
Sent from my GT-N8013 using XDA Premium HD app
RussellEstridge25 said:
Dude i suggested going into recovery and wiping cache and dalvik cache a while ago but got no response. You didnt ask how if you didnt know and you obviously didn't search for it. Not trying to be rude here but it just is a little irritating when you try to help and you get ignored. Volume up and power till you see the boot screen then let go. And youll see wipe cache, do it. Then scroll to advanced and then to wipe dalvik cache, do it. Then go back to the firdt sceen and select reboot.
Also gmfeny had a suggestion did you try that?
Sent from my GT-N8013 using XDA Premium HD app
Click to expand...
Click to collapse
The first time you mentioned it i had already did a factory reset and my GN was working for the moment. When the problem came back i said i tried it in link 2 sd and i did boot to what it thought was recovery mode (i did google it but i must have miss read. I was holding power and volume down to get into recovery screen) and didnt see anywhere to delete dalvik cache. I should have stated clearly that i needed help on getting to the right place.
I will try that next.
gmfeny, I have looked in data>apps and nothing about the apps im trying to install is there. Also this problem isnt limited to apps that i've previously installed. So I wouldnt expect anything to be in there on those apps. However there is a folder im not sure about. its not very big (256KB) and its names mcRegistry.
I'm not sure if its a big deal, and further since no one seemed to have commented on it. Is there a problem with my system file space as mentioned above? (17% left, 250MB)
thanks
I have the GTN80013 (32gb no GSM/cdma)
Im in recovery mode now and i selected wipe cache partition. I dont see anywhere that says advanced. The only options i have are; reboot, apply update from external storage, wipe data/factory reset, wipe cache, apply update from cache.
still cannot install some apks. I tried to install appinstaller (which i've never installed/tried to install from the play store) and it failed. Also my game emulators failed to install with ES file explorer.
I was able to clear the dalvik cache by gong to data/dalvik-cache And deleting everything. after restarting it waa rebuilt. still can't install apps.
Maybe it's not the same as doing it in recovery, but that's not an option in my recovery mode from what I can see.
Thank for the help
I finally solved my problem.
I had installed Link2SD and a setting in that app was causing the problem.
The Fix:
Open up the menu (context menu) > settings
Click on install location and change it from External to Automatic.
I can install app now.
The only strange part is when i first had this problem, i didnt have this app installed. As suggested above, it was probably the Dalvik cache.
For anyone who has problems finding the 'clear dalvik cache' in recovery mode; You can use lucky patcher to delete it. Its in the menu>trouble shooting> delete dalvik cache and reboot.
Or you can do it manually by going to data>dalvik-cache and deleting everything in there.
Thanks for the help!

System ui stops after fixing permissions

After fixing permission and rebooting I get the Unfortunately system ui has stopped working error. I have tried fixing the permissions in ROM manager and in cwm recovery, same thing happens.
I have tried wiping cache and dalvik after both methods and still the same thing.
I have tried restoring data to system ui with titanium backup after fixing permission and before rebooting and still get the error on reboot.
When I run fix permissions it fixes a lot of them, and I have deleted a lot of unnessary apks from my system apps, but my system has been running great without them, haven't had any issues before fixing permissions.
I have up to date nandroid and titanium backups so I am not in a panic, I am able to restore everything back again, but I just want to know WHY I can't fix permissions.
Any ideas? I am stumped.
Thanks in advance!
Sent from my GT-p5110 using Tapatalk HD

Dalvik cache - is this something to be cleared out regularly?

I was just wondering if it would be wise to clear this out every so often?
I was just removing a couple of apps that i tried but didnt like, and it got me thinking about how many other things ive tried but didnt like since ive had the phone. Does uninstalling remove all of the apps data/cache/apk,etc? Or should i somehow manually do this thru CWM??
Pawprints1986 said:
I was just wondering if it would be wise to clear this out every so often?
I was just removing a couple of apps that i tried but didnt like, and it got me thinking about how many other things ive tried but didnt like since ive had the phone. Does uninstalling remove all of the apps data/cache/apk,etc? Or should i somehow manually do this thru CWM??
Click to expand...
Click to collapse
Clearing dalvik cache isn't going to give you any problems and it won't erase any data you need. The easiest way to do this is to get a file explorer (like es file explorer) and go to /data/dalvik-cache, select all files and delete. Reboot your device immediately though because your phone will be unstable. When your booting you'll get a 'android is upgrading' notification then after that you'll be good to go. This is probably the best way to remove leftover app data that you don't want without digging through hundreds of folders.
P.S. launching apps might be a little slower after this but only for a little bit?.
Sent from my HTC One_M8 using XDA Free mobile app
I only wiped it before flashing new ROM so ehh hehhee

deleting system apps in recovery keeps them in running os

I want to switch from supersu to superuser, and having an interesting problem that supersu somehow covered up. I have a Nexus 5x running the stock rom. With every months upgrade I would flash using fastboot, go into twrp recovery before first full boot and remove a bunch of unneeded applications in /system/app. When I would boot up those applications would be gone. Somehow this isn't the case with superuser. I can still go into recovery and remove them, but when I boot up all the applications are still in /system/app. If I go back into twrp they are still shown as being missing. I've tried installing es file explorer, but it's unable to delete the applications once the system is up. remounting /system doesn't work either. Any help?
Unrooting supersu caused all the applications to come back; so does supersu not really delete them either, but somehow prevents them from showing up following the recovery scheme or something?
bsd1101 said:
I want to switch from supersu to superuser, and having an interesting problem that supersu somehow covered up. I have a Nexus 5x running the stock rom. With every months upgrade I would flash using fastboot, go into twrp recovery before first full boot and remove a bunch of unneeded applications in /system/app. When I would boot up those applications would be gone. Somehow this isn't the case with superuser. I can still go into recovery and remove them, but when I boot up all the applications are still in /system/app. If I go back into twrp they are still shown as being missing. I've tried installing es file explorer, but it's unable to delete the applications once the system is up. remounting /system doesn't work either. Any help?
Unrooting supersu caused all the applications to come back; so does supersu not really delete them either, but somehow prevents them from showing up following the recovery scheme or something?
Click to expand...
Click to collapse
You aren't doing something right or you don't have something setup correctly. With root, you should be able to unintelligible them completely.
When you removed them, did you wipe cache and dalvik/ART cache before rebooting? If not then the system probably still thinks they are there because they still have data loaded into cache.
I recommend sticking with SuperSU, superuser doesn't work as well as SuperSU
Sent from my SM-S903VL using Tapatalk
I've been googling a bit more. As it turns out there are two system partitions for nougat; in nexus 5x and some other devices apparently. This became more apparent when the file recovery-from-boot.p; which I rename in order to prevent recovery from being overwritten is not renamed when booting the OS. Nougat apparently pulls the system files from somewhere else. So whatever Chainfire did makes it boot the same partition as visible in recovery. Fully unrooting brings all those apps/system partition back. Haven't been able to find a good post that tells me how to to circumvent this without SuperSU; or exactly how this works.

Categories

Resources