File 0 bytes when I copy to sd - Xiaomi Mi A1 Questions & Answers

When I copy a file, photo etc. from internal memory to sd card the result is a file with 0 bytes. Is there a fix? is it happen to someone? i tried to change file manager and sd card but the result don't change.
The sd card work. When I take a photo or for backup there isn't any problem. Any idea?

Me too
I agree cause I change sd yet still 0byte
But I take photo and save to sd it can

That's one of the Oreo update bugs.
I have the same

Before I think sd broken

I've just tried it with Total commander and file has the correct size and content. Can't see anything wrong

With Mi file explorer the copy works.
For the moment ok but I hope in a fast fix...

Works fine with X-plore file manager

No issues here. Using Solid Explorer.
*Edit* Retried and it is failing with Solid Explorer. Using Asus File Manager, no issue.

No. Try to copy a photo for example from WhatsApp directory to sd card. With X-plore and solid explorer (but also with Es file explorer, etc.) the copy is 0 bytes

miomio said:
No. Try to copy a photo for example from WhatsApp directory to sd card. With X-plore and solid explorer (but also with Es file explorer, etc.) the copy is 0 bytes
Click to expand...
Click to collapse
yes, now it is failing with Solid Explorer. I am now using Asus File Manager and it works, copying the same photo files from internal memory to SD Card. Give this one a try.

goofball2k said:
yes, now it is failing with Solid Explorer. I am now using Asus File Manager and it works, copying the same photo files from internal memory to SD Card. Give this one a try.
Click to expand...
Click to collapse
Yes, MI file explorer too but it's a bug, I think

Using File Manager + , same problem.

I have the same problem as well. Solid explorer doesn't work but neither does anyone else... This is a huge problem for me! Flud downloaded files to the SD also show as 0B and don't play. I thought I had a corrupted card (Kingston 64GB U3) and I got a new Toshiba Exceria 128 U3 and still the same problem! Damn! I didn't have this bug with Nougat and first Oreo built... Will have to format as internal again until it's fixed.

Known bug under Oreo. Just use the internal 'Files' data manager.
Just gotta wait till the devs get active
Also doesn't work with Root Explorer.

With System-Apps (File, Fotos..) -> OK
With Open Camera (requested access to sd after change Storage to SD) -> OK
With Total Commander, QuickPic -> FAIL 0kb
With Droid over Wif -> no access to SD

Have the same problem. When I try to copy file to sd card it end up like 0 kb. Total commander fail and system app "File" fail to copy to SD card as well. Photos are saved on SD card when take pictures.

After copying files to SD-card try to reboot your device. On my mi a1, after reboot almost all files on SD-card are ok

Reboot your device after you copy your files, and it will show the file size, happens to me too. hope it helps.

I'm having the same problem. I believe that the file is there intact, however for some reason, it is reporting back as a 0B file.
I just did the April 1 2018 update and when I reboot, the problem went away, only to come back within an hour or so.

Possible fix for some people.
Install xposed module XInternalSD or Magisk Module ExSDCard Write Access Enabler 5.0-8.
I prefer the xposed module because it has a GUI to enable/disable on per app basis.

Related

[Q] Stupid question on SD Cards

Just got my Iconnia last week and it's stunning.
However if I drag .apk's onto my 32Gb SD Card I can't seem to find them using Linda File manager.
Is there a particular programme I need to use to access it?
When I look into Storage it only seems to show my internal memory, howevermy Gallery DOES find my camera pics on the card so what am I doing wrong?
Dragging using what ?? on desktop PC ?? ( best is to copy & paste )
for when on the iconia... I downloaded "Astro file manager" ... there are many others...etc
your Ext_SDCard and USB storage is under the sub directory of /mnt
You should post in the "General" section...as this is the "DEV" section...
File Manager for Honeycomb.
I ran into this problem when I first got mine too.
The external sd card is actually showing in mnt/external_sd in your root folder
Basically this means that when you use astro file manager or root explorer and you open that instead of clicking on sdcard you click the folder listed as "mnt" then external sd
Thanks Guys.
Mods - Can you please move this to general Doh!

[Q] cannot move files (not app) from internal SD to external SD

After using google and forum search a while I am stuck with this problem.
on my i9000 I want to move files like jpg files from certain appfolders to my external sd card.
I tried to use different File explorers and tried to move for example a picture from the program folder of the app "multicam" on the internal SD card to a new cerated Folder on the external SD Card.
whenever I try to cut & paste it onto ext SD card, it sant be moved or just does not paste it... depending on which file explorer I use. I have SU rights for my file explorers and can't find a way to move the files.
Some files on the internal SD can be COPIED and PASTED onto the external and after that I have to delete the original Files from the internal SD. But why is CUT & Paste not possible?
is there something like protection oder chmod things, that has to be payed attention to ?
thanks for any hints what I do have to look for on the search function of xda-dev or google...
I have the exact same problem. Copy and paste works but Cut and paste does not.
I have both I9000 and Asus Transformer and in both of them this does not work. It's very frustrating when you have to frequently move files.
It happens to me too. I can't move, just copy and paste. For me is not such a bad thing, it keeps adding a "false" sense of security of having backups.
It works using root explorer.
Thx for the tip... I tried root explorer now and this works quite well. Now you can copy/cut + paste from any folder to each folder you like to. There are 2 settings available: r/o and r/w... read only and read write.
posted via smartphone

[Q] First impressions & SD card issue?

Hi,
Just Got the 7.7 3g - so far so good. Screen is as good as they say
The extra resolution defn. helps with web browsing.
Not finding any lag really.
7.7 is just about the limit for my two handed use but i would say the original 7" was a wee bit easier to handle but something with time should become more intuitive.
Just a few issues - external sd card is somewhat limited. Might be deliberate by Samsung but does not make sense.
Normal user apps cant access to the external sdcard. Using connect bot, i checked permissions and it seems that it is mounted by the os with system permissions, where as the internal sdcard is mounted as sd_rw.
This can't be correct? The only way to copy stuff to it is to use the samsung system file explorer as it has system permissions So copy to internal first then to external - this sounds like a bug?
I have not rooted this yet - might then chown to sd_rw get rid of this ?? There is a lot of entries in the vold.fstab to make sense of. Not a hacker so just looking around. A bit too early to start soft-bricking
But I take these don't have protected bootloaders so thats why we can root ?
Video playback is v.good but I am not able to throw on a bluray m2ts file (obviously with the sd card issue) and play smoothly. I found Dice player can handle m2ts by renaming it to a ts file. It then can use hardware decoding. Still drops frames but still watchable to a certain degree. For all other files mx player is still best. I have lossy transcoded some "native" blurays clips and seems that it handle high profile h264 1080p at high bitrates very well. Hoping, formatting sd card ext3/ext4 will improve things.
On the whole very impressive device - plus more ics goodies to come soon hopefully.
I've noticed some issues with the external SD card as well. Only the stock file manager can copy files from the internal storage to the external storage. I was able to transfer files to the ext. SD via Dooblou's Wifi Explorer, though. Although that would crap out a few times.
I'm hoping that we see some new ROMs with a different file system at any rate. The 4GB limit is so 1998.
Fix for external sd write issue
I've already posted a fix for this in our original thread?
davp said:
There is a fix for the write to external storage in this thread:
Samsung Galaxy Tab Plus->Galaxy Tab Plus General->unable to write files to external sd card
post #7
Requires root to apply fix.
There is a new permission that older file managers aren't asking for yet. The stock file manager knows to ask for it.
Fix worked for my P6810 wifi.
Click to expand...
Click to collapse
thaloneus said:
I can't post a link to the original post on another forum that worked for me so I will quote it:
Simple solution for external sdcard write access on Android 3.2...if you're rooted
I've found a simple solution for gaining write access to the external sdcard (/mnt/sdcard2) on Android 3.2. The sdcard is mounted r/w, but the owning group is media_rw which is linked to the WRITE_MEDIA_STORAGE permission. Unfortunately, this permission was not required for access to the external sdcard prior to 3.2 so most file management utilities do not request it when they run...meaning they only have read access to the card.
The simple solution, if you're rooted, is as follows:
1. Using a root-enabled file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Restart your tablet.
After this change, any apps that request the WRITE_EXTERNAL_STORAGE permission (which includes almost anything that access either of the sdcards) will gain group membership in both sdcard_rw AND media_rw, giving them r/w access to both sdcard filesystems.
Click to expand...
Click to collapse
Rooted and then applied this change.
Can write to ext sdcard !!!!
Cheers
Will apply as soon as i get tad, should be getting it today, cant wait
Sent from my GT-P1000 using XDA App
I think you have to format the sd card in the tab. I been able to transfer files no problem. Maybe its due to the mtp for the internal sd.
Sent from my GT-P6800 using xda premium
will6316 said:
I think you have to format the sd card in the tab. I been able to transfer files no problem. Maybe its due to the mtp for the internal sd.
Sent from my GT-P6800 using xda premium
Click to expand...
Click to collapse
Using downloaded apps or the stock File Manager app? Because I formatted the SD card in the Tab and nothing else can write to it. Now, I can drag and drop stuff from my computer via MTP, but that's not the same issue.
Ok, I'm trying to add the permission and it doesn't seem to save after a reboot. I'm rooted and made sure to mount that directory as R/W. After I edit platform.xml and reboot it simply reverts. Can anyone offer a more granular description to this n00b?
Thanks.
Edit: Nevermind. I edited the file on my computer and copied it over the original and am good to go.
burhanistan said:
Ok, I'm trying to add the permission and it doesn't seem to save after a reboot. I'm rooted and made sure to mount that directory as R/W. After I edit platform.xml and reboot it simply reverts. Can anyone offer a more granular description to this n00b?
Thanks.
Edit: Nevermind. I edited the file on my computer and copied it over the original and am good to go.
Click to expand...
Click to collapse
Thanks Burhanistan. I had this problem too and did what you did to get around it. Now I can read/write to the external SD with any file explorer.
Hello,
I can access the external SD with no problem, only issue is Titanium backup showing 440Mb capacity on the external SD (32Gb card).
Anyone with the same issue? Any fix?
Thanks.
No problem for me
davp said:
I've already posted a fix for this in our original thread?
Click to expand...
Click to collapse
Things must have changed as i got my P6800 recently did the upgrade from samsung and tried to copy to external sd and no problem for me. I never tried to do it pre upgrade but maybe the upgrade fixed that. Re i can copy and paste to device from my pc when its connected - to both device and sd. I can also copy using the the stock file manager from device to sd card.
No Issues here also
I recieved the tap a week ago. Now my 32GB Sandisk SD is here.
The Tap did at the first startup and using the described 12 MB Android update via internet conn.
Until now there is no issue between writing from/to SD over PC/MTP, copying between internal and external SD. Used preinstalled Filemanager and ES File Ex.
I tried it unrooted and rooted but not before the Android update.
davp said:
Simple solution for external sdcard write access on Android 3.2...if you're rooted
I've found a simple solution for gaining write access to the external sdcard (/mnt/sdcard2) on Android 3.2. The sdcard is mounted r/w, but the owning group is media_rw which is linked to the WRITE_MEDIA_STORAGE permission. Unfortunately, this permission was not required for access to the external sdcard prior to 3.2 so most file management utilities do not request it when they run...meaning they only have read access to the card.
The simple solution, if you're rooted, is as follows:
1. Using a root-enabled file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Restart your tablet.
After this change, any apps that request the WRITE_EXTERNAL_STORAGE permission (which includes almost anything that access either of the sdcards) will gain group membership in both sdcard_rw AND media_rw, giving them r/w access to both sdcard filesystems.
Click to expand...
Click to collapse
Some people are reporting the above procedure is no more needed, however, with several apps (like Titanium backup, and a SAMBA explorer), writing to the sdcard (extstorage/.../sdcard) is still impossible (GT6800 updated to latest samsung firmware).
I have used this procedure and can state that Titanium backup works now with the SD card.
Thanks to many reading within the XDA forum, I have found this simpler procedure :
- download / install the "Root Browser Lite" app from the android market
- add write access to group and other to the following directory: /system, /system/etc, /system/etc/permissions (with root browser Lite, press on the directory name during 3 seconds to get a contextual menu allowing to change the permissions)
- add write access to group and other to the file platform.xml in /system/etc/permissions
- use the editor of "Root Browser Lite" to modify the file platform.xml as described above (you should have two <group gid= ...> lines within the WRITE_EXTERNAL_STORAGE xml block.)
- save the file. Verify that a .bak file has been created and that the date of platform.xml changed.
- remove the write access.
- Turn off the GTAB, then turn it ON.
NB: Titanium backup still reports a erronous free size on the SD card (401MB), but backups on the sdcard work.
can't save the xlm doc
davp said:
I've already posted a fix for this in our original thread?
Click to expand...
Click to collapse
Hi, I edit the file but when I try to save it I fail because it says original saved as .....xlm.bak, but I can't find that file and the one I find is unchanged, any ideas?
There is an automated installer for the fix here:
http://forum.xda-developers.com/showthread.php?p=21670802
Is for the plus but worked fine for me
Sent from my SCH-I815 using Tapatalk
damm, must forget something, just followed exacty all the steps
still no writing on sd card
the automatic installer failed also
IS there a way to go into the (forgive the incorrect term) "registry" or similar, and have Android re-interpret/understand that instead of looking in "/sdcard"... it should instead look/point programs to "/mnt/sdcard/extstorages/sdcard"...
i heard that it might be called something like a "simlink" or "symbolic link"... maybe this could resolve the application installation issue to the sdcard as well as backups, transfers, etc... right now, not only do i run out of space too fast, can't install apps to the sd card, but as well, if i should run a hard reset... all my data erases! (yes, the internal "SD card" is erased in a hard reset)...
so, for all practical senses, when it says it will erase data, unless you KNOW you have copied ALL you user data to your "Real" SD Card, you will kill your data without even knowing it when you do a hard reset, even if you "thought" you were protected because "I saved my info to the SD card!"
(and yes, this was my experience today, so it's a fact.)
backup programs won't point to the sd card, (app manager, titanium, app list backup, etc)...
so unless you actively move files individually to the card (and know where to look)...
Bottom line... is there a hack/workaround on this that's not just "open up for file transfers" or is someone working on a ROM that might kill the partitioning and allow the /sdcard to actually point to a real external card?
Edited: Nevermind...
acess-rights-hell
hi forum
i would like to use the EzyKernel v1 - 23/02/2012 as in post http://forum.xda-developers.com/showthread.php?t=1513413&highlight=ezykernel
one of the prerequisites is a stock ZSKL firmware.
on the tab is/was XXKL4 AUT/CH
i successfully flashed the ZSKL2 - but that's where the nightmare started: i could not write to sdcard, busybox/superuser don't work properly, as i can't get root via su - which means to me, that there are messed up accessrights also in other places, not just the SD. the funny thing is, that i finally got the overclocking EzyKernel working, but not busybox + superuser.
does that sound familiar to anyone ?
i would really appreciate any ideas about this.
thank you
with best regards from switzerland
roland
could you please explain what "make sure you have mounted the file system r/w" means. And sorry for my noob question, but does this fix allow to install apps on the external sd card or I'm missing something.

I can't properly write on my SD

Ok, I have had many phones and this problem is a little bit weird for me.
I'm using Poweramp as my daily driver for music. I tried deleting some songs I stored on my SD and it said my files were write protected. I then used Root Browser just to see, that most of my music and photos I have on my SD card were not located in /sdcard but in /storage/57EF-B920, a directory I never created. When I put the SD card into my PC, I can see all my files normally and r/w without any issues.
I figured I could only alter files using the stock file browser and gallery app, but why? And why are my SD card stored media files showing up in /storage/57EF-B920 instead of their actual path? Is that a security feature?
My phone is 100% stock and not rooted.
Thanks for your help!
This is how it has always been on MM. The days of /sdcard, or /storage/extSDcard for your external SD card folder are long gone with LP/KK/JB I'm afraid.
The directory for external sd is unique to your SD card. Put in another SD card, and a new directory name will get generated for it, and it alone.
The ability for an app to write to SD card is down to the app's developer. It will need to have the updated methods that MM uses. Usually, if an app can write correctly, it will prompt you to browse to the root of your external sd card the first time it attempts to access it. Even then, some apps may need extra tweaking. Titanium Backup for example requires the storage type for the external SD card to be changed to Document Storage/Provider in its settings. I used to use Nandroid Manager on my rooted S4 on CM MM, and this could never update external SD card....I had to use Root Explorer to delete/rename my TWRP backups.
You can also double check specific apps for permission through Application Manager.
Go into the specific app in application manager, click on Permissions, and make sure Storage is turned on.
Even when turned on, some apps might still fail, as I've explained.
hawkerpaul said:
This is how it has always been on MM. The days of /sdcard, or /storage/extSDcard for your external SD card folder are long gone with LP/KK/JB I'm afraid.
The directory for external sd is unique to your SD card. Put in another SD card, and a new directory name will get generated for it, and it alone.
The ability for an app to write to SD card is down to the app's developer. It will need to have the updated methods that MM uses. Usually, if an app can write correctly, it will prompt you to browse to the root of your external sd card the first time it attempts to access it. Even then, some apps may need extra tweaking. Titanium Backup for example requires the storage type for the external SD card to be changed to Document Storage/Provider in its settings. I used to use Nandroid Manager on my rooted S4 on CM MM, and this could never update external SD card....I had to use Root Explorer to delete/rename my TWRP backups.
You can also double check specific apps for permission through Application Manager.
Go into the specific app in application manager, click on Permissions, and make sure Storage is turned on.
Even when turned on, some apps might still fail, as I've explained.
Click to expand...
Click to collapse
Sorry for the late reply, but thanks for the explanation! So it's because how MM works vs how Lollipop did and Poweramp not being uptodate with that? I'll try out the permission thing and even if I fail, it's good to know why it won't work. Thank for your help!

SanDisk Ultra Dual USB 16 GB - problem with accesing to storage from my Pure

Hello there.
So I am using Moto X Style with newest 6.0.1 (May patch). I found a nice price for a OTG usb memory, SanDisk Ultra Dual USB 3.0 with 16 GB of space. I ve got it formatted to FAT32 with default allocation unit using my Windows 10. When I connect this device to my phone - it is recognized correctly and I can acces it using built it file manager. As you know, this file manager really su*k in functionality, so for a daily use I am using ZArchiver or Solid Explorer without ANY problems. I am also using SD Card (SanDisk Ultra 32 GB UHS-1 with 48MB/s max speed of write) formated as external memory and yes, it works very well without any issues. I can copy any files from internal memory to it, and delete without problems.
Unfortunatelly, mentioned above Dual USB drive did not work properly with my phone. It is recognized by my phone well, I can acces memory using built-in file manager. But in any other application as ZArchiver or Solid Explorer (or many more) and problems are very random - I can write a data to it (creating a new catalogues, files, copying files from internal memory or from memory card), I can open files saved on it using Solid Explorer or built-in file manager, but I cannot delete files or archives or catalogues using ZArchiver and Solid Explorer. In ZArchiver notihing happens, in Solid Explorer I have an error mentioning, that file cannot be deleted (without any details).
Also there is no information about free space or all available space in ZArchiver and Solid Explorer - this data is available for my SD card...
On my Windows machine I can do whatever I want with this USB. Also on my Meizu M2 Note. So I just wondering if there is an issue with my phone olny, or with that Dual USB Drive...
x X x said:
Hello there.
So I am using Moto X Style with newest 6.0.1 (May patch). I found a nice price for a OTG usb memory, SanDisk Ultra Dual USB 3.0 with 16 GB of space. I ve got it formatted to FAT32 with default allocation unit using my Windows 10. When I connect this device to my phone - it is recognized correctly and I can acces it using built it file manager. As you know, this file manager really su*k in functionality, so for a daily use I am using ZArchiver or Solid Explorer without ANY problems. I am also using SD Card (SanDisk Ultra 32 GB UHS-1 with 48MB/s max speed of write) formated as external memory and yes, it works very well without any issues. I can copy any files from internal memory to it, and delete without problems.
Unfortunatelly, mentioned above Dual USB drive did not work properly with my phone. It is recognized by my phone well, I can acces memory using built-in file manager. But in any other application as ZArchiver or Solid Explorer (or many more) and problems are very random - I can write a data to it (creating a new catalogues, files, copying files from internal memory or from memory card), I can open files saved on it using Solid Explorer or built-in file manager, but I cannot delete files or archives or catalogues using ZArchiver and Solid Explorer. In ZArchiver notihing happens, in Solid Explorer I have an error mentioning, that file cannot be deleted (without any details).
Also there is no information about free space or all available space in ZArchiver and Solid Explorer - this data is available for my SD card...
On my Windows machine I can do whatever I want with this USB. Also on my Meizu M2 Note. So I just wondering if there is an issue with my phone olny, or with that Dual USB Drive...
Click to expand...
Click to collapse
Hey man, I have the same problem too this started 2 or 3 days back !! Did you find any fix for this?
I'm using Moto G3 marshmallow not rooted
Pariboy said:
Hey man, I have the same problem too this started 2 or 3 days back !! Did you find any fix for this?
I'm using Moto G3 marshmallow not rooted
Click to expand...
Click to collapse
Now I've got 7.0 on my phone, will check it soon and answer you if situation was changed or not.
Pariboy said:
Hey man, I have the same problem too this started 2 or 3 days back !! Did you find any fix for this?
I'm using Moto G3 marshmallow not rooted
Click to expand...
Click to collapse
It looks like something was changed now, but why? I am now able to delete files from my two USB stick (one is that mentioned earlier) using Solid Explorer 2.2.8. I am now on 7.0, and some time ago (still on 6.0.1) I perform a full system restore (from recovery). Maybe some system files were broken or changed, and now, after restoring (or after updating to Nougat) these files ale fixed now.
If you have a possibility, try to restore your phone. Otherwise wait for Nougat update, meanwhile use this application:
https://play.google.com/store/apps/details?id=com.droidkitchen.filemanager
I used it in needed of delete files from USB stick, while I cannot perform this action in other apps.

Categories

Resources