Android 8.1无法重新挂载/system、/dev/block/pci/pci0000:00/0000:00:03.0/by-name/system'是只读的

时间:2018-07-12 02:45:59

标签: android adb mount

我在StackOverflow上发现了一些类似的问题,例如Can't mount system android : read file only [duplicate]How can I remount my Android/system as read-write in a bash script using adb?,我尝试了这些问题,但对我来说都不起作用,因此请不要为此问题添加重复的标签。 我确实在AVD(Android 8.1 x86)上重新挂载/ system,我尝试按照以下方法进行操作:

componentDidMount() {
    console.log(this.props.data); // for test

    const id = this.props.data.ID;
    //OR
    const {id} = this.props.data;

    ...
}

1 个答案:

答案 0 :(得分:2)

我通过以下步骤解决了您遇到的完全相同的问题:

  1. 使用 readinessProbe: # TODO: If docker exec is buggy just use k8s.gcr.io/mysql-healthz:1.0 exec: command: - sh - -c - "mysql -u root -e 'show databases;'"
  2. 打开外壳
  3. 在外壳内使用命令.\adb.exe shell打开 mounts 文件
  4. / system 行上,查看您的安装类型(在我的情况下为ext4)和路径(/ dev / block ....)enter image description here
  5. 退出外壳程序,然后运行cat /proc/mounts,然后运行命令.\adb.exe root
  6. 如果问题仍然存在,请运行.\adb.exe shell 'mount -o rw,remount -t <type> <path> /system',然后再次尝试步骤4

我希望这可以解决您的问题!

编辑:您需要在powershell上使用可写系统映像启动模拟器。转到android-sdk目录中的emulator文件夹,然后运行

.\adb.exe reboot

这帮助我将更改保持在AVD上