My terminal IDE accessed root but cannot edit hosts file.
root@172.16.0.151:/system/etc #vim hosts
But vim just opens hosts file as readonly. Where do I missed here?
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this communityYou've missed that the /system
file system is mounted read-only.
mount -o remount,rw /system
cd /system/etc
vim hosts
# edit, save, then make /system read-only again:
mount -o remount,ro /system