UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. PhAndersson
    3. Posts
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 121
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      @domubpkm said:

      @PhAndersson Can connect with bluetooth a Volla with Volla OS to a Volla 22 with UT noble.

      There is currently a bug in Noble (up to 24.04-1.2) that prevents the OBEX daemon from starting.

      The fix exists and is already merged. Here is the related MR: https://gitlab.com/ubports/development/core/ubuntu-touch-session/-/merge_requests/81. It is supposed to be part of the upcoming 24.04-1.3.

      Based on earlier tests by @gpatel-fr, once this fix is available, 'ratatoskr' should work on Noble as well.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      I need to amend the statement above. After further tests, the code that has been used to generate the packages is the correct one, so all the latest functionalities are present, and both sending and receiving files should work.

      The only problem is that the wrong version string has been used when building.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      Sure, Tweak Tool, of course -- sorry.

      I just checked on my phone and it shows there, yes. Just look under the name 'Ratatoskr' (that's the actual name I gave the app -- "Bluetooth file transfer" is only a description).

      It's the first UT app I built, so I'm not familiar yet with all the intricacies of the dev. workflow.

      In any case, it seems there was a mixup, as the packages that were pushed on the server are v0.1.0, not v0.1.1. The "file sending" functionality may not be functional in that version (the receiving one should be).

      I'll try to get this fixed tomorrow.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      @domubpkm said:

      @PhAndersson Should the app be shown in UT TT apps ? I don't see anything on my Volla 22.

      I'm sorry, I guess I'm a bit slow tonight, but I'm not clear on what 'TT' means in this context. Can you clarify?

      What should be the names of the cache config data directories ?

      The app cache is in ~/.cache/ratatoskr.petroniusniger/. This is where incoming files are kept -- but there is no config data there (the app doesn't store any configuration data at this stage).

      posted in App Development
      P
      PhAndersson
    • RE: Any way to push contacts to car kit?

      OK -- replying to my own post 😉

      To resolve the issue, I decided to revive the old 'ubtd' app. Its new incarnation has passed the code review and v0.1.1 is now available on the OpenStore.

      You will find it under the name "Ratatoskr (Bluetooth file transfer)", in the "Utilities" category.

      If you install it, may I suggest that you check the README here: https://github.com/petroniusniger/ratatoskr/tree/main for a brief description of how to use it most effectively?

      Also, should you discover any bug, please report them here: https://github.com/petroniusniger/ratatoskr/issues

      posted in Google Pixel 3a/3a XL
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      Final status update: the app has passed the code review and v0.1.1 is now available on the OpenStore.

      You will find it under the name "Ratatoskr (Bluetooth file transfer)", in the "Utilities" category.

      If you install it, may I suggest that you check the README here: https://github.com/petroniusniger/ratatoskr/tree/main for a brief description of how to use it most effectively?

      Also, should you discover any bug, please report them here: https://github.com/petroniusniger/ratatoskr/issues

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      Status update:

      'ratatoskr' source code has just been reviewed by @bhdouglass (OpenStore team), and two issues have been identified that should be resolved before allowing publication of the .click packages:

      • https://github.com/petroniusniger/ratatoskr/issues/12 (new one)
      • https://github.com/petroniusniger/ratatoskr/issues/6 (known issue)

      I'll work on resolving those 2 issues and release a v0.1.1 of the code before re-submitting it for publication.

      posted in App Development
      P
      PhAndersson
    • RE: Hardware recommendation for Noble

      @projectmoon said in Hardware recommendation for Noble:

      Volla Quintus has served me well so far. It's also one of the only devices that is officially commercially supported for UT. Volla has someone working on UT for their devices.

      Many thanks -- I'll give it a look. I guess flashing my first 2 phones with fastboot and adb earned me a few nerd points, but I won't complain either if the next one comes pre-installed 😉

      posted in Devices
      P
      PhAndersson
    • RE: Hardware recommendation for Noble

      @MrT10001 said in Hardware recommendation for Noble:

      The Google Pixel 3a is a good device, but unfortunately lacks the VoLTE support

      Indeed -- the support for that device is excellent overall. I'm very happy with it. It's just a pity that the HW specs are a bit basic.

      For me and this is what you will get as everyones experience varies the devices I recommend are OP5 and OP5T, Nord N100 and Nord N10 5G, Xiaomi Redmi Note 9 Pro and Xiaomi POCO X3 NFC...

      OK, thanks -- I'll have a look at those.

      Anything device that has worked with Focal should clean install to Noble with a few exceptions (OP6 and OP6T and Xiaomi Mi A2).

      You surprise me -- I thought the Mi A2 was never ported to Focal. I have one, but it's still on Xenial.

      posted in Devices
      P
      PhAndersson
    • Hardware recommendation for Noble

      Hello everyone,

      I'm currently using Focal on a Google Pixel 3a as daily driver, and I would prefer to wait a bit before upgrading it to Noble. But I would also like to start porting an app I'm writing to the latest UT platform.

      Could you please tell me which phone would provide the best user experience (considering a scenario where it would be imaged with Noble straight away, not upgraded from Focal, and use the latest available version, not /stable)?

      Side question: do we still need to start from Android 9 before installing Noble?

      Thanks in advance for any recommendation.

      posted in Devices
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      @PhAndersson there's active OpenStore matrix room.

      Many thanks -- I just joined it.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      as they say in open source, 'unfortunately' the MR was backported to the 24.04-1.x too late to be included in the 24.04-1.2 version 😞 . That means that your app will not work at all in this version unless some system fiddling is done by the user.

      So this means waiting for 24.04-2/stable, I guess...

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

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

      it says the official Android or iOS app is required to do this, which I don't have access to

      I have heard Telegram works on Waydroid, fwiw.

      Thanks for the tip -- I'll give it a look.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      I've hit a snag. I'm supposed to contact the review team on Telegram to try and get my app approved for publication on the OpenStore, but it seems I can't create a Telegram account through the UT Teleports app -- it says the official Android or iOS app is required to do this, which I don't have access to.

      I'll try to contact 'bhdouglass' via the forum instead.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      @PhAndersson

      Anyway, I tried to regenerate the click without the unconfined template. Now, the confined app can send files to the Android phone without problem at all. It's in the other direction that I get an authorization error:

      Yes, I'm aware of this -- I already reported this higher up in this thread. The SharePlugin works fine with a confined AppArmor profile. It's only the main app that needs wider rights to interact with D-Bus / OBEX.

      Now I don't think anymore that it's a matter of setting the system to grant the authorization. You see, in the other direction on the Android phone I get a prompt to authorize the transfer. The UT phone can't simply push files to the Android phone without any user interaction.
      And I think that this should be the fix: that somehow the UT user (phablet) get a prompt to grant the other system the (temporary) right to write the file to the UT destination.

      Having a prompt for the user to accept the incoming transfer is indeed needed (and already tracked through issue #6), but I don't see this as related to the fact that a confined AA profile prevents the app from issuing the "AuthorizePush" message.

      This clearly needs further investigation.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      note that the idea of using BT sharing instead of BT plugin is a suggestion, I think (personal opinion) it's better than 'BT plugin', but it's not necessary the best idea.

      Understood -- I created the issue to make sure it doesn't slip my mind. If better suggestions are offered, they are welcome!

      Also reading them reminds me that I could take a look at the confined problem. This said, it seems that the mere fact of using 'bluetooth' makes this application something to be vetted, even if it's confined.

      Correct.

      I don't know why, given that unrestricted applications can access Internet and (I think) the local network, it seems to me to be a risk even greater than bluetooth 😉

      In theory, unconfined applications are simply forbidden, as they could do almost anything (that the user they run as could do). I'll try to contact the review team on Telegram to get the review process started. Without that, I can't distribute the .click packages on the OpenStore.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      All issues created in GitHub:

      https://github.com/petroniusniger/ratatoskr/issues

      Some of them will be documented further.

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      Yes it should be possible to stop the phone to being a speaker while being able to get files; I used this link, that is, used an overlay to restart the bluetooth daemin with the -C flag, used sdptool to delete all records relevants, restarted the bluetooth service, paired again the two phones, and then the Android phone could push a file to the UT one without the UT phone blaring music when the Android phone was playing something.

      In fact I probably deleted more than was necessary since I did not realize that it was necessary to restart the bluetooth service after using sdptool - probably only audio sink was necessary.

      I'm not familiar yet with the kind of "records" you deleted through sdptool -- just keep in mind that in the case of a car kit, you want it to play speaker and accept files at the same time...

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      today I searched Internet on how to transfer a file from Android, succeeded to send a photo to my UT phone using Bluetooth, it works.

      Great news! I don't have an Android phone, so I couldn't test that.

      Notification is less clear than with Android, there is only a sound, no visual prompt, and it's necessary to open the application, see the prompt in the app, download the file to a folder, then it's finally possible to display it.

      Yes, the "recommended workflow" is to start the app on the UT phone before pushing the file from the other device. I guess one way around that would be to allow OBEX to start the app when an incoming transfer is detected. This may not be trivial...

      On the whole the receiving file UX is behind what Android (14 in this case) does and not as simple as transmitting files from UT toward another device.

      I can't say I'm surprised by that assessment 😉

      While doing some stuff on the Android phone, I noticed that there was some sound on the UT phone, like if the 'keys' entered on the Android unlock screen had a sound echo on the other phone.

      Yes, I noticed the same thing -- I don't believe it has anything to do with 'ratatoskr' as such. As soon as I connect my phone to my Linux laptop, the laptop becomes the speaker for the phone (which is very annoying when someone tries to call you). When you pair two phones together, I don't know how they decide which one will play speaker...

      posted in App Development
      P
      PhAndersson
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      First of all, many thanks for your extensive tests -- your feedback is invaluable.

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

      @PhAndersson

      I could test it with my low cost Android phone. Magic ! I see that you even solved the addressing by Mac address since I could use the Android phone actual name. I'll admit that doing 3 quick file transfers I got 2 successes and 1 failure (that's what is reported by the Android phone) but I'm not even attempting to understand what happened when it did not work, the glass is more than half full that's all that counts, everything blends beautifully with the UT UX paradigm.

      🙂

      I was just flabbergasted that it worked with my 24.04-1.2RC2... until I remembered that I had done an overlay to start the obexd service.

      Nonetheless, that's excellent news! It means that if the obexd issue can be solved at platform level, the app could be ported to 24.04 with minimum effort.

      Now back to the original test, reinstall the bt plugin, test with the overlay, works again. Disable the overlay (that is, having the obex service not functional), restart the phone: every transfer attempt I do ends in failure. That's expected in fact. Now for my first problem with the software itself: it is not reporting what's wrong. That's a common theme with Ubuntu touch (and well, most modern software): when things go swimmingly, all is good. When the going gets though, user experience goes pear shaped. In a word, good notifications are missing. I'm very interested in notifications in UT to be frank, given that the average UT software is not reporting problems any better than the Bt plugin.

      That's a fair comment. At this stage, if anything goes wrong, you'll have to dig through 'journal' to try and understand why, which is not for the faint-hearted.

      Second problem: when I had made the obex service functional again, I (unwittingly) messed up the transfer from the other side of the exchange (the Android phone); instead of clicking the arrow to open the notification on the Android screen, I pressed it, that had the side effect of dismissing it. On the UT side, the exchange was not stopped but not dismissed either. I swiped the whole thing away and tried to repeat the operation. After I think 3 times, the exchange failed always, even if I did the right thing from the Android side. I rebooted the UT phone and things got back to successful transfers.

      That's a good catch!

      I don't want to give the impression that things are bad, just report what happened.

      And I'm truly grateful for it 🙂

      The real news is that things look real good like I said at the beginning, however I need to do quite a few things:

      1. put together a MR on gitlab to solve the obex service start failure.

      That would be great indeed!

      1. investigate the keyboard crash. Maybe it was fscitx5 related and it was coincidental entirely. But it will have to be tested a bit.

      I've never played with alternative keyboards on the phone. I doubt it could be related, but who knows...

      1. more long term: take a look at the code and see if it could be made more robust against user mistakes and system failures, report problems better.

      Indeed.

      As a final note, I'd say that maybe having the plugin named 'BT sharing' instead of 'BT plugin' could be clearer for users that have not followed things and read the README.md.

      Sure, that's easily fixed 😉

      It's not because technically it's a plugin that users need to learn to speak and understand the UT lingo. Maybe it's just me of course.

      In the same vein, could the 'app plugin' be not present at all in the drawer? I don't see why the plugin has to appear in the drawer, especially while trying to open it ends in a error message saying that it's not appropriate to call it from here...

      That's already on my to-do list and the result of a conscious design choice. I wanted to provide the basic functionalities as fast as possible, just to bridge what I perceived to be a big gap in the current app offering, even if that meant a first version that would seem a bit clunky...

      I took note of all the problems you reported and of your suggestions and I will create issues out of them on GitHub, along with the other open points on my to-do list. That will make them easier to follow.

      posted in App Development
      P
      PhAndersson