SD Card no writing permission in FP2

Well, it is easier to activate root and of course the OSOS - with a more open source approach and no google apps installed - is a great OS, and I really can recommend it!

But only for getting root its a bit far fetched, as it includes to also flash the user partition, so you’ll have to set up the phone again.

1 Like

Thanks for that link. I followed and downloaded the boot.Fairphone-fp2-su-eng-r203.img file, but when I clicked it nothing happens.
Then I checked the wiki post again and I think in section 2b it explained you need to connect to a computer and download more stuff and flash the image and so on.
At this point I am lost. First off my computer can’t even see my fp2 - only have one basic cable but it worked OK for other androids. And second, I have zero programing experience, am a basic computer user, so is there a simpler way to upload this file?
Chrs. Magnus

Well, if you take some minutes, some people wrote a step by step tutorial there (in the wiki). From the discussions I know that also others managed who had no experience, so it’s not too hard, just requires some patience.

That said, there is also an alternative ( to use an app, but it is not recommended as some claim it may drain battery and it’s less secure.

If you are not familiar with computer stuff you should also be aware that rooting the phone has severe security implications and with root rights you can easily screw up the software of your phone.

you can do that without going through the root thing – it worked for me, at least. i found a short clip on youtube (there are more, but this one was easy enough to follow), in which a step-by-step explainer guides you through the setup of acces your sd card with ‘ES File Explorer’ . once you managed to go through the steps, moving files between internal storage and sd card is as easy as it was with FP1 and the older android (where we had root access).
hope that helps : )

I bought a SD card yesterday and my Fairphone 2 (I love it!) accepted and found it without
any problems. I want to store all of my picutes and Videos on this card. Does
anybody know how I can change the storage location from internal to the SD
card? I can not find the button.
Thank you and have a nice and sunny weekend, Lea

1 Like

How do you want to store the pictures and videos on the SD card? With an USB connection to the computer? With an app (which app)?

I also have the same problem. To save space on the internal drive, I would like photos and videos I take with the FP2 to automatically be stored on the sd card. I have been able to do this with all the other androïd phones I had.

1 Like

I moved your topic to this one, as you will find all explainations and anwers here…

Regarding the file show in this post : SD Card no writing permission in FP2

One should not forget to include the :

<?xml version="1.0" encoding="utf-8"?>

At the begining, followed by a :


Opening tag, closed at the file ending by a :


(don’t miss the plural form).

<?xml version="1.0" encoding="utf-8"?>

<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->

<!-- The following tags are associating low-level group IDs with
     permission names.  By specifying such a mapping, you are saying
     that any application process granted the given permission will
     also be running with the given group ID attached to its process,
     so it can perform any filesystem (read, write, execute) operations
     allowed for that group. -->

<permission name="android.permission.BLUETOOTH_ADMIN" >
    <group gid="net_bt_admin" />

<permission name="android.permission.BLUETOOTH" >
    <group gid="net_bt" />

<permission name="android.permission.BLUETOOTH_STACK" >
    <group gid="net_bt_stack" />

<permission name="android.permission.NET_TUNNELING" >
    <group gid="vpn" />

<permission name="android.permission.INTERNET" >
    <group gid="inet" />

<permission name="android.permission.READ_LOGS" >
    <group gid="log" />

<permission name="android.permission.READ_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />

<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
    <group gid="sdcard_all" />

<permission name="android.permission.WRITE_MEDIA_STORAGE" >
    <group gid="media_rw" />

<permission name="android.permission.ACCESS_MTP" >
    <group gid="mtp" />

<permission name="android.permission.NET_ADMIN" >
    <group gid="net_admin" />

<!-- The group that /cache belongs to, linked to the permission
     set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
    <group gid="cache" />

<!-- RW permissions to any system resources owned by group 'diag'.
     This is for carrier and manufacture diagnostics tools that must be
     installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
    <group gid="input" />
    <group gid="diag" />

<!-- Group that can read detailed network usage statistics -->
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
    <group gid="net_bw_stats" />

<!-- Group that can modify how network statistics are accounted -->
<permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
    <group gid="net_bw_acct" />

<permission name="android.permission.LOOP_RADIO" >
    <group gid="loop_radio" />

<!-- Hotword training apps sometimes need a GID to talk with low-level
     hardware; give them audio for now until full HAL support is added. -->
<permission name="android.permission.MANAGE_VOICE_KEYPHRASES">
    <group gid="audio" />

<permission name="android.permission.ACCESS_FM_RADIO" >
    <group gid="media" />

<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->

<!-- The following tags are assigning high-level permissions to specific
     user IDs.  These are used to allow specific core system users to
     perform the given operations with the higher-level framework.  For
     example, we give a wide variety of permissions to the shell user
     since that is the user the adb shell runs under and developers and
     others should have a fairly open environment in which to
     interact with the system. -->

<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.WAKE_LOCK" uid="media" />
<assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
<assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />

<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />

<!-- This is a list of all the libraries available for application
     code to link against. -->

<library name="android.test.runner"
        file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
<library name="javax.btobex"

<!-- These are the standard packages that are white-listed to always have internet
     access while in power save mode, even if they aren't in the foreground. -->
<allow-in-power-save package="" />

(I’ll keep editing this post to present a correct ‘stock’ platform.xml file)

Files seem equivalent but the good way of doing it is to get a fresh one this way :

If you need the file “fresh” again (but what you show looks okay, it’s just the file without changes), you can just download the bin blob and unpack it. You will find the “fresh” file under: ./vendor/qcom/proprietary/target/product/FP2/system/etc/permissions/platform.xml

FYI: Probably the two threads No internet at all and No data connection after update to 1.4,2 and rooting were related to this thread.
I think that my unsolvable problems with internet connection were triggered by changing platform.xml in a wrong way. After I couldn’t find a solution to bring back the internet connection I sadly reflashed my phone with Open OS 16.06.

Today I have changed again platform.xml in regard to SD Card no writing permission in FP2 (but I used Ghost Explorer instead of Amaze) and I mentioned that after saving platform.xml the read permissions for group and others were missing.
So I gave back read permissions to all on platform.xml before remounting /system with RO option and rebooting and the phone is still running :slight_smile:

But I don’t know for sure if this approach is saving the phone from bricking.
Update: No, it doesn’t. Saver approach see here: SD Card no writing permission in FP2

I don’t know why @barney 's version of platform.xml got here. but I know for sure, that it is confusing everything. And @siltaar made it not better.

For all, who want write-rights to their sdcard: do only a small change in your platform.xml as shown in post 2 by @Arvil. Navigate to that file with Amaze and edit it via “open as” “Text” with “Amaze Editor”.

1 Like

:thumbsup: Thanks for pointing out the right solution.
Still I marked post #3 as the solution just now, as it’s the one most FP users can do themselves.

Sorry I think I’m annoying, but yesterday my phone was again unusable (i.e. no network at all) from changing platform.xml on running system with Amaze editor although correcting read permissions afterwards. Fortunately this time I have a two days old backup on 16.06 version.

I don’t know for what reason this happens but I have to warn about changing platform.xml on running system. There could be a remaining risk to make your phone unusable (maybe other running apps writing to remounted /system).
I recommend to start in TWRP recovery mode and copy a changed version of platform.xml
(for example prepared on ExtSDCard using Amaze editor) into /system/etc/permissions.
I had done this immediately after installing the update zip file for 16.07 and all is ok so far.

I will add my recommendation to ✏ Update Guide for a modified FP Open OS (with Gapps, Xposed and more)

Is this app trustworthy? I mean no ads and no “phoning home” ?

1 Like

If you edit your platform.xml and only insert this line:

at the right place:[quote=“Arvil, post:2, topic:11841”]
<permission name=“android.permission.WRITE_EXTERNAL_STORAGE” >
then you can do no harm to your operating system.

I think, rw permission should be default. It does not make sense to forbid the sdcard access.
This is an unwanted restriction for almost every user.
When editing platform.xml by hand, it does not survive OS updates. As I store my music
on the sdcard, it has the ugly effect, that all my playlists are emptied, because the music files
are not readable.

1 Like

The pop up screen is so small I need a magnifier trying to read it.
And then I don’t understand what it says.

To get my pictures out of my phone I copied them to a samba server.

Every time an update for FP Open rolls up, it overrides the write permissions on my sdcard1, making it read only. I can’t be bothered to go bit-shifting on my phone, editing configuration files by hand, so I do what every standard user does - I use an app for that.

I fix this problem every time with an SD Card Permission Fixer. I guess it shifts whatever bits it needs to make the SD card useable as intended for you.

This is what I use. It works with FP Open Marshmallow. Choose whatever floats your boat. Play Store is chock full of them apps, found nothing in F-Droid.

At least I don’t have to do this a lot, since updates don’t happen very often. The last FP Open security update was two and a half months ago (05.12.2016), so that’s not too much of a hassle.

EDIT 20170313 - Works on FP open 17.02.0

1 Like

Hello Avril. Could you please correct the last line of your guideline from “adb push permissions.xml …” to “adb push platform.xml …” because I have linked to your guideline from ✏ Update Guide for a modified FP Open OS (with Gapps, Xposed and more) and therfore its better that there is no mistake in the guideline. Thanks.

1 Like

Hi I am on my phone and don’t see the edit button maybe a moderator could do it for me please?


1 Like