Note about battery optimisations on mobile

This commit is contained in:
Bob Mottram 2018-03-09 10:16:15 +00:00
parent 801776b795
commit 7fc6b4ab14
4 changed files with 70 additions and 58 deletions

View File

@ -98,3 +98,5 @@ Port: 5222
#+END_SRC
Then select *Next*. When chatting you can use the lock icon to encrypt your conversation. OMEMO is the recommended type of encryption. It's also going through Tor, so passive surveillance of the metadata should not be easy for an adversary.
It's also recommended to disable battery optimisations for Conversations and Orbot. If you don't do that then you may have trouble receiving messages or some partts of the protocol may break. That can be done by going to *Settings*, selecting *Battery* then opening the menu (top right) and selecting *Battery optimisations* then selecting *Not optimised* and *All apps*, then finally choosing Conversations and Orbot not to be optimised.

View File

@ -77,13 +77,15 @@ The easiest way to access email is by installing the [[./app_mailpile.html][Mail
* Services
For information on configuring various apps to work with Freedombone see the [[file:./usage.html][usage section]]. Also see advice on chat apps in the [[file:./faq.html][FAQ]].
* Battery preservation
* Battery
Even with free software apps it's not difficult to get into a situation where your battery doesn't last for long. To maximize battery life access RSS feeds via the onion-based mobile reader within a Tor-compatible browser and not from a locally installed RSS app.
If you have Syncthing installed then change the settings so that it only syncs when charging and when on wifi. Avoid any apps which might be continuously polling and preventing the device from going into sleep mode when it's not used.
If you're using the Riot mobile app to access a Matrix homeserver then you can significantly improve battery performance by going to the settings and changing *Sync request timeout* to 30 seconds and *Delay between two sync requests* to 600 seconds.
It's also recommended to disable battery optimisations for Conversations and Orbot. If you don't do that then you may have trouble receiving messages or some partts of the protocol may break. That can be done by going to *Settings*, selecting *Battery* then opening the menu (top right) and selecting *Battery optimisations* then selecting *Not optimised* and *All apps*, then finally choosing Conversations and Orbot not to be optimised.
* Blocking bad domains
You can block known bad domains by editing the */system/etc/hosts* file on your device. It is possible to use extensive ad-blocking hosts files used by other ad-blocking systems such as pi-hole, but merely blocking Facebook and Google Analytics will protect you against much of the corporate surveillance which goes on. Even if you don't have a Facebook account this may still be useful since they will still try to create a "ghost profile" of you, so the less data they have the better.

View File

@ -3,10 +3,10 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2017-05-16 Tue 21:11 -->
<!-- 2018-03-09 Fri 10:12 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<title>&lrm;</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Bob Mottram" />
<meta name="description" content="How to use XMPP/Jabber"
@ -260,23 +260,23 @@ With regard to chat apps you might have read a lot of stuff about <i>end-to-end
A well written article on the state of XMPP and how it compares to other chat protocols <a href="https://gultsch.de/xmpp_2016.html">can be found here</a>.
</p>
<div id="outline-container-orgf44a6c4" class="outline-2">
<h2 id="orgf44a6c4">Using with Profanity</h2>
<div class="outline-text-2" id="text-orgf44a6c4">
<div id="outline-container-org78e1a42" class="outline-2">
<h2 id="org78e1a42">Using with Profanity</h2>
<div class="outline-text-2" id="text-org78e1a42">
<p>
You can install the <a href="./app_profanity.html">profanity app</a> via <b>Add/remove apps</b> on the <b>Administrator control panel</b>. Logging in and then selecting <b>Run App</b> and <b>profanity</b> will start it.
</p>
</div>
</div>
<div id="outline-container-org5033aae" class="outline-2">
<h2 id="org5033aae">Using with Gajim</h2>
<div class="outline-text-2" id="text-org5033aae">
<div id="outline-container-org9d9c5f3" class="outline-2">
<h2 id="org9d9c5f3">Using with Gajim</h2>
<div class="outline-text-2" id="text-org9d9c5f3">
<p>
In mid 2016 <a href="https://gajim.org/">Gajim</a> became the first desktop XMPP client to support the <a href="https://en.wikipedia.org/wiki/OMEMO">OMEMO end-to-end security standard</a>, which is superior to the more traditional <a href="https://en.wikipedia.org/wiki/Off-the-Record_Messaging">OTR</a> since it also includes multi-user chat and the ratcheting mechanism pioneered by Open Whisper Systems. To install it:
</p>
<div class="org-src-container">
<pre><code class="src src-bash">su -c <span class="org-string">'echo "deb ftp://ftp.gajim.org/debian unstable main" &gt; /etc/apt/sources.list.d/gajim.list'</span>
<pre class="src src-bash">su -c <span class="org-string">'echo "deb ftp://ftp.gajim.org/debian unstable main" &gt; /etc/apt/sources.list.d/gajim.list'</span>
sudo apt-get update
sudo apt-get -y install gajim-dev-keyring
sudo apt-get -y install git tor python-dev python-pip gajim-nightly
@ -284,7 +284,7 @@ mkdir ~/.local/share/gajim/plugins -p
<span class="org-builtin">cd</span> ~/.local/share/gajim/plugins
git clone https://github.com/omemo/gajim-omemo
sudo pip install <span class="org-variable-name">protobuf</span>==2.6.1, python-axolotl==0.1.35
</code></pre>
</pre>
</div>
<p>
@ -308,8 +308,8 @@ If you wish to make backups of the OMEMO keys then they can be found within:
</p>
<div class="org-src-container">
<pre><code class="src src-bash">~/.local/share/gajim
</code></pre>
<pre class="src src-bash">~/.local/share/gajim
</pre>
</div>
<p>
@ -318,9 +318,9 @@ If you wish to use OpenPGP to encrypt your messages then go to <b>Edit/Accounts<
</div>
</div>
<div id="outline-container-orga1b2804" class="outline-2">
<h2 id="orga1b2804">Using with Jitsi</h2>
<div class="outline-text-2" id="text-orga1b2804">
<div id="outline-container-org1f4ee20" class="outline-2">
<h2 id="org1f4ee20">Using with Jitsi</h2>
<div class="outline-text-2" id="text-org1f4ee20">
<p>
Jitsi can be downloaded from <a href="https://jitsi.org">https://jitsi.org</a>
</p>
@ -347,9 +347,9 @@ You can also <a href="https://www.youtube.com/watch?v=vgx7VSrDGjk">see this vide
</div>
</div>
<div id="outline-container-org9e45966" class="outline-2">
<h2 id="org9e45966">Using with Ubuntu</h2>
<div class="outline-text-2" id="text-org9e45966">
<div id="outline-container-org08d3c01" class="outline-2">
<h2 id="org08d3c01">Using with Ubuntu</h2>
<div class="outline-text-2" id="text-org08d3c01">
<p>
The default XMPP client in Ubuntu is Empathy. Using Empathy isn't as secure as using Jitsi, since it doesn't include the <i>off the record</i> feature, but since it's the default it's what many users will have easy access to.
</p>
@ -368,18 +368,18 @@ Click on <b>Advanced</b> and make sure that <b>Encryption required</b> and <b>Ig
</div>
</div>
<div id="outline-container-orgebb228c" class="outline-2">
<h2 id="orgebb228c">Using Tor Messenger</h2>
<div class="outline-text-2" id="text-orgebb228c">
<div id="outline-container-org33181e4" class="outline-2">
<h2 id="org33181e4">Using Tor Messenger</h2>
<div class="outline-text-2" id="text-org33181e4">
<p>
Tor Messenger is a messaging client which supports XMPP, and its onion routing enables you to protect the metadata of chat interactions to some extent by making it difficult for an adversary to know which server is talking to which. You can download Tor Messenger from <a href="https://torproject.org">torproject.org</a> and the setup is pretty simple.
</p>
</div>
</div>
<div id="outline-container-org1a2d0c5" class="outline-2">
<h2 id="org1a2d0c5">Using with Android/Conversations</h2>
<div class="outline-text-2" id="text-org1a2d0c5">
<div id="outline-container-orgb4553fb" class="outline-2">
<h2 id="orgb4553fb">Using with Android/Conversations</h2>
<div class="outline-text-2" id="text-orgb4553fb">
<p>
Install <a href="https://f-droid.org/">F-Droid</a>
</p>
@ -401,16 +401,20 @@ From the menu select <b>Manage accounts</b> and add a new account.
</p>
<div class="org-src-container">
<pre><code class="src src-bash">Jabber ID: myusername@mydomain
<pre class="src src-bash">Jabber ID: myusername@mydomain
Password: your XMPP password
Hostname: mydomain (preferably your xmpp onion address)
Port: 5222
</code></pre>
</pre>
</div>
<p>
Then select <b>Next</b>. When chatting you can use the lock icon to encrypt your conversation. OMEMO is the recommended type of encryption. It's also going through Tor, so passive surveillance of the metadata should not be easy for an adversary.
</p>
<p>
It's also recommended to disable battery optimisations for Conversations and Orbot. That can be done by going to <b>Settings</b>, selecting <b>Battery</b> then opening the menu (top right) and selecting <b>Battery optimisations</b> then selecting <b>Not optimised</b> and <b>All apps</b>, then finally choosing Conversations and Orbot not to be optimised.
</p>
</div>
</div>
</div>

View File

@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2017-12-20 Wed 14:32 -->
<!-- 2018-03-09 Fri 10:15 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>&lrm;</title>
@ -277,9 +277,9 @@ Mobile phones are insecure devices, but they're regarded as being so essential t
</table>
</center>
<div id="outline-container-orgd7b8f2c" class="outline-2">
<h2 id="orgd7b8f2c">Open</h2>
<div class="outline-text-2" id="text-orgd7b8f2c">
<div id="outline-container-org9f13a70" class="outline-2">
<h2 id="org9f13a70">Open</h2>
<div class="outline-text-2" id="text-org9f13a70">
<p>
Use a Linux based phone operating system. Typically this will mean Android, but could also mean LineageOS or Replicant. LineageOS is the most preferable, because you can usually get an up to date image with a recent kernel which will give you better security against exploits. If you're buying a phone then look for a model which is supported by LineageOS. Replicant is the most free (as in freedom) but only runs on a small number of phone models. If you have a phone which runs a full GNU/Linux system then that's fantastic, and you can probably use it in much the same way as a desktop system and the rest of the advice on this page won't apply. If you don't have a phone capable of running a Linux based operating system then consider selling, giving away or bartering your existing one.
</p>
@ -290,45 +290,45 @@ Why is it so important to run Linux on a phone? Aren't <i>iThings</i> supposed t
</div>
</div>
<div id="outline-container-org050f512" class="outline-2">
<h2 id="org050f512">Remove</h2>
<div class="outline-text-2" id="text-org050f512">
<div id="outline-container-orge21bf2b" class="outline-2">
<h2 id="orge21bf2b">Remove</h2>
<div class="outline-text-2" id="text-orge21bf2b">
<p>
So maybe you're running Android and the phone came with some apps already installed. Almost certainly they'll be proprietary. Go to Settings/Apps and then uninstall or deactivate any apps which you really don't need. Mostly preinstalled apps are intended to send your data to companies who will then sell it to advertisers or governments under the business model of <i>surveillance capital</i>. It's not a good idea to get caught up in that, and to avoid becoming addicted to apps which are surveilling you without consent or installing spyware in the background without your knowledge.
</p>
</div>
</div>
<div id="outline-container-org29f4fb3" class="outline-2">
<h2 id="org29f4fb3">Encrypt</h2>
<div class="outline-text-2" id="text-org29f4fb3">
<div id="outline-container-org704e371" class="outline-2">
<h2 id="org704e371">Encrypt</h2>
<div class="outline-text-2" id="text-org704e371">
<p>
Encrypt your phone. This can usually be done via <b>Settings/Security</b> and you may need to fully charge the phone first. Encryption means that if you lose your phone or it gets stolen then there is less chance that anyone who picks it up will get access to your data, photos and so on.
</p>
</div>
</div>
<div id="outline-container-orgd8e9683" class="outline-2">
<h2 id="orgd8e9683">Apps</h2>
<div class="outline-text-2" id="text-orgd8e9683">
<div id="outline-container-org1515c04" class="outline-2">
<h2 id="org1515c04">Apps</h2>
<div class="outline-text-2" id="text-org1515c04">
<p>
Installing <b>F-droid</b> and only adding any new apps via F-droid will ensure that you are always using free and open source software. Open source is not a panacea, since bugs can and do still occur, but it will help you to avoid the worst security and privacy pitfalls.
</p>
</div>
</div>
<div id="outline-container-orgcf9fd9c" class="outline-2">
<h2 id="orgcf9fd9c">Lock</h2>
<div class="outline-text-2" id="text-orgcf9fd9c">
<div id="outline-container-orga4073f2" class="outline-2">
<h2 id="orga4073f2">Lock</h2>
<div class="outline-text-2" id="text-orga4073f2">
<p>
Add a lock screen, preferably with a password which is not easy for other people to guess or for quicker access with a PIN number. Install an app called <b>Locker</b>, activate it and set the maximum number of password guesses to ten (or whatever you feel comfortable with). If bad people get hold of your phone then they may try to brute force your lock screen password or PIN (i.e. automatically trying millions of common word and number combinations) and the locker app will prevent them from succeeding by resetting the phone back to its factory default condition and wiping the data.
</p>
</div>
</div>
<div id="outline-container-orgae1898b" class="outline-2">
<h2 id="orgae1898b">Onion</h2>
<div class="outline-text-2" id="text-orgae1898b">
<div id="outline-container-org69f0496" class="outline-2">
<h2 id="org69f0496">Onion</h2>
<div class="outline-text-2" id="text-org69f0496">
<p>
Both governments and corporations want to compile matadata dossiers about you. Who you communicated with, when and how often. They want this so that they can data mine, simulate, predict and then ultimately influence (sometimes also called "nudge") your actions and preferences in the directions they prefer. By routing your connections through a number of proxy servers (Tor routers) you can make it perhaps not <i>theoretically</i> impossible but at least <i>very hard</i> for them to have a complete and accurate list of who your friends are, your religion, politics, likely health issues, sexual orientation and what news sites or books you read.
</p>
@ -339,26 +339,26 @@ In F-droid under the <b>repositories</b> menu you can enable the <b>guardian pro
</div>
</div>
<div id="outline-container-org6b540e5" class="outline-2">
<h2 id="org6b540e5">Email</h2>
<div class="outline-text-2" id="text-org6b540e5">
<div id="outline-container-org19a1c3d" class="outline-2">
<h2 id="org19a1c3d">Email</h2>
<div class="outline-text-2" id="text-org19a1c3d">
<p>
The easiest way to access email is by installing the <a href="./app_mailpile.html">Mailpile</a> app. This keeps your GPG keys off of possibly insecure mobile devices but still enables encrypted email communications in an easy way. You can use K9 mail if you prefer, but that will require installing OpenKeychain and having your GPG keys on the device, which is a lot more risky.
</p>
</div>
</div>
<div id="outline-container-org62a2756" class="outline-2">
<h2 id="org62a2756">Services</h2>
<div class="outline-text-2" id="text-org62a2756">
<div id="outline-container-orgafbe046" class="outline-2">
<h2 id="orgafbe046">Services</h2>
<div class="outline-text-2" id="text-orgafbe046">
<p>
For information on configuring various apps to work with Freedombone see the <a href="./usage.html">usage section</a>. Also see advice on chat apps in the <a href="./faq.html">FAQ</a>.
</p>
</div>
</div>
<div id="outline-container-org59a272b" class="outline-2">
<h2 id="org59a272b">Battery preservation</h2>
<div class="outline-text-2" id="text-org59a272b">
<div id="outline-container-org810b77b" class="outline-2">
<h2 id="org810b77b">Battery</h2>
<div class="outline-text-2" id="text-org810b77b">
<p>
Even with free software apps it's not difficult to get into a situation where your battery doesn't last for long. To maximize battery life access RSS feeds via the onion-based mobile reader within a Tor-compatible browser and not from a locally installed RSS app.
</p>
@ -370,12 +370,16 @@ If you have Syncthing installed then change the settings so that it only syncs w
<p>
If you're using the Riot mobile app to access a Matrix homeserver then you can significantly improve battery performance by going to the settings and changing <b>Sync request timeout</b> to 30 seconds and <b>Delay between two sync requests</b> to 600 seconds.
</p>
<p>
It's also recommended to disable battery optimisations for Conversations and Orbot. If you don't do that then you may have trouble receiving messages or some partts of the protocol may break. That can be done by going to <b>Settings</b>, selecting <b>Battery</b> then opening the menu (top right) and selecting <b>Battery optimisations</b> then selecting <b>Not optimised</b> and <b>All apps</b>, then finally choosing Conversations and Orbot not to be optimised.
</p>
</div>
</div>
<div id="outline-container-org56572e8" class="outline-2">
<h2 id="org56572e8">Blocking bad domains</h2>
<div class="outline-text-2" id="text-org56572e8">
<div id="outline-container-org5626308" class="outline-2">
<h2 id="org5626308">Blocking bad domains</h2>
<div class="outline-text-2" id="text-org5626308">
<p>
You can block known bad domains by editing the <b>/system/etc/hosts</b> file on your device. It is possible to use extensive ad-blocking hosts files used by other ad-blocking systems such as pi-hole, but merely blocking Facebook and Google Analytics will protect you against much of the corporate surveillance which goes on. Even if you don't have a Facebook account this may still be useful since they will still try to create a "ghost profile" of you, so the less data they have the better.
</p>