UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. hsce1
    3. Posts
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 18
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Call for testing: background location updates

      Hey @mardy, do you know if your background location service implementation has survived the transfer to focal?

      Edit: I guess I found the relevant MR: https://gitlab.com/ubports/development/core/lomiri/-/merge_requests/70

      posted in OS
      H
      hsce1
    • RE: The Cell Broadcast story

      @lduboeuf FYI, in Germany there will be another occasion for testing cell broadcast on September 14:

      "On the Nationwide Warning Day, a test warning in the form of a warning text is sent to all warning multipliers (e.g. radio stations and app servers) connected to the Modular Warning System (MoWaS for short) of the Federal Government starting at 11:00. The warning multipliers send the sample warning with a time delay to warning devices such as televisions, radios and smartphones. There you can then read and/or hear the warning. "
      https://www.bbk.bund.de/DE/Home/home_node.html

      posted in OS
      H
      hsce1
    • RE: FM radio: testing instructions and feedback

      @mardy
      Wow! FM radio on Ubports would be a dream!

      It is for sure not one of the priority devices but could fm radio potentially also work on the S3Neo?
      zcat /proc/config.gz | grep -n RADIO_IRIS gives:

      2587:CONFIG_RADIO_IRIS=y
      2588:CONFIG_RADIO_IRIS_TRANSPORT=y
      

      https://forums.ubports.com/topic/3652/call-for-testing-samsung-s3-neo-s3ve3g-owners/91

      posted in OS
      H
      hsce1
    • RE: Ubuntu Privacy Pack

      @libremax Love those pictures. Ubuntu + Ubuntu Touch look great next to each other!

      posted in Off topic
      H
      hsce1
    • RE: Ubuntu Touch Q&A 89 Saturday 21st November At 19:00 UTC

      A couple of months ago there has been a short discussions on enabling GPS access for apps in the background (github issue). Currently, there only exists a hacky way to record GPS tracks using the terminal app (forum link).
      I completely understand that this issue is not a priority but could you maybe explain in a few words what the technical difficulties or security considerations behind are? Is it a bug or is it a feature? Many thanks to all of you!

      posted in News
      H
      hsce1
    • RE: Call for testing: Samsung S3 Neo (s3ve3g) owners

      @libremax That's what I wanted to say 😉

      posted in Porting
      H
      hsce1
    • RE: Call for testing: Samsung S3 Neo (s3ve3g) owners

      Cool! Installer support would be amazing! Thanks a lot for all your hard work!

      posted in Porting
      H
      hsce1
    • RE: Call for testing: Samsung S3 Neo (s3ve3g) owners

      I have gathered some information for experimenting on the FM radio topic with the S3 Neo. After some digging I came across this documentation https://github.com/mer-hybris/hadk-faq#fm-radio. Is it possible that most of the changes can be done on a running device? Or am I getting it wrong?

      11 FM radio
      11.1 Qualcomm

      1. Needs a device with suitable FM radio hardware and a kernel defconfig containing CONFIG_RADIO_IRIS=y (CONFIG_RADIO_IRIS=m if fail to build IRIS_TRANSPORT as module) and CONFIG_RADIO_IRIS_TRANSPORT=m (or =y)
      2. If your CONFIG_RADIO_IRIS_TRANSPORT is built-in then this is not needed, however if you have problems try building CONFIG_RADIO_IRIS_TRANSPORT as a module: add (adapt to fit your device if needed) https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/lib/systemd/system/droid-fm-up.service and https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/lib/systemd/system/bluetooth.service.wants/droid-fm-up.service
      3. Sometimes device permissions are wrong (root owner), in this case add https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/lib/udev/rules.d/999-droid-fm.rules to your droid-configs repo (or directly to device for testing)
      4. Add qt5-qtmultimedia-plugin-mediaservice-irisradio to patterns (or install directly to device for testing)
      5. Add https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/etc/pulse/xpolicy.conf.d/fmradio.conf to your droid-configs repo (or directly to device for testing)
      6. Starting from Sailfish OS 2.0.2 FM radio Media app plugin jolla-mediaplayer-radio can be added to patterns.

      On my S3 Neo running UT, it seems that point 1 and 2 are satisfied:
      zcat /proc/config.gz | grep -n RADIO_IRIS gives:

      2587:CONFIG_RADIO_IRIS=y
      2588:CONFIG_RADIO_IRIS_TRANSPORT=y
      

      Regarding point 3. It seems to me that KERNEL=="radio[0-9]*", OWNER="audio", GROUP="audio" would have to be added since
      cat ~/../../android/system/halium/lib/udev/rules.d/70-android.rules | grep radio0 returns:

      ACTION=="add", KERNEL=="radio0", OWNER="system", GROUP="system", MODE="0640"
      ACTION=="add", KERNEL=="radio0", OWNER="fm_radio", GROUP="fm_radio", MODE="0640"
      

      No idea how to check for the other points.

      I know there is no FM radio app in the open store yet but could it work to build something quickly using this https://doc.qt.io/archives/qt-5.6/qml-qtmultimedia-radio.html?

      Unfortunately I have no experience in porting yet but if someone could give me a bit of guidance through the steps above, I'd be happy to sacrifice my S3 Neo for testing.

      posted in Porting
      H
      hsce1
    • RE: Sony Xperia X (suzu/F5121 & F5122)

      No problem. That was quickly fixed and no data was lost due to the switch 🙂

      posted in Sony Xperia X (F5121 & F5122)
      H
      hsce1
    • RE: Sony Xperia X (suzu/F5121 & F5122)

      @kugiigi Oh, ok. Thank you!

      posted in Sony Xperia X (F5121 & F5122)
      H
      hsce1
    • RE: Sony Xperia X (suzu/F5121 & F5122)

      Hi @c4pp4, I just switched from armhf to arm64 using the installer. But now I have the problem that the openstore crashes when I try to launch it. Is there a way to reinstall the openstore from the command line?

      Edit:
      I found a way that worked:

      sudo -H -u phablet pkcon install-local --allow-untrusted openstore.openstore-team_<VERSION>_arm64.click
      

      And after that reinstalling those apps that crash with the openstore.

      posted in Sony Xperia X (F5121 & F5122)
      H
      hsce1
    • RE: GPS tracking in Background - Edge Hack (Not Devel, Stable, RC)

      For me the fix seems to work. I am travelling by bike since more than a week and a combination of OSM Scout Server, Pure Maps and Utrack does a very good job guiding and tracking me. The error did not occur again.

      However, I realized that two fuctionalities would improve Utrack a lot:

      • Automatic saving of the track every few minutes in order not to loose the hard work of a day once the battery dies 😄
      • A possibility for pausing/resuming the tracking

      Do you think this would be possible without deteriorating the battery performance?

      posted in App Development
      H
      hsce1
    • RE: GPS tracking in Background - Edge Hack (Not Devel, Stable, RC)

      Hi @ernest,

      I just had a look at the Utrack.py and made the following change (line 183), which made the code run on my phone:

      if re.search("^longtide", line): #longtide bug in test_gps
          try:
              long = line.split()
      -       if re.match(".\d+.\d+", long[1]):
      +       if re.match("(?:\d+(?:\.\d*)?|\.\d+)", long[1]):
                  longitude = long[1]
              else:
                  subprocess.Popen(["truncate", "-s", "0", temp_file], shell=False)
      

      You are trying to match a floating point number here, right? Following this post it is apparently better to use "(?:\d+(?:\.\d*)?|\.\d+)". I've made a pull request.

      I hope this does not break other things. On the my phone it works..

      Here is the click if someone wants to test:
      https://drive.google.com/file/d/1AADkOrVwV-YvTo00XtHnC997e3gRNIi0/view?usp=sharing

      Best,
      Hendrik

      posted in App Development
      H
      hsce1
    • RE: GPS tracking in Background - Edge Hack (Not Devel, Stable, RC)

      Thanks a lot for your work!!!

      posted in App Development
      H
      hsce1
    • RE: GPS tracking in Background - Edge Hack (Not Devel, Stable, RC)

      Hi @ernest!

      Thank you for the quick response. Unfortunately I've another error now:

      Traceback (most recent call last):
        File "./Utrack.py", line 350, in <module>
          read_gps(p)
        File "./Utrack.py", line 177, in read_gps
          event = event.decode("utf-8")
      AttributeError: 'TailEvent' object has no attribute 'decode'
      
      posted in App Development
      H
      hsce1
    • RE: GPS tracking in Background - Edge Hack (Not Devel, Stable, RC)

      Hi there,
      Thank you @ernest for your work. Background GPS tracking is one of the features that I am missing most on Ubuntu Touch!

      I tried to make it work on my XperiaX and my Nexus 4 but unfortunately without success. After a short while the following error is returned:

      Waiting for satellites
      
      Traceback (most recent call last):
        File "./Utrack.py", line 317, in <module>
          read_gps(p)
        File "./Utrack.py", line 219, in read_gps
          if 70 > ACCURACY > 0 and len(longitude) > 0 and len(latitude) > 0:
      TypeError: unorderable types: int() > list()
      

      Utrack_log.txt is empty but in the Utrack_tmp.txt I can see that the satellite data seemes to be logged correctly. The location is correct. I X'd out the exact position:

      *** location callback
      flags:  55
      latitude:       50.XXXXX
      longtide:       4.XXXXXX
      accuracy:       23.000000
      utc:    -758278816
      

      The error appears strange to me since none of the inputs is a list. Do you have a clue what to do?

      posted in App Development
      H
      hsce1
    • RE: Call for testing: Samsung S3 Neo (s3ve3g) owners

      @Flohack Yes, MMS in and out works!

      posted in Porting
      H
      hsce1
    • RE: Call for testing: Samsung S3 Neo (s3ve3g) owners

      Thanks to @Flohack, @Nandell, @Speiburger, ... I also managed to install Ubuntu Touch on the S3Neo. Here is a short summary of the steps that were necessary: https://pad.ubports.com/p/k6P5Z9kPu1R5t_ocx3J-
      They closely follow @Flohack's description on top of this thread.

      posted in Porting
      H
      hsce1