2

Recently updated my honor 4c to the latest firware and link2sd stopped working. It gives every time Read only error. So I looked in some forums and found possible solution but can't use it. So the thing is to change android /etc/permissions/platfrom.xml file and change

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

to

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

But I tried that with adb pull and get error

failed to copy 'platform.xml' to '/etc/permissions/platform.xml': Read-only file system
734 KB/s (7390 bytes in 0.009s)

Phone is rooted.

How can I do that?? Please help.

GALIAF95
  • 619
  • 1
  • 10
  • 25

2 Answers2

2

For anyone using Stock ROMs, root is not sufficient to access the platform.xml file. You will need the added step to copy the file to the external storage, and then copy it out.

Here are the steps:

$ adb shell
$ su
$ mount -o rw,remount /system
$ cp /etc/permissions/platform.xml /sdcard/
# <replace 'sdcard' with your external directory path>

After this, you can use adb push and adb pull with the platform.xml in the external directory. If you logout of the shell, you will need to repeat the mount command everytime you need to read or write the platform.xml file.

Alternatively, you can install BusyBox and edit the file on device itself.

$ adb shell
$ su
$ mount -o rw,remount /system
$ busybox vi /etc/permissions/platform.xml
Rahul Murmuria
  • 428
  • 1
  • 3
  • 16
  • Hi. I tried mount -o rw,remount /system but as a result I got error like: Read Only system. Can be something wrong with root? – GALIAF95 Mar 14 '16 at 18:35
  • If you want to check whether you got root or not, try the command `id`. For shell user, you will see uid=2000 and for root user, you will see uid=0. – Rahul Murmuria Mar 15 '16 at 22:15
0

You have to use Read and Write run time permission for storage. check developers or click

Community
  • 1
  • 1
Gopal Singh
  • 1,133
  • 1
  • 9
  • 25