Post Reply

[Note] Reverting KitKat SD card changes

OP MohammadAG

20th March 2014, 12:57 PM   |  #1  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,018
 
1,073 posts
Join Date:Joined: Sep 2009
Donate to Me
More
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.
Last edited by MohammadAG; 20th March 2014 at 05:13 PM.
The Following 17 Users Say Thank You to MohammadAG For This Useful Post: [ View ]
20th March 2014, 01:07 PM   |  #2  
LeParkour012's Avatar
Senior Member
Flag Singapore
Thanks Meter: 206
 
1,558 posts
Join Date:Joined: Feb 2011
More
What are the SD card changes and is it important to revert?
20th March 2014, 01:23 PM   |  #3  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,018
 
1,073 posts
Join Date:Joined: Sep 2009
Donate to Me
More
Quote:
Originally Posted by LeParkour012

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
The Following 6 Users Say Thank You to MohammadAG For This Useful Post: [ View ]
20th March 2014, 01:27 PM   |  #4  
Member
Thanks Meter: 8
 
75 posts
Join Date:Joined: Nov 2013
Quote:
Originally Posted by LeParkour012

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
The Following User Says Thank You to Tonian1878 For This Useful Post: [ View ]
20th March 2014, 01:31 PM   |  #5  
LeParkour012's Avatar
Senior Member
Flag Singapore
Thanks Meter: 206
 
1,558 posts
Join Date:Joined: Feb 2011
More
Okay I understand. Thanks for clarifying that for me.
20th March 2014, 01:42 PM   |  #6  
AndroPlus's Avatar
Senior Member
Thanks Meter: 972
 
451 posts
Join Date:Joined: Mar 2013
Donate to Me
More
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...
20th March 2014, 01:45 PM   |  #7  
Member
Thanks Meter: 5
 
54 posts
Join Date:Joined: Oct 2012
Quote:
Originally Posted by Tonian1878

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
20th March 2014, 01:47 PM   |  #8  
OP Recognized Developer
Flag Jerusalem
Thanks Meter: 5,018
 
1,073 posts
Join Date:Joined: Sep 2009
Donate to Me
More
Quote:
Originally Posted by RyokoN

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

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.
20th March 2014, 03:03 PM   |  #9  
GR00VY GH0ULIE's Avatar
Senior Member
Flag Guildford Surrey
Thanks Meter: 32
 
119 posts
Join Date:Joined: Mar 2014
More
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
Last edited by GR00VY GH0ULIE; 20th March 2014 at 03:05 PM.
20th March 2014, 03:06 PM   |  #10  
Member
Thanks Meter: 10
 
97 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by Tonian1878

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: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xperia Z1 General by ThreadRank