I have been trying to improve my privacy on a phone from the Meizu brand.
A Meizu Pro 6 exactly.
That idea leads me to catch the traffic going out of the phone.
In order to do so, I create a little host file.
This host file is for European rom users.
Note that it will not intercept all connections since some are IP direct.
I would be curious to compare it to your personal host files guys if you have any
(For this brand or other brands)
Hello @Andy1,The goal of this post is first :
To understand that each line of the file is a server or group of server where this kind of phone is connecting when it is using the stock rom (By default).
Second goal :
To see if anyone has gone through the same process than me and created his own file
Third goal :
Use this file on phones of the brand Meizu that do not have the luck to be supported by Lineage OS or Eelo. It prevent the phone to connect to servers and to log any data about the phone and his user.
I post it in this generic section because I know that alot of people have a phone non compatible with Eelo. This is a tool that may help them achieve a better level of privacy.
To use it, you need to put it in /system/hosts. Unfortunately, you need a root access to do so in Android. @harvey186 Of course an other option is to use an application like blokada, but you will have to start it automatically on startup.
The file can be used to bypass the dns service. This is very useful because we can send some request to an invalid adress. For example if you want to block google on your phone or computer, you just have to add the following line : 127.0.0.1 google.com
It will then redirect any google request to 127.0.0.1 which is your own device.
Hope that is clear, please tell me if you have any questions
@Andy1 Your problem looks really curious. There is no chance in my opinion that your problem come from the DNS since it is a very reliable service. I would tend to think that it is a DRM issue or a plugin issue. How can you be sure that it come from DNS ?
Hello @reinar,
the subject is new territory for me. Since I am curious, Iāve a Samsung with frew āfactory resetā stockROM Android 8.0.0 and product code DBT from Germany. With TWRP Recovery I do mount /system. There is no /hosts folder. Where do I get my āpersonal host filesā?
Do you have links to online articles so that I can read up on the subject?
On Android /system/etc/hosts is a file and with TWRP you should be able to modify it !
The fact is that the file is probably empty for you now !
If you modify it, you will be able to modify the way your phone interact with the internet (mostly)
Maybe Samsung modify the system and remove itā¦ can you confirm that you see the file in /system/etc/hosts?
Yes @reinar, the directory /system/etc/hosts exists - but without files (empty).
Can we please continue corresponding tomorrow. Itās after midnight and Iām already sitting in front of the screen too long again. I should better go to sleep now.
@archje Wow, this is already a very nice setup you got there !
Personnaly I use DNS over TLS on my browsers but not on my router since it does not support this kind of modications.
In your case, you need to create your own hosts file and to fill it with the things you want to block !
create a new file inside /sdcard : hosts.new
Fill the file with the instructions and save ! (You can fill the file directly on your phone or copy it from your computer)
Then, launch TWRP, mount /system and do this command :
mv /sdcard/hosts.new /system/etc/hosts
This will replace your hosts file.
Now you can try to go on google-analytics.com on your phone and check if it is effectively blocked !
I first tried it with my WindĀ°ws host machine. Without having changed the empty file hosts, the website google-analyticsā¦com is not found by my system (host.jpg #1)
Page was not found
The connection with the server google-analytics.com failed.
[..]
Try again
Next Iāll try: https://support.google.com/. The web page opens immediately (hosts.jpg #2).
C:\Windows\System32\drivers\etc\hosts.[data file]
Now I enter in the file hosts: 127.0.0.1 support.google.com and save it.
Next, I clear browser cache and call the website again. This time I get an error message: Error: Connection failed (host.jpg #3)
Since my knowledge of web networks is extremely limited, I will ask you once again in simple words: by this forwarding of the original hostnames to my internal IP addresse(s), no external contact to the addresses is established, @reinar?
You are absolutely right ! In your case when you are connecting to support.google.com, the computer send the request to itself instead of the internet. (127.0.0.1 is an address used when the computer want to talk to himself in simple words).
I see that your computer language is deutch, so I guess english is not your first language ?
If you want to see what really append on the network and learn about it I strongly suggest you to install a program called Wireshark on your computer
@reinar,
my idea is: Change the title of your thread so that our /e/ user friends donāt only think of Meizu & China and many more users read it: Block a Website simple; e.g. What a Meizu phone is doing
I suggest : Block unwanted servers and websites using hosts files on any system.
But I do not know how to change the title on discourseā¦
I am using an old nexus 5 as my main phone, /e/ is working very well on it actually, havenāt seen any bug.
Iām considering buying a galaxy S10 but /e/ does not support it and i am not sure that I want to root the phone or install TWRP to change stuffā¦
What do you think about that ? You are the Samsung expert here
I use this one, i even pay the guy once a year because i love the list, no itās not me haha . I wrote a little program some time ago to push it to my phone to make my life easy. I would love to have this hosts file embedded in /e/. It works great, even with use of VPN, the hosts file is queried first.
Actually, there are multiple factors that can influence my decision but I think I need to wait a little bit more since I buy my last phone four years ago. Five years between each phone seems good for me in an ecological approach.
You can post this on Gitlab for the dev team to have a look at it. Once they figure out how to add it in or if they want to add it in this can be a part of the ROM.