<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Android on falkp.no/blog</title>
    <link>/blog/tags/android/</link>
    <description>falkp.no/blog (Android)</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
      

      
    

    
    <lastBuildDate>Thu, 26 Feb 2015 00:00:00 +0000</lastBuildDate>
    
    <atom:link href="/blog/tags/android/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Android with as little closed source as possible - part 2</title>
      <link>/blog/posts/android_with_as_little_closed_source_as_possible2/</link>
      <pubDate>Thu, 26 Feb 2015 00:00:00 +0000</pubDate>
      
      <guid>/blog/posts/android_with_as_little_closed_source_as_possible2/</guid>
      <description>&lt;h2 id=&#34;overview&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#overview&#34;&gt;
        #
    &lt;/a&gt;
    Overview
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;Read part one of &lt;a href=&#34;http://0p.no/2013/11/25/android_with_as_little_closed_source_as_possible.html&#34;&gt;Android with as little closed source as possible&lt;/a&gt;, &lt;a href=&#34;http://0p.no/2013/11/25/life_without_us_cloud_services.html&#34;&gt;Life without US cloud services&lt;/a&gt; and &lt;a href=&#34;http://0p.no/2013/12/31/androids_privacy_invasiveness.html&#34;&gt;Androids privacy invasiveness&lt;/a&gt; if you&amp;rsquo;re wondering why I&amp;rsquo;m doing this.&lt;/p&gt;
&lt;p&gt;This is an update on how to live with a free and open (Android based) phone.&lt;/p&gt;
&lt;p&gt;Some time during 2014 I went all-in, and removed Google Play. My previous article (&lt;a href=&#34;http://0p.no/2013/11/25/android_with_as_little_closed_source_as_possible.html&#34;&gt;Android with as little closed source as possible&lt;/a&gt;) left a list of closed source apps I was still dependent on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Google Maps&lt;/li&gt;
&lt;li&gt;Yatse&lt;/li&gt;
&lt;li&gt;Youtube&lt;/li&gt;
&lt;li&gt;TinyCam monitor free&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When dropping Google Play I had to drop Maps and Youtube. They can&amp;rsquo;t work without. Maps is replaced with &lt;a href=&#34;http://osmand.net&#34;&gt;OsmAnd&lt;/a&gt;, which even can work totally off-line (no data usage, lower battery usage). Youtube can be used via a web browser.&lt;/p&gt;
&lt;p&gt;I still have a folder of proprietary apps on my phone, installed via a &lt;a href=&#34;http://downloader-apk.com/&#34;&gt;APK downloader&lt;/a&gt;. There&amp;rsquo;s even an app to let you know when there are updates: &lt;a href=&#34;https://f-droid.org/repository/browse/?fdfilter=apktrack&amp;amp;fdid=fr.kwiatkowski.ApkTrack&#34;&gt;ApkTrack&lt;/a&gt;. These apps are due to services hard to avoid (Spotify/Wimp for music streaming, Ruter for public transportation, NRK for public broadcast TV, Tesla/Airtame/SeekThermal for special hardware). These apps doesn&amp;rsquo;t bother me, and the OS with privacy guard has them locked down.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;proprietary.png&#34; alt=&#34;Proprietary Apps&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;firmware&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#firmware&#34;&gt;
        #
    &lt;/a&gt;
    Firmware
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;There is still no phone with open firmware in sight. Even FirefoxOS comes with binary blobs. But getting rid of the three big ones, &lt;a href=&#34;https://medium.com/backchannel/why-i-m-saying-goodbye-to-apple-google-and-microsoft-78af12071bd&#34;&gt;Apple, Google and Microsoft&lt;/a&gt; is a good thing, no matter what you&amp;rsquo;re running.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Nogapps - A replacement for gapps</title>
      <link>/blog/posts/nogapps___a_replacement_for_gapps/</link>
      <pubDate>Thu, 16 Oct 2014 00:00:00 +0000</pubDate>
      
      <guid>/blog/posts/nogapps___a_replacement_for_gapps/</guid>
      <description>&lt;p&gt;I recently discovered nogapps, and it&amp;rsquo;s working great! Here&amp;rsquo;s an intro and how to use it.&lt;/p&gt;
&lt;h2 id=&#34;background&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#background&#34;&gt;
        #
    &lt;/a&gt;
    Background
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;When installing Android on a phone, one first flashes the ROM, i.e. &lt;a href=&#34;http://cyanogenmod.org&#34;&gt;Cyanogenmod&lt;/a&gt;. Then a package called gapps, which contains Googles proprietary Apps. This is necessary to get Play, Youtube, GMail, Maps, etc. And lots of apps from Play requires Play and it&amp;rsquo;s services to function.&lt;/p&gt;
&lt;p&gt;See also &lt;a href=&#34;http://0p.no/2013/12/31/androids_privacy_invasiveness.html&#34;&gt;Androids privacy invasiveness&lt;/a&gt; and &lt;a href=&#34;http://0p.no/2013/11/25/android_with_as_little_closed_source_as_possible.html&#34;&gt;Android with as little closed source as possible&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Someone has started the project &lt;a href=&#34;http://forum.xda-developers.com/showthread.php?t=1715375&#34;&gt;Nogapps&lt;/a&gt; which aims to replace some of the gapps services with open services.&lt;/p&gt;
&lt;p&gt;As an example, you can only use GPS for location if you don&amp;rsquo;t have gapps. The other methods, wifi and cell tower id, comes from Google. Nogapps replaces this with &amp;ldquo;Network Location&amp;rdquo;. An app and a database which gives off-line location lookup.&lt;/p&gt;
&lt;h2 id=&#34;installing-network-location&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#installing-network-location&#34;&gt;
        #
    &lt;/a&gt;
    Installing Network Location
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;Before you even consider this: you need root, you need to tinker with your device. A full backup is always adviced.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start with a phone with root access and i.e. Cyanogenmod installed. Probably works with other ROMs as well.&lt;/li&gt;
&lt;li&gt;Download the &lt;a href=&#34;https://developer.android.com/sdk/index.html&#34;&gt;Android SDK&lt;/a&gt; from Google to your PC.&lt;/li&gt;
&lt;li&gt;This should give you access to adb, the tool to communicate with android via USB. For me the path became &lt;code&gt;$ ~/Downloads/adt-bundle-linux-x86_64-20140702/sdk/platform-tools/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You need &lt;a href=&#34;http://wiki.cyanogenmod.org/w/Doc:_developer_options&#34;&gt;developer mode&lt;/a&gt; enabled on your phone, and to &lt;a href=&#34;http://wiki.cyanogenmod.org/w/Doc:_adb_intro/en#Secure_USB_debugging&#34;&gt;approve the computer&lt;/a&gt;. Not covered by this guide.&lt;/li&gt;
&lt;li&gt;Make sure you&amp;rsquo;re connected:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;$ adb devices&lt;/code&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;List of devices attached
014nnnnnnnnn800F    device
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Get root access to phone, this must first be allowed in phone settings: &lt;code&gt;$ adb root&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Make system partition writable:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;$ adb remount&lt;/code&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;remount succeeded
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Download Network Location apk from the Nogapps project website and push to phone: &lt;code&gt;$ adb push NetworkLocation.apk /system/app/NetworkLocation.apk&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Download the cells.db for your continent from the Nogapps project website and and push to phone: &lt;code&gt;$ adb push cells-europe.db /sdcard/.nogapps/cells.db&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Reboot phone.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;usage&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#usage&#34;&gt;
        #
    &lt;/a&gt;
    Usage
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;If you&amp;rsquo;re using Privacy Guard you will be prompted the first time your phone tries to look up the location. Now make sure you&amp;rsquo;ve activated non-GPS location:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;settings.png&#34; alt=&#34;Settings&#34;&gt;&lt;/p&gt;
&lt;p&gt;And enjoy. It works in every app:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;osmand.png&#34; alt=&#34;Osmand&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;contributing&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#contributing&#34;&gt;
        #
    &lt;/a&gt;
    Contributing
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;If you want to contribute to the cells database, use apps like &lt;a href=&#34;https://f-droid.org/repository/browse/?fdfilter=wifi&amp;amp;fdid=org.mozilla.mozstumbler&#34;&gt;MozStumbler&lt;/a&gt; and &lt;a href=&#34;https://f-droid.org/repository/browse/?fdfilter=wifi&amp;amp;fdid=com.vwp.owmap&#34;&gt;OpenWLANMap&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;further-on&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#further-on&#34;&gt;
        #
    &lt;/a&gt;
    Further on
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;Nogapps consists of more that this feature, but it&amp;rsquo;s the one most important to me, and the only one I&amp;rsquo;ve tested so far.&lt;/p&gt;
&lt;p&gt;Edit: updated 2014-10-21&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Car-logger - part 2</title>
      <link>/blog/posts/car_logger2/</link>
      <pubDate>Mon, 29 Sep 2014 00:00:00 +0000</pubDate>
      
      <guid>/blog/posts/car_logger2/</guid>
      <description>&lt;h2 id=&#34;overview&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#overview&#34;&gt;
        #
    &lt;/a&gt;
    Overview
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;Read part one of &lt;a href=&#34;http://0p.no/2014/04/22/car_logger.html#more&#34;&gt;Car-logger&lt;/a&gt; first, if you haven&amp;rsquo;t.&lt;/p&gt;
&lt;p&gt;I chose to go with outdated Android phones in the previous article. Phones with CyanogenMod and no Google Play. This means that they run all free software, except for some firmware blobs and drivers. No background services driving up data or battery usage, no third party tracking my location.&lt;/p&gt;
&lt;p&gt;I tried out &lt;a href=&#34;https://www.traccar.org&#34;&gt;Traccar&lt;/a&gt;. The app worked fine, but the backend was a big, horrible java thing. Poor UI, overkill for my purpose, and too much for me to get hacking on.&lt;/p&gt;
&lt;p&gt;After trying out a few different ones I finally found &lt;a href=&#34;http://bk.gnarf.org/creativity/bigbrothergps/&#34;&gt;BigBrotherGPS&lt;/a&gt;. It was half of what I wanted. An app that simply makes a http request with a few parameters in post-data. The backend wasn&amp;rsquo;t more than a proof-of-concept, but http requests are easy to work with and language agnostic.&lt;/p&gt;
&lt;p&gt;So I created &lt;a href=&#34;https://github.com/ways/BigBrotherGPSweb&#34;&gt;BigBrotherGPSweb&lt;/a&gt; (a better name is needed). See github for a proper description, but the basics are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Receive http/https requests.&lt;/li&gt;
&lt;li&gt;Store requests and devices in mysql.&lt;/li&gt;
&lt;li&gt;Display results in a map.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It still need some work, and I&amp;rsquo;ll be working on it until I get bored or find a new project. But it currently serves the purpose.&lt;/p&gt;
&lt;p&gt;And of course it can be used to track more than cars.&lt;/p&gt;
&lt;h2 id=&#34;edit-20140930&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#edit-20140930&#34;&gt;
        #
    &lt;/a&gt;
    Edit 20140930
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;This requires a SIM card. My operator supplies a twin SIM for NOK 20 / month, so it&amp;rsquo;s a low cost for me.&lt;/p&gt;
&lt;h2 id=&#34;pics-or-it-didnt-happen&#34; &gt;
&lt;div&gt;
    &lt;a href=&#34;#pics-or-it-didnt-happen&#34;&gt;
        #
    &lt;/a&gt;
    Pics, or it didn&amp;rsquo;t happen!
&lt;/div&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;img src=&#34;screenshot.png&#34; alt=&#34;Map view&#34;&gt;&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
