Ver código fonte

Note about battery optimisations on mobile

Bob Mottram 7 anos atrás
pai
commit
7fc6b4ab14
4 arquivos alterados com 70 adições e 58 exclusões
  1. 2
    0
      doc/EN/app_xmpp.org
  2. 3
    1
      doc/EN/mobile.org
  3. 30
    26
      website/EN/app_xmpp.html
  4. 35
    31
      website/EN/mobile.html

+ 2
- 0
doc/EN/app_xmpp.org Ver arquivo

@@ -98,3 +98,5 @@ Port:      5222
98 98
 #+END_SRC
99 99
 
100 100
 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.
101
+
102
+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.

+ 3
- 1
doc/EN/mobile.org Ver arquivo

@@ -77,13 +77,15 @@ The easiest way to access email is by installing the [[./app_mailpile.html][Mail
77 77
 * Services
78 78
 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]].
79 79
 
80
-* Battery preservation
80
+* Battery
81 81
 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.
82 82
 
83 83
 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.
84 84
 
85 85
 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.
86 86
 
87
+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.
88
+
87 89
 * Blocking bad domains
88 90
 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.
89 91
 

+ 30
- 26
website/EN/app_xmpp.html Ver arquivo

@@ -3,10 +3,10 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2017-05-16 Tue 21:11 -->
6
+<!-- 2018-03-09 Fri 10:12 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-<title></title>
9
+<title>&lrm;</title>
10 10
 <meta name="generator" content="Org mode" />
11 11
 <meta name="author" content="Bob Mottram" />
12 12
 <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
260 260
 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>.
261 261
 </p>
262 262
 
263
-<div id="outline-container-orgf44a6c4" class="outline-2">
264
-<h2 id="orgf44a6c4">Using with Profanity</h2>
265
-<div class="outline-text-2" id="text-orgf44a6c4">
263
+<div id="outline-container-org78e1a42" class="outline-2">
264
+<h2 id="org78e1a42">Using with Profanity</h2>
265
+<div class="outline-text-2" id="text-org78e1a42">
266 266
 <p>
267 267
 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.
268 268
 </p>
269 269
 </div>
270 270
 </div>
271
-<div id="outline-container-org5033aae" class="outline-2">
272
-<h2 id="org5033aae">Using with Gajim</h2>
273
-<div class="outline-text-2" id="text-org5033aae">
271
+<div id="outline-container-org9d9c5f3" class="outline-2">
272
+<h2 id="org9d9c5f3">Using with Gajim</h2>
273
+<div class="outline-text-2" id="text-org9d9c5f3">
274 274
 <p>
275 275
 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:
276 276
 </p>
277 277
 
278 278
 <div class="org-src-container">
279
-<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>
279
+<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>
280 280
 sudo apt-get update
281 281
 sudo apt-get -y install gajim-dev-keyring
282 282
 sudo apt-get -y install git tor python-dev python-pip gajim-nightly
@@ -284,7 +284,7 @@ mkdir ~/.local/share/gajim/plugins -p
284 284
 <span class="org-builtin">cd</span> ~/.local/share/gajim/plugins
285 285
 git clone https://github.com/omemo/gajim-omemo
286 286
 sudo pip install <span class="org-variable-name">protobuf</span>==2.6.1, python-axolotl==0.1.35
287
-</code></pre>
287
+</pre>
288 288
 </div>
289 289
 
290 290
 <p>
@@ -308,8 +308,8 @@ If you wish to make backups of the OMEMO keys then they can be found within:
308 308
 </p>
309 309
 
310 310
 <div class="org-src-container">
311
-<pre><code class="src src-bash">~/.local/share/gajim
312
-</code></pre>
311
+<pre class="src src-bash">~/.local/share/gajim
312
+</pre>
313 313
 </div>
314 314
 
315 315
 <p>
@@ -318,9 +318,9 @@ If you wish to use OpenPGP to encrypt your messages then go to <b>Edit/Accounts<
318 318
 </div>
319 319
 </div>
320 320
 
321
-<div id="outline-container-orga1b2804" class="outline-2">
322
-<h2 id="orga1b2804">Using with Jitsi</h2>
323
-<div class="outline-text-2" id="text-orga1b2804">
321
+<div id="outline-container-org1f4ee20" class="outline-2">
322
+<h2 id="org1f4ee20">Using with Jitsi</h2>
323
+<div class="outline-text-2" id="text-org1f4ee20">
324 324
 <p>
325 325
 Jitsi can be downloaded from <a href="https://jitsi.org">https://jitsi.org</a>
326 326
 </p>
@@ -347,9 +347,9 @@ You can also <a href="https://www.youtube.com/watch?v=vgx7VSrDGjk">see this vide
347 347
 </div>
348 348
 </div>
349 349
 
350
-<div id="outline-container-org9e45966" class="outline-2">
351
-<h2 id="org9e45966">Using with Ubuntu</h2>
352
-<div class="outline-text-2" id="text-org9e45966">
350
+<div id="outline-container-org08d3c01" class="outline-2">
351
+<h2 id="org08d3c01">Using with Ubuntu</h2>
352
+<div class="outline-text-2" id="text-org08d3c01">
353 353
 <p>
354 354
 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.
355 355
 </p>
@@ -368,18 +368,18 @@ Click on <b>Advanced</b> and make sure that <b>Encryption required</b> and <b>Ig
368 368
 </div>
369 369
 </div>
370 370
 
371
-<div id="outline-container-orgebb228c" class="outline-2">
372
-<h2 id="orgebb228c">Using Tor Messenger</h2>
373
-<div class="outline-text-2" id="text-orgebb228c">
371
+<div id="outline-container-org33181e4" class="outline-2">
372
+<h2 id="org33181e4">Using Tor Messenger</h2>
373
+<div class="outline-text-2" id="text-org33181e4">
374 374
 <p>
375 375
 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.
376 376
 </p>
377 377
 </div>
378 378
 </div>
379 379
 
380
-<div id="outline-container-org1a2d0c5" class="outline-2">
381
-<h2 id="org1a2d0c5">Using with Android/Conversations</h2>
382
-<div class="outline-text-2" id="text-org1a2d0c5">
380
+<div id="outline-container-orgb4553fb" class="outline-2">
381
+<h2 id="orgb4553fb">Using with Android/Conversations</h2>
382
+<div class="outline-text-2" id="text-orgb4553fb">
383 383
 <p>
384 384
 Install <a href="https://f-droid.org/">F-Droid</a>
385 385
 </p>
@@ -401,16 +401,20 @@ From the menu select <b>Manage accounts</b> and add a new account.
401 401
 </p>
402 402
 
403 403
 <div class="org-src-container">
404
-<pre><code class="src src-bash">Jabber ID: myusername@mydomain
404
+<pre class="src src-bash">Jabber ID: myusername@mydomain
405 405
 Password:  your XMPP password
406 406
 Hostname:  mydomain (preferably your xmpp onion address)
407 407
 Port:      5222
408
-</code></pre>
408
+</pre>
409 409
 </div>
410 410
 
411 411
 <p>
412 412
 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.
413 413
 </p>
414
+
415
+<p>
416
+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.
417
+</p>
414 418
 </div>
415 419
 </div>
416 420
 </div>

+ 35
- 31
website/EN/mobile.html Ver arquivo

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2017-12-20 Wed 14:32 -->
6
+<!-- 2018-03-09 Fri 10:15 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title>&lrm;</title>
@@ -277,9 +277,9 @@ Mobile phones are insecure devices, but they're regarded as being so essential t
277 277
 </table>
278 278
 </center>
279 279
 
280
-<div id="outline-container-orgd7b8f2c" class="outline-2">
281
-<h2 id="orgd7b8f2c">Open</h2>
282
-<div class="outline-text-2" id="text-orgd7b8f2c">
280
+<div id="outline-container-org9f13a70" class="outline-2">
281
+<h2 id="org9f13a70">Open</h2>
282
+<div class="outline-text-2" id="text-org9f13a70">
283 283
 <p>
284 284
 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.
285 285
 </p>
@@ -290,45 +290,45 @@ Why is it so important to run Linux on a phone? Aren't <i>iThings</i> supposed t
290 290
 </div>
291 291
 </div>
292 292
 
293
-<div id="outline-container-org050f512" class="outline-2">
294
-<h2 id="org050f512">Remove</h2>
295
-<div class="outline-text-2" id="text-org050f512">
293
+<div id="outline-container-orge21bf2b" class="outline-2">
294
+<h2 id="orge21bf2b">Remove</h2>
295
+<div class="outline-text-2" id="text-orge21bf2b">
296 296
 <p>
297 297
 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.
298 298
 </p>
299 299
 </div>
300 300
 </div>
301 301
 
302
-<div id="outline-container-org29f4fb3" class="outline-2">
303
-<h2 id="org29f4fb3">Encrypt</h2>
304
-<div class="outline-text-2" id="text-org29f4fb3">
302
+<div id="outline-container-org704e371" class="outline-2">
303
+<h2 id="org704e371">Encrypt</h2>
304
+<div class="outline-text-2" id="text-org704e371">
305 305
 <p>
306 306
 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.
307 307
 </p>
308 308
 </div>
309 309
 </div>
310 310
 
311
-<div id="outline-container-orgd8e9683" class="outline-2">
312
-<h2 id="orgd8e9683">Apps</h2>
313
-<div class="outline-text-2" id="text-orgd8e9683">
311
+<div id="outline-container-org1515c04" class="outline-2">
312
+<h2 id="org1515c04">Apps</h2>
313
+<div class="outline-text-2" id="text-org1515c04">
314 314
 <p>
315 315
 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.
316 316
 </p>
317 317
 </div>
318 318
 </div>
319 319
 
320
-<div id="outline-container-orgcf9fd9c" class="outline-2">
321
-<h2 id="orgcf9fd9c">Lock</h2>
322
-<div class="outline-text-2" id="text-orgcf9fd9c">
320
+<div id="outline-container-orga4073f2" class="outline-2">
321
+<h2 id="orga4073f2">Lock</h2>
322
+<div class="outline-text-2" id="text-orga4073f2">
323 323
 <p>
324 324
 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.
325 325
 </p>
326 326
 </div>
327 327
 </div>
328 328
 
329
-<div id="outline-container-orgae1898b" class="outline-2">
330
-<h2 id="orgae1898b">Onion</h2>
331
-<div class="outline-text-2" id="text-orgae1898b">
329
+<div id="outline-container-org69f0496" class="outline-2">
330
+<h2 id="org69f0496">Onion</h2>
331
+<div class="outline-text-2" id="text-org69f0496">
332 332
 <p>
333 333
 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.
334 334
 </p>
@@ -339,26 +339,26 @@ In F-droid under the <b>repositories</b> menu you can enable the <b>guardian pro
339 339
 </div>
340 340
 </div>
341 341
 
342
-<div id="outline-container-org6b540e5" class="outline-2">
343
-<h2 id="org6b540e5">Email</h2>
344
-<div class="outline-text-2" id="text-org6b540e5">
342
+<div id="outline-container-org19a1c3d" class="outline-2">
343
+<h2 id="org19a1c3d">Email</h2>
344
+<div class="outline-text-2" id="text-org19a1c3d">
345 345
 <p>
346 346
 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.
347 347
 </p>
348 348
 </div>
349 349
 </div>
350
-<div id="outline-container-org62a2756" class="outline-2">
351
-<h2 id="org62a2756">Services</h2>
352
-<div class="outline-text-2" id="text-org62a2756">
350
+<div id="outline-container-orgafbe046" class="outline-2">
351
+<h2 id="orgafbe046">Services</h2>
352
+<div class="outline-text-2" id="text-orgafbe046">
353 353
 <p>
354 354
 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>.
355 355
 </p>
356 356
 </div>
357 357
 </div>
358 358
 
359
-<div id="outline-container-org59a272b" class="outline-2">
360
-<h2 id="org59a272b">Battery preservation</h2>
361
-<div class="outline-text-2" id="text-org59a272b">
359
+<div id="outline-container-org810b77b" class="outline-2">
360
+<h2 id="org810b77b">Battery</h2>
361
+<div class="outline-text-2" id="text-org810b77b">
362 362
 <p>
363 363
 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.
364 364
 </p>
@@ -370,12 +370,16 @@ If you have Syncthing installed then change the settings so that it only syncs w
370 370
 <p>
371 371
 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.
372 372
 </p>
373
+
374
+<p>
375
+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.
376
+</p>
373 377
 </div>
374 378
 </div>
375 379
 
376
-<div id="outline-container-org56572e8" class="outline-2">
377
-<h2 id="org56572e8">Blocking bad domains</h2>
378
-<div class="outline-text-2" id="text-org56572e8">
380
+<div id="outline-container-org5626308" class="outline-2">
381
+<h2 id="org5626308">Blocking bad domains</h2>
382
+<div class="outline-text-2" id="text-org5626308">
379 383
 <p>
380 384
 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.
381 385
 </p>