5

I'd like to block access to websites on my Pixel 3 android device. The parental settings leave much to be desired and apps like BlockSite don't work across all browsers. (In this case - it doesn't work in firefox)

Here's what I tried so far

adb pull /system/etc/hosts ~/Documents/android/hosts

I edited the hosts file and got it ready to be transferred back.

adb push ~/Documents/android/hosts /system/hosts

This gave me error message: adb: error: failed to copy '/Users/[username]/Documents/android/hosts' to '/system/hosts': remote couldn't create file: Read-only file system

Per this post and this post, I tried a few other options.

I tried to use these commands

adb root
adb disable-verity
adb reboot
adb root
adb remount

This gave me error message: adbd cannot run as root in production builds and when I tried adb disable-verity it said: verity cannot be disabled/enabled - USER build.

I tried to use this command

adp remount

This gave me error: Not running as root. Try "adb root" first.

I downloaded an emulator and tried this command on my device

mount -o rw,remount /system
mount -o ro,remount /system

Similarly, this was unsuccessful

Cauder
  • 161
  • 1
  • 4
  • https://www.xda-developers.com/google-pixel-3-unlock-bootloader-root-magisk – alecxs Feb 05 '20 at 20:06
  • https://adaway.org (for systemless hosts) – alecxs Feb 05 '20 at 20:07
  • 1
    Can I update the hosts file without rooting the device? – Cauder Feb 05 '20 at 20:12
  • Cauder, I saw https://www.modmy.com/how-modify-hosts-file-your-android-device and was about to try it but then saw your post here and got discouraged. Did you ever get it working without rooting? Thanks. – Ryan Nov 15 '20 at 17:07

0 Answers0