[Q] How do I Reinstall\Flash the ContactsStorage app? - ONE Q&A, Help & Troubleshooting

I have a OnePlus One CM11 rooted.
I read a post here:
http://forum.xda-developers.com/showthread.php?t=2064859&highlight=deleted
And therefore I "played" a little bit with my phone with those things:
1) \System\priv-app\ContactsProvider.apk
2)ContactsStorage from Setting ->Apps->All->ContactsStorage
Somehow I ended up with the situation that:
1)ContacsStorage does not appear at the apps list.
2)The directory \data\data\com.android.provider.contacts have disappeared.
I want to reinstall\flash the ContactsStorage app.
I know that reinstalling the rom will fix it, but I'm trying to avoid it.
Do you know of any other way I can do it?

Extract it from your ROM zip. Copy back to it's original location with a file manager (Root Explorer), set permissions and reboot.

davebugyi said:
Extract it from your ROM zip. Copy back to it's original location with a file manager (Root Explorer), set permissions and reboot.
Click to expand...
Click to collapse
I don't have my rom zip (This is the rom that came installed).
But returning the original backup apk and rebooting did not do the job

barak91 said:
I don't have my rom zip (This is the rom that came installed).
But returning the original backup apk and rebooting did not do the job
Click to expand...
Click to collapse
Then you are doing spmething wrong. What do you use to move? Is system set to R/W? permissions set? Same folder?

davebugyi said:
Then you are doing spmething wrong. What do you use to move? Is system set to R/W? permissions set? Same folder?
Click to expand...
Click to collapse
Attached screenshots.

barak91 said:
Attached screenshots.
Click to expand...
Click to collapse
The problem that the apk is vanishing after reboot is not a permission issue. Try a better file manager (in my case Root Explorer never fails). Mount system as R/W and do the rest.

davebugyi said:
The problem that the apk is vanishing after reboot is not a permission issue. Try a better file manager (in my case Root Explorer never fails). Mount system as R/W and do the rest.
Click to expand...
Click to collapse
The apk is NOT vanishing, it stays there.
The app of ContactsStorage is vanished from the apps list permanently.
As well as the folder in \data\data of com.android.providers.Contacts.
The option to sync google contacts is gone as well.

barak91 said:
The apk is NOT vanishing, it stays there.
The app of ContactsStorage is vanished from the apps list permanently.
As well as the folder in \data\data of com.android.providers.Contacts.
The option to sync google contacts is gone as well.
Click to expand...
Click to collapse
Did you make sure to also put the odex file in the folder as well?

Heisenberg said:
Did you make sure to also put the odex file in the folder as well?
Click to expand...
Click to collapse
I don't know what the odex file is.
I did not back the odex file so I do not know if it's the original, but there is a ContactsProvider.odex in there.

Related

Removing apps from /system/app (Prime)

In older versions of prime, I used to be able to use root explorer to remove applications from /system/app, and they would disappear from the tray. Lately, when I try to delete them using root explorer, they disappear when I hit delete, but they are still in the menu, and still fully functional.
I really despise having facebook on here (they just added it to the rom), and the other bloat that came with it, but not can't seem to remove it. Anyone know how?
compywiz said:
In older versions of prime, I used to be able to use root explorer to remove applications from /system/app, and they would disappear from the tray. Lately, when I try to delete them using root explorer, they disappear when I hit delete, but they are still in the menu, and still fully functional.
I really despise having facebook on here (they just added it to the rom), and the other bloat that came with it, but not can't seem to remove it. Anyone know how?
Click to expand...
Click to collapse
Have you tried using Titanium Backup to uninstall the app after you have removed it from the system/app folder?
Mark.
mskip said:
Have you tried using Titanium Backup to uninstall the app after you have removed it from the system/app folder?
Mark.
Click to expand...
Click to collapse
It appeared to work using Titanium. Does this mean it may be a root explorer bug? I guess I'll try downgrading to an older version of RE. I am not a big fan of titanium.
Tried a known working version of root explorer with no luck. I guess something changed in the rom or superuser which is preventing it from working properly.
compywiz said:
Tried a known working version of root explorer with no luck. I guess something changed in the rom or superuser which is preventing it from working properly.
Click to expand...
Click to collapse
If you remove the app from /system/app also delete the associated dalvik executable file from /data/dalvik-cache. This should kill the app.
Roach2010 said:
If you remove the app from /system/app also delete the associated dalvik executable file from /data/dalvik-cache. This should kill the app.
Click to expand...
Click to collapse
I tried deleting the executable file as well, but still no luck.
Turns out it seems to be more than just the apps, I tried removing the bootanimation from /system/media with no luck. It's like I don't have r/w access.
compywiz said:
I tried deleting the executable file as well, but still no luck.
Turns out it seems to be more than just the apps, I tried removing the bootanimation from /system/media with no luck. It's like I don't have r/w access.
Click to expand...
Click to collapse
This is probably a stupid question but did you make sure the folder was Mounted to R/W (and checking it sayds R/W at the top) via the button at the top of Root Explorer before attempting to delete the file?
Mark.
mskip said:
This is probably a stupid question but did you make sure the folder was Mounted to R/W (and checking it sayds R/W at the top) via the button at the top of Root Explorer before attempting to delete the file?
Mark.
Click to expand...
Click to collapse
It's ok, thanks for trying to help. Root explorer pops up a message if you try to delete something in R/O mode saying "... cannot be deleted because the file system is read-only."
It also seems to be working now, no idea why. Maybe a reboot did the trick. The files I remove from /system/app are now disappearing from the menu.
Still unsure on the boot animation though, is that still stored in /system/media/bootanimation.zip?
compywiz said:
It's ok, thanks for trying to help. Root explorer pops up a message if you try to delete something in R/O mode saying "... cannot be deleted because the file system is read-only."
It also seems to be working now, no idea why. Maybe a reboot did the trick. The files I remove from /system/app are now disappearing from the menu.
Still unsure on the boot animation though, is that still stored in /system/media/bootanimation.zip?
Click to expand...
Click to collapse
Yes bootanimation is still stored in /system/media/
compywiz said:
It's ok, thanks for trying to help. Root explorer pops up a message if you try to delete something in R/O mode saying "... cannot be deleted because the file system is read-only."
It also seems to be working now, no idea why. Maybe a reboot did the trick. The files I remove from /system/app are now disappearing from the menu.
Still unsure on the boot animation though, is that still stored in /system/media/bootanimation.zip?
Click to expand...
Click to collapse
Yes but if you're on Prime 2.0.3, there's one in data/local
Anything bootanimation in data/local will over ride the one in system/media.
compywiz said:
It's ok, thanks for trying to help. Root explorer pops up a message if you try to delete something in R/O mode saying "... cannot be deleted because the file system is read-only."
It also seems to be working now, no idea why. Maybe a reboot did the trick. The files I remove from /system/app are now disappearing from the menu.
Still unsure on the boot animation though, is that still stored in /system/media/bootanimation.zip?
Click to expand...
Click to collapse
Yes it is.
If you copy your new bootanimation.zip file to /data/local then it will look for it there first (before looking in system/media) and load up the new file. Tested it and it works fine using Root Explorer to copy the file across but just make sure the file is made specifically for the Transformer.
Mark.
Thanks guys!

[REQ] CleanROM 5.1 HTCclockwidget and Clock app

I deleted these two apps to install Nexus 4 clock app, but it did not work. I would appreciate it if someone can share them with me. Thanks
tonie972 said:
I deleted these two apps to install Nexus 4 clock app, but it did not work. I would appreciate it if someone can share them with me. Thanks
Click to expand...
Click to collapse
just take it out of the clean rom zip file you downloaded and extract it from there
Thanks! I forgot about that. So I got the apps but failed to install.
tonie972 said:
Thanks! I forgot about that. So I got the apps but failed to install.
Click to expand...
Click to collapse
What exactly are you trying to do?
I uninstalled htcclockwidget and world clock to install nexus 4 clock, but it didn't work. Now I'm trying to reinstall those apps, but it doesn't work. I used root explorer to move the apks in the system/app folder to install.
tonie972 said:
Thanks! I forgot about that. So I got the apps but failed to install.
Click to expand...
Click to collapse
are you installing the apks? thaat probably wont work, what you would do is take the apks and move it into system/apps using a file explorer that has root access like rootexplorer paste it back into the system/app directory with all the other system apps and set the correct permissons and reboot and you should be okay
paul_viado said:
are you installing the apks? thaat probably wont work, what you would do is take the apks and move it into system/apps using a file explorer that has root access like rootexplorer paste it back into the system/app directory with all the other system apps and set the correct permissons and reboot and you should be okay
Click to expand...
Click to collapse
That's exactly what i did but its not working.
Edit: rebooting didn't work but turning it off did.

Spice Stellar MI 500

Hi, I have a spice stellar mi 500. i tried rooting the phone which worked fine and then I tried removing some of the system apps like Rail yatra,, facebook, dhingana. i was able to remove them and then i finally booted my device. Since then I am getting the error "unfortunately system UI has stopped working" I am not able to open apps or receive calls. the system hangs. not even able to unroot the phone now as any apps will hang. even the control bar does not slide from the top. I am screwed. I have tried factory reset several times. in all different ways like from with system recovery or android settings. but i guess i am out of luck. can someone help me. :crying::crying::crying::crying::crying::crying::crying::crying:
depanakar said:
Hi, I have a spice stellar mi 500. i tried rooting the phone which worked fine and then I tried removing some of the system apps like Rail yatra,, facebook, dhingana. i was able to remove them and then i finally booted my device. Since then I am getting the error "unfortunately system UI has stopped working" I am not able to open apps or receive calls. the system hangs. not even able to unroot the phone now as any apps will hang. even the control bar does not slide from the top. I am screwed. I have tried factory reset several times. in all different ways like from with system recovery or android settings. but i guess i am out of luck. can someone help me. :crying::crying::crying::crying::crying::crying::crying::crying:
Click to expand...
Click to collapse
You have most probably messed the systemUI.apk which is located in /system/app or files associated with it. Did you remove any other apk's in which you weren't sure what it does?
In this case, Factory reset won't work because it just wipes user data and /system partition remains in tact. The nearest possible thing to do is to flash a stock ROM if exists or copy the deleted apk's borrowing from some one else's phone and place those apk's in /system/app partition setting the correct permission.
I remember exactly what I deleted. I I uninstalled Dhingana.com, Facebook and Rail yatra. I cannot start third party apps though I can install them. So I am not sure how to place the systemUI.apk in the directory /system/app. Can it be done through inbuilt file manager?
depankar said:
I remember exactly what I deleted. I I uninstalled Dhingana.com, Facebook and Rail yatra. I cannot start third party apps though I can install them. So I am not sure how to place the systemUI.apk in the directory /system/app. Can it be done through inbuilt file manager?
Click to expand...
Click to collapse
Nope, I guess not possible through default file manager. You have to use ES File Explorer File Manager or Root Explorer to place it in /system/app and change its permissions to rw-r-r.
coolsandie said:
Nope, I guess not possible through default file manager. You have to use ES File Explorer File Manager or Root Explorer to place it in /system/app and change its permissions to rw-r-r.
Click to expand...
Click to collapse
it get an error when i try yo copy the file to \system\app\. the error is copy failed. i am doing this with supersu previelege using esexplorer
coolsandie said:
Nope, I guess not possible through default file manager. You have to use ES File Explorer File Manager or Root Explorer to place it in /system/app and change its permissions to rw-r-r.
Click to expand...
Click to collapse
I tried replacing systemUI.apk to \system\app folder using esexplorer but i got error. error: copy failed.
is there a possibility I can get hold of a stock rom and flash it using update from SD card. the default android update manager?
depankar said:
I tried replacing systemUI.apk to \system\app folder using esexplorer but i got error. error: copy failed.
is there a possibility I can get hold of a stock rom and flash it using update from SD card. the default android update manager?
Click to expand...
Click to collapse
Make sure you've mounted the /system partition as R/W before attempting to Copy or setting permissions.
coolsandie said:
Make sure you've mounted the /system partition as R/W before attempting to Copy or setting permissions.
Click to expand...
Click to collapse
now how do i do that ? sorry for my questions.

Default gallery app

I just realized that the default gallery app is not installed on my phone. I can't remember if I somehow uninstalled it or if it was removed after updating my phone. My Galaxy core is on stock 4.1.2 and I've rooted it. How or where can I get the default 4.1.2 gallery app;?
Sent from my Galaxy Core
Anyone?
Sent from my Galaxy Core
bikey77 said:
Anyone?
Sent from my Galaxy Core
Click to expand...
Click to collapse
Is your rom deodexed?
It's the stock rom, I've simply rooted it.
Sent from my Galaxy Core
bikey77 said:
It's the stock rom, I've simply rooted it.
Sent from my Galaxy Core
Click to expand...
Click to collapse
Here U go
MirXas said:
Here U go
Click to expand...
Click to collapse
Wow, thanks! I'll let you know how it went.
bikey77 said:
Wow, thanks! I'll let you know how it went.
Click to expand...
Click to collapse
Copy both files to /system/app and set correct permissions to SecGallery2apk (see attachment), then restart phone.
MirXas said:
Copy both files to /system/app and set correct permissions to SecGallery2apk (see attachment), then restart phone.
Click to expand...
Click to collapse
In system/app the .odex file was already there. However, i tried copying both files to the /app dir and they fail to copy. I also tried to simply install the app and it also fails. I'm puzzled.
bikey77 said:
In system/app the .odex file was already there. However, i tried copying both files to the /app dir and they fail to copy. I also tried to simply install the app and it also fails. I'm puzzled.
Click to expand...
Click to collapse
You need root explorer (assuming the device is rooted). Do not install it, but copy it to /system/app, set permissions, restart phone. Everything until restarting is done in root explorer.
Strange thing happens. I've downloaded the files to my extsdcard, I copy them to system/app and I then browse the files to make sure they're there and only the odex file is present. I'm using Root File Manager.
Sent from my Galaxy Core
bikey77 said:
Strange thing happens. I've downloaded the files to my extsdcard, I copy them to system/app and I then browse the files to make sure they're there and only the odex file is present. I'm using Root File Manager.
Sent from my Galaxy Core
Click to expand...
Click to collapse
I think the odex file was already there, just the apk was deleted.
Actually, I don't know what's wrong. Try a different root explorer/root file manager to MOVE these two files to the system/app directory. Also before that, you have to mount the system partition as R/W, not R/O. U can do that in adb (command "adb remount") or with this app https://play.google.com/store/apps/details?id=com.speedsoftware.rootexplorer&hl=lt (I'm sure there are other ways to do that, but I prefer these two).
I'll give it a try
Sent from my Galaxy Core

Why does Adaway not work with su folder in bin folder?

So I setup my phone and had Adaway working fine. Then, in order to get Secure Settings to work with a systemless root, I had to add a folder called su in my system/bin directory. When I do that, Adaway immediately stops working and says it does not detect root, basically. See attached screenshot. Why does this happen by adding that empty folder? Has anyone found a way to get Adaway and Secure Settings to coexist on their Pixel?
You don't want to add a folder called su but rather a blank file called su. Ran into this same problem before and this fixed it.
tacofart said:
You don't want to add a folder called su but rather a blank file called su. Ran into this same problem before and this fixed it.
Click to expand...
Click to collapse
I just tried this and now neither work. How did you make the blank file and did you put it in the root of the system/bin folder?
PsiPhiDan said:
I just tried this and now neither work. How did you make the blank file and did you put it in the root of the system/bin folder?
Click to expand...
Click to collapse
I did it with Solid Explorer but you should be able to do it with any root file explorer. navigate to /bin. Delete the su folder. then press new and create a new file named su. Restart. After I did that, I haven't had any issues with SS, adawy or any other root apps working
tacofart said:
I did it with Solid Explorer but you should be able to do it with any root file explorer. navigate to /bin. Delete the su folder. then press new and create a new file named su. Restart. After I did that, I haven't had any issues with SS, adawy or any other root apps working
Click to expand...
Click to collapse
Thank you so much! The reboot was all I was forgetting. It all works now! ?
PsiPhiDan said:
Thank you so much! The reboot was all I was forgetting. It all works now! ?
Click to expand...
Click to collapse
Awesome, glad it worked out!

Categories

Resources