UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Trying to revive 'ubtd' (Bluetooth file transfer)

    Scheduled Pinned Locked Moved Unsolved App Development
    29 Posts 4 Posters 702 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • G Offline
        gpatel-fr @PhAndersson
        last edited by

        @PhAndersson said in Trying to revive 'ubtd' (Bluetooth file transfer):

        AuthorizePush

        this is denied; I never dabbled much with Apparmor, and certainly not with UT; I notice with some dismay that there are no apparmor logs and I have no clear idea on the better way to enable them unfortunately.

        For now, I have only one positive thing to say: in the application that worked with 16.04, the template was set to 'unconfined'; while this is not generally a great idea, to advance your testing maybe it could be worth a try to add it to the apparmor profile ?

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          PhAndersson @gpatel-fr
          last edited by

          @gpatel-fr said in Trying to revive 'ubtd' (Bluetooth file transfer):

          For now, I have only one positive thing to say: in the application that worked with 16.04, the template was set to 'unconfined'; while this is not generally a great idea, to advance your testing maybe it could be worth a try to add it to the apparmor profile ?

          Yes, you're right -- it's certainly worth a try.

          Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
          Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

          1 Reply Last reply Reply Quote 0
          • P Offline
            PhAndersson
            last edited by

            Well, good news! With the "unconfined" AA profile, the app works 🙂

            The phone successfully received a .jpeg file sent over BT from my laptop:

            screenshot20260121_110443517.png

            Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
            Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

            G lduboeufL P 3 Replies Last reply Reply Quote 0
            • G Offline
              gpatel-fr @PhAndersson
              last edited by

              @PhAndersson

              Great ! have happy file exchanges with your car 🙂

              P 1 Reply Last reply Reply Quote 0
              • lduboeufL Offline
                lduboeuf @PhAndersson
                last edited by

                @PhAndersson said in Trying to revive 'ubtd' (Bluetooth file transfer):

                Well, good news! With the "unconfined" AA profile, the app works 🙂

                The phone successfully received a .jpeg file sent over BT from my laptop:

                screenshot20260121_110443517.png

                Congrats, So some changes are needed on UT to make it work ?

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  PhAndersson @gpatel-fr
                  last edited by

                  @gpatel-fr said in Trying to revive 'ubtd' (Bluetooth file transfer):

                  @PhAndersson

                  Great ! have happy file exchanges with your car 🙂

                  That won't work yet, unfortunately. For this, I need the SharePlugin to work. That one still crashes as soon as I select it which causes the phone to restart.

                  More troubleshooting needed 😕

                  Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
                  Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    PhAndersson @lduboeuf
                    last edited by

                    @lduboeuf said in Trying to revive 'ubtd' (Bluetooth file transfer):

                    Congrats, So some changes are needed on UT to make it work ?

                    If your question is: did I need to hack my phone to make the app work in its current state, then the answer is no. As suggested by @gpatel-fr, I just gave it an "unconfined" AA profile (which I understand would prevent me from publishing it on the OpenStore).

                    So eventually an updated bluetooth AppArmor Policy Group would be needed, I guess (or a extra one dedicated to OBEX).

                    Xiaomi Mi A2 (16.04 OTA-25/stable) with 2 SIMs
                    Daily driver: Google Pixel 3a (20.04 OTA-11/stable) [was: Nokia N900 (Maemo) from 2009].

                    G 1 Reply Last reply Reply Quote 1
                    • P Offline
                      projectmoon @PhAndersson
                      last edited by

                      @PhAndersson I think any spawning of external processes that are not inside the app's ~/.local/share directory require unconfined. And in this case, unconfined would be required since it's using some system executable.

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        gpatel-fr @projectmoon
                        last edited by

                        @projectmoon said in Trying to revive 'ubtd' (Bluetooth file transfer):

                        I think any spawning of external processes that are not inside the app's ~/.local/share directory require unconfined.

                        If 'running an external process' means 'activating a service' via dbusk, not 'spawning', it can be done from confined I think. I did not check how exactly is working this application.

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gpatel-fr @PhAndersson
                          last edited by

                          @PhAndersson said in Trying to revive 'ubtd' (Bluetooth file transfer):

                          prevent me from publishing it on the OpenStore

                          Not sure of that actually, there are applications with a big red scary warning, that do not prevent them to be published.

                          Also, IIRC the idea on phone OS is that the app is shipped with granular authorizations policy and the user grant these rights or not. I don't see why you could not ship a granular apparmor policy for the app if you wanted to do so.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post