0

I have to configure my /etc/hosts file on my rooted device(Lineage OS). I can see the content with cat but when I try to open it with vim/nano/vi I only get these questionmark boxes. Screenshot: https://puu.sh/y6WzY/38fcef5594.png

I also tried modifying it in any possible way but this seems like the only one where I actually can get read/write permissions.

0

I managed to do it via pulling it on my pc and pushing it back on my phone:

adb pull /system/etc/hosts F:\hosts # then edit it with notepad, etc
adb push F:\hosts /system/etc/      # pushing it back on my phone

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.