UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. gpatel-fr
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 288
    • Groups 0

    gpatel-fr

    @gpatel-fr

    61
    Reputation
    23
    Profile views
    288
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    gpatel-fr Unfollow Follow

    Best posts made by gpatel-fr

    • RE: We Drop Ubuntu Touch Entirely

      @grenudi said in We Drop Ubuntu Touch Entirely:

      500+ device ports versus Ubuntu Touch's approximately 50

      uh? I am currently evaluating my options on getting a so called 'smart' phone again without Google and of course Apple, and from what I see PostmarketOS has ONE (1) device that can (more or less) qualify as 'daily driver': the Pinephone. Not sure if it's even compatible with the carriers in MY country.
      My understanding is that UT has about 10.
      From this point of view, UT has more coverage but if you have lot of credible stories of people using Volla or Google or Fairphone or Samsung devices under PostmarketOS as their daily drivers, I am all ears.
      By the way your expletives about the forum are making you seem like a troll. Sorry but that's very much what it looks. This forum is working really well and I'm favourably impressed by NodeBB.

      posted in OS
      G
      gpatel-fr
    • RE: Why is Wayland compositor and Lomiri so far in terms of functionality compared to Compiz and Unity7 released some 20 years ago?

      @shano said in Why is Wayland compositor and Lomiri so far in terms of functionality compared to Compiz and Unity7 released some 20 years ago?:

      Compiz was released in 2006 and is still maintained. Unity7 was released in 2010 and is still maintained. My question is why Wayland and Lomiri are so far away in terms of functionality, plugins etc. compared to tech made 20 years ago.

      Are we building on top or reinventing the wheel?

      From what I see, Lomiri is not reinventing Unity 8, it is Unity 8.
      I downloaded the Lomiri source code and counted roughly 18000 commits between 2013 and 2017 (end of Ubuntu involvement) and 1400 commits between 2018 and 2025. The main reason is probably that Unity was a business project with serious resources behind it, while Lomiri (the new name for Unity 8 since 2020) is an open source project with a few part time volunteers. Also, it may be that there was so much work in Unity that there is not a lot of new development necessary, the bulk of new work being in other parts of the full (and huge) smart phone stack. I did not count but I think that a large part of these 1400 commits are just translations.

      I don't know Compiz but I tracked the project in its last hideout on Gitlab and counted about 30 commits in last 5 years, 20 of them in 2020. It's maintained in the most limited sense, there is almost no development.

      posted in Lomiri (was Unity8)
      G
      gpatel-fr
    • RE: GPS don't seem to work on FP5 UT 24.04 stable

      Duh ! I will close this stoopid post, I had not used seriously a smartphone since several years and did not realize anymore how sensitive to location Gps services are. I tried only in 2 places in my home and both where unsuitable. When I got out in the air, Gps started to work. So it is working, really. I did a stroll this morning and it updated its position. I have still to get my hands to another brand of smartphone on Android to compare with the Fairphone 5 under UT to see how well it is working.

      posted in Fairphone 5
      G
      gpatel-fr
    • [TIP] MMS behind Wifi

      Hello

      this is a little hack I have done to be able to send/receive MMS on my FP5 running 24.04.1.1 stable. Skills needed: some terminal experience, use of editor, sudo, basic networking knowledge, be able to read the system journal. If you are a total newbie in Linux, it may be better to abstain to attempt the following.

      Note that if your phone supports 2 cellular links, mine does not and so I have no idea if it will work in your case.

      Preliminary: find if your system behaves like mine by running the (very slow) command:

      journalctl | grep lomiri-download-manager | grep TimeoutError
      

      if you find lines looking like this:

      janv. 05 18:49:27 ubuntu-phablet lomiri-download-manager[21916]: E20260105 18:49:27.165113 21916 file_download.cpp:527]  Download ID{ 03d5e06553d8471085141080bcff97a1 }  http://213.228.3.45/mms.php?uZmaWepeEfC3hAAmufq69A ERROR::Network error TimeoutError: the connection to the remote server timed out
      

      then the problem is that the provider is blocking access to its network (here 213.228.3.0/24) when not accessing it from the cellular link (their own network). In this case, the following hack could apply to you.

      First step: add to the system the capability to change the network manager configuration.

      cat /etc/systemd/system/etc-NetworkManager-dispatcher.d.mount 
      [Unit]
      Description=Mount unit for etc/NetworkManager/dispatcher.d
      DefaultDependencies=no
      Requires=system.slice dev-sda17.device -.mount
      Conflicts=umount.target
      Before=umount.target local-fs.target
      Before=network-pre.service
      Wants=network-pre.service
      
      [Mount]
      Where=/etc/NetworkManager/dispatcher.d
      What=/userdata/system-data/etc/NetworkManager/dispatcher.d
      Options=rw,relatime,upperdir=/userdata/system-data/etc/NetworkManager/dispatcher.d,lowerdir=/etc/NetworkManager/dispatcher.d,workdir=/userdata/system-data/tmp
      Type=overlay
      
      [Install]
      WantedBy=network.target
      

      create this file with sudo.

      then:

      sudo mkdir -P /userdata/system-data/etc/NetworkManager/dispatcher.d
      sudo mkdir /userdata/system-data/tmp
      

      then add in our dispatcher.d directory the file that will call our script:

      cat /userdata/system-data/etc/NetworkManager/dispatcher.d/99routechange 
      #!/bin/sh -e
      
      interface=$1
      status=$2
      
      #logger "99routechange: ($interface): $status"
      
      /usr/bin/python3 /home/phablet/bat/networkchange.py $interface $status
      
      

      (you will have to create the preceding file using sudo of course)

      create our work directory

      mkdir ~/bat
      

      create the script that will ask to the system the network configuration when a change is detected and run the commands adding the necessary routes to the provider:

      cat ~/bat/networkchange.py 
      
      import os
      import subprocess
      import sys
      
      DEFAULT_ROUTE = 'default via'
      
      if __name__ == '__main__':
          interface = sys.argv[1]
          status = sys.argv[2]
          with open('/home/phablet/bat/status_network.txt', 'w') as f:
              f.write(f'network {interface} : {status}')
          with subprocess.Popen(['ip', 'route'], stdout=subprocess.PIPE,  universal_newlines=True) as ipr:
              lines = ipr.communicate()[0].splitlines()
              lig1 = lines[0]
              lig2 = lines[1]
              lig3 = lines[2]
              if lig1.startswith(DEFAULT_ROUTE) and lig2.startswith(DEFAULT_ROUTE) and not lig3.startswith(DEFAULT_ROUTE):
                  if lig1.find('wlan') != -1:
                      idx = lig2.find(' dev ') + 5
                      cellular_interface = lig2[idx:][0:lig2[idx+1:].find(' ')+1]
                      with open('/home/phablet/bat/cmd_to_run', 'r') as f:
                          lines = f.readlines()
                          with open('/home/phablet/bat/status_network.txt', 'w+') as flog:
                              for l in lines:
                                  new_line = l.replace('{cellular_interface}', cellular_interface)
                                  flog.write(new_line)
                                  os.system(new_line)
      
      

      then add the specific to your configuration route commands, example for my case follows:

       cat /home/phablet/bat/cmd_to_run 
      # cellular_interface is replaced by the caller
      ip route add 213.228.2.0/24 dev {cellular_interface} proto static metric 100
      ip route add 213.228.3.0/24 dev {cellular_interface} proto static metric 100
      # this is the address for mms.free.fr
      ip route add 212.27.40.0/24 dev {cellular_interface} proto static metric 100
      

      Please note that these IP addresses will not be correct unless you happen to use Freemobile (my provider). Otherwise, you will have to replace the IP addresses in the first lines by the specific addresses for your provider that you will find by using

      journalctl | grep lomiri-download-manager | grep TimeoutError
      
      

      Note that you may have to add more lines if your provider has many networks used.
      Also, do NOT add addresses server by server, use network ranges (here /24 means 256 consecutive IP addresses) else you will spend your life trying to cover all the servers used by your provider. In the case of Freemobile, at the moment Free seems to use 2 /24 ranges. Maybe there are some that have escaped me.

      and for mms sending, for my provider the dns name for the server is found in the cellular config, you will find the IP address by using dig:

      dig mms.free.fr
      

      (replace 'mms.free.fr' by the name of your provider mms server)

      It's possible that the configuration may be different for your provider.

      Note: you MUST use IP addresses, the symbolic names will NOT work; for my use here I replace mms.free.fr by 212.27.40.0/24.
      It's quite possible that your provider uses also symbolic names (not raw IP addresses like Freemobie) for downloading MMS, in this case you should also find an appropriate IP range using dig like I did for uploading.

      Finally, enable the whole systemd configuration.

      sudo systemctl daemon-reload
      sudo systemctl enable etc-NetworkManager-dispatcher.d.mount 
      sudo systemctl start etc-NetworkManager-dispatcher.d.mount 
      

      and you should be able to send/receive mms when wifi is activated.

      I hope I did not forget anything.

      Note that testing has been minimal 🙂 but the main risk is that it will not work.

      The configuration resists reboots.

      When this merge-request will land and be added to the stable release you use, then you will be able to disable this hack, that you will do by running

      sudo systemctl stop etc-NetworkManager-dispatcher.d.mount 
      sudo systemctl disable etc-NetworkManager-dispatcher.d.mount 
      sudo rm /etc/systemd/system/etc-NetworkManager-dispatcher.d.mount
      sudo systemctl daemon-reload
      

      Until then, happy MMS with wifi enabled !

      posted in Off topic
      G
      gpatel-fr
    • RE: GPS don't seem to work on FP5 UT 24.04 stable

      @GooglyBear said in GPS don't seem to work on FP5 UT 24.04 stable:

      a GitLab issue to follow progress for Fairphone 5

      AGPS is not really linked to a specific port (even if it can work on some devices it seems, but it's mostly unintended). It's tracked here

      posted in Fairphone 5
      G
      gpatel-fr
    • RE: Status of the Location Service (GPS, A-GPS, GLONASS, BeiDou, Galileo) ?

      @Moem said in Status of the Location Service (GPS, A-GPS, GLONASS, BeiDou, Galileo) ?:

      I don't know what any of that means

      it's a service provided by Qualcomm

      https://calyxos.org/docs/guide/security/network-activity/

      http://izatcloud.net/

      See an analysis here:

      https://ti.qianxin.com/blog/articles/Analysis-of-the-Hidden-Backdoor-Event-in-Qualcomm-GPS-Service-EN/

      TLDR: backdoor is too strong a word, but there are privacies issues. If the software is rewritten as open source, this could be less problematic.

      posted in Fairphone 4
      G
      gpatel-fr
    • RE: Enabling MAC randomization

      @uxes said in Enabling MAC randomization:

      shipped on our system by default

      I am not sure that any phone is doing that by default.
      It has also a downside for anyone using this phone with ssh, that is, the IP address affected by the Dhcp server (the wifi access point) will change often.
      It's not a big deal but it can be annoying.

      posted in Support
      G
      gpatel-fr
    • RE: New ConverseJS (XMPP) app with broken source links?

      @poVoq

      hello, not the dev here - but the links are not broken for me. The app is supposed to be based on

      https://github.com/luigi311/ConverseJS-ubports

      the links are a bit strange though (why not a software forge ? if the author don't like Github, there are other such as codeberg...). It's not stated in the original repo that the author has given up. Personally I'd not use this software without more information.

      posted in App Development
      G
      gpatel-fr
    • RE: Backup and restore (TWRP-style)

      @Charly

      I have seen one post seeming to say that it was restored in the most bleeding edge version, I can't vouch for it as I use stable, however if you install crackle you can use nix immediately and you can get the nix version of rsync (more up-to-date than the Ubuntu 24.04 version).

      https://gitlab.com/tuxecure/crackle-apt/crackle
      https://gitlab.com/EricHeintzmann/ubuntu-touch/xiaomi-surya/-/wikis/Install-with-crackle

      Once you have crackle running, run 'crackle install rsync' and you are there 🙂

      posted in Support
      G
      gpatel-fr
    • RE: Smooth Edges (name pending) - Let's Fix the Bugs That Drive You Mad

      @kristatos said in Smooth Edges (name pending) - Let's Fix the Bugs That Drive You Mad:

      if the input is to slow?

      FIY I have noticed that disabling haptic feedback was leading to me typing faster. I don't know if it's psychological or if the buzz is really slowing the keyboard. Give it a test if you don't have disabled it yet.

      posted in OS
      G
      gpatel-fr

    Latest posts made by gpatel-fr

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

      @PhAndersson

      My knowledge of apparmor is basic unfortunately. In particular, interaction with dbus is something I never looked at before UT, and bluetooth and network management with apparmor is totally unknown to me.

      Yes my suggestion of using network bluetooth was not very well thought out, I was believing that maybe there was special in associating the two, as if there was a right called network_bluetooth. My bad 🙂

      This said, there is something that bothers me in your log: it suggest that there is a denial in the sending FROM the server (the systemd service) TO your app. Usually when a sending is denied, it is the sender that is lacking rights.
      So following this idea, it could be the system itself that is missing a configuration. However, see above, I have no idea how rights are managed for the bluetooth services.
      Maybe all that is needed is to add an apparmor profile for the obexd executable, but often the obvious solution is wrong.
      Note that if you want to test it, there is no need to turn your rootfs r/w, with overlay or bind-root you can 'add' stuff in read only directories.

      Sorry not to be more specific, but going deep in system administration takes time and concentration and I'm currently in other stuff.

      posted in App Development
      G
      gpatel-fr
    • RE: French ID app interoperability.

      @pparent said in French ID app interoperability.:

      This is no longer relevant at this time:

      hmm, it did not take long for this beast to resurrect:

      https://www.lemonde.fr/pixels/article/2026/01/22/le-gouvernement-n-a-pas-renonce-a-acceder-au-contenu-des-discussions-sur-les-messageries-chiffrees_6663627_4408996.html

      posted in Off topic
      G
      gpatel-fr
    • RE: Working hours - Agenda

      @domubpkm said in Working hours - Agenda:

      Still strange not being able to set the minutes.

      if the code is storing begin work in an integers variables called businessHourStart and businessHourEnd, there is no way that you will be able to register minutes since there is no variable called businessMinuteStart... Some code refactoring (and UI) would be needed for that.

      posted in Support
      G
      gpatel-fr
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

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

      certain types of D-Bus requested are blocked by AA (such as AuthorizePush

      I have actually taken a look at the ubtd code and as I understand it AuthorizePush is a method defined by ubtd for obex.

      Looking at the Ubuntu touch bluez code with some dismay, it seems that this method is defined quite officially to allow the obex daemon to send data to a client, squarely fitting your use case, so why is there no apparmor policy for that ? As a wild guess, it looks like an oversight by Canonical that was forwarded by Ubuntu Touch - or even an oversight by Debian, forwarded by Canonical, forwarded by Ubuntu Touch. Maybe a bluetooth policy should exist.

      Or maybe it already exists ? looking at usr.sbin.cupsd in my Kubuntu 24.04 installation, I see a string 'network bluetooth'. Maybe adding that to your apparmor profile could strike gold ? Absolutely wild guess of course 😉

      posted in App Development
      G
      gpatel-fr
    • RE: mute audio from app

      @hacknorris

      I think that the silent mode only refers to the phone. For the slider, it's explicit: it is for the phone ringing. For general sound level, the hardware buttons are working in the browser.

      posted in Support
      G
      gpatel-fr
    • RE: changing camera - not recognized

      @DJac

      I don't know what you ordered and what you received so I can't have any opinion on that.
      Well, I'll post again the possibilities I see:

      1) the hardware you got is defective
      2) the hardware you got is functional, but there may be several submodels of the phone and the new camera is not 100% compatible with the previous one.
      3) something else was damaged when the phone did fall.
      4) there are problems with the repair.
      

      Whatever the reason, if you asked for the exact same model that was included in your hardware and you got another variant, the vendor has made a mistake and you can ask for a return.

      posted in Sony Xperia X (F5121 & F5122)
      G
      gpatel-fr
    • RE: changing camera - not recognized

      @DJac

      Sorry but getting back to my 4 points, the only one were this is not working because of a hardware problem is 2): the new hardware is not compatible with the driver.

      Android is (probably) not like Windows where when you pull a device from your computer and plug another in its place the system downloads another driver from the Internet: phones are not devices where you can plug and use new hardware.

      So if the 2) point is correct, the driver installed with Android matches exactly the old camera, and not the new one. Since UT uses the Android drivers, I don't see a way forward with this camera.

      posted in Sony Xperia X (F5121 & F5122)
      G
      gpatel-fr
    • RE: Working hours - Agenda

      @domubpkm

      I'm afraid that the values are defined as integer in the code.

      posted in Support
      G
      gpatel-fr
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      @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.

      posted in App Development
      G
      gpatel-fr
    • RE: Trying to revive 'ubtd' (Bluetooth file transfer)

      @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.

      posted in App Development
      G
      gpatel-fr