Преглед на файлове

Advice on blocking Facebook

Bob Mottram преди 7 години
родител
ревизия
8eb564d265
променени са 2 файла, в които са добавени 169 реда и са изтрити 34 реда
  1. 57
    2
      doc/EN/mobile.org
  2. 112
    32
      website/EN/mobile.html

+ 57
- 2
doc/EN/mobile.org Целия файл

24
   <tr>
24
   <tr>
25
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
25
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
26
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
26
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
27
-    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
28
   </tr>
27
   </tr>
29
   <tr>
28
   <tr>
29
+    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
30
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
30
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
31
+  </tr>
32
+  <tr>
31
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
33
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
32
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
34
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
33
   </tr>
35
   </tr>
34
   <tr>
36
   <tr>
35
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
37
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
36
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
38
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
39
+  </tr>
40
+  <tr>
37
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
41
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
42
+    <td><center><b><h3>Block</h3></b><br>Prevent access to know bad domains</center></td>
38
   </tr>
43
   </tr>
39
 </table>
44
 </table>
40
 </center>
45
 </center>
41
 #+END_EXPORT
46
 #+END_EXPORT
42
 
47
 
43
 * Open
48
 * Open
44
-Use a Linux based phone operating system. Typically this will mean Android, but could also mean Cyanogenmod or Replicant. Cyanogen 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 Cyanogenmod. 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.
49
+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.
45
 
50
 
46
 Why is it so important to run Linux on a phone? Aren't /iThings/ supposed to be highly secure? Isn't the CEO of Apple a good guy, fighting for freedom against the evil Feds? In the end it comes down to the fact that /if the source code for the device cannot be independently audited to check for backdoors, bugs and so on, then it can't actually be trusted/. No matter how well-meaning or brave people running companies may be, local laws may force them to add backdoors into their systems or to give away the encryption keys (Lavabit) or they may also do that purely for business reasons such as being able to sell you to their advertising customers and so on.
51
 Why is it so important to run Linux on a phone? Aren't /iThings/ supposed to be highly secure? Isn't the CEO of Apple a good guy, fighting for freedom against the evil Feds? In the end it comes down to the fact that /if the source code for the device cannot be independently audited to check for backdoors, bugs and so on, then it can't actually be trusted/. No matter how well-meaning or brave people running companies may be, local laws may force them to add backdoors into their systems or to give away the encryption keys (Lavabit) or they may also do that purely for business reasons such as being able to sell you to their advertising customers and so on.
47
 
52
 
82
 Return to the <a href="index.html">home page</a>
87
 Return to the <a href="index.html">home page</a>
83
 </center>
88
 </center>
84
 #+END_EXPORT
89
 #+END_EXPORT
90
+
91
+* Blocking bad domains
92
+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 defend 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.
93
+
94
+On the device enable *Developer Options* by going to *Settings* then *About* then pressing on *Build number* a few times.
95
+
96
+Go to *Settings* then *Developer Options* then set *Root access* to *ADB only* and enable *Android debugging*.
97
+
98
+On your system (not the device) install the *android-tools* package. For example, on Arch/Parabola:
99
+
100
+#+begin_src bash
101
+sudo pacman -S android-tools
102
+#+end_src
103
+
104
+Connect the device to your system via a USB cable, then:
105
+
106
+#+begin_src bash
107
+adb root
108
+adb remount
109
+adb pull /system/etc/hosts
110
+#+end_src
111
+
112
+Now edit the hosts file which was pulled and append:
113
+
114
+#+begin_src bash
115
+127.0.0.1       www.facebook.com
116
+127.0.0.1       facebook.com
117
+127.0.0.1       static.ak.fbcdn.net
118
+127.0.0.1       www.static.ak.fbcdn.net
119
+127.0.0.1       login.facebook.com
120
+127.0.0.1       www.login.facebook.com
121
+127.0.0.1       fbcdn.net
122
+127.0.0.1       www.fbcdn.net
123
+127.0.0.1       fbcdn.com
124
+127.0.0.1       www.fbcdn.com
125
+127.0.0.1       static.ak.connect.facebook.com
126
+127.0.0.1       www.static.ak.connect.facebook.com
127
+
128
+127.0.0.1       www.google-analytics.com
129
+127.0.0.1       google-analytics.com
130
+127.0.0.1       ssl.google-analytics.com
131
+#+end_src
132
+
133
+Then upload the hosts file back again with:
134
+
135
+#+begin_src bash
136
+adb push hosts /system/etc/hosts
137
+#+end_src
138
+
139
+Once that's done you may want to set *Root access* on the device back to *Disabled* and turn *Android debugging* off.

+ 112
- 32
website/EN/mobile.html Целия файл

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2016-12-02 Fri 22:24 -->
6
+<!-- 2017-09-22 Fri 13:09 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
-<title></title>
9
+<title>&lrm;</title>
10
 <meta name="generator" content="Org mode" />
10
 <meta name="generator" content="Org mode" />
11
 <meta name="author" content="Bob Mottram" />
11
 <meta name="author" content="Bob Mottram" />
12
 <meta name="description" content="Turn the Beaglebone Black into a personal communications server"
12
 <meta name="description" content="Turn the Beaglebone Black into a personal communications server"
71
   pre.src-fortran:before { content: 'Fortran'; }
71
   pre.src-fortran:before { content: 'Fortran'; }
72
   pre.src-gnuplot:before { content: 'gnuplot'; }
72
   pre.src-gnuplot:before { content: 'gnuplot'; }
73
   pre.src-haskell:before { content: 'Haskell'; }
73
   pre.src-haskell:before { content: 'Haskell'; }
74
+  pre.src-hledger:before { content: 'hledger'; }
74
   pre.src-java:before { content: 'Java'; }
75
   pre.src-java:before { content: 'Java'; }
75
   pre.src-js:before { content: 'Javascript'; }
76
   pre.src-js:before { content: 'Javascript'; }
76
   pre.src-latex:before { content: 'LaTeX'; }
77
   pre.src-latex:before { content: 'LaTeX'; }
188
 @licstart  The following is the entire license notice for the
189
 @licstart  The following is the entire license notice for the
189
 JavaScript code in this tag.
190
 JavaScript code in this tag.
190
 
191
 
191
-Copyright (C) 2012-2013 Free Software Foundation, Inc.
192
+Copyright (C) 2012-2017 Free Software Foundation, Inc.
192
 
193
 
193
 The JavaScript code in this tag is free software: you can
194
 The JavaScript code in this tag is free software: you can
194
 redistribute it and/or modify it under the terms of the GNU
195
 redistribute it and/or modify it under the terms of the GNU
256
   <tr>
257
   <tr>
257
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
258
     <td><center><b><h3>Open</h3></b><br>Use a free and open source operating system. Open means more trustworthy</center></td>
258
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
259
     <td><center><b><h3>Remove</h3></b><br>If there are any proprietary apps then remove or deactivete them</center></td>
259
-    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
260
   </tr>
260
   </tr>
261
   <tr>
261
   <tr>
262
+    <td><center><b><h3>Encrypt</h3></b><br>Make sure your phone is encrypted with a password which isn't easy to guess</center></td>
262
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
263
     <td><center><b><h3>Apps</h3></b><br>Use F-droid to install new apps</center></td>
264
+  </tr>
265
+  <tr>
263
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
266
     <td><center><b><h3>Lock</h3></b><br>Enable a lock screen with a maximum number of password guesses</center></td>
264
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
267
     <td><center><b><h3>Onion</h3></b><br>Onion route your connections to avoid bulk metadata collection</center></td>
265
   </tr>
268
   </tr>
266
   <tr>
269
   <tr>
267
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
270
     <td><center><b><h3>Email</h3></b><br>Access webmail in a browser</center></td>
268
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
271
     <td><center><b><h3>Services</h3></b><br>Connect to the Freedombone services</center></td>
272
+  </tr>
273
+  <tr>
269
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
274
     <td><center><b><h3>Battery</h3></b><br>Avoid battery-eating apps</center></td>
275
+    <td><center><b><h3>Block</h3></b><br>Prevent access to know bad domains</center></td>
270
   </tr>
276
   </tr>
271
 </table>
277
 </table>
272
 </center>
278
 </center>
273
 
279
 
274
-<div id="outline-container-org3265d12" class="outline-2">
275
-<h2 id="org3265d12">Open</h2>
276
-<div class="outline-text-2" id="text-org3265d12">
280
+<div id="outline-container-org5a4cf79" class="outline-2">
281
+<h2 id="org5a4cf79">Open</h2>
282
+<div class="outline-text-2" id="text-org5a4cf79">
277
 <p>
283
 <p>
278
-Use a Linux based phone operating system. Typically this will mean Android, but could also mean Cyanogenmod or Replicant. Cyanogen 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 Cyanogenmod. 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.
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.
279
 </p>
285
 </p>
280
 
286
 
281
 <p>
287
 <p>
284
 </div>
290
 </div>
285
 </div>
291
 </div>
286
 
292
 
287
-<div id="outline-container-org891847d" class="outline-2">
288
-<h2 id="org891847d">Remove</h2>
289
-<div class="outline-text-2" id="text-org891847d">
293
+<div id="outline-container-orgf078e81" class="outline-2">
294
+<h2 id="orgf078e81">Remove</h2>
295
+<div class="outline-text-2" id="text-orgf078e81">
290
 <p>
296
 <p>
291
 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.
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.
292
 </p>
298
 </p>
293
 </div>
299
 </div>
294
 </div>
300
 </div>
295
 
301
 
296
-<div id="outline-container-org7e4c55a" class="outline-2">
297
-<h2 id="org7e4c55a">Encrypt</h2>
298
-<div class="outline-text-2" id="text-org7e4c55a">
302
+<div id="outline-container-org2044f08" class="outline-2">
303
+<h2 id="org2044f08">Encrypt</h2>
304
+<div class="outline-text-2" id="text-org2044f08">
299
 <p>
305
 <p>
300
 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.
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.
301
 </p>
307
 </p>
302
 </div>
308
 </div>
303
 </div>
309
 </div>
304
 
310
 
305
-<div id="outline-container-org4332e13" class="outline-2">
306
-<h2 id="org4332e13">Apps</h2>
307
-<div class="outline-text-2" id="text-org4332e13">
311
+<div id="outline-container-orgcc694f6" class="outline-2">
312
+<h2 id="orgcc694f6">Apps</h2>
313
+<div class="outline-text-2" id="text-orgcc694f6">
308
 <p>
314
 <p>
309
 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.
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.
310
 </p>
316
 </p>
311
 </div>
317
 </div>
312
 </div>
318
 </div>
313
 
319
 
314
-<div id="outline-container-org09c549d" class="outline-2">
315
-<h2 id="org09c549d">Lock</h2>
316
-<div class="outline-text-2" id="text-org09c549d">
320
+<div id="outline-container-org0bcede3" class="outline-2">
321
+<h2 id="org0bcede3">Lock</h2>
322
+<div class="outline-text-2" id="text-org0bcede3">
317
 <p>
323
 <p>
318
 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.
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.
319
 </p>
325
 </p>
320
 </div>
326
 </div>
321
 </div>
327
 </div>
322
 
328
 
323
-<div id="outline-container-org40ecb38" class="outline-2">
324
-<h2 id="org40ecb38">Onion</h2>
325
-<div class="outline-text-2" id="text-org40ecb38">
329
+<div id="outline-container-org228b5ce" class="outline-2">
330
+<h2 id="org228b5ce">Onion</h2>
331
+<div class="outline-text-2" id="text-org228b5ce">
326
 <p>
332
 <p>
327
 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.
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.
328
 </p>
334
 </p>
333
 </div>
339
 </div>
334
 </div>
340
 </div>
335
 
341
 
336
-<div id="outline-container-orgb19c9b5" class="outline-2">
337
-<h2 id="orgb19c9b5">Email</h2>
338
-<div class="outline-text-2" id="text-orgb19c9b5">
342
+<div id="outline-container-org97237d0" class="outline-2">
343
+<h2 id="org97237d0">Email</h2>
344
+<div class="outline-text-2" id="text-org97237d0">
339
 <p>
345
 <p>
340
 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.
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.
341
 </p>
347
 </p>
342
 </div>
348
 </div>
343
 </div>
349
 </div>
344
-<div id="outline-container-org3359ddc" class="outline-2">
345
-<h2 id="org3359ddc">Services</h2>
346
-<div class="outline-text-2" id="text-org3359ddc">
350
+<div id="outline-container-org2db3de7" class="outline-2">
351
+<h2 id="org2db3de7">Services</h2>
352
+<div class="outline-text-2" id="text-org2db3de7">
347
 <p>
353
 <p>
348
 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>.
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>.
349
 </p>
355
 </p>
350
 </div>
356
 </div>
351
 </div>
357
 </div>
352
 
358
 
353
-<div id="outline-container-orgd1a021e" class="outline-2">
354
-<h2 id="orgd1a021e">Battery preservation</h2>
355
-<div class="outline-text-2" id="text-orgd1a021e">
359
+<div id="outline-container-orgafd1f2e" class="outline-2">
360
+<h2 id="orgafd1f2e">Battery preservation</h2>
361
+<div class="outline-text-2" id="text-orgafd1f2e">
356
 <p>
362
 <p>
357
 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.
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.
358
 </p>
364
 </p>
366
 </center>
372
 </center>
367
 </div>
373
 </div>
368
 </div>
374
 </div>
375
+
376
+<div id="outline-container-org9e58167" class="outline-2">
377
+<h2 id="org9e58167">Blocking bad domains</h2>
378
+<div class="outline-text-2" id="text-org9e58167">
379
+<p>
380
+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 defend 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
+</p>
382
+
383
+<p>
384
+On the device enable <b>Developer Options</b> by going to <b>Settings</b> then <b>About</b> then pressing on <b>Build number</b> a few times.
385
+</p>
386
+
387
+<p>
388
+Go to <b>Settings</b> then <b>Developer Options</b> then set <b>Root access</b> to <b>ADB only</b> and enable <b>Android debugging</b>.
389
+</p>
390
+
391
+<p>
392
+On your system (not the device) install the <b>android-tools</b> package. For example, on Arch/Parabola:
393
+</p>
394
+
395
+<div class="org-src-container">
396
+<pre class="src src-bash">sudo pacman -S android-tools
397
+</pre>
398
+</div>
399
+
400
+<p>
401
+Connect the device to your system via a USB cable, then:
402
+</p>
403
+
404
+<div class="org-src-container">
405
+<pre class="src src-bash">adb root
406
+adb remount
407
+adb pull /system/etc/hosts
408
+</pre>
409
+</div>
410
+
411
+<p>
412
+Now edit the hosts file which was pulled and append:
413
+</p>
414
+
415
+<div class="org-src-container">
416
+<pre class="src src-bash">127.0.0.1       www.facebook.com
417
+127.0.0.1       facebook.com
418
+127.0.0.1       static.ak.fbcdn.net
419
+127.0.0.1       www.static.ak.fbcdn.net
420
+127.0.0.1       login.facebook.com
421
+127.0.0.1       www.login.facebook.com
422
+127.0.0.1       fbcdn.net
423
+127.0.0.1       www.fbcdn.net
424
+127.0.0.1       fbcdn.com
425
+127.0.0.1       www.fbcdn.com
426
+127.0.0.1       static.ak.connect.facebook.com
427
+127.0.0.1       www.static.ak.connect.facebook.com
428
+
429
+127.0.0.1       www.google-analytics.com
430
+127.0.0.1       google-analytics.com
431
+127.0.0.1       ssl.google-analytics.com
432
+</pre>
433
+</div>
434
+
435
+<p>
436
+Then upload the hosts file back again with:
437
+</p>
438
+
439
+<div class="org-src-container">
440
+<pre class="src src-bash">adb push hosts /system/etc/hosts
441
+</pre>
442
+</div>
443
+
444
+<p>
445
+Once that's done you may want to set <b>Root access</b> on the device back to <b>Disabled</b> and turn <b>Android debugging</b> off.
446
+</p>
447
+</div>
448
+</div>
369
 </div>
449
 </div>
370
 <div id="postamble" class="status">
450
 <div id="postamble" class="status">
371
 
451