Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,261 Members 37,824 Now Online
XDA Developers Android and Mobile Development Forum

[Note] Reverting KitKat SD card changes

Tip us?
 
MohammadAG
Old
(Last edited by MohammadAG; 20th March 2014 at 05:13 PM.)
#1  
Recognized Developer - OP
Thanks Meter 4,924
Posts: 1,071
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Default [Note] Reverting KitKat SD card changes

This requires root.

You'll need to disable Sony RIC if your kernel doesn't do that:
Code:
echo 0 > /sys/kernel/security/sony_ric/enable
Using a root enabled file explorer, remount /system as rw.
Edit /etc/permissions/platform.xml
Find this block:
Code:
    <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
        <group gid="sdcard_r" />
        <group gid="sdcard_rw" />
    </permission>
Change it to
Code:
    <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
        <group gid="media_rw" />
        <group gid="sdcard_r" />
        <group gid="sdcard_rw" />
    </permission>
Reboot

This probably applies to all 4.4 devices, except the Sony specific RIC part.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beamô on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following 16 Users Say Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
LeParkour012
Old
#2  
LeParkour012's Avatar
Senior Member
Thanks Meter 186
Posts: 1,485
Join Date: Feb 2011
Location: Singapore
What are the SD card changes and is it important to revert?
My Devices:
 
MohammadAG
Old
#3  
Recognized Developer - OP
Thanks Meter 4,924
Posts: 1,071
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by LeParkour012 View Post
What are the SD card changes and is it important to revert?
If you haven't noticed them, chances are you don't need this.

KitKat prevents app from writing freely to the SD card, although I agree with this for the internal SD card, it makes no sense for the external one since that's a place most users download songs/videos/movies to, and chances are that stuff isn't sensitive data.

This allows you to revert that change, and all apps with WRITE_EXTERNAL_STORAGE can write to the SD card again.

Apparently this fix is already packaged into an app, not sure if it works, if it doesn't, chances are you need to manually disable RIC first as per above.
https://play.google.com/store/apps/d...=nextapp.sdfix
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beamô on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following 6 Users Say Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
Tonian1878
Old
#4  
Member
Thanks Meter 8
Posts: 73
Join Date: Nov 2013
Quote:
Originally Posted by LeParkour012 View Post
What are the SD card changes and is it important to revert?
not easy to explain but ill try

Apps cannot write to the sd card unless they have a specific folder on the sd card which only that app can write to.

Apps like File commander are now useless when it comes to moving stuff round the SD Card as file commander is restricted to read access only on the sd card.

hope that makes sense
Nokia 3210, Nokia 3330, Nokia 3510, Nokia N-Gage, Samsung D500 , XDA Mini S, HTC S620, Nokia N70, LG Viewty, LG Renoir, Apple iPhone 3GS, Apple iPhone 4s, Ployer Momo9, Ipad 3, Sony Xperia Z1, CS918
The Following User Says Thank You to Tonian1878 For This Useful Post: [ Click to Expand ]
 
LeParkour012
Old
#5  
LeParkour012's Avatar
Senior Member
Thanks Meter 186
Posts: 1,485
Join Date: Feb 2011
Location: Singapore
Okay I understand. Thanks for clarifying that for me.
My Devices:
 
RyokoN
Old
#6  
RyokoN's Avatar
Senior Member
Thanks Meter 924
Posts: 431
Join Date: Mar 2013

 
DONATE TO ME
I disabled ric with custom kernel and double checked file,
but I got many "Permission denied" from apps writes to SD card.
Default one works fine, so maybe my installed apps don't need this tweak...
 
Bobeobi
Old
#7  
Member
Thanks Meter 5
Posts: 54
Join Date: Oct 2012
Quote:
Originally Posted by Tonian1878 View Post
not easy to explain but ill try

Apps cannot write to the sd card unless they have a specific folder on the sd card which only that app can write to.

Apps like File commander are now useless when it comes to moving stuff round the SD Card as file commander is restricted to read access only on the sd card.

hope that makes sense
I didn't get it, is it still possible to copy music, video and other stuff from PC to SD card? That's all I need
 
MohammadAG
Old
#8  
Recognized Developer - OP
Thanks Meter 4,924
Posts: 1,071
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by RyokoN View Post
I disabled ric with custom kernel and double checked file,
but I got many "Permission denied" from apps writes to SD card.
Default one works fine, so maybe my installed apps don't need this tweak...
Then RIC wasn't disabled and the changes didn't persist. It works fine with OI File Manager for me.

Quote:
Originally Posted by Bobeobi View Post
I didn't get it, is it still possible to copy music, video and other stuff from PC to SD card? That's all I need
Yes, but you can't change files on-device.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beamô on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
 
GR00VY GH0ULIE
Old
(Last edited by GR00VY GH0ULIE; 20th March 2014 at 03:05 PM.)
#9  
GR00VY GH0ULIE's Avatar
Senior Member
Thanks Meter 32
Posts: 119
Join Date: Mar 2014
Location: Guildford Surrey
When starting folder mount last night it gave an error about SD card permission and offered to patch it, it patched and everything works like it did pre 4.4

Sent from my C6903 using XDA Premium 4 mobile app
I picture everyone on the internet (especially argumentative trolls) as Kip from Napolean Dynamite!!
 
Gnubaver
Old
#10  
Member
Thanks Meter 10
Posts: 97
Join Date: Apr 2011
Quote:
Originally Posted by Tonian1878 View Post
not easy to explain but ill try

Apps cannot write to the sd card unless they have a specific folder on the sd card which only that app can write to.

Apps like File commander are now useless when it comes to moving stuff round the SD Card as file commander is restricted to read access only on the sd card.

hope that makes sense
A BIG NO TO THIS!

File Commander is put on Kitkat BECAUSE it has 100% rights to the SD Card.

I can move stuff around, create folders etc etc.

DON'T teach people the wrong stuff.

The Following User Says Thank You to Gnubaver For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes