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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,816 次查看
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 项奖励
回复
2 回复数

1,705 次查看
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,705 次查看
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 项奖励
回复