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,843件の閲覧回数
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?

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

1,732件の閲覧回数
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,732件の閲覧回数
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 件の賞賛
返信