Problems to access sdcard0 on CM12 :( - Galaxy S 4 Q&A, Help & Troubleshooting

Hello!
These days I switched from Galaxy S2 to S4.
Now some apps like Whatsapp want to access sdcard0 to display the pictures from the chats.
The path from the database looks like this: /storage/sdcard0/WhatsApp/Media/Whatsapp Images/IMG-20141111-WA0001.jpg
But mnt/media_rw/sdcard0 or storage/sdcard0 has permissions rwx------ with no content of the internal SD.
The internal SD is linked to "mnt/sdcard" with permissions rwxrwxrwx.
Any idea how to fix the access problem between sdcard0 to internal SD???
Best regards
Frank

franklin84 said:
Hello!
These days I switched from Galaxy S2 to S4.
Now some apps like Whatsapp want to access sdcard0 to display the pictures from the chats.
The path from the database looks like this: /storage/sdcard0/WhatsApp/Media/Whatsapp Images/IMG-20141111-WA0001.jpg
But mnt/media_rw/sdcard0 or storage/sdcard0 has permissions rwx------ with no content of the internal SD.
The internal SD is linked to "mnt/sdcard" with permissions rwxrwxrwx.
Any idea how to fix the access problem between sdcard0 to internal SD???
Best regards
Frank
Click to expand...
Click to collapse
sdcard0 is your internal memory.
sdcard1 is your external memory (the actual micro sd card you bought or got with the phone).
That's how ES File Explorer shows it to me.
I have the same permissions you mentioned. What exactly is your problem?

Hi!
Sry, perhaps my english is nor very good...
My problem is, that Whatsapp will access the internal SD by sdcard0, but sdcard0 is empty or inaccessable!
CM 12 uses instead sdcard, not sdcard0
My Galaxy S2 has different permissions on sdcard0, can I change it permanently on CM12??? How??

franklin84 said:
Hi!
Sry, perhaps my english is nor very good...
My problem is, that Whatsapp will access the internal SD by sdcard0, but sdcard0 is empty or inaccessable!
CM 12 uses instead sdcard, not sdcard0
My Galaxy S2 has different permissions on sdcard0, can I change it permanently on CM12??? How??
Click to expand...
Click to collapse
So you're saying that you get errors from whatsapp?
I've used CM12 or rom based on CM12 and CM12.1 and haven't had any issues with apps accessing the sdcard, internal or external.

Yes, the App works, but can't display sent and received pictures from the last time...
I see only a blurred preview because of the sdcard0 directory problem...

I see. Do you have problems with other apps that need access to the internal memory?
I don't know what the problem could be, but one way to solve it is to try a different rom

I don't know exactly. My Phone isn't completely prepared....
I hab more problems to use the external SD, for example the camera app

Related

If I delete .android_secure I run with problems?

Hi, recently I try to change my Recovery and for some strange reason I lost "aparently" all my sdcard content because I can't mount from recovery and either from the phone using AndroZip, my question is: if I format the sdcard and lost .android_secure directory I'm able to access my phone without problems?
Cheers and thx in advance
yes you are fine. The .android_secure folder has to do with paid applications and it will be regenerated automatically.
If you move apps to sd, they go in there. You should move any apps that are on sd to internal memory before you delete it
I felt like I needed a signature.... here it is
tvall said:
If you move apps to sd, they go in there. You should move any apps that are on sd to internal memory before you delete it
I felt like I needed a signature.... here it is
Click to expand...
Click to collapse
I must remember that.
Thx all of yours

[Q] (Blefish 0516) How to forbid app created file/folder in ext-SD root directory ?

Thank Blefish first ,with your contribution to U8800 ,so we users can enjoy the Kitkat.
I have learned that Kitkat will forbid app create file/folder in ext-SD root directory,instead apps can only created their data in /Sdcad/Android.So my Sdcard directory will be tidy.
When I installed Blefish 0516 edition,I found the feature didn't work.
And I found in dir ./storage , ext-SD was mounted as Sdcard0 while the internal storage was mounted as Sdcard1.I think the irregular mounted sequence between ext-Sd and internal storage is the reason why the feature didn't work.
And I didn't found vold.fstab in ./system/etc , so I can't edit it to change the mount seq.
Dear Blefish guru,I am looking for your help~
Jellybean and forward use a different method now. They are not using vold.fstab anymore. Rather, /fstab.qcom is used (in our phone). It cannot be edited manually, a boot.img must be unpacked and repacked in order to do so.
Did you mention that apps can write to /sdcard/ but cannot write to /storage/sdcard0? This ROM does not enforce write permissions as KitKat does by default, so I am not quite sure.
Blefish said:
Jellybean and forward use a different method now. They are not using vold.fstab anymore. Rather, /fstab.qcom is used (in our phone). It cannot be edited manually, a boot.img must be unpacked and repacked in order to do so.
Did you mention that apps can write to /sdcard/ but cannot write to /storage/sdcard0? This ROM does not enforce write permissions as KitKat does by default, so I am not quite sure.
Click to expand...
Click to collapse
Two days after installed 0516,many folders were created by apps in ext-SD root directory(./storage/sdcard0/),while only two folders were found in internal storage(./storage/sdcard1/).And it seems that the two folders were somthing like being created while using recovery or something like that,unlikely being created by apps.
Cause I am using another rom to find whether the seq between internal and ext-SD is normal,yet I found that in android 4.0.4 there is no ./storage,so I cannot know the seq between internal and ext-SD.
zhuld.lord said:
Two days after installed 0516,many folders were created by apps in ext-SD root directory(./storage/sdcard0/),while only two folders were found in internal storage(./storage/sdcard1/).And it seems that the two folders were somthing like being created while using recovery or something like that,unlikely being created by apps.
Cause I am using another rom to find whether the seq between internal and ext-SD is normal,yet I found that in android 4.0.4 there is no ./storage,so I cannot know the seq between internal and ext-SD.
Click to expand...
Click to collapse
In my ROM external SD (/storage/sdcard0) is the primary storage. This means Android creates it's Pictures, Download, Music & other directories there automatically.
/storage/sdcard1 is just a storage, like USB OTG storage would be. It's not in use if sdcard0 is present (some apps can still write to it manually like Camera).
The /storage is another jb/kk feature. I did not go with the older direct mounting to /mnt/ because it's just deprecated. Mine is configured according to this (Nexus One with internal storage added manually): http://source.android.com/devices/tech/storage/config-example.html
Blefish said:
In my ROM external SD (/storage/sdcard0) is the primary storage. This means Android creates it's Pictures, Download, Music & other directories there automatically.
/storage/sdcard1 is just a storage, like USB OTG storage would be. It's not in use if sdcard0 is present (some apps can still write to it manually like Camera).
The /storage is another jb/kk feature. I did not go with the older direct mounting to /mnt/ because it's just deprecated. Mine is configured according to this (Nexus One with internal storage added manually):
Click to expand...
Click to collapse
Thanks for so detailed reply.
But I still don't understand how to enforce write permission.As a perfectionist , I really don't want to see so many folders created by third-party apps in my ext-SD.
If it is convenient for you,could you inform me the way to enable the write permission in your rom? :fingers-crossed:

Write problems in SDCard0

Hi,
I recently switched to this phone from other old with Android 4.1.
Model: GT-i9505
ROM: CM12.1 Optimized (http://forum.xda-developers.com/gal...lop/exclusive-antaresone-alucard24-s-t3066696)
Version: cm-12-1-20150524-optimized-jflte
I installed the ROM with all wipes and without sdcard, only with internal storage.
Then, I reinstall manually apps and the problem come with Whatsapp and the media paths.
The problem is that Whatsapp search the files of the conversations in /storage/sdcard0, and in the ROM, this location is empty.
The locations for the storage are:
Internal Storage
/mnt/sdcard
/sdcard
/storage/emulated/0
/storage/emulated/legacy​
External Storage
/external_sd
/extSdCard
/storage/sdcard1​
Here, tell me that /storage/sdcard0 would be internal storage by default... So what´s wrong??
I tried to change permissions with File Explorer, with same as sdcard1 or /storage/0/legacy for example, but always says it´s a Read-only file system.
I tried too in Google with "cm12 sdcard0", and seems it´s a problem related with the rom, and not find any solution...
Anyone have any idea??
Thanks!
P.D: Sorry for my poor english... I hope explained well..
It works fine for me. I'm on the same rom.
ps /storage/sdcard0 is NOT your internal storage.
That's /storage/emulated/0.
So you must have messed something up.
Lennyz1988 said:
It works fine for me. I'm on the same rom.
ps /storage/sdcard0 is NOT your internal storage.
That's /storage/emulated/0.
So you must have messed something up.
Click to expand...
Click to collapse
So, what do you see in /storage/sdcard0?
The content of internal storage (/storage/emulated/0)??
Albvadi said:
So, what do you see in /storage/sdcard0?
The content of internal storage (/storage/emulated/0)??
Click to expand...
Click to collapse
No it's empty. There is nothing there.
Lennyz1988 said:
No it's empty. There is nothing there.
Click to expand...
Click to collapse
I thought that same as FernBch says that by default has always been internal storage at sdcard0 and external at sdcard1, /storage/sdcard0 would be a symlink same as /mnt/sdcard or /sdcard...
If not, is there any way to create a symlink or something similar manually, to create a link between /storage/emulated/0 and /storage/sdcard0??
Thanks for your help!
No idea. But it shouldn't even be neccesary. It should just work. For me it works so maybe you messed something up?
Lennyz1988 said:
No idea. But it shouldn't even be neccesary. It should just work. For me it works so maybe you messed something up?
Click to expand...
Click to collapse
Well, I think don´t explain me very well (it´s difficult in other language). I´ll try do it better...
2 weeks ago, I had other phone with Android 4.1.1.
This phone had the storage in /storage/sdcard0, so WhatsApp take the media files from that path.
This week, I´d changed the phone and install the CM12.1 Optimized Rom and install WhatsApp restoring the database backup. All work perfect. WhatsApp works perfect at this moment, because if I´m, receiving a image or video, it saves in the internal storage, which is /storage/emulated/0. So far, all right.
The problem it´s when I want view a image received when I was the old phone. In the database, WhatsApp save the absolute path (you can view that in this post), so, when try to get the media, WhatsApp says that the file isn´t in sdcard, because /storage/sdcard0 it´s empty.
I tried to modify manually the blob field in the database, but don´t work (I think I corrupt the field in the modification), so, because of this, mi intention it´s create a symlink (or something like that) so that if I enter in /storage/sdcar0 see the same content there are in /storage/emulated/0 (same as /storage/emulated/legacy or /sdcard paths).
I hope I have now explained better.. :fingers-crossed:
Thanks again!!
Albvadi said:
Well, I think don´t explain me very well (it´s difficult in other language). I´ll try do it better...
2 weeks ago, I had other phone with Android 4.1.1.
This phone had the storage in /storage/sdcard0, so WhatsApp take the media files from that path.
This week, I´d changed the phone and install the CM12.1 Optimized Rom and install WhatsApp restoring the database backup. All work perfect. WhatsApp works perfect at this moment, because if I´m, receiving a image or video, it saves in the internal storage, which is /storage/emulated/0. So far, all right.
The problem it´s when I want view a image received when I was the old phone. In the database, WhatsApp save the absolute path (you can view that in this post), so, when try to get the media, WhatsApp says that the file isn´t in sdcard, because /storage/sdcard0 it´s empty.
I tried to modify manually the blob field in the database, but don´t work (I think I corrupt the field in the modification), so, because of this, mi intention it´s create a symlink (or something like that) so that if I enter in /storage/sdcar0 see the same content there are in /storage/emulated/0 (same as /storage/emulated/legacy or /sdcard paths).
I hope I have now explained better.. :fingers-crossed:
Thanks again!!
Click to expand...
Click to collapse
Aha I understand it now. No idea how it could be done. You should google about symlinking and experiment yourself.

storage/emulated/legacy is empty. Also /sdcard links to storage/emulated/legacy.

Hello all I recently installed XInternalSD from xposed app. Before I did this if I opened Root Explorer and clicked the /sdcard path it would show the files on the internal memory. Now it links to emulated/storage/legacy which is blank and only 900MB in size. Is that correct? I swear it's not.
/storage/emulated/0 shows my internal files just fine, and extSDcard shows the files on my external SD card just fine.
The main reason for this thread is my Titanium backup is failing now because the backup location is set to /storage/emulated/legacy/TitaniumBackup and it says there isnt enough free space. This process worked fine before I installed XInternalSD. I can set it to my external SD card I suppose, but read somewhere that post Android 4.2 it should point to legacy.
I am running CM 10.2.1, Android 4.3.1.
Anyone have any experience or advice?

Storage/emulated/0??????

I've got an s7 edge running 8.0.0
In file explorer my internal storage is shown as storage/emulated/0
What does this mean? Is it cause I don't have an sd card in the phone?
Thanks to anyone who can help
greggins said:
I've got an s7 edge running 8.0.0
In file explorer my internal storage is shown as storage/emulated/0
What does this mean? Is it cause I don't have an sd card in the phone?
Thanks to anyone who can help
Click to expand...
Click to collapse
Internal storage goes by different symbolic name tag, it is storage/emulated/0 as emulated/virtual filesystem, not the actual one or /sdcard as a symlink or /data/media/storage as actual path to files.
Hi thanks for replying.... So in layman's terms, that means everything is normal and it's just another way of saying internal storage?
Exactly

Categories

Resources