Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,223 Members 42,093 Now Online
XDA Developers Android and Mobile Development Forum

Failed to write to sdcard1 after ota kitkat

Tip us?
 
thesavo
Old
#1  
Member - OP
Thanks Meter 5
Posts: 67
Join Date: May 2011
Default Failed to write to sdcard1 after ota kitkat

Has any one else lost the ability to write to their socketed sdcard since the 4.4.2?
 
TXKSSnapper
Old
#2  
Senior Member
Thanks Meter 92
Posts: 304
Join Date: Jan 2012
Quote:
Originally Posted by thesavo View Post
Has any one else lost the ability to write to their socketed sdcard since the 4.4.2?
Thats a "feature" of kitkat. Can't be changed unless you have root.
The Following User Says Thank You to TXKSSnapper For This Useful Post: [ Click to Expand ]
 
thesavo
Old
#3  
Member - OP
Thanks Meter 5
Posts: 67
Join Date: May 2011
Seriously?
 
pistacios
Old
#4  
Member
Thanks Meter 22
Posts: 74
Join Date: Jan 2014
Yes, see here for fix(if your rooted):

https://play.google.com/store/apps/d...=nextapp.sdfix
 
iBolski
Old
#5  
iBolski's Avatar
Senior Member
Thanks Meter 430
Posts: 1,318
Join Date: Nov 2010
Location: Columbus
Quote:
Originally Posted by thesavo View Post
Seriously?
It's a security issue. Before KK, the SD card was wide open to any other process to be able to request read/write to any directory and file, regardless of whether or not they created that file or directory.

Now, under KK, a program can create a file or folder in a "protected" area and only that program has the ability to modify the contents in that folder. It cannot modify other folders or files that it didn't create.
Please hit "Thanks" if this post helped you.

RAZR HD XT926 (unlocked)
32gb Nexus 7
Chromecast
The Following User Says Thank You to iBolski For This Useful Post: [ Click to Expand ]
 
thesavo
Old
(Last edited by thesavo; 18th May 2014 at 05:15 AM.)
#6  
Member - OP
Thanks Meter 5
Posts: 67
Join Date: May 2011
Time to move the podcasts. So my older shows that I worked hard to keep to keep the ext sdcard1 as a target, will have to be copied to sdcard0.too bad.thanks @iBolski

No wonder BeyondPod kept 'accidently' putting shows on SDcard0 for the last year. Even though I "pinned" it to SDcard1 in the advanced settings.
 
iBolski
Old
(Last edited by iBolski; 19th May 2014 at 01:13 PM.)
#7  
iBolski's Avatar
Senior Member
Thanks Meter 430
Posts: 1,318
Join Date: Nov 2010
Location: Columbus
Even with the application that patches the /etc/permissions/platform.xml, I have found certain apps still do not work correctly. Dolphin Browser, for example, cannot switch to /storage/sdcard1. It keeps saying it can't find it and I need to ensure I don't have "USB Mode" enabled, which I don't even have as an option when connected to a PC.

I also have init.d installed on my machine and I had startup scripts that mounted various directories from my external to the internal SD card to "fool" the device so that apps that wouldn't save to the external but the internal would save across a mount. Well, that no longer works. For example, Amazon MP3 will not save downloaded music anywhere except to the internal sd card. I had my startup scripts mount an amazonmp3 directory on my external SD card to the internal amazonmp3 directory on the internal memory card. When I proceeded to download music, it didn't show up in the external directory. However, I noticed that the internal sd card's memory did decrease. I then unmounted the directory and saw that the Amazon MP3 app was ignoring the mount under KitKat and directory saved the files into the /storage/sdcard0/amazonmp3 directory, even though it was mounted to the directory on the external SD card. It did work under JB and ICS, but apparently, with KitKat, some apps will still write directly to the native directory on the internal SD card, ignoring the fact that I've mounted a different directory to it.

The stock Moto camera will write to the external SD card if you go and change the setting for it. However, the Google Camera does not give you any option to store your pictures anywhere except on the internal SD card memory.

Remember, apps can write to the external card, if you don't apply the "patch", but only to what is considered a protected are (the /storage/sdcard1/Android directory structure) and then, they can only write to a directory that the app created. They can read other directories, but they cannot modify them.
Please hit "Thanks" if this post helped you.

RAZR HD XT926 (unlocked)
32gb Nexus 7
Chromecast
 
Zeljko1234
Old
(Last edited by Zeljko1234; 21st May 2014 at 07:34 PM.)
#8  
Zeljko1234's Avatar
Senior Member
Thanks Meter 1,866
Posts: 2,921
Join Date: May 2010
Location: Budapest
Quote:
Originally Posted by iBolski View Post
It's a security issue. Before KK, the SD card was wide open to any other process to be able to request read/write to any directory and file, regardless of whether or not they created that file or directory.

Now, under KK, a program can create a file or folder in a "protected" area and only that program has the ability to modify the contents in that folder. It cannot modify other folders or files that it didn't create.
That's official explanation (bull****) as you described above with non stock camera. Basically KK made external storage almost useless. I found this nice description quite long time ago.

https://plus.google.com/+TodLiebeck/posts/gjnmuaDM8sn
Motorola Droid Razr Maxx HD unlocked with optimized CM11
LG G Pad 8.3 unlocked with LINARO/SABERMOD CyanogenMod 11
Motorola Atrix 4G (AT&T) unlocked with (MROM CM7) CM9 with Polish(ed) 3.1.10 kernel
Nexus 7 unlocked with CM11 my own build
 
iBolski
Old
#9  
iBolski's Avatar
Senior Member
Thanks Meter 430
Posts: 1,318
Join Date: Nov 2010
Location: Columbus
Quote:
Originally Posted by Zeljko1234 View Post
That's official explanation (bull****) as you described above with non stock camera. Basically KK made external storage almost useless. I found this nice description quite long time ago.

https://plus.google.com/+TodLiebeck/posts/gjnmuaDM8sn
I know at this point, Root Explorer still works with it, after setting the correct permissions into the /etc/permissions/platform.xml file. That works for a lot of apps. The only one that I know that is currently broken is Dolphin browser. I cannot navigate to the /storage/sdcard1/ area anymore. It keeps telling me it can't find the file or directrory and that I should make sure the SD card is ready and USB Mass Storage (haven't seen this option since my Droid X2) is not on.

So definitely, Dolphin Browser is doing something differently that even the patch isn't working for it.
Please hit "Thanks" if this post helped you.

RAZR HD XT926 (unlocked)
32gb Nexus 7
Chromecast
 
Zeljko1234
Old
(Last edited by Zeljko1234; 21st May 2014 at 08:03 PM.)
#10  
Zeljko1234's Avatar
Senior Member
Thanks Meter 1,866
Posts: 2,921
Join Date: May 2010
Location: Budapest
Problem is that without root user cannot edit platform.xml and even after that some applications refuse to write to sd card. Another example is OfficeSuite 7 Pro which I bought and now cannot edit file if it's needed. Workaround is to save to internal then overwrite to sd card.
Basically stock Android becoming more and more limited, harder and harder to get root... That's so bad that I wouldn't update to official kk in the case that my phone has locked bootloader.

Read this article http://www.xda-developers.com/androi...pp-developers/
Motorola Droid Razr Maxx HD unlocked with optimized CM11
LG G Pad 8.3 unlocked with LINARO/SABERMOD CyanogenMod 11
Motorola Atrix 4G (AT&T) unlocked with (MROM CM7) CM9 with Polish(ed) 3.1.10 kernel
Nexus 7 unlocked with CM11 my own build

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes