Can't delete (some) photos, even not as root (Lollipop, XT1052)
Hi all,
I have a Motorola Moto X XT1052. Android 5.1, rooted, TWRP Custom Recovery, official OTA rom.
After the upgrade to 5.1, I recognized that I can't delete some photos. Strange thing is, this does not apply to all photos, some are deleteable, some are not. I use quickpic as gallery-app. If I select the photo and click delete, nothing happens. If I do so in the motorola gallery app, the photo seems to be deleted, but reappears after a reboot. I use the google camera app as well as the motorola camera app.
I opened a adb shell, navigated to /storage/emulated/legacy/DCIM/Camera and found a photo I can't delete. I became root and tried to delete the file via command line:
rm IMG_20150817_105806489_HDR.jpg, but the shell says "No such file or directory". If I then do
ll IMG_20150817_105806489_HDR.jpg, it lists the, file, so it's still there.
I then did
rm -f IMG_20150817_105806489_HDR.jpg and since I didn't get an error message, I thought it was fine, but
ll IMG_20150817_105806489_HDR.jpg still lists the file, so it's still there.
Anyone here has an idea?
Related
Those of you that want to get rid of the Touchwiz calendar for the AOSP variety can download these two files.
Just download to your computer and put in the root of your main directory.
connect your device via usb
adb push c:\Calendar.apk /sdcard
adb push c:\CalendarProvider.apk /sdcard
adb shell
su
mount -t rfs -o remount,rw /dev/block/stl9 /system
busybox cp /sdcard/Calendar.apk /system/app
busybox cp /sdcard/CalendarProvider.apk /system/app
cd /system/app
rm TouchWizCalendarProvider.apk
rm TouchWizCalendar.apk
exit
adb reboot
On reboot they will be there. I did this without any issues. Enjoy.
Display isn't quite right but its still much better than the touch wiz one.
Hmm. I don't know if I did something wrong but My calendar is completely gone, AOSP, Touchwiz, or otherwize. Would you mind pulling the stock APK& ODEX files and sharing them here for me?
TIA
Am I doing something wrong here. I reflashed my phone back to factory and did this again, step by step copying/pasting what you put and I have no calendar. Hmmm.
Did you reboot?
You have to reboot or the change never loads.
You also may need a deodexed rom something I haven't released yet but will be soon. That would be the only other difference. Maybe ill release it tonight depending on how things go.
All the odex and deodexed apks can be downloaded here
http://forum.xda-developers.com/showthread.php?t=773142
Yes I rebooted every time after I copied it over. I tried it again just copying the files over into the system/app folder without deleting hte TouchWiz calendar and it still would not show up.
Must be the deodexed framework then. I should have the rom finished tonight depending on how things go.
Yeah same problem here with the calendar not showing up. Root Explorer shows Calendar.apk and CalendarProvider.apk are both in /system/app like they should be, but they don't appear in the list of apps and when I try to install them they don't install either.
Now downloading the Megaupload file of the original apps so I can get a calendar of some kind. The only thing I really hate about the Samsung calendar is that it defaults to a locally stored "My Calendar" that doesn't sync with anything and is completely useless. And you can't delete My Calendar or even make it not the default, you can only hide it. Stupid stupid stupid, but at least you can work around it.
EDIT: Wait, could this work if I had the Calendar.odex and CalendarProvider.odex files? I'm not running a custom rom so I think I need the odex files. Not sure though, the whole thing is a bit confusing to me.
I installed your deodex'd ROM and still doesnt work (http://forum.xda-developers.com/showthread.php?t=783031)
Same issue as before. I boot up, ADB in, SU, remount, copy the Calendar APK's, delete the TouchWiz Calendar APKs, reboot, and no calendar at all in the phone.
Is you recently released ROm compatible with these AOSP APK's?
OK I got it to work. Woot. I used the directions and files here:
http://forum.xda-developers.com/showthread.php?t=735035
And it works perfect. I am so happy to have the factory Calendar back and be able to share calendar events via Gmail again. Woot!!!!!!!!
What I cannot help but wonder though, will this work on a non-deodexed rom. ie, Factory ROM with root installed. I defeintely have to isntall this on my wifes phone but I just do not know if I need to flash the deodexed ROM on her phone.
Woot.
This tutorial is missing this....
Go into manage applications. Filter to all. Uninstall com.android.calendar.apk and com.android.provider.calendar.apk. Reboot again
After TRYING all kinds of suggestions, none of which work, I found one that says:
- copy all google talk service and google talk app to system/app folder
- Grant all possible privilages to them
- Restart the phone.
In what folder is google talk service and google talk app located?
How do you grant them "all privledges'?
Seems to me the last time I attempted to CUT AND PASTE a file to the system/app folder, it wouldn't let me.
This message has come up EVEN AFTER I have installed numerous ROMs.
I appreciate any help!
Did you flash stock in between flashes?. To move a file rlto system/app use adb or super manager
If I have helped press thanks.
Clean install of ROMs
Every time I flash, I go back to stock and do a Master Clear, so my flashes are clean. I use Titanium BU Pro to reinstall apps, BUT do NOT restore system data, just app data.
I'm thinking that the problem MIGHT be related to the syncing of my calendar with the google calendar I have online. Triied doing the data clear, etc....
Like I said, I've tried everything except what I posted in my first post. Problem is, I don't know where the files are located so that I can transfer them to the system folder. This seems like the only other "solution" I haven't tried at this point.
Hate to do it, but I'm thinking about going back to stock 2.2 and see if that makes a difference.
This is so annoying,
I have tried everything I could find online,
I removed the SD card to eliminate that as an option related to a corrupt image/ card.
I cleared Gallery the data under manage applications.
With ES file explorer
I deleted the com.cooliris.media folder multiple times
I renamed all dirs to hide them from the Gallery indexing.
Example renamed “DCIM” to ”.DCIM”
I opened and examined the file chunk_0 in
/com.cooliris.media/cache/local-album-cache
I was hoping i could see how far or were it crashed by the last dir it indexed.
After hiding all the dirs. I got it to this.
Data in “chunk_0(this file will grow as dirs are scanned and files are found)” opened in a hex editor.
..US..en............./...........4.......4...........b..intro..video/mp4.......................4.........O.{.....O.u...w..............:.............../
Not sure if this is a hit on what is crashing the gallery?
I'm guessing a factory reset didn't work either?
Have not done that, dont want to reconfigure the phone from scratch.
I always like to know the root of the real issue. seems kind of common.
I never use Gallery. Ever. So I wouldn't have an exact idea why it was going crazy.
Are you rooted and do you have Titanium Backup Free/Pro?
If so, back up the gallery app. Then delete it from the /system.
Restart your phone and restore the Gallery app and make it a system app again.
its rooted and i have Titanium Backup Pro.
i did not know you can delete the gallary.
I did download another gallery like app for now.
but i may give that a try.
Yeah. Wipe the data first then uninstall it.
i made the back up of the gallery, uninstalled it, when i try to recover/install it from the back up the phone stays in an install loop.
I have to reboot the phone.
now i deleted it how do i reinstall it?
I have gallery apk from the backup and the original is still under /system/app/com.cooliris.media.apk
when run the apk i get an error, application not installed.
I tried to use adb with no luck.
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb instal
l gal.apk
993 KB/s (458660 bytes in 0.451s)
pkg: /data/local/tmp/gal.apk
Failure [INSTALL_FAILED_DEXOPT]
any pointers?
Follow the exact steps.
Open Titanium Backup
Wipe Gallery data (From Titanium Backup)
Uninstall Gallery (From Titanium Backup)
Restart phone
Restore App of Gallery (From Titanium Backup)
Restart phone
Try using gallery
I don’t think titanium is an option now.
as it never finishes installing. i let it go all night.
The Gallery has been deleted and i only have the option to restore. My only options are to restore App only or App+Data. both don’t finish.
so i have been reading you can force/push installs. i must be doing something wrong as it seems a restriction is preventing the other install methods,
at this point the only reason i care is i cant view images in 3d.
acem77 said:
I don’t think titanium is an option now.
as it never finishes installing. i let it go all night.
The Gallery has been deleted and i only have the option to restore. My only options are to restore App only or App+Data. both don’t finish.
so i have been reading you can force/push installs. i must be doing something wrong as it seems a restriction is preventing the other install methods,
at this point the only reason i care is i cant view images in 3d.
Click to expand...
Click to collapse
Using adb
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit
adb push Gallery.apk /system/app
Reboot the phone.
Sent from my Samsung Galaxy S II
thanks but the phone does not seem to install it after the reboot.
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb shell
$
$ su
su
# mount -o remount,rw /dev/block/stl9 /system
mount -o remount,rw /dev/block/stl9 /system
# exit
exit
$ exit
exit
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb push g
al.apk /system/app
1321 KB/s (458660 bytes in 0.339s)
maybe it not 100% uninstalled? could have been an issue with how Titanium removed it.
if the os thinks its still there it wont install over it.
crap i created file called "\" now they systems treats it like a dir. i cant delete it
this is how i created it...fat fingered
F:\~droid\root backup restore files\SuperOneClickv2.1.1-ShortFuse\ADB>adb push c
om.cooliris.media.apk /system/app/\
ES file Explorer shows it as a 447.91kb file the same size as the com.cooliris.media.apk file...
if select delete in ES i starts to tally the root dir as if it will delete everything under "system"
I guess it can stay ....
I am still trying to get com.cooliris.media.apk to reinstall. will i see any installing action once i reboot the phone after pushing it?
I dont see any sign of it installing other than it appearing in the apps dir.
how does push really work should the Os install any apk in the app dir if missing?
No you won't. Do you have root explorer?
no,
does ES file Exploer work the same way?
I've never used it. Does ES File Explorer have root permissions?
this is just getting a annoying if the app is under /system/app
more or less thats it right? what would stop it from being seen by the phone...
been messing with the thing for hours.
then its crap i cant restore the gallery backup i made with out titanium get stuck...
The Dark Lestat said:
I've never used it. Does ES File Explorer have root permissions?
Click to expand...
Click to collapse
yes i can hit any dir like system, and it can change all attributes.
I have been using it now to move files from my pc over the wifi and network shares.
I can have app.apk on my pc see it on the network with ES, and copy it to /system/app
i put a another version of gallery from another phone i found online in /system/app
after a reboot it showed up. not sure it thats a real sign as i can manual run and install it if i wish.
also this does no good in the long run as you cant view photos in 3d, as they are displayed side by side in this version of gallery.
maybe i need a fresh copy if the lg thrill gallery?
ok i found a ver of gallery from a custom cooked rom posting.
it shows up now,
http://forum.xda-developers.com/showthread.php?t=1309114&highlight=gallery
but it still crashes like the original one did at the start of all this lol....
atleast i can view my pictures in 3d again.
i dont know what is causing the crash, but what causes it is at the end of scanning all the images. the more picutes i have the longer it takes to crash.
if i have zero images it crash instantly.
I guess my backup of the original gallery is corrupt?
That's what it seems. Do a titanium backup of all your used apps and reflash or factory reset?
Sent from my Samsung Galaxy S II
Guys, I have a MOFO "rooted" device, trying to delete photos. Using the Gallery or Photo app the pictures are being deleted (at least that's what the app is saying). In Photos I go to Trash, empty it, and all pics are gone. I have Moto X connected to PC via USB - the DCIM/Camera folder is empty. However Storage tells me that I'm still using 2.5G for photos. Once I reboot all the pictures are there again, like I never even deleted them. When I try to delete them using a file manager I get an error message that it can't be deleted (which makes sense because of permissions).
So how do I delete photos w/o flashing the image again? I tried wiping cache but of course that didn't help either.
Okay so I don’t know whether problem is actually with the permissions so I’ll just post the details below.
My phone is rooted and I have TWRP.
I had a lot of apps on my phone and it was getting slow. So I decided to factory reset it. I went to the settings and factory reset the phone. While rebooting, the TWRP screen flashed and the phone reboot. But some of the folders in the internal storage were deleted. The Camera and WhatsApp images folders were still there. The Downloads and Bluetooth folders were deleted. I use Quick Pic gallery app. I could see the Camera and WhatsApp images via Quick Pic. But when I navigated to that particular folder using a file manager, the folders were empty. Even when I connected the phone to my PC using a data cable, the camera folder was empty. I know the files are there because I could see the size of the internal storage. When I open Quick Pic, I get a message “not an error (code 0): could not open database in read/write mode“. I can’t copy any files to the internal storage also. When I tried to copy a song to the ringtones folder in internal storage, the copy failed with the message, “Open Failed: EACCESS (Permission denied)”.
So I did some research and thought that the problem was with the internal storage permission. So I went to TWRP and clicked on “Fix Permissions”. The phone got stuck at the moto boot animation. So I downloaded the stock ROM and flashed it. The phone boots now but the old problem is still there. Apps keeps force closing. Whenever I take a pic, I get a message saying the gallery app has stopped. Instagram and Smart Voice Recorder keeps force closing as soon as I open them.
I don’t know what to do. Please help me. If there’s any other info that I need to provide, please let me know.
Thanks a lot!