<?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 nagg.eu</title><link>https://nagg.eu/tags/android/</link><description>Recent content in Android on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 03 May 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/android/index.xml" rel="self" type="application/rss+xml"/><item><title>XMPP audio and video calls</title><link>https://nagg.eu/xmpp-audio-and-video-calls/</link><pubDate>Sun, 03 May 2020 00:00:00 +0000</pubDate><guid>https://nagg.eu/xmpp-audio-and-video-calls/</guid><description>&lt;p&gt;Ejabberd has supported STUN/TURN for quite some time now, this in conjunction
with client support can be used to implement one on one audio and video calls.&lt;br&gt;
Since version 2.8.0 &lt;a href="https://github.com/iNPUTmice/Conversations"&gt;Conversations Android client&lt;/a&gt;
added audio and video call functionality by leveraging on STUN/TURN and &lt;a href="https://xmpp.org/extensions/xep-0215.html"&gt;XEP-0215&lt;/a&gt;.&lt;br&gt;
The rest of the XMPP world is following the route opened by them, so I expect
to see IOS and regular computer XMPP clients to finally implement these new
features too in the upcoming months.&lt;br&gt;
Enabling audio and video calls in Ejabberd is actually pretty simple.&lt;br&gt;
Provided you have installed the latest release (version &lt;code&gt;20.04&lt;/code&gt;), edit
&lt;code&gt;ejabberd.yml&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>OpenVPN: tun tap invalid argument (code=22)</title><link>https://nagg.eu/openvpn-tun-tap-invalid-argument-code22/</link><pubDate>Fri, 11 May 2018 12:29:10 +0000</pubDate><guid>https://nagg.eu/openvpn-tun-tap-invalid-argument-code22/</guid><description>&lt;p&gt;After upgrading my OpenVPN server to CentOS 7.5 I had trouble connecting to it.&lt;br&gt;
Specifically, I had two different issues:&lt;br&gt;
** the laptop, which is running Fedora 28, was able to connect just fine but
DNS resolution was broken.&lt;br&gt;
** OpenVPN for Android was also connecting just fine but reporting a weird
error: &lt;code&gt;OpenVPN: tun tap invalid argument (code=22)&lt;/code&gt;.&lt;br&gt;
The first one was caused by me because after the CentOS upgrade procedure was
completed I also run &lt;code&gt;yum autoremove&lt;/code&gt; which deleted dnsmasq; the solution was
fairly simple, reinstall and reconfigure &lt;a href="https://nagg.eu/openvpn-server-and-centos/"&gt;dnsmasq&lt;/a&gt;.&lt;br&gt;
For the second issue the solution was to enable comp-lzo and voilà, everything
started working again.&lt;/p&gt;</description></item><item><title>Self hosting Firefox Sync on CentOS 7</title><link>https://nagg.eu/self-hosting-firefox-sync-on-centos-7/</link><pubDate>Wed, 18 Oct 2017 17:22:49 +0000</pubDate><guid>https://nagg.eu/self-hosting-firefox-sync-on-centos-7/</guid><description>&lt;p&gt;Configuring this piece of poorly documented bloated shit Mozilla came up with was a huge pain in the ass, so excuse the colored language but I am fucking pissed.&lt;br&gt;
The idea was to finally implement a system to synchronize Firefox&amp;rsquo;s bookmarks across multiple devices without giving Mozilla all my personal data.&lt;br&gt;
After some minutes spent researching the subject on the interweb I found out the synchronization system is a huge clusterfuck comprised of multiple components:&lt;/p&gt;</description></item><item><title>Compile LineageOS for Oneplus 3 on Fedora 25</title><link>https://nagg.eu/compile-lineageos-for-oneplus-3-on-fedora-25/</link><pubDate>Sun, 08 Jan 2017 21:11:07 +0000</pubDate><guid>https://nagg.eu/compile-lineageos-for-oneplus-3-on-fedora-25/</guid><description>&lt;p&gt;Android community is one big cancerous clusterfuck, it is no wonder that finding a decent guide on how to compile Android from source written in a somewhat comprehensible english is pretty much mission impossible.&lt;br&gt;
Cyanogenmod Inc. shutting down their wiki and services overnight surely didn&amp;rsquo;t help either.&lt;br&gt;
Required packages on Fedora 25 are (&lt;code&gt;rpmfusion&lt;/code&gt; repo must be previously installed):&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ sudo dnf install screen java-1.8.0-openjdk-devel git schedtool ncurses-devel ncurses-libs ncurses-compat-libs ImageMagick-devel libstdc++-devel bison gnupg lzma
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For some reason the compilation process stores some temporary files in &lt;code&gt;/tmp&lt;/code&gt; which, in Fedora 25, is mounted on a tmpfs ramdisk.&lt;br&gt;
In case the ramdisk runs out of space for some retarded reason the build process instead of halting will go on like nothing happens and produce borked binaries as output.&lt;br&gt;
To keep &lt;code&gt;/tmp&lt;/code&gt; mounted on HDD run:&lt;/p&gt;</description></item><item><title>Manually backup/restore Android application's data</title><link>https://nagg.eu/manually-backuprestore-android-applications-data/</link><pubDate>Sun, 08 Jan 2017 18:00:00 +0000</pubDate><guid>https://nagg.eu/manually-backuprestore-android-applications-data/</guid><description>&lt;p&gt;Android stores application&amp;rsquo;s data in /data/data directory, it can be accessed via adb only on a rooted phone.&lt;br&gt;
To make a backup copy the correspondent directory:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ adb root
$ adb pull /data/data/eu.siacs.conversations
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Application&amp;rsquo;s data can also be extracted from a full system backup made with TWRP:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ tar -xvf data.ext4.win000
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Restoring the backup is the tricky part since Android uses SELinux and every app has it&amp;rsquo;s own unix user.&lt;br&gt;
Before copying back on the phone the already backupped files reinstall the app from f-droid or whatever, then proceed as follow:&lt;/p&gt;</description></item><item><title>OnePlus One</title><link>https://nagg.eu/oneplus-one/</link><pubDate>Tue, 14 Oct 2014 19:26:44 +0000</pubDate><guid>https://nagg.eu/oneplus-one/</guid><description>&lt;p&gt;Two weeks ago while wasting time on the interwebs I found by accident a couple of OnePlus One invites.&lt;br&gt;
To be honest I wasn&amp;rsquo;t planning on buying a new phone since my previous Nexus 4 is still serving me well but seeing OPO price (299 € for the 64 GB one) and specs I said: well, fuck it.&lt;br&gt;
So far I like it very much, the bigger screen makes general usage more enjoyable and battery life is significantly better than Nexus 4, it lasts 2 days without many problems.&lt;br&gt;
I can&amp;rsquo;t really comment on Cyanogenmod OPO edition or whatever the stock ROM is called since I used it for just the bunch of minutes necessarily to enable USB debug, unlock the bootloader and install recovery and stock Cyanogenmod 11 snapshot M11.&lt;br&gt;
One thing I for sure don&amp;rsquo;t like is the unlock screen, stock Cyanogenmod one is way way better but that&amp;rsquo;s pretty much it, can&amp;rsquo;t say more.&lt;/p&gt;</description></item><item><title>CyanogenMod 10.1.2 high network traffic</title><link>https://nagg.eu/cyanogenmod-10-1-2-high-network-traffic/</link><pubDate>Mon, 02 Sep 2013 22:12:32 +0000</pubDate><guid>https://nagg.eu/cyanogenmod-10-1-2-high-network-traffic/</guid><description>&lt;p&gt;Ok, I know I fucked up, I know everyone who knows me just a little bit would never expect this, but I got my first mobile phone or, like they call them nowadays: a smartphone.&lt;br&gt;
I don&amp;rsquo;t like the &lt;code&gt;smartphone&lt;/code&gt; buzzword since I think the only smart ones here are the guys who are able to sell this stuff for hundreds of bucks to billions of people, so I&amp;rsquo;ll stick with the old and almost forgotten &lt;code&gt;mobile phone&lt;/code&gt; name.&lt;br&gt;
Anyway, I got this brand new Nexus 4, played with it a couple of days and then, following the official guide on CyanogenMod site, I installed the latest stable release of it (based on Android 4.2.2).&lt;br&gt;
– Why the Nexus 4? Because Nexus devices are the only Android phones worth to be bought. –&lt;br&gt;
CyanogenMod works great and with some programs (don&amp;rsquo;t fucking call them apps, seriously, don&amp;rsquo;t do it) installed (k-9 Mail, OpenVPN, BusyBox and JuiceSSH) I&amp;rsquo;m almost able to perform all the tasks I usually do with my workstation or Thinkpad.&lt;br&gt;
The only real issue is the process, or whatever it is, called &lt;code&gt;Google Services&lt;/code&gt; using an enormous amount of network resources without any apparent good reason.&lt;br&gt;
Luckily I&amp;rsquo;ve a friend called DuckDuckGo which in a bunch of seconds was able to tell me how to solve the issue.&lt;br&gt;
The problem seems to be connected to the Google Play Store which is completely retarded and keeps downloading some kind of system updates which obviously is not able to install since I&amp;rsquo;m not using the stock Android operating system provided by Google.&lt;br&gt;
The solution is pretty simple:&lt;/p&gt;</description></item></channel></rss>