How to change the android8.1 root directory read-only to read and write

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the android8.1 root directory read-only to read and write

1,327 Views
973381186
Contributor I

I want to create some directories and files in the android8.1 root directory, but the properties are read-only. Do I need to modify those files to change the properties to be readable and writable?

0 Kudos
Reply
2 Replies

1,216 Views
shivanipatel
Senior Contributor II

Hi, q gr‌ and Diego Adrian Cuevas

It is also required to disable the SELinux permission to access the root directory along with the commands mentioned by Diego Adrian Cuevas‌.

To disable the SELinux permission run the below commands:

  • adb root
  • adb shell setenforce 0

Hope this will help you.

Regards,

Shivani
 

1,216 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

For that, you need to remount the system partition.

To make that you need to make it through ADB.

First, make sure that you have the ADB capability activated.

In the Windows/Linux command prompt type the below ADB commands:

adb start-server

adb root

adb disable-verity

adb reboot

After the system reboots.

adb start-server

adb root

adb remount

After performing those commands, you should have access to root directory.

Hope this could help you.

Best regards,

Diego.  

0 Kudos
Reply