[Q] Can't access my old files after switching ROM from AOKP to CM - Samsung Galaxy Nexus

Initially I thought this was a problem with Google Play / Apollo, but I realize now that when I plug in my phone via USB, I can't see any of the many, many folders and files present on /sdcard that I could see previously.
If I copy a "new" mp3 onto my Galaxy Nexus, it's recognized just fine by both Google Play and Apollo. However, none of my old mp3s (or files, for that matter) are recognized. They were placed in /sdcard/Music, a folder that I cannot see when I plug in my phone, only from the file manager running on the phone. The issue persists if I move an "old" mp3 from my music folder out into the sdcard root, it's still not recognized. This makes me think this might be permission related, but the file manager says that all files are readable and writable.
I've tried running "fix permissions" in both ROM manager and the CWM recovery, but it makes no difference. Any idea what has happened, and how to fix it so that I can use all my old files again?
edit If it's any help, I just ran ls -al in a terminal emulator and I can't see any difference at all between folders I can and cannot see. Example: I can see /sdcard/media just fine, because I created that folder from Explorer in Windows. Music in that directory works. I cannot see /sdcard/music. Here's the permissions:
Code:
drwxrwxr-x root sdcard_rw 2012-09-18 media
drwxrwxr-x root sdcard_rw 2012-09-16 music
This is a bit confusing.
When I try pulling and pushing a file with adb like so:
Code:
adb pull file.tar
adb push file.tar file2.tar
I get
Code:
failed to copy 'file.tar' to 'file2.tar': Read-only file system
I've tried remounting /sdcard in root terminals both on the phone and via adb, but I get mount: Operation not permitted. I'm thinking this might be because /sdcard isn't the actual path but I've tried /storage/sdcard0 and /mnt/sdcard as well and I get the same error.
Thanks in advance for any suggestions.
(This question was also posted on android.stackexchange)

adb push /sdcard/file2.tar
also, cm doesnt have root access enabled by default for adb.
/sdcard/ is already rw, otherwise apps couldnt place anything there. nor could we.
Sent from my i9250

Didn't realize I needed an absolute path, thanks! I now managed to push the file, but it does not show up under the "Galaxy Nexus" unit in My Computer. It does show up when I do an ls in adb shell though. Any ideas?

bajsmumsaren said:
Didn't realize I needed an absolute path, thanks! I now managed to push the file, but it does not show up under the "Galaxy Nexus" unit in My Computer. It does show up when I do an ls in adb shell though. Any ideas?
Click to expand...
Click to collapse
try disabling mtp on the device; or rebooting, if you want to stick with mtp. maybe it has to refresh file list?

bk201doesntexist said:
try disabling mtp on the device; or rebooting, if you want to stick with mtp. maybe it has to refresh file list?
Click to expand...
Click to collapse
Switching from MTP to PTP does nothing, the same files are shown ("new" files). I'd like to stress that if I take a picture for example, that pictures does show up both with MTP and PTP. New files work fine. It's the old files that I can see in the file explorer in the actual phone that just refuse to show up when I connect to my computer, and they are obviously also not recognized by apps in the phone (such as Apollo or Google Play).
I realize that I could work around this issue by just removing everything from my sd card and then putting it back, but I really want to figure out how this can even happen.

I'm no expert by far, but it sounds like when you changed ROM the"index"file for mtp isn't updates. Have you tried to run the media scanner?
Swype'ed on my CM10 Galaxy Nexus

Herman76 said:
I'm no expert by far, but it sounds like when you changed ROM the"index"file for mtp isn't updates. Have you tried to run the media scanner?
Click to expand...
Click to collapse
If I've understood correctly, power cycling the device should trigger the media scanner. I just tried restarting, and it made no difference. (I've restarted the device several times since this problem occurred).
Opening the Gallery app still only shows me two pictures (I've taken two photos since the ROM flash), interestingly the thumbs are for other pictures lying around and after a while Gallery crashes. I use QuickPic more often though and that app behaves well, and shows all photos.
edit As a final resort, I tried doing a full wipe and reinstalling CM10 M1 completely, without restoring any settings or apps from any old installations. The issue still persists! Any files created with my now "old" CM10 installation no longer appear, even when they are moved within a folder where other "new" files are shown and working. This is starting to annoy me, but since this obviously is a bug in CM10 M1 I see no point in trying to spend time solving it, I'm just going to switch back to AOKP. Thank you for any answers and attempts at solving this.
edit2 Formatting /sdcard in CWM recovery fixed this, even though it might not be the most elegant solution.

Have you seen this?http://forum.xda-developers.com/showthread.php?p=30288268
Basically what it suggests is that you go to apps via settings, find the "Media Storage" app (it's a system app) Clear data/cache, then reboot. This was my problem.
Sent from my Galaxy Nexus using xda premium

Related

[Q] Couldn't capture screenshot. Storage may be in use.

Verizon Galaxy Nexus.
I was running 4.0.4 IMM30B leak. The new leak/possible update came out, I decided to flash it. Saw that it was only good for updating from 4.0.2 (ICL53F), so I wiped, formatted, and reinstalled it. Re set up my phone (titanium backup, homescreens, android market updates for a few apps, the basics). Everything seemed fine, though I didn't try saving anything. Ran the update to the new 4.0.4, and everything seemed fine and dandy.
The next day, titanium backup runs (scheduled) and fails. Says not enough storage or something despite the fact that it also shows ~14GB free space...
Tried to take a screenshot of the issue, and I get a notification that it "Couldn't capture screenshot." "Couldn't save screenshot. Storage may be in use."
Curious, I tried to take a picture with the system camera app, and it doesn't seem to save pictures either. Though no error messages tell me such things.
Caching seems to work, updating apps seems to work, using 'most' apps seems to work, but saving data to the virtual SDcard has no such luck.
Assuming that it's a permissions issue, I went into CWM Recovery and did a 'fix permissions.' Though that has not fixed anything.
Various searches have shown me that others have experienced this problem, but I haven't seen anyone with a solution. Also, they seem to be experiencing it in various AOKP roms (specifically for the Transformer tablet).
Question: Anyone know what I can do to fix it?
Haha this happened to me and no1 could answer it happened when i went from aokp m4 to m5.. Was odd, but what i did to fix was relock and unlock the bootloader and then get all my stuff back with titanium.. At least that worked fine for me
Edit: well i relocked restarted system and boot android, then reboot into bootloader and unlocked again, then boot into android (fresh new system) and im writing this from my fixed phone 1 week ago.. No problems so far
Sent from my Galaxy Nexus using xda premium
msedek said:
Haha this happened to me and no1 could answer it happened when i went from aokp m4 to m5.. Was odd, but what i did to fix was relock and unlock the bootloader and then get all my stuff back with titanium.. At least that worked fine for me
Edit: well i relocked restarted system and boot android, then reboot into bootloader and unlocked again, then boot into android (fresh new system) and im writing this from my fixed phone 1 week ago.. No problems so far
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Glad to hear that there is a fix. I may end up doing this tonight... I'm hoping that a quicker, simpler fix is available (something like boot an insecure.img and change permissions of these folders via adb, or something).
Thanks for that though, as I now know that it should work.
Happening on GSM Galaxy Nexus as well. I tried a rom over milestone 5, then reinstalled milestone 5 and restored my backup, and then got this problem. Seems sdcard is not writable to at all. Gonna try out the bootloader locking stuff i guess.
I ended up using the Galaxy Nexus Toolkit (for time and automated simplicity) to wipe the device, reflash 4.0.2 (signed by Google), reroot, CWM reccovery, and restore the virtual sdcard backup saved with the toolkit.
Once the virtual sd was restored, I restored my apps (but no system apps) with titanium backup. Haven't had the time since to reupgrade to 4.0.4, but 4.0.2 seems to be working for me nicely.
I am able to screenshot, and nice things like that, but sometimes titanium backup is giving me errors about not being able to save due to insufficient space (still 14GB free). Gonna dive into that issue today.
4.0.2 works good.. What its bad about it its the lag, the ROM its laggy and also the battery life and the photo quality.. ICS now its much better than 4.0.2
Sent from my Galaxy Nexus using xda premium
No fix?
I'm also getting this problem and only since installing android 4.3 from CM 10.2
I have also noticed that when I connect by USB to my PC I can't see anything but the external sd card whereas in the past I've been able to see 3 devices - ext sd, int sd and system. This makes me think it's permissions but I'm not sure what to change and where.
I need a screenshot to send a picture of an mms issue I'm having and can't re-install/restore whatever as this deletes the mms with the problem so I need a fix that leaves the phone as it is except for this repair.
Any help appreciated.
Redscorpian said:
I'm also getting this problem and only since installing android 4.3 from CM 10.2
I have also noticed that when I connect by USB to my PC I can't see anything but the external sd card whereas in the past I've been able to see 3 devices - ext sd, int sd and system. This makes me think it's permissions but I'm not sure what to change and where.
I need a screenshot to send a picture of an mms issue I'm having and can't re-install/restore whatever as this deletes the mms with the problem so I need a fix that leaves the phone as it is except for this repair.
Any help appreciated.
Click to expand...
Click to collapse
Dat gravedig.
Just try reflashing your device from a stock image.
Beauenheim said:
Dat gravedig.
Just try reflashing your device from a stock image.
Click to expand...
Click to collapse
And do you think that'll be leaving it as it is?
I fixed this deleting the "pictures" folder with RootExplorer.
jwiegand said:
I fixed this deleting the "pictures" folder with RootExplorer.
Click to expand...
Click to collapse
Tried booting in t recovery fixing permissions, tried delete the screenshot folder and tried wiping the dalvik... Never thought of deleting the Pictures folder. Solved it for me to! (This problem just occurred without me flashing a new rom or anything. A ~9 month old AOKP and the error just came up after a reboot)
Thanks jwiegand!
bergmanman said:
Tried booting in t recovery fixing permissions, tried delete the screenshot folder and tried wiping the dalvik... Never thought of deleting the Pictures folder. Solved it for me to! (This problem just occurred without me flashing a new rom or anything. A ~9 month old AOKP and the error just came up after a reboot)
Thanks jwiegand!
Click to expand...
Click to collapse
I'm on a different phone, but I fixed this issue by clearing the defaults for the program that launched pictures. In my case, I use Gallery, so in Program Info under Settings, I reset defaults and everything worked fine. I guess this is the same thing as deleting the Pictures folder since I believe it is an issue of 'releasing' the memory that remains in use by your respective program. For all future requests as to which program should be used to launch a file (or picture in this case), I never select the option that binds future requests to one specific program. Hope that helps .
My fix: re enable the media scanner!
Like many others, I have disabled the DRM and media scanner services because of the bug that caused ridiculous cpu usage (particularly on boot). Re enabling the media scanner fixed this problem right up. If you want a free and easy utility to do this, check out: "Rescan Media ROOT"
https://play.google.com/store/apps/details?id=com.addz.mediascannerroot
Disclaimer: I am not associated with the author of that app.
On some devices (such as Infuse, as was in my case), the only solution was to manually create Pictures/Screenshots (full path: /sdcard/Pictures/Screenshots or /storage/sdcard0/Pictures/Screeshots). I created them with Root Explorer.
Had tried all other solutions, but they did not work. Seems that the power button Screenshop would neither create Pictures nor Pictures/Screenshots.
TulsaDavid said:
On some devices (such as Infuse, as was in my case), the only solution was to manually create Pictures/Screenshots (full path: /sdcard/Pictures/Screenshots or /storage/sdcard0/Pictures/Screeshots). I created them with Root Explorer.
Had tried all other solutions, but they did not work. Seems that the power button Screenshop would neither create Pictures nor Pictures/Screenshots.
Click to expand...
Click to collapse
I tried all the previous solutions without success, but manually creating the Pictures/Screenshots folder worked flawlessly on my LG 4X.
Thanks TulsaDavid!
TulsaDavid said:
On some devices (such as Infuse, as was in my case), the only solution was to manually create Pictures/Screenshots (full path: /sdcard/Pictures/Screenshots or /storage/sdcard0/Pictures/Screeshots). I created them with Root Explorer.
Had tried all other solutions, but they did not work. Seems that the power button Screenshop would neither create Pictures nor Pictures/Screenshots.
Click to expand...
Click to collapse
Thanks alot! Worked for me!!
Thanks, TulsaDavid!
Making screenshots folder solved it for me aswell.
Unable to take Screenshot, USB storage maybe in use
TulsaDavid said:
On some devices (such as Infuse, as was in my case), the only solution was to manually create Pictures/Screenshots (full path: /sdcard/Pictures/Screenshots or /storage/sdcard0/Pictures/Screeshots). I created them with Root Explorer.
Had tried all other solutions, but they did not work. Seems that the power button Screenshop would neither create Pictures nor Pictures/Screenshots.
Click to expand...
Click to collapse
I have tried using home+power button, turned on swipe and had difficulty in using the S PEN to make the screenshot - still doesnt work.
I also tried making a new folder but still doesnt work.
My unit is Samsung Note 8.0
/sdcard permissions broken
Just had this happen on my Nexus 5.
The cause was using adb push to copy files to /sdcard when I was booted into recovery. All the files and folders were owned by root:root. I had to reboot to recovery, adb shell, and then
Code:
chown -R media_rw:media_rw /data/media/0
It might be possible to do this while booted in android with Connectbot or something, but I didn't try that.
TulsaDavid said:
On some devices (such as Infuse, as was in my case), the only solution was to manually create Pictures/Screenshots (full path: /sdcard/Pictures/Screenshots or /storage/sdcard0/Pictures/Screeshots). I created them with Root Explorer.
Had tried all other solutions, but they did not work. Seems that the power button Screenshop would neither create Pictures nor Pictures/Screenshots.
Click to expand...
Click to collapse
Thank you TulsaDavid. This helped me tremendously. You're a deity!
Sent from my SGH-T989 using Tapatalk

JellyBean SD Card issue

Wondering if anyone can help...
on JB, stock google apps and system apps won't recognize my SD Card at all, while outside apps have no problem recognizing it...?
for example, stock Gallery app won't bring up my pictures, however Quick Pic has no problem. Root Explorer has no problem, Titanium Backup has no problem...but trying to access music or custom notifications for gmail/sms won't show up in the system apps (gmail, mms, etc).
another thing is when I plug my phone into my computer, none of my old files are there (but like I said they show up just fine with Root Explorer or any other file explorer).
I've tried every JB Rom available for Toro, yes I've tried SuperWipe, I've done it all.
Any ideas, fellas? Any help would be greatly appreciated. Thanks
philsfan said:
Wondering if anyone can help...
on JB, stock google apps and system apps won't recognize my SD Card at all, while outside apps have no problem recognizing it...?
for example, stock Gallery app won't bring up my pictures, however Quick Pic has no problem. Root Explorer has no problem, Titanium Backup has no problem...but trying to access music or custom notifications for gmail/sms won't show up in the system apps (gmail, mms, etc).
another thing is when I plug my phone into my computer, none of my old files are there (but like I said they show up just fine with Root Explorer or any other file explorer).
I've tried every JB Rom available for Toro, yes I've tried SuperWipe, I've done it all.
Any ideas, fellas? Any help would be greatly appreciated. Thanks
Click to expand...
Click to collapse
have you logged in to your account??? Cause I know sometimes if you are not logged in then your stock photo gallery will not show your photos....as far as not seeing them in your pc I don't know you might be shif out of luck cause if they are not there they not be there at all
Sent from my Galaxy Nexus using Tapatalk 2
Same issue here....looking for a solution...
The files are definately there...I can open them from the device but not via USB and not using Gallery. Its as though its a permission issue but I ran a fix permissions using ROM Manager but no joy....
having the same issue too. hope to get solution soon.
aidanbree said:
Same issue here....looking for a solution...
The files are definately there...I can open them from the device but not via USB and not using Gallery. Its as though its a permission issue but I ran a fix permissions using ROM Manager but no joy....
Click to expand...
Click to collapse
logged in.
files are definitely still there bc, as i said in OP, I can view them with Root Explorer and other file managers. Only with stock apps and system apps it seems to not see them.
i think it's a media server issue but i'm not educated enough on how to fix it
aidanbree said:
Same issue here....looking for a solution...
The files are definately there...I can open them from the device but not via USB and not using Gallery. Its as though its a permission issue but I ran a fix permissions using ROM Manager but no joy....
Click to expand...
Click to collapse
Try this.
Hi efrant
Thanks for the suggestion. Gave it a go (tried it twice) but unfortunately it hasn't made any difference.
I'm having the same problem... I did notice that not everything under /data/media had media_rw as the owner/group but fixing it didn't fix the media server issue.
It's definitely a media server issue though as from what I've read it's responsible for listing the files when connected via MTP/USB so I haven't found a fix for it.
I've always thought MTP was flaky. I use ADB to transfer any files back and forth.
Downloading any SDCard rescan app doesn't seem to work... but what I have noticed that if you go to Settings -> Apps -> Running and look under Media, you should see that the service is stuck in the restarting state...
I/ActivityManager( 336): Process android.process.media (pid 2148) has died.
W/ActivityManager( 336): Canceling start item Intent { cmp=com.android.providers.media/.MediaScannerService (has extras) } in
service ComponentInfo{com.android.providers.media/com.android.providers.media.MediaScannerService}
W/ActivityManager( 336): Canceling start item Intent { cmp=com.android.providers.media/.MediaScannerService (has extras) } in
service ComponentInfo{com.android.providers.media/com.android.providers.media.MediaScannerService}
W/ActivityManager( 336): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 1440256ms
W/ActivityManager( 336): Scheduling restart of crashed service com.android.providers.media/.MtpService in 5000ms
I/ActivityManager( 336): Start proc android.process.media for service com.android.providers.media/.MtpService: pid=2249 uid=10013 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}
Click to expand...
Click to collapse
Sejanus,
Mine is restarting too.
I have noticed that if I use a file manager to duplicate an old file (e.g. photo) then I can access it...It looks like some sort of weird permission issue although I have tried all sorts of things to sort the permissions.
I'm using the GNex Toolkit V7.0 to pull everything from my virtual SD card /sdcard and then I'm going to delete everything, reboot, then push everything back to it, reboot, then see if that fixes it.
efrant said:
Try this.
Click to expand...
Click to collapse
I just tried, and it didn't work. Double checked, there was no file with a different user/group.
It seems that now my Media is not restart anymore, however I still can't see my files, neither through Google Music / Galery (although some show up), nor using USB to computer (only a few folders show up).
Therefore, nothing yet.
Any clues guys ?
Probably a solution! (at least it did work for me)
Guys, for those having issues with Media process, where Pictures & Musics don't show up, here's the solution that worked for me:
I got it from http://forum.xda-developers.com/showpost.php?p=21746289&postcount=2 (thanks Chrono_Tata).
Based on what Chrono_Tata wrote, I decided to create a ".nomedia" file in my main personal directory, where contains pictures, musics, personal files and so on.
(For those not familiar with Linux, the ". (dot)" in the beginning of the filename is very important! It means that it's a hidden file. You can create it through ES File Explorer)
For testing purposes, I copied some musics / pics to directories out of that my structure.
Then, stopped and cleaned data for: Gallery, Google Music and Media . Afterwards, restarted phone.
Bingo. It did work, and I could see the pics/musics outside my main directory (although it takes a while to re-scan everything, so wait! Gallery and Music will show nothing until scan is complete).
Well, after I realized it did work, I continued in the following way:
1) Delete the previous ".nomedia" file that I created
2) Create a new one under some sub-directory.
3) Repeat process for re-scan
I did it until I found which directory had an issue (btw, my pictures directory).
I think it might be related to thumbs.db file created by Win, but I'm not sure. Anyway, I still have to check carefully my structure to find the issue.
Hope it helps.
Regards,
Adriano.
Nice one!
For some reason the same worked with me. I seemed to have some 0k files that were perhaps causing issues. I used your process to clear things out.
Thanks Adriano!
aidanbree said:
Nice one!
For some reason the same worked with me. I seemed to have some 0k files that were perhaps causing issues. I used your process to clear things out.
Thanks Adriano!
Click to expand...
Click to collapse
Basically resolved this by
1) Creating a new directory in /sdcard/DCIM and moved all photos from /sdcard/DCIM/Camera to this directory
2) Placed .nomedia files in almost every directory in /sdcard except the obvious ones (/sdcard/DCIM/Camera being one of them)
3) Copied a months worth of photos from /sdcard/DCIM/Camera_bkup to /sdcard/DCIM/Camera, rebooted the phone, checked the gallery to see if all the photos now appeared
4) Repeated until /sdcard/DCIM/Camera_bkup was empty... in the process I removed a bunch of older pictures that were legacy from a non-Android cellphone that I copied over from my first phone
This was after I fixed the media_rw/media_rw permissions that I found as when I used the GNex Toolkit to dump my SDCard and then tried to restore it, all the files had root/root user/group permission set.
There was also an issue with timestamps of some photos where they were actually placed in the future by a few days, which was annoying because as I slid back from a picture I had just taken to the gallery it would show me some other picture then the one I had just taken. This got resolved as the wrong timestamped photos entered the past.
I was on an MCR JB build... I hope I don't have to go through all these hoops when CM10 comes out.
efrant said:
I've always thought MTP was flaky. I use ADB to transfer any files back and forth.
Click to expand...
Click to collapse
It definitely is. I'll have files missing from the MTP listing, but when I go in and look on my phone, the files are clearly there. MTP is janky at best.
This has been driving me nuts, since when the I/O update came out I flashed and had the same issue, just reverted to AOKP from nandroid.
I have partially fixed the issue by going into Recovery and fixing permissions, now I can see and select ringtones and most my camera pictures. Still many files are not showing on gallery, but I guess its progress .
Edit: Forgot to mention that I tried 4.1.1 and still had the issue, I just reverted to a nandroid b/u of ICS.
i think this issue is caused because the storage is named "sdcard0" the normal should be "sdcard" i tried to change the storage name but "sdcard0" is reed only, so i can't change the name with root explorer maybe someone can try to rename it and see if this issue will be fixed.
any thing let us know because this issue is being annoying.
raidy said:
i think this issue is caused because the storage is named "sdcard0" the normal should be "sdcard" i tried to change the storage name but "sdcard0" is reed only, so i can't change the name with root explorer maybe someone can try to rename it and see if this issue will be fixed.
any thing let us know because this issue is being annoying.
Click to expand...
Click to collapse
Having the same issues... wasting the WHOLE day troubleshooting this issue w/o any luck so far... I think I will end up going back to ICS and be happy with it until a solution is apparent. So annoying...! Jelly Bean is sooo fast!

[Q] [Transfering files from PC] How to keep Date Modified stay intact?

Here's the thing.
I came from another device, and bought Nexus this week.
It's perfect for me,
except one thing which keeps me crazy.
Galaxy Nexus doesn't have SDCard.
It is only nand internal memory, and yes I can live with that just fine since it is big enough.
The problem is, there's no way to mount that internal partition into pc via usb mass storage.
I don't know what it called, but certainly it is not usb mass storage.
Yes I can see my data, copy, paste to it, but it's waaaaaay to slow.. max is only approximately 5 MBps.
And the things got more serious when transfering many many many SMALL files, like photos, or some imagery cache tiles into Galaxy Nexus via usb.
it seems it tooks forever to complete
i tried many computers, many port, many usb cable, the results remain the same.
(i tried it both on ICS stock and JB stock)
(and mount sdcard on both CWM / TWRP does not work too..)
Okay, i decided i can live with that, since no usb mass storage is good thing though.. no need to worry about unplug without safely remove.
BUT the things make me crazy is:
why the heck my photos and pictures date modified is changed into today's date?
it looks bad on gallery, the date arrangements is all wrong because of that.
i tried it by many method, including i make some flashable zip contains my photos and pictures to be flashed into:
/data/media/
(which is the real location of virtual sdcard)
but the date modified still changed, but this time it gets funnier, it says modified on 2008.
is there any way to store photos and pictures from another device into galaxy nexus but keeps the date modified stay intact?
ps:
i tried transfer files via wifi (ftp apps) too.. same results..
Sent from Galaxy Nexus - Android Jelly Bean 4.1.1
Try adb push. It will solve your problem.
Sent from my Touchpad
honest1212 said:
Try adb push. It will solve your problem.
Sent from my Touchpad
Click to expand...
Click to collapse
please, what adb command?
i tried adb push xyz /data/media/xyz/
but there's permission issue..
why?
Sent from Galaxy Nexus - Android Jelly Bean 4.1.1
marhensa said:
please, what adb command?
i tried adb push xyz /data/media/xyz/
but there's permission issue..
why?
Sent from Galaxy Nexus - Android Jelly Bean 4.1.1
Click to expand...
Click to collapse
adb push photo.jpg /sdcard/
Sent from my Galaxy Nexus using Tapatalk 2
Try Local Sync, available on play store, it works for me.
buzzcomp said:
Try Local Sync, available on play store, it works for me.
Click to expand...
Click to collapse
buzzcomp...
thank you very much for recommending it.
i already thanks all your post (it's 20 already)
anyway, you are such good man with knowledge according to all your posts..
LocalSync is the best..!!!
never thought to using it at the first place..
from now on,
i'll use it regulary.
and most importantly, it keeps date modified intact
no date modified changed... :good:
here's what i test, when syncing using Local Sync:
DELETE SCENARIO:
---------
> delete file on phone
> on pc gets deleted too..
> delete file on pc
> on phone gets deleted too..
ADD NEW FILE SCENARIO
---------
> add new file on phone
> on pc file added too..
> add new file on pc
> on phone it's added too.
EDITING / FILE CHANGES SCENARIO
---------
> edit some file on pc..
> it will updated on phone too.
> edit some file on phone
> it will updated on pc too..
EDITING / FILE CHANGES (BUT BOTH EDITED) SCENARIO
---------
> when edit some files, both edited, pc and phone
> the replaced one, is according to the settings (choose pc or phone)
MOVED FILE SCENARIO
---------
> when moving some files into new location (on phone)
> on pc the files will be moved too. it's moved, not doubled on two location.
vice versa.
UNIQUE SCENARIO
---------
> on phone, the file moved into new location.
BUT on pc that file is copied into new location (not moved, so there's two files, original location, and new location),
and the file on new location, pc, has been edited.
> the sync result is, it moved into new location, but there's two files, one is edited, one is the original (renamed into yyyyyy.orig.xxx)
Glad to hear that ..
honest1212 said:
Try adb push. It will solve your problem.
Sent from my Touchpad
Click to expand...
Click to collapse
For me, adb pull & push do not preserve original date and timestamps. However, I find this only an issue for pictures since stock gallery uses this metadata for sorting. Quickpic (available in play store) can fix this by using exif metadata to restore original file date and timestamps.
Sent from my Galaxy Nexus using Tapatalk 2
Petrovski80 said:
For me, adb pull & push do not preserve original date and timestamps. However, I find this only an issue for pictures since stock gallery uses this metadata for sorting. Quickpic (available in play store) can fix this by using exif metadata to restore original file date and timestamps.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I realize this post is old so sorry for the bump, but: can Quickpic actually restore and write back the original timestamps? How does this work if so? I'm trying to transfer pictures with the original timestamp for days, see original thread, but so far nothing worked for me.
Mahnn said:
I realize this post is old so sorry for the bump, but: can Quickpic actually restore and write back the original timestamps? How does this work if so? I'm trying to transfer pictures with the original timestamp for days, see original thread, but so far nothing worked for me.
Click to expand...
Click to collapse
Yes it can, as long as the pictures have exif metadata.
Sent from my Galaxy Nexus using Tapatalk 2
Use Local Sync
Personally I do not understand why such a simple thing is so difficult with android tablet or phone: keep your files up to date between PC or server and the device. This is so simple with a USB stick or even with exernal drives, even with VPN. Why is this so difficult and painfull with android devices????
I (want) to use our android tablets in meetings or even in the field. So I need a sync tool to keep files up to date on the android device side (PC and/or fileserver is always master).
Android devices = Samsung Galaxy Note 10.1 (GT-N8000) with ICS 4.04 and Samsung Galaxy SIII (with GT-I9300) ICS 4.04.
I have installed Local Sync (from psencik.cz). I can connect the tablet and pairing with the PC. First remark : I notice that the android device (samsung note 10.1 tablet with ICS 4.0) never shows "USB connection" but only "MTP connection". There is simply no USB option available under "wireless and networks > more settings", so it is not possible to cancel MTP.
remark 2: the tablet shows up in Windows Explorer as GT-N8000 and files are accessible (copy, move and delete possible).
So Local Sync is installed but it is no possible to sync files from PC to Android device. About the "directory" settings to set up in the PC and the android device, nothing is clear. When I set the same directory name on both, the directory with all contents on the android device side is simply deleted !
I have seen that you are using "scenarios". How can I set these in Local Sync? is there a specific ini file to be made for this?
Please, help will be greatly appreciated.
Pierre
Pierke01 said:
Personally I do not understand why such a simple thing is so difficult with android tablet or phone: keep your files up to date between PC or server and the device. This is so simple with a USB stick or even with exernal drives, even with VPN. Why is this so difficult and painfull with android devices????
I (want) to use our android tablets in meetings or even in the field. So I need a sync tool to keep files up to date on the android device side (PC and/or fileserver is always master).
Android devices = Samsung Galaxy Note 10.1 (GT-N8000) with ICS 4.04 and Samsung Galaxy SIII (with GT-I9300) ICS 4.04.
I have installed Local Sync (from psencik.cz). I can connect the tablet and pairing with the PC. First remark : I notice that the android device (samsung note 10.1 tablet with ICS 4.0) never shows "USB connection" but only "MTP connection". There is simply no USB option available under "wireless and networks > more settings", so it is not possible to cancel MTP.
remark 2: the tablet shows up in Windows Explorer as GT-N8000 and files are accessible (copy, move and delete possible).
So Local Sync is installed but it is no possible to sync files from PC to Android device. About the "directory" settings to set up in the PC and the android device, nothing is clear. When I set the same directory name on both, the directory with all contents on the android device side is simply deleted !
I have seen that you are using "scenarios". How can I set these in Local Sync? is there a specific ini file to be made for this?
Please, help will be greatly appreciated.
Pierre
Click to expand...
Click to collapse
I dont even understand that tool. It looks so specific. Is there any FILE MANAGER with timestamp fix?
Omg back to roots.. Years after mass storage was happily introduced, it is dismissed by google plus the timestamps are forced by google. So no way to copy files. Thanks for wasting my time.
doggydog2 said:
I dont even understand that tool. It looks so specific. Is there any FILE MANAGER with timestamp fix?
Omg back to roots.. Years after mass storage was happily introduced, it is dismissed by google plus the timestamps are forced by google. So no way to copy files. Thanks for wasting my time.
Click to expand...
Click to collapse
yea we all know MTP sucks.
people loves usb mass storage.
it's just dumb, why can't we preserve date modified?
although it can be preserve by some sort of software, like localsync mentioned already, but the end-user thinks it way too advanced for them.
I don't know who started this stupid MTP things, not sure if another device without sdcard using this MTP too or not (iPhone).
it seems it has been a long time since I tried localsync, I should create tutorial for it for today's android version.
-----
Sent from Android device
And I have a phone without SD card reader, which adds up to the chaos. I already wasted hours on this. After years of efforts to add mass storage to all relevant devices by manufacturers, the Android phone became my only device without this feature.
I finally do this:
1) copy files to SD card.
2) use USB SD microreader to connect to phone via USB OTG (this technology was not yet dismissed by google)
3) install busybox on a rooted system (because google thinks COPY command is so ridiculous to keep by default, while REMOVE and MOVE is ok)
4) cp -a /Removable/USBdisk1 /sdcard
It is even very fast but not visible. I have to keep the screen on all the time otherwise USB gets disconnected (another genius designed this).
If google wants to be similar to microsoft in treating people, they can end up having similar market share in the end..
doggydog2 said:
And I have a phone without SD card reader, which adds up to the chaos. I already wasted hours on this. After years of efforts to add mass storage to all relevant devices by manufacturers, the Android phone became my only device without this feature.
I finally do this:
1) copy files to SD card.
2) use USB SD microreader to connect to phone via USB OTG (this technology was not yet dismissed by google)
3) install busybox on a rooted system (because google thinks COPY command is so ridiculous to keep by default, while REMOVE and MOVE is ok)
4) cp -a /Removable/USBdisk1 /sdcard
It is even very fast but not visible. I have to keep the screen on all the time otherwise USB gets disconnected (another genius designed this).
If google wants to be similar to microsoft in treating people, they can end up having similar market share in the end..
Click to expand...
Click to collapse
step 4, where do you type that command?
is it on terminal emulator?
yes usb otg speed is quite fast (also fast-draining battery too),
i tried copying it with solid explorer, but the date modified still changed.
maybe i should try it by terminal command like you suggest.
---
Sent from Android Device
marhensa said:
maybe i should try it by terminal command like you suggest.
Click to expand...
Click to collapse
yep.. not user friendly, especially when organizing more folders, but preserving timestamps is critical. after 20years of same file operation on dos, unix, windows, os2 etc, google wants to change the game. what what whaaat.
doggydog2 said:
yep.. not user friendly, especially when organizing more folders, but preserving timestamps is critical. after 20years of same file operation on dos, unix, windows, os2 etc, google wants to change the game. what what whaaat.
Click to expand...
Click to collapse
found the (so-called) solution...
--- PRESERVING DATE MODIFIED ON NEXUS DEVICE ---
From Android to PC: Use MTP
From PC to Android: Use Droid Explorer
cheers..
Successfully moved all my GNex photos to my N5 and preseve file created/modified date
I'm not going to lie, this was painful - but I think I've worked out the kinks.
Required:
- Source Device
> USB OTG Capable
- Destination Device
> USB OTG Capable
> Rooted
- PC (Win7x64 for me)
> ExifTool
> Bulk File Changer
- USB Stick
- OTG Cable/Connector
Steps:
1) Copy media (jpgs, 3gps, mp4s) from source device to USB stick via OTG. This could take a while depending on how much media you're copying. Don't worry about preserving the created/modified date here as you'll be fixing it on the PC using the embedded EXIF data.
1.5) While the above is happening, place ExifTool and Bulk File Changer in the following folder on your PC C:\filecreatedatefix
2) Cut and Paste the media from the USB stick over to the following folder on your PC C:\filecreatedatefix\files
3) Run the following 3 commands (one at a time) to change the created date and modified date stamps on the files to the created date in the embedded EXIF data.
C:\filecreatedatefix\exiftool "-FileCreateDate<CreateDate" "-FileModifyDate<CreateDate" -ext .jpg -r C:\filecreatedatefix\files
C:\filecreatedatefix\exiftool "-FileCreateDate<CreateDate" "-FileModifyDate<CreateDate" -ext .3gp -r C:\filecreatedatefix\files
C:\filecreatedatefix\exiftool "-FileCreateDate<CreateDate" "-FileModifyDate<CreateDate" -ext .mp4 -r C:\filecreatedatefix\files
3.5) Any files that still aren't fixed need to be done so manually using Bulk File Changer
4) Cut and Paste the media back to the USB stick in a folder like D:\Camera
5) Plug the USB stick via OTG Cable into the Destination Device and then open a terminal window
6) Type "su" (no quotes) to enter root user mode
7) Archive copy the files from the USB stick over to the destination directory using a command like the following
cp -a /sdcard/usbStorage/sda1/Camera/* /sdcard/DCIM/Camera
This could take a while depending on how much media you're copying.
8) You're done! You may need to restart the destination device in case plugging/unplugging a USB stick destabilizes it.
Petrovski80 said:
For me, adb pull & push do not preserve original date and timestamps. However, I find this only an issue for pictures since stock gallery uses this metadata for sorting. Quickpic (available in play store) can fix this by using exif metadata to restore original file date and timestamps.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Thank you thank you.
I've been looking for something like this for a long time. It doesn't work on everything, like videos and files without without the EXIF data.
But this is definitely nice to have.
omg, strugled throug that issue on my way from my nexus 5 to my OnePlus One...
Did it that way:
1. Copied all Images to my Mac
2. Sorted all Files by modified date (oldest first) with automator (see attachment)
3. Copied the output (list of files with full path in order of modification) into a TXT-File
4. Used a small perl script to push each file by "adb push" to my phone.
5. Now the order is okay, of course the modification date is gone again but because the oldest file was pushed fist it's still the oldest, even when only by seconds.
Here is my Script:
------------------------------------------------------------------------------------------
use strict;
use warnings;
my $filename = 'files.txt'; #change files.txt to your txt-file
open(my $fh, '<:encoding(UTF-8)', $filename)
or die "Could not open file '$filename' $!";
while (my $orig = <$fh>) {
chomp $orig;
my $phone = $orig;
$phone =~ s/\/Volumes\/HDD OSX\/TEST/\/storage\/sdcard0/g; # here you build the path on your phone from the path on your computer
system("./adb push \'$orig\' \'$phone\'");
}
[/script]
------------------------------------------------------------------------------------------

[Q] Galaxy Nexus 4.2.1 Can't see all files when via USB (MTP)

I have a galaxy nexus running 4.2.1. I have been having this issue since the update to 4.2. I am not able to see all files when I have my device connected to a pc via USB. When I navigate to the folder on my PC it can be empty or missing the file I am looking to transfer to my PC. I am not sure if this is a 4.2 issue, but I have not have this issue in previous versions. I am able to transfer files via my websharing app, but these files are movies and are over 1 gb in size on average so I would like to get this working. Let me know what you guys think.
Oh I have this same issue on 4.1.1. This is very frustrating. Sometimes, some files even fail to copy to PC.
Overall, the file listing and copy operations from Galaxy Nexus to PC is very unreliable. The file copy was rock solid and even faster on my HTC Desire.
However, I can see all files and copy them successfully using an app called Airdroid, over Wifi.
This issue should not happen anymore after ICS, but try deleting the .nomedia file in your folders, this file tell the phone to not scan in that folder. Reboot, then wait for the media server to rescan, then plug it in.
If that don't work, clear your Media Storage's data (Settings -> Manage apps -> All -> Media Storage), then delete the folder "/sdcard/Android/data/com.google.providers.media", reboot and let it rescan for 10mins.
Sent from my Galaxy Nexus
eksasol said:
This issue should not happen anymore after ICS, but try deleting the .nomedia file in your folders, reboot, then wait for the media server to rescan, then plug it in.
If that don't work, clear your Media Storage's data, delete the /sdcard/Android/data/com.google.providers.media, reboot and let it rescan for 10mins.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
That did it! Thanks for the info!!!
I am actually still having this issue on my galaxy nexus running 4.2.1. I am running a stock OS and not rooted. I am not sure what else I can do. After further testing I have come to find that I am not able to access any newly created file on my device when connected by a USB cable to a computer until I restart my device. I even went to the trouble of doing a factory data reset. I am able to access new files from my device or wireless via the websharing app, just not via USB to my computer running windows 7 32bit. I am not sure if an app I have installed could be causing this issue. All I know is I never had this issue with ICS. Let me know what you guys think. I am at a total loss with this.
Had same issue not sure of fix but found if i rebooted computer and device when i plug device in again it sees the new files, its like the computer only sees whatever files are in phone at the point of first viewing phone sd folders, so any changes after that arent registered until computer is rebooted.
I think rebooting gnex also helps embed any changes to files and folders.
Its a hassle but it works
sent via xda premium from starkissed noozxoide maguro gnex paranoid beta9.5
Just in the even that someone needs help with this issue. I ended up installing an app called "Rescan Media". All you have to do it tap the icon for this app, you will see a flicker on your phone and your computer will be good to see your new files.
"Rescan Media" app let me see ALL my files in windoZe 7
venomtalon said:
Just in the even that someone needs help with this issue. I ended up installing an app called "Rescan Media". All you have to do it tap the icon for this app, you will see a flicker on your phone and your computer will be good to see your new files.
Click to expand...
Click to collapse
Thank you.
It worked for me!!! Thank you. I can see ALL my Nexus 7 files from Windows 7 - I have NOT rooted my 4.2.2 - and it works fine!
Thank you for the advice.
It worked for my LG G2
eksasol said:
This issue should not happen anymore after ICS, but try deleting the .nomedia file in your folders, this file tell the phone to not scan in that folder. Reboot, then wait for the media server to rescan, then plug it in.
If that don't work, clear your Media Storage's data (Settings -> Manage apps -> All -> Media Storage), then delete the folder "/sdcard/Android/data/com.google.providers.media", reboot and let it rescan for 10mins.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Magnificent - I've been going crazy wondering why I can't see all my files on my new LG G2 on windows. I followed your instructions and now I can. Thank you.

[Q] All folders in sdcard partition not showing

Anyone seen this before? I plugged the N7 into my Win7 computer and when I go to Windows explorer it does not show all of the folders in the sdcard partition. The main problem was I wanted to copy some TB backups over from my GNex to get saved games and such moved over. There was an empty folder named TitaniumBackup on the N7, in windows explorer it shows up as a blank document icon, but when I attempt to go ahead and copy my system knew it was a folder but it couldn't write to/overwrite it.
My GNex does not have this kind of problem, all the folders in the sdcard partition show properly. I tried a reboot of my system as I've seen weirdness before with the MTP protocol and windows not updating its display (like it's caching what it's reading) and that would fix it, but not this time so I don't think that's the issue. I'm wondering if this might be a "fix permissions" kind of issue or something? The permissions look the same as my GNex though looking in Root Explorer.
flyinion said:
Anyone seen this before? I plugged the N7 into my Win7 computer and when I go to Windows explorer it does not show all of the folders in the sdcard partition. The main problem was I wanted to copy some TB backups over from my GNex to get saved games and such moved over. There was an empty folder named TitaniumBackup on the N7, in windows explorer it shows up as a blank document icon, but when I attempt to go ahead and copy my system knew it was a folder but it couldn't write to/overwrite it.
My GNex does not have this kind of problem, all the folders in the sdcard partition show properly. I tried a reboot of my system as I've seen weirdness before with the MTP protocol and windows not updating its display (like it's caching what it's reading) and that would fix it, but not this time so I don't think that's the issue. I'm wondering if this might be a "fix permissions" kind of issue or something? The permissions look the same as my GNex though looking in Root Explorer.
Click to expand...
Click to collapse
Well, I'd start with making sure you have the drivers.
http://developer.android.com/sdk/win-usb.html I could see and write to mine on linux and win 7; of course, only used the drivers on win 7.
Have you tried this SDrescan? https://play.google.com/store/apps/details?id=com.bero.sdrescan&hl=en
Any problems I've had of files/folders not showing up on both my GN/N7 have been fixed by running that first.
Ok guys looks like the problem is fixed. I think part of the problem was my faulty not updating or gps locking first device. The replacement looked like it was going to do the same thing, but now that it's rooted AND rebooted (and rebooted my desktop) all of the folders that should be are showing up. At this point I'm not sure if it was a fault with the first tablet, or the first tablet needed to be rebooted (pretty sure I did that a couple times though) or what.
edit: actually now I realized something weird, in Device Manger windows shows the Android Composite ADB Interface device as under the heading "Samsung Phone" (roughly the right wording) even though it's my Nexus 7 that is plugged in.

Categories

Resources