Adblock in Alien Dalvik (Xperia XA2)

To the best of my knowledge using the SFOS App Defender or modiying the systems /etc/hosts file does not allow blocking domain resolution for Android apps.
I believe that it is required to change the /etc/hosts file within the LXC container, right?
Is there an efficient way of doing this?

2 Likes

Solution found here:

https://together.jolla.com/question/215859/adblock-via-etchosts-on-xa2aliendalvik-v8/?answer=215903#post-id-215903

I copy the answer just in case the old forum is shut down:

Simply edit the file /var/lib/lxc/aliendalvik/extra_config as root and add following line:

lxc.mount.entry = /etc/hosts system/etc/hosts none bind,create=file 0 0

The will make LXC use the SFOS hosts file which turn can be filled with host names to be blocked by defender.

4 Likes