2017-08-03 149 views
1

我想编辑/ system/etc/hosts int我的小米5(rooted)。我第一次拉/syste/etc/hosts并做了一些修改,我想push它,然后我遇到了这个问题Android:编辑/系统/ etc/host文件

adb push hosts /system/etc/hosts 
failed to copy 'hosts' to '/system/etc/hosts': couldn't create file: 
Read-only file system 

我检查this,但是这并没有为我工作了。

adb root 
adbd is already running as root 

adb remount 
remount of /system failed: Read-only file system 
remount failed 

我试过this,也没有工作。

它表明:

gemini:/ # mount -o rw,remount /system 
'/dev/block/dm-0' is read-only 
gemini:/ # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system 
mount: '/system' not in /proc/mounts 

谁能告诉我一条生路,任何建议表示赞赏。

回答

1

好的,我终于在MIUI论坛上找到了答案。

What I found,如果你能读懂中文,直接打开它;如果你不能,我会解释原因。

我无法编辑hosts文件,因为我没有解锁system。 MIUI有一些保护机制可以防止用户在root后删除重要文件。

因此,请下载this,确保您的手机处于Fastboot模式。将它连接到您的PC,然后打开一个终端,您可以将您刚刚下载的adb文件。

adb root 

adb disable-verity 

这就行了!