~/blackgnu ~/about ~/mirrors ~/rss

A large collection of techniques for maintaining your privacy while using an Android phone

Published by Werwolf on License: CC0

Android Privacy Guide: Zero Trust


I’m willing to get rid off my phone as soon as I am able to. But nowadays it is almost necessary. So I’ve been learning how to remain private while using one of these “smartphones”, although I like to use a term that defines them better, tracking devices.

Even though owning a smartphone and having some kind of privacy seem incompatible, I’ve been trying my best to reach the maximum level of privacy while using an Android device.

If you’d like a guide for iOS I can write a really quick one for you right now: You can’t be private on an Apple device. Their privacy is pure marketing.

In this guide, we’ll gain our privacy in a rational way, based on facts and not on blind trust. How we will do this? Using exclusively free software. It’s the only verifiable way of being private. People (Apple fans) who prefer to blind trust a corp can go fuck themselves.

Forgive my rudeness but this is the reality, don’t believe Apple’s lies. Free software is made with user freedom in mind and it can be audited. Corporations’ proprietary software is made with profit in mind. And they’ll profit your data, even if their marketing tells you otherwise. You can’t verify what proprietary software does. So we should use exclusively free software, since it gives us privacy and freedom. In this guide we’ll follow this principle.

Privacy is an in-depth topic so even if this guide seems too long, I promise you that it will help you with your concerns with Android privacy. Let’s start.

Table of Contents

Finding a ROM

Disclaimer: You don’t need to flash a custom ROM to follow the rest of this guide, but it is a highly recommended step since Google services and manufacturer’s spyware are highly invasive surveillance garbage that can’t be removed. If you can’t flash a custom ROM, try the Universal Android Debloater. Anyway, read the rest of the guide since there are useful privacy measures even on Googled phones

The first step in our journey should be finding and flashing a new ROM. The pre-installed OS by the manufacturer is in almost every case full of spyware and proprietary malware like GAPPS (Google Apps), manufacturer own apps and telemetry services, proprietary firmware, etc.

The ideal solution would be using Replicant since it’s the only fully free (as in freedom) OS for smartphones. Check their supported devices list, just in case. The problem is that it’s limited to a few specific devices. So if you don’t find your device there, don’t worry.

There are other custom ROMs that are focused on respecting user freedom and privacy. The ROMs I’d recommend are LineageOS, /e/ and GrapheneOS. Check if your current device is supported.

If it isn’t, you may try to find other ROMs for your device. Make sure to check that the source is trustable. Important requirements are: focus on being free software and no GAPPS pre-installed.

I’d recommend going to XDA developers and looking for your phone specific model. You’ll find useful guides, ROM devs, user reviews, etc.

These ROMs (LineageOS, /e/, GrapheneOS, etc) have the con of not being fully free. They require running proprietary firmware provided by the manufacturer. So the ideal option is Replicant, the only 100% free OS for mobile phones.

Once you’ve find a ROM for your device, you’ll have to flash it. This process seems to be difficult and complex if it’s your first time, but I can promise you that it isn’t that difficult. I won’t elaborate on this topic since there are thousands of guides online.


Rooting an Android device is considered an insecure practice. And it is, partially. Rooting in itself isn’t insecure, since it only gives you privileges, like the root user on GNU/Linux. The insecurity is that if a malicious attacker gets access to your device, root access might be dangerous to have.

Rooting is a really easy step if you’re already flashing a custom ROM. There are tons of guides, I won’t elaborate.

My favorite advantage is that I can use system wide adblockers that use the hosts file, like Adaway. This is much more efficient than VPN based adblockers, eg Blokada.

Other great app I use is AFWall+ which is a powerful firewall for Android. It uses directly the Linux kernel, so it needs root privileges.

You won’t be able to do the cool stuff on the Advanced section without root. Take it into account.

This guide has some parts that require root access. You may skip them if you decide to keep you phone unrooted. I’ll always try to give a non-root alternative.

Locked bootloader? Don’t want to flash a ROM?

Don’t worry. I have a little workaround for you. You may use the Universal Android Debloater tool which works on every device, rooted or not. The README provides instructions. This script is safe to use, it can’t brick your phone, especially if you don’t use the root mode. So don’t be afraid and improve your privacy now!

Installing software

You don’t have Google services anymore, so you can’t download apps from the Play Store like before. This is fantastic, since Google services constantly spy on you. Fuck off Google.

Instead of Google’s surveillance system, we’re going to use F-Droid which is a repository of free software for Android. You can download the client from their official site. Install the apk and start exploring their catalogue. Every app on F-Droid is free as in freedom. This makes F-Droid the most secure and privacy friendly app market.

If you ever need proprietary apps for whatever reason (avoid nonfree software at all costs if you value your privacy and/or freedom) the best way to get them is using Aurora Store which can download apps from the Play Store “anonymously”. But don’t install proprietary software yet, I’ll show how to do it in a way that maximizes your privacy on the next section.

Before installing any proprietary software, try to find an alternative on F-Droid. On the software recommendations section I’ve listed some useful apps for everyday use.

Isolating proprietary software

Is it possible to use proprietary software without compromising our privacy? I don’t think so. But sometimes we are forced to use proprietary garbage.

We’ll isolate proprietary software using Insular (or Shelter but it has slower development).

You just have to create a new profile using Insular and install the Aurora Store on it. I also recommend blacklisting apps on your firewall and routing the traffic through Tor using Orbot.

And again, please only use proprietary software when it is strictly necessary. For most apps you can find a libre replacement on F-Droid that will respect your freedom and your privacy.

You should consider taking a look at the Advanced section since it’ll help to restrict permissions and block some known tracking techniques present on non-free apps.

General software recommendations

In this section I’ll list general apps for the everyday use of your phone. If you want to discover great apps that will help you maintain your privacy, here you have my personal recommendations. Every app listed here is free software and I think that almost all of them are available on F-Droid.

Alternatives to Google’s apps

Since people are used to use Google’s apps, I thought that listing some alternatives will help in our degoogling journey.

Privacy issues and possible solutions

Hereafter I’ll start enumerating Android phones’ privacy issues and I’ll try to provide simple and effective solutions.

Ad and tracker blockers

There are a few ways of blocking ads and trackers on Android. We have three different methods, so I’ll try to do my best explaining each of them.

Using the hosts file

This method requires root, but I consider it the most effective and reliable option. Adaway is the best solution that uses this method. It has support for block lists, so you can search for block lists online and use your favorite ones. The other option using this method would be Hosts Editor which lets you edit your hosts file manually.

Using DNS

No root required. I consider this method the best for non rooted phones. It consists on changing your DNS servers to one which blocks known ads and trackers. You can change your DNS server on Android’s Internet configuraton. Even if you use other method I’d suggest changing your DNS server because the default might be Google’s, depending on the ROM you’re using, which is a huge privacy issue. You may use any of the following DNS servers: BlahDNS, DNSforge, LibreDNS or Quad9. If there’s an active VPN, it will override Android’s DNS setting. So this method will only work when there’s no VPN running.

Using a local VPN

No root required. I consider this the least recommendable method since it will consume more battery than the previous ones. It consists on an app creating a local VPN that will block ads and trackers while it’s active. The most popular choice is Blokada. You may also try PersonalDNSfilter. or DNS66. Note that these apps overrides DNS settings, so the DNS method above would only work when these are inactive.

Changing your DNS server

As I mentioned before, depending on the ROM that you use (if it’s the preinstalled one then this is for sure), you might be using Google’s DNS servers. Changing the DNS server on Android is really easy and it can be done on Android’s configuration. So it’s highly recommended to move your DNS away from Google.

Search for DNS on your phone’s configuration and you have to select the option of choosing your own one. Then you can enter whatever DNS server you wish. Some DNS providers block ads and malware for you, as explained on the adblocking section. You may use a DNS that blocks ads even if you use other adblock method.

My recommendations for DNS providers: - BlahDNS - dot-ch.blahdns.com - blocks ads - DNSforge - dnsforge.de - blocks ads - Applied Privacy - dot1.applied-privacy.net - doesn’t block ads - NixNet - adblock.any.dns.nixnet.xyz - blocks ads - LibreDNS - dot.libredns.gr - doesn’t block ads - Quad9 - dns.quad9.net - only blocks malware


The use of a firewall is essential if you want to protect your privacy. It restricts apps’ internet access so they won’t be able to send telemetry or any other privacy invasive stuff. If you follow this guide then you’ll be only installing free software, but just in case I always recommend having a Firewall, because why would I grant internet access my gallery app? Or to my music player? They don’t need them. And just in case I deny it (actually, I have a whitelist where I select manually which apps can access the internet).

I suggest using your firewall in whitelist mode and only grant access to the apps that absolutely need it. This way you’ll minimize the number of apps phoning home. If an app doesn’t require internet access, then leave it on the blacklist. Even if it is an app from F-Droid. Deny internet access, just in case. Being cautious doesn’t hurt.

PS. If you use AFWall+, be sure to enable the option “fix startup data leak” in the experimental settings. If it doesn’t let you enable, you have to change the startup directory path (above). This will prevent any leak on startup.


I don’t believe in VPNs. You’re basically blind trusting a provider that promises to not log you. When using a VPN, your entire traffic goes unencrypted through their servers. This is how VPNs works.

Instead of trusting a VPN provider, we will use the Tor network acting as a proxy for the apps that we select, eg our RSS feed reader or a mail client.


Well, this is a controversial topic. But after my tests and trying various browsers, I think that it is safe to say that Mull is one of the best options for Android.

Mull uses many features from the Tor Uplift Project and preferences from the Arkenfox’s user.js. This means that Mull is “a hardened Firefox” for Android. It could be said that Mull is the Librewolf for Android. It supports addons so you should install uBlock Origin and Decentraleyes for additional protection against trackers. I’d also recommend disabling JavaScript by default using UBO, but that is up to you.

Other recommended browser is the Tor browser which focus on anonymity. It may be too slow for a daily driver and that’s why I recommend Mull.

Search engine

I’ve already talked about search engines on the blog and I might write a more detailed article covering the topic on the future. Anyway, I’ll give you the few options that I recommend (in order of preference):

Microphone and camera

Proprietary apps tend to require absurd amounts of permissions. Those includes microphone and camera, which can record really sensitive identifiable data. Even if we don’t use proprietary apps, we still have some proprietary firmware (unless you’re a Replicant) so it may be a good idea to block both your camera and your microphone.

The idea solution would be to have hardware kill switches. But almost no device is made with these (because corps don’t want us to have any kind of privacy, oc). So we’ll have to use some apps as a workaround. I’ll give you a bunch of options:

If you don’t want to trust the software or you think that the spyware acts in a lower level, then you can use physical mic blockers if you have a 3.5 jack. Covering your camera with a piece of adhesive paper is easy and it should be done much more on phones. I don’t understand why people cover the camera on their laptops but not on their phones.

Apps that alert you when the cam/mic is in use

Being alerted when an app access your camera or your microphone is a good way to know if you’re being spied on. Various apps offer this:

Block ultrasonic cross-device trackers and Google Assistant

This application is also perfect to prevent ultrasonic cross-device tracking. It consists on embedding high-frequency tones that are inaudible to humans in advertisements, web pages, and even physical locations like retail stores. These ultrasound “beacons” emit their audio sequences with speakers, and almost any device microphone can detect the signal and know what ads you’ve seen

And a killer feature for those of you who haven’t flashed a degoogled ROM, it has the “Voice Assistant Jammer” which is aimed to substitute Google’s Assistant so it is completely neutralized, even if you can’t uninstall it.

Erase image metadata

Removing metadata of your images is really recommended if you’re going to share them through email, social media or by instant messaging. Metadata may contain sensitive information as location, date, etc.

With these apps you can remove metadata before sharing your images. - Scrambled Exif: removes metadata of your pictures before you share them, directly from the share button. - ImagePipe it’s a more complete solutions for those who need more than just sharing the app without exif data (metadata). It can reduce image size and it may also be used as an image editor.

Bluetooth mitigation

Bluetooth is a highly insecure protocol. But not only that, it is also a privacy nightmare. Like The New York Times have reported many stores use Bluetooth beacons to track the location of shoppers. Bluetooth beacons can track your location accurately from a range of inches to about 50 meters. They use very little energy, and they work well indoors, being able to track the location down to the centimeter. That has made them popular. The information they collect is sold to advertisers, who then use it to build data profiles.

In a nutshell, keeping Bluetooth enabled on your phone at all times makes you vulnerable to potential hacks, abuses, and privacy violations. The solution is simple: Don’t use it.

If you want to use it even after knowing that, I have an app for you that will help you to have Bluetooth disabled when you aren’t using it. It is Greentooth, an automatic bluetooth disabler. On top of the privacy benefits, it will also save you battery. Great, isn’t it?

Prevent apps from auto-starting on boot

If you’ve installed a lot of apps and your phone slows down, you may use Autostarts. But it isn’t here because it helps preventing your phone slowing down. This apps can prevent proprietary and/or non trusted apps from starting at boot. It will definitely will be useful while trying to be private.

It’ll let you manage which apps automatically start while startup and right after startup. Of course, it requires root access. But it’s a highly recommended tool, since it gives you more control over your device startup.

Freezing apps running in background

Along with preventing apps from auto-starting, SuperFreezZ can freeze apps running in background and which apps should auto-freeze after a certain time. Autostarts + SuperFreezZ gives us full control over when an app may or may not run.

Changing the default keyboard

I think that at this point it isn’t necessary to be said, but Google’s GBoard is a keylogger. Don’t use it, under any circumstance.

Instead install one of the great free as in freedom keyboards available on F-Droid: - OpenBoard - AnySoftKeyboard - FlorisBoard

Then set it as your keyboard on your configuration. Don’t forget to replace the default spell check with your keyboard’s too (It’s a different option on the config)

Remember that replacing GBoard with another proprietary keyboard doesn’t make any sense. So please install OpenBoard since it is a great keyboard that will respect your privacy. Anyway, you should blacklist it on your firewall, just in case.

Restricting access to your clipboard

Restricting access to the clipboard can’t be done by default on Android. This is a privacy issue, especially if you use proprietary apps. Even I that use exclusively free software I feel insecure and violated allowing every single app to read my clipboard.

However this can’t be easily fixed. Fortunately, root users will be able to restrict clipboard access easily using XPrivacyLua. You’ll need root + xposed. Then you’ll be able to restrict a great variety of permissions. For more information, go to the next section.

PS. The only apps that have clipboard access on my phone are my IM app, my browser and my note taking app. Restrict clipboard access to every app but the absolutely necessary.

ADVANCED: Limiting apps permissions in depth

It is possible to limit app permissions far more than using the default Android’s permission manager. Actually, it allows to manage granular app permissions not visible normally. You can disallow permission for obtaining other apps that you have installed, accessing your clipboard, seeing phone accounts and other cool stuff that maximizes our privacy and the control over our devices.

You’ll need root access and Xposed. Then you’ll be able to use XPrivacyLua for managing every app permissions far more in depth than using the permission manager. A killer feature for me is restricting access to the clipboard, since we constantly copy and past sensible information, like passwords and usernames, especially if we use a password manager, and by default any app can read your clipboard. XPrivacyLua fixes that.

And one of my favorite things of rooting is that root + xposed allow us to spoof the following values: Imei, Hardware ID, Mac Address, Mac Bssid, Mac Sside, Bluetooth Mac, Android Id, Sim serial ID, Sim sub IDs and mobile number.

The definitive way of sandboxing proprietary software

Using XPrivacyLua + Insular you can completely isolate proprietary or any non trusted apps. You should restrict every permission using XPrivacyLua but the essentials for the app.

In addition, using Autostarts and SuperFreezZ means that you’ve finally reached full control over what is executed on your phone.

And again, don’t install proprietary software under any circumstances. I’m only giving this advice because some people might not have other option.

Faraday bag

A Faraday bag is a copper foil-powered enclosure which blocks all radio signals, from Wifi and Bluetooth to the phone network and the GPS. Faraday bags play the role of a real “airplane mode”, assuring that no connection will be made from the device.

Of course that you won’t be able to receive phone calls, but that’s the purpose of using a Faraday bag: turning your phone into a useless paperweight.

Would I consider necessary a Faraday bag even after all the improvements and modifications we’ve done? Of course. I’ll explain you why.

In case you didn’t know it, these are the methods used for tracking your phone location. So even if we blocked Wifi based tracking, Bluetooth based tracking and GPS signal with software, it’s still possible to track us using cell towers triangulation.

This is the consequence of being connected to the Global System for Mobile Communications (GSM). If you have a phone service in order to receive calls and cellular data, it’s mandatory to be connected to the GSM. There’s nothing you can do about it. The only solution is using a Faraday bag when we truly don’t want to be tracked, because even with the phone powered off it may still be triangulated.

It’s almost magic, millions of euros worth of surveillance systems can be defeated whenever you put your electronic devices inside these little bags.


If you’ve completed this guide, you should be proud. Your “smartphone” is clean and private. Enjoy your freedom :)

Following the methodology I explained on the introduction every app listed on this guide is free as in freedom. If I’m mistaken please let me know immediately. I’ve checked everything twice and almost all apps are from F-Droid, so it should be OK.

If you have any doubt or suggestion, feel free to ask me. I’ll try to reply as soon as possible.

Thanks for reading

Tags: AndroidPrivacyDegoogle.