UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. lduboeuf
    3. Best
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 44
    • Posts 1,056
    • Groups 0

    Posts

    Recent Best Controversial
    • New contact backend story

      Hi all,
      I'm working on the new contact backend, herited from the work of @mardy .
      Full story here: https://gitlab.com/groups/ubports/development/core/-/epics/19

      Carddav integration is in progress ( Nexcloud and generic cardDav works, teaser here https://m.youtube.com/watch?v=VG6i2LLLML0 ).
      Contact to Birthday calendar done
      Some regressions on address book app fixed ( avatar, import, massive delete etc... )

      For the migration, my idea is to only migrate local default address book,
      Add a carddav integrated feature for working around the issue with custom setup and give contact manual sync first.
      We will still be able to backup the current db with some command lines, and import them via the UI.

      This is the first step before a rework of Address book app and have better sync management ( scheduled sync, etc... )

      Technical:
      The idea is to keep for now Evolution Data Server & co.
      Calendar, Alarms , 3rd party apps ? , Ayatanah Datetime, Bluez relies on it...

      Add a doemon for contact to birthday sync. ( by creating a Birthday calendar and storing birthday there )

      Integration of buteo* and friends for cardDav support.

      Still unknown: BT integration for e.g: Car kit contact list

      I would appreciate your help for making this transition as smooth as possible.

      • Address book app: better online account integration, collections management
      • BlueTooth contact sync ( not working too on Focal apprently )
      • Notifications for sync states ( we have some UI report from indicator transfer )
        ...

      At this time of writing, the "how to test" is not ready. Will edit when easier to install.

      posted in OS
      lduboeufL
      lduboeuf
    • Contact custom incoming Call/Notification sound

      Hi,
      I'm starting to implement the custom sound for incoming sound and message.

      What we need:

      A global storage path for the sounds files.
      The custom ringtone and message should be settable and read from Address book / Messaging and Dialer app.
      We could choose between default OS sounds and custom ones.

      What we have:

      QContact provides a detail "ringtone" with 3 property fields:
      FieldAudioRingtoneUrl
      FieldVideoRingtoneUrl
      FieldVibrationRingtoneUrl

      FieldAudioRingtoneUrl should be ok for the incoming call
      But what for incoming message ? I would borrow the FieldVibrationRingtoneUrl property.

      Implementation:

      We could use the standard sounds directory as specified in freedesktop : ~/.local/share/sounds

      Telephony-service approver is the service responsible for playing the sound on incoming call, we already know the "contact" there, so it can just take the custom sound path if allowed and exist, otherwise play the usual sound.
      Same should occur for incoming messaging sound, code is in another place.

      Address-book-app: creates shared components to allow editing the ringtone contact detail ( default sounds + custom ones + allow to import new )

      There will probably need app-arrmor permission rules to add.

      Any things to think more ?
      --=========OBSOLETE===============
      The below notes was for Xenial

      [EDIT]: testable ( devel only):

      sudo ubports-qa install PR_telephony-service_65
      sudo ubports-qa install PR_address-book-app_211
      reboot

      If you don't want to overwrite existing address-book-app, this can be built with clickable but you will not have custom sound preview and messaging-app and dialer-app won't benefit of the click package. just clone and run clickable --arch yourarch
      If someone can help me setup a CI click build

      Note that currently only audio call ringtone is supported and you can only import custom sounds with address book app
      Edit a contact, choose "Ringtone" in the dropdown, select a default system sound or import one.
      Try an incoming call....

      posted in OS
      lduboeufL
      lduboeuf
    • [Guide] Code completion on Qt Creator for Ubuntu.Components

      Hi,
      Just to share my experience for developping Apps with QtCreator:
      ( A rewrite from https://gist.github.com/lduboeuf/dcf22607207d5b7abc8ac966d20942ce )

      To get Ubuntu.Components recognized by QtCreator:

      • If you work on Ubuntu (16.04-18.04) :
      ## Get public Ubports key
      wget -qO - https://repo.ubports.com/pubkey.gpg | sudo apt-key add -
      
      ##add ubports repository
      sudo add-apt-repository "deb https://repo.ubports.com/ [bionic|xenial] main"
      
      ##install Ubuntu.components
      sudo apt install qml-module-ubuntu-components
      
      ##qml components should be installed in "/usr/lib/x86_64-linux-gnu/qt5/qml"
      ##set the environnement variable to profile
      echo "export QML_IMPORT_PATH=/usr/lib/x86_64-linux-gnu/qt5/qml" >> ~/.profile
      
      ##reload env or you might need to logout/login
      source ~/.profile
      
      • A more generic solution using clickable image:
      ##run container clickable
      docker run -i -t --entrypoint /bin/bash clickable/ubuntu-sdk:16.04-amd64
      
      ##in an another terminal, get the container id
      docker ps
      
      ##copy ubuntu components to local folder
      docker cp [container id]:/usr/lib/x86_64-linux-gnu/qt5/qml/ /your/local/directory
      
      ##set the environnement variable to profile
      echo "export QML_IMPORT_PATH=/your/local/directory" >> ~/.profile
      
      ##reload env or you might need to logout/login
      source ~/.profile
      
      ##stop container
      docker stop [container id]
      
      
      • Or running QtCreator in a docker container based from clickable image:

      example here: https://github.com/lduboeuf/ut-qtcreator , use branch "add module" branch for installing also some UT qml modules

      EDIT: Now clickable provide a Qtcreator IDE with clickable ide qtcreator command
      https://docs.ubports.com/en/latest/appdev/index.html#code-editor-integrations

      posted in App Development
      lduboeufL
      lduboeuf
    • RE: Get Started On Your First Ubuntu Touch App

      If anyone interested, this is also one of mine, with surely some mistakes and omissions , sorry : https://m.youtube.com/watch?v=TE-s5522v0Y

      In french: https://m.youtube.com/watch?v=lU6J01XB4pc

      posted in News
      lduboeufL
      lduboeuf
    • Test alternative pin code prompt - system settings integration

      Hi all,

      I've managed to try adding an alternate pin code prompt based on that work: http://guidopallemans.blogspot.com/2013/09/some-time-ago-i-saw-beautiful-lock.html

      As stated here: https://github.com/ubports/ubuntu-touch/issues/1940
      One of the task is to add to security system setting a toggle to select the pin code prompt:

      screenshot20220303_104224212.png

      And a demo "tester" to be familiar with this new way:

      screenshot20220303_104226696.png

      I've pushed an app click demo here: https://open-store.io/app/lockertest.ld
      download:( https://open-store.io/api/v3/apps/lockertest.ld/download/xenial/all )

      Any feedback welcome.

      ( For a demo of this pin code prompt integrated in Lomiri: https://user-images.githubusercontent.com/11663835/154673358-5c7c1cfe-f7ce-4d66-98de-e108cd4fba16.mp4 )

      source code : https://github.com/lduboeuf/utpincodetester

      posted in Design
      lduboeufL
      lduboeuf
    • RE: Ubuntu.components ? ( Developpment guidelines )

      Well, my first native app just landed on Openstore. https://open-store.io/app/ttbn.lduboeuf
      I've only used QQC2 components and imported needed svg icons from suru theme.
      I admit that as a QML beginner, it was sometimes hard to make things work and displayed correctly... color theme is still not that good.

      But i'm happy that i can now build for multi os and still use QtCreator.
      Thanks for all your examples

      posted in App Development
      lduboeufL
      lduboeuf
    • RE: no birthdays on contacts?

      @Mystic-X hello, i'm working on it, will land hopefully soon, at least for having a birthday field on the contact app

      follow-up here: https://github.com/ubports/address-book-app/issues/5

      posted in Support
      lduboeufL
      lduboeuf
    • The Cell Broadcast story

      Hi all, trying to work on the Cell-Broadcast feature.
      I'm writing here just as a shared note...

      First step could be to implement only Emergency Alerts.

      That would need a persistent Notification if possible with a specific sound ( see https://forums.ubports.com/topic/7794/cell-broadcast-story-ui/8), a notification in the messaging indicator and a way to read it later.

      We should also have a toggle in settings to enable/disable the feature.
      I know some country are even making the option mandatory.
      Question here: Should that option be in notification category or in cellular related things ?

      As that behaviour is almost like a classic sms, i'm planning to use the current Telepathy Framework by just doing some tweaks ( define a constant sender, MessageType of ChannelTextMessageTypeNotice ).
      Define a fake Contact that have the "warning" as the avatar so that it can be recognized in the messaging-app and popups/notifications.
      We are lucky to have already the phone part, Ofono expose a Dbus interface for CellBroadcast ( not tested yet )

      The work will involve work in telepathy-ofono, telephony-service, history-service (not sure)) , system-settings, gsettings-ubuntu-touch-schemas for the alert sound ).

      telepathy-ofono: Takes inputs from ofono cellbroadcast signals ( https://github.com/ubports/ofono/blob/xenial/doc/cell-broadcast-api.txt ). Currently there are notifications for the ETWS system (EmergencyBroadcast signal) and another for all other channels (IncomingBroadcast).
      My idea here is to merge the 2 signals and send toward Telepathy a TextMessage with the sender identified as "x-ofono-cellbroadcast", the Subject as the channel topic, type of message of ChannelTextMessageTypeNotice, and the body of the alert in text property.

      telephony-service: Listen to Telepathy incoming TextMessage, when message == ChannelTextMessageTypeNotice, sender is "x-cellbroadcast-alert" , and according to Subject, we should display a notification with the corresponding sound.
      Different levels of warning are here dependent of the Subject.
      The alert is also displayed in the message indicator, and a way to open messaging app to see it again.

      history-service: Listen to Telepathy incoming TextMessage ans stores the alert as a message ( message could be of type MessageTypeInformation)

      messaging-app: The alerts are gathered into a Thread, the notification icon could be the "broadcast icon", and messages can be styled differently according to their Subject ( channel ).

      system-settings: Subscribe to channels, toggles to the different type of broadcast

      e.g on Android:
      172725142-ac6bbcf0-df5d-4abe-af46-dd59374b46c3.png

      Issue reference: The issue: https://github.com/ubports/ubuntu-touch/issues/141

      Spec IETSI: https://www.etsi.org/deliver/etsi_ts/102900_102999/102900/01.03.01_60/ts_102900v010301p.pdf
      Spec 3GPP: https://www.3gpp.org/ftp/Specs/archive/23_series/23.041/ ( last one - see 9.4.1.2.2 Message Identifier for the channel list)

      android constants: https://github.com/aosp-mirror/platform_frameworks_base/blob/c5d02da0f6553a00da6b0d833b67d3bbe87341e0/telephony/java/com/android/internal/telephony/gsm/SmsCbConstants.java

      Help needed for the UX part:
      https://forums.ubports.com/topic/7794/cell-broadcast-story-ui/8

      Currenlty Xenial telepathy-ofono uses a libofono-qt version which does not include the Cellbroadcast API => See with Team

      The test procedure is written here ( see "Test" section) : https://github.com/ubports/ubuntu-touch/issues/2003

      posted in OS
      lduboeufL
      lduboeuf
    • messaging-app: Stickers feature

      hi,

      I've been working in re-enabling the Sticker feature in messaging-app (MMS).
      Here are some screenshots:

      To access it, i've decided to put the "Sticker" icon as part as the attachment panel. Before it was inserted just after the "attachment" icon, but find it a bit annoying to access it.

      screenshot20210113_182527334.png

      To create a new pack, the "+" button is on the right of the tabs

      screenshot20210113_182532145.png

      To import and delete the pack, the buttons are at the bottom-right
      To delete only one sticker, long-press on it

      screenshot20210113_184123731.png

      Any feedbacks ?

      posted in Design
      lduboeufL
      lduboeuf
    • RE: CardDav (contacts) support

      @lduboeuf said in CardDav (contacts) support:

      @gwengui said in CardDav (contacts) support:

      Hi,

      @mardy does not seem to connect to this forum anymore.

      Does anyone has any news about the new address book app and CardDav support ? It was almost there in Xenial OTA 24 before its removal.

      CardDav synchronisation would be a great feature with Focal !

      Hi,

      AFAIK no one have worked on it. I personally fixed some regressions here and there, but there is still the missing piece of contact synchronisation and i have no idea how to do that.
      Hope @mardy or someone can push it back again soon 😉

      FYI i got carddav with new backend working on my device. Still early to celebrate though and with manual config only. Lots of testing and reverse engineering to do.

      posted in OS
      lduboeufL
      lduboeuf
    • Cell Broadcast story - UI/UX

      Hello all,

      I've started to have a look on the Cell Broadcast feature.
      The first step we can have is to just display a Notification for Emergency one, but we need to think to implement the full feature.

      there will be several levels of alerts and types.
      Level 1: Critical, the notification should use a "critical" alert sound along with a persistent popup.
      Level 2: Extreme, attention alert sound with persistant popup
      Level 3: Severe, attention alert sound with persistant popup
      Level 4: Public Safety: attention sound with ephemeral popup
      Amber ( child abduction): attention sound with ephemeral popup
      Tests: attention sound with ephemeral popup

      So the question for now is: Which icons to use, security-alert ?
      , and we would need to add specific Alert Sound ( critical + others). Which one could be used ?

      ref: https://forums.ubports.com/topic/7798/the-cell-broadcast-story

      posted in Design
      lduboeufL
      lduboeuf
    • RE: New contact backend story

      Some demos shown with Q&A 142:
      https://m.youtube.com/watch?v=5tHCgwuVpnk

      posted in OS
      lduboeufL
      lduboeuf
    • RE: The font size in "Messages" is so small, auuu my eyes -_-

      @jin-diggs there is now a font size tuning in messaging-app in 20.04

      posted in Support
      lduboeufL
      lduboeuf
    • RE: Pin code removal of 4 digits limitation

      @josele13 yes that's an idea ;-).
      I think i will just start with the less possible change. Meaning just allowing more than 4 digits and no change regarding UX ( empty dots that have the length of expected pin code and auto-login ).
      Improvement can come afterward.

      posted in Design
      lduboeufL
      lduboeuf
    • The MMS lost story

      Hi,

      As you know, since the beginning of UT, when Cellular Data is off or if any issue regarding the MMS download, the MMS will be lost, no way to retrieve it later and moreover no notification is sent to the user.

      The complete feature need some skills that i don't have but as a quick fix, i managed to forward any issues as a normal MMS but empty so that user is at least notified something went wrong.
      see:
      https://github.com/ubports/nuntium/pull/3, https://github.com/ubports/telephony-service/pull/13, https://github.com/ubports/messaging-app/pull/248
      It works!

      My question is: should i spent effort to continue doing that "work around" or is someone ready/available to do a more complete scenario (when MMS error: retry or notify, implement deferred download, only download if user allowed to, etc... ) ?

      In case it is a better than nothing solution , what would be a good message to display to user ? ( note that it will be received as a sms )

      Or if any simpler solution, like just displaying a notification( only one place to maintain )

      Related doc:
      See Canonical's specification for the MMS (partly implemented today): http://docs.ubports.com/en/latest/systemdev/mms-infrastructure.html

      [Edit]: UI follow up https://forums.ubports.com/topic/5102/ui-for-mms-errors

      [Edit]: Thanks to the huge work of @jezek we can now be confident with MMS. please test it 🙂 :
      https://forums.ubports.com/topic/5100/the-mms-lost-story/124

      posted in OS
      lduboeufL
      lduboeuf
    • RE: [HowTo] Alternate way of saving battery when using 4G/LTE

      Hi all,
      [20.04 only]
      I've made an app to allow to auto toggle LTE (4G) when cellular data is requested, and back to GSM (2G) when no data.

      If anyone interested:
      https://gitlab.com/lduboeuf/battery-saver/-/artifacts

      source code:
      https://gitlab.com/lduboeuf/battery-saver

      the app can be closed after clicking "start" and if you see "Running...", it will create a background service

      Edit: don't know if it is related but connectivity tends to have issue on upgrading to 4G. Or maybe only an indicator issue.

      posted in Support
      lduboeufL
      lduboeuf
    • RE: CardDav (contacts) support

      @lduboeuf said in CardDav (contacts) support:

      FYI i got carddav with new backend working on my device. Still early to celebrate though and with manual config only. Lots of testing and reverse engineering to do.

      New backend, carddav with NC account: It works! ( still need UI fixes)
      photo1712524222.jpeg

      posted in OS
      lduboeufL
      lduboeuf
    • RE: Daily driving the FP4 for some 4 months

      @oistein said in Daily driving the FP4 for some 4 months:

      So I have now been daily driving my faiphone 4 for about 4 to 6 months and in my experience, it works fairly well.

      I general I have found few major bugs and the system generally feels fairly complete.

      The most annoying issue is the implementation of the keyboard/dictionary. When I press the space button, i want a space to be inserted. It's not hard, but when I have to press between 2 to 3 times to get a space, leading spaces gets deleted when deleting the trailing characters of a word or using the dictionary always adds spaces, typing becomes a serious pain.

      Maybe you have auto correction or punctuation On ?. You can disable it in system settings -> Language & Text

      However, the the interface....... At this point, we have IOs, Android and Windows Phone, which all have the vertical for OS function and horizontal for screen manipulation/application functions. This makes application manipulation feel familiar across devices. swipe left/righ to change music track, previous/next webpage or image. Changing this is a bright idea but not a good one. I still get unwanted behavior trying to go to a previous webpage only to open the app menu or worse trying to open the app menu and moving away from my current webpage. It might work on a tablet, not on a phone.

      It needs some training, true if you come from another OS. But as it is made by design, i don't see how it can be replaced easily

      Lastly, a sane image viewer, would be nice, like having the ability to open more than one image in a folder and organize/sort by folder/name. Sorting by tags and date is nice, but without the ability to sort by folder/name my carefully created documentation databases becomes rather unusable.

      Make a feature request in the gallery app repository https://gitlab.com/ubports/development/apps/lomiri-gallery-app and pray for someone willing to take that 🙂

      In summary, it works fine, there's a bit of a lack of apps and a few bugs, most notably: a poor implementation of the keyboard/dictionary, a lack of a functioning image viewer and a bit buggy browser. The biggest issue is still the choice of using the horizontal for OS functions, that's a no. So I'm going to try modding but I will likely be switching to something else.

      We all live with some things we would like that work better, that is what to expect from a community project with a small team of volunteers

      posted in 20.04 Focal Fossa
      lduboeufL
      lduboeuf
    • RE: Some stuff that can be improved on this Forum :)

      hi, can you change the topic title so that it turns more in a positive/constructive thread ?
      It hurts me each time i open the forum 🙂

      posted in Off topic
      lduboeufL
      lduboeuf
    • RE: Dekko2 how to open attached .wav files?

      @keneda i've done something that should be ok with xenial. I will try to push it to the Team for OTA-24
      That would need an update of music app too.
      finger cross

      posted in Support
      lduboeufL
      lduboeuf