<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Development of Bluetooth-enabled Ubuntu Touch App]]></title><description><![CDATA[<p dir="auto">Dear all, I hope I'm asking this question in the right place.<br />
I'm trying to program a Ubuntu Touch app which needs to use the Bluetooth-capabilities of the Nexus 5 phone (currently with UT OTA-8).</p>
<p dir="auto">I did not find <strong>any</strong> information on bluetooth-development or any suitable example for Ubuntu Touch. Did I miss something?</p>
<p dir="auto">So, I started out with the clickable template "main-cpp - C++/QML App (built using Cmake with a main.cpp)". I then downloaded the QT5 Example Project <a href="https://github.com/qt/qtconnectivity/tree/5.12/examples/bluetooth/btscanner" rel="nofollow ugc">BTScanner</a> and integrated it in the clickable-template.</p>
<p dir="auto">Good news: My project compiles without error.<br />
Bad news: When I run the app with "clickable launch", this error ends up in the log</p>
<pre><code>Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
Cannot find a running Bluez. Please check the Bluez installtion
</code></pre>
<p dir="auto">Does anyone have a hint what I am doing wrong? Is Bluetooth supposed to work a all? Is there a permission problem?</p>
<p dir="auto">Thank you! Best regards, Nils</p>
]]></description><link>https://forums.ubports.com/topic/2609/development-of-bluetooth-enabled-ubuntu-touch-app</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 14:40:37 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/2609.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Apr 2019 09:41:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Development of Bluetooth-enabled Ubuntu Touch App on Mon, 22 Apr 2019 12:55:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/advocatux" aria-label="Profile: advocatux">@<bdi>advocatux</bdi></a> Thanks. Yes, I was aware I have to add the "bluetooth" policy group to the .apparmor-file:</p>
<pre><code>{
    "policy_groups": ["bluetooth"],
    "policy_version": 16.04
}
</code></pre>
<p dir="auto">However, I probably got confused: It seems that the AppArmor-configuration only gets adopted when the version number in manifest.json is increased (I don't know if this <a href="https://bugs.launchpad.net/canonical-developer-experience/+bug/1549369" rel="nofollow ugc">bug report</a> is related).</p>
<p dir="auto">Anyway, with this .apparmor-file and after increasing the version in manifest.json, the error ("Cannot find a running Bluez") is gone.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: Flohack">@<bdi>Flohack</bdi></a><br />
I this case, adding</p>
<pre><code>"template": "unconfined"
</code></pre>
<p dir="auto">to the .apparmor-file did <strong>not</strong> seem to be necessary to get Bluetooth-access. Thanks for the hint about running apps as unconfined anyway.</p>
]]></description><link>https://forums.ubports.com/post/19339</link><guid isPermaLink="true">https://forums.ubports.com/post/19339</guid><dc:creator><![CDATA[nilsl]]></dc:creator><pubDate>Mon, 22 Apr 2019 12:55:28 GMT</pubDate></item><item><title><![CDATA[Reply to Development of Bluetooth-enabled Ubuntu Touch App on Mon, 15 Apr 2019 18:42:57 GMT]]></title><description><![CDATA[<p dir="auto">Remember that Apps do not have any access to hardware directly. This is all contained and sealed and probably you could try to run the App as unconfined, but that removes <em>all</em> protections.<br />
BR</p>
]]></description><link>https://forums.ubports.com/post/19188</link><guid isPermaLink="true">https://forums.ubports.com/post/19188</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Mon, 15 Apr 2019 18:42:57 GMT</pubDate></item><item><title><![CDATA[Reply to Development of Bluetooth-enabled Ubuntu Touch App on Mon, 15 Apr 2019 12:06:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nilsl" aria-label="Profile: nilsl">@<bdi>nilsl</bdi></a> while waiting for someone who really knows about development <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=60240fe800f" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" /> have you seen <a href="http://docs.ubports.com/en/latest/appdev/platform/apparmor.html#bluetooth" rel="nofollow ugc">http://docs.ubports.com/en/latest/appdev/platform/apparmor.html#bluetooth</a>?</p>
]]></description><link>https://forums.ubports.com/post/19180</link><guid isPermaLink="true">https://forums.ubports.com/post/19180</guid><dc:creator><![CDATA[advocatux]]></dc:creator><pubDate>Mon, 15 Apr 2019 12:06:39 GMT</pubDate></item></channel></rss>