我在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;
...
}
答案 0 :(得分:2)
我通过以下步骤解决了您遇到的完全相同的问题:
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;'"
.\adb.exe shell
打开 mounts 文件cat /proc/mounts
,然后运行命令.\adb.exe root
.\adb.exe shell 'mount -o rw,remount -t <type> <path> /system'
,然后再次尝试步骤4 我希望这可以解决您的问题!
编辑:您需要在powershell上使用可写系统映像启动模拟器。转到android-sdk目录中的emulator文件夹,然后运行
.\adb.exe reboot
这帮助我将更改保持在AVD上