mobile.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  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">
  5. <head>
  6. <title></title>
  7. <!-- 2018-06-22 Fri 18:21 -->
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  9. <meta name="generator" content="Org-mode" />
  10. <meta name="author" content="Bob Mottram" />
  11. <meta name="description" content="Freedombone mobile setup"
  12. />
  13. <meta name="keywords" content="freedombone, mobile" />
  14. <style type="text/css">
  15. <!--/*--><![CDATA[/*><!--*/
  16. .title { text-align: center; }
  17. .todo { font-family: monospace; color: red; }
  18. .done { color: green; }
  19. .tag { background-color: #eee; font-family: monospace;
  20. padding: 2px; font-size: 80%; font-weight: normal; }
  21. .timestamp { color: #bebebe; }
  22. .timestamp-kwd { color: #5f9ea0; }
  23. .right { margin-left: auto; margin-right: 0px; text-align: right; }
  24. .left { margin-left: 0px; margin-right: auto; text-align: left; }
  25. .center { margin-left: auto; margin-right: auto; text-align: center; }
  26. .underline { text-decoration: underline; }
  27. #postamble p, #preamble p { font-size: 90%; margin: .2em; }
  28. p.verse { margin-left: 3%; }
  29. pre {
  30. border: 1px solid #ccc;
  31. box-shadow: 3px 3px 3px #eee;
  32. padding: 8pt;
  33. font-family: monospace;
  34. overflow: auto;
  35. margin: 1.2em;
  36. }
  37. pre.src {
  38. position: relative;
  39. overflow: visible;
  40. padding-top: 1.2em;
  41. }
  42. pre.src:before {
  43. display: none;
  44. position: absolute;
  45. background-color: white;
  46. top: -10px;
  47. right: 10px;
  48. padding: 3px;
  49. border: 1px solid black;
  50. }
  51. pre.src:hover:before { display: inline;}
  52. pre.src-sh:before { content: 'sh'; }
  53. pre.src-bash:before { content: 'sh'; }
  54. pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
  55. pre.src-R:before { content: 'R'; }
  56. pre.src-perl:before { content: 'Perl'; }
  57. pre.src-java:before { content: 'Java'; }
  58. pre.src-sql:before { content: 'SQL'; }
  59. table { border-collapse:collapse; }
  60. caption.t-above { caption-side: top; }
  61. caption.t-bottom { caption-side: bottom; }
  62. td, th { vertical-align:top; }
  63. th.right { text-align: center; }
  64. th.left { text-align: center; }
  65. th.center { text-align: center; }
  66. td.right { text-align: right; }
  67. td.left { text-align: left; }
  68. td.center { text-align: center; }
  69. dt { font-weight: bold; }
  70. .footpara:nth-child(2) { display: inline; }
  71. .footpara { display: block; }
  72. .footdef { margin-bottom: 1em; }
  73. .figure { padding: 1em; }
  74. .figure p { text-align: center; }
  75. .inlinetask {
  76. padding: 10px;
  77. border: 2px solid gray;
  78. margin: 10px;
  79. background: #ffffcc;
  80. }
  81. #org-div-home-and-up
  82. { text-align: right; font-size: 70%; white-space: nowrap; }
  83. textarea { overflow-x: auto; }
  84. .linenr { font-size: smaller }
  85. .code-highlighted { background-color: #ffff00; }
  86. .org-info-js_info-navigation { border-style: none; }
  87. #org-info-js_console-label
  88. { font-size: 10px; font-weight: bold; white-space: nowrap; }
  89. .org-info-js_search-highlight
  90. { background-color: #ffff00; color: #000000; font-weight: bold; }
  91. /*]]>*/-->
  92. </style>
  93. <link rel="stylesheet" type="text/css" href="freedombone.css" />
  94. <script type="text/javascript">
  95. /*
  96. @licstart The following is the entire license notice for the
  97. JavaScript code in this tag.
  98. Copyright (C) 2012-2013 Free Software Foundation, Inc.
  99. The JavaScript code in this tag is free software: you can
  100. redistribute it and/or modify it under the terms of the GNU
  101. General Public License (GNU GPL) as published by the Free Software
  102. Foundation, either version 3 of the License, or (at your option)
  103. any later version. The code is distributed WITHOUT ANY WARRANTY;
  104. without even the implied warranty of MERCHANTABILITY or FITNESS
  105. FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
  106. As additional permission under GNU GPL version 3 section 7, you
  107. may distribute non-source (e.g., minimized or compacted) forms of
  108. that code without the copy of the GNU GPL normally required by
  109. section 4, provided you include this license notice and a URL
  110. through which recipients can access the Corresponding Source.
  111. @licend The above is the entire license notice
  112. for the JavaScript code in this tag.
  113. */
  114. <!--/*--><![CDATA[/*><!--*/
  115. function CodeHighlightOn(elem, id)
  116. {
  117. var target = document.getElementById(id);
  118. if(null != target) {
  119. elem.cacheClassElem = elem.className;
  120. elem.cacheClassTarget = target.className;
  121. target.className = "code-highlighted";
  122. elem.className = "code-highlighted";
  123. }
  124. }
  125. function CodeHighlightOff(elem, id)
  126. {
  127. var target = document.getElementById(id);
  128. if(elem.cacheClassElem)
  129. elem.className = elem.cacheClassElem;
  130. if(elem.cacheClassTarget)
  131. target.className = elem.cacheClassTarget;
  132. }
  133. /*]]>*///-->
  134. </script>
  135. </head>
  136. <body>
  137. <div id="preamble" class="status">
  138. <a name="top" id="top"></a>
  139. </div>
  140. <div id="content">
  141. <h1 class="title"></h1>
  142. <div class="figure">
  143. <p><img src="images/logo.png" alt="logo.png" width="80%" height="10%" align="center" />
  144. </p>
  145. </div>
  146. <p>
  147. Mobile phones are insecure devices, but they're regarded as being so essential to modern life that telling people not to use them isn't a viable option. Here are some recommendations on setting up a mobile phone (aka "smartphone") to work with Freedombone.
  148. </p>
  149. <div id="outline-container-sec-1" class="outline-2">
  150. <h2 id="sec-1">Open</h2>
  151. <div class="outline-text-2" id="text-1">
  152. <p>
  153. 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.
  154. </p>
  155. <p>
  156. Why is it so important to run Linux on a phone? Aren't <i>iThings</i> supposed to be highly secure? Don't the "experts" always tell you to just use an iPhone with its supposedly superior secure enclave? Isn't the CEO of Apple a good guy, fighting for freedom against the evil Feds?
  157. </p>
  158. <p>
  159. In the end it comes down to the fact that <i>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</i>. It doesn't matter if there's a supposedly secure enclave on your closed source gadget. No matter how well-meaning or brave people running companies may be, local laws may force them to add backdoors into their systems (sometimes called "technical capabilities order" or "lawful interception") 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.
  160. </p>
  161. </div>
  162. </div>
  163. <div id="outline-container-sec-2" class="outline-2">
  164. <h2 id="sec-2">Remove</h2>
  165. <div class="outline-text-2" id="text-2">
  166. <p>
  167. 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.
  168. </p>
  169. </div>
  170. </div>
  171. <div id="outline-container-sec-3" class="outline-2">
  172. <h2 id="sec-3">Encrypt</h2>
  173. <div class="outline-text-2" id="text-3">
  174. <p>
  175. 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.
  176. </p>
  177. </div>
  178. </div>
  179. <div id="outline-container-sec-4" class="outline-2">
  180. <h2 id="sec-4">Apps</h2>
  181. <div class="outline-text-2" id="text-4">
  182. <p>
  183. 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.
  184. </p>
  185. <p>
  186. Avoid using the Open Whisper Systems Signal app if you can, no matter what "experts" say about it. There are multiple reasons for this which you can find in the <a href="./faq.html">FAQ</a>.
  187. </p>
  188. </div>
  189. </div>
  190. <div id="outline-container-sec-5" class="outline-2">
  191. <h2 id="sec-5">Lock</h2>
  192. <div class="outline-text-2" id="text-5">
  193. <p>
  194. 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.
  195. </p>
  196. </div>
  197. </div>
  198. <div id="outline-container-sec-6" class="outline-2">
  199. <h2 id="sec-6">Onion</h2>
  200. <div class="outline-text-2" id="text-6">
  201. <p>
  202. 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.
  203. </p>
  204. <p>
  205. In F-droid under the <b>repositories</b> menu you can enable the <b>guardian project</b>, and then install <b>Orbot</b>. Within subsequently installed apps, such as those for XMPP chat, there is often a setting which allows the connection to then be routed through Tor. Also you can install <b>OrFox</b> and use that as your default browser. Within OrFox for the sites you regularly use you can add a NoScript exception via the menu.
  206. </p>
  207. </div>
  208. </div>
  209. <div id="outline-container-sec-7" class="outline-2">
  210. <h2 id="sec-7">Email</h2>
  211. <div class="outline-text-2" id="text-7">
  212. <p>
  213. 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.
  214. </p>
  215. </div>
  216. </div>
  217. <div id="outline-container-sec-8" class="outline-2">
  218. <h2 id="sec-8">Services</h2>
  219. <div class="outline-text-2" id="text-8">
  220. <p>
  221. For information on configuring various apps to work with Freedombone see the <a href="./apps.html">apps section</a>. Also see advice on chat apps in the <a href="./faq.html">FAQ</a>.
  222. </p>
  223. </div>
  224. </div>
  225. <div id="outline-container-sec-9" class="outline-2">
  226. <h2 id="sec-9">Battery</h2>
  227. <div class="outline-text-2" id="text-9">
  228. <p>
  229. 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.
  230. </p>
  231. <p>
  232. 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.
  233. </p>
  234. <p>
  235. 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.
  236. </p>
  237. <p>
  238. 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 parts 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.
  239. </p>
  240. </div>
  241. </div>
  242. <div id="outline-container-sec-10" class="outline-2">
  243. <h2 id="sec-10">Blocking bad domains</h2>
  244. <div class="outline-text-2" id="text-10">
  245. <p>
  246. 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.
  247. </p>
  248. <p>
  249. 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.
  250. </p>
  251. <p>
  252. 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>.
  253. </p>
  254. <p>
  255. On your system (not the device) install the <b>android-tools</b> package. For example, on Arch/Parabola:
  256. </p>
  257. <div class="org-src-container">
  258. <pre class="src src-bash">sudo pacman -S android-tools
  259. </pre>
  260. </div>
  261. <p>
  262. Connect the device to your system via a USB cable, then:
  263. </p>
  264. <div class="org-src-container">
  265. <pre class="src src-bash">adb root
  266. adb remount
  267. adb pull /system/etc/hosts
  268. </pre>
  269. </div>
  270. <p>
  271. Now edit the hosts file which was pulled and append:
  272. </p>
  273. <div class="org-src-container">
  274. <pre class="src src-bash">127.0.0.1 www.facebook.com
  275. 127.0.0.1 facebook.com
  276. 127.0.0.1 static.ak.fbcdn.net
  277. 127.0.0.1 www.static.ak.fbcdn.net
  278. 127.0.0.1 login.facebook.com
  279. 127.0.0.1 www.login.facebook.com
  280. 127.0.0.1 fbcdn.net
  281. 127.0.0.1 www.fbcdn.net
  282. 127.0.0.1 fbcdn.com
  283. 127.0.0.1 www.fbcdn.com
  284. 127.0.0.1 static.ak.connect.facebook.com
  285. 127.0.0.1 www.static.ak.connect.facebook.com
  286. 127.0.0.1 www.google-analytics.com
  287. 127.0.0.1 google-analytics.com
  288. 127.0.0.1 ssl.google-analytics.com
  289. 127.0.0.1 telemetry.mozilla.org
  290. 127.0.0.1 incoming.telemetry.mozilla.org
  291. </pre>
  292. </div>
  293. <p>
  294. Then upload the hosts file back again with:
  295. </p>
  296. <div class="org-src-container">
  297. <pre class="src src-bash">adb push hosts /system/etc/hosts
  298. </pre>
  299. </div>
  300. <p>
  301. 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.
  302. </p>
  303. <div class="figure">
  304. <p><a href="fdl-1.3.txt" width="10%" height="2%" align="center"><img src="images/gfdl.png" alt="gfdl.png" width="10%" height="2%" align="center" /></a>
  305. </p>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. <div id="postamble" class="status">
  311. <style type="text/css">
  312. .back-to-top {
  313. position: fixed;
  314. bottom: 2em;
  315. right: 0px;
  316. text-decoration: none;
  317. color: #000000;
  318. background-color: rgba(235, 235, 235, 0.80);
  319. font-size: 12px;
  320. padding: 1em;
  321. display: none;
  322. }
  323. .back-to-top:hover {
  324. background-color: rgba(135, 135, 135, 0.50);
  325. }
  326. </style>
  327. <div class="back-to-top">
  328. <a href="#top">Back to top</a> | <a href="mailto:bob@freedombone.net">E-mail me</a>
  329. </div>
  330. </div>
  331. </body>
  332. </html>