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

doubts more than problems

Scheduled Pinned Locked Moved Unsolved Support
20 Posts 6 Posters 1.1k Views 2 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.
    • E Offline
      ebsigma
      last edited by 25 May 2023, 08:46

      more than a problem is a doubt.

      I would like to know if there is a way to make a package of the rom in which the gps is disabled.

      Also know, if from settings I remove the gps, if there is a way for any application or permission to bypass that restriction and reactivate the gps.

      My example is that I deactivate it for privacy, and if they attack my mobile
      , if an external attacker, either through other methods or through an app, can connect the GPS and obtain the location.

      (This is extrapolated to other device sensors such as camera, gyroscope, sim...)

      A M 2 Replies Last reply 25 May 2023, 12:46 Reply Quote 0
      • A Offline
        arubislander @ebsigma
        last edited by 25 May 2023, 12:46

        @ebsigma Generally no. An app has to advertise that it will be using the GPS (or other sensors as the case may be) All apps in the Open Store advertise what permissions they expect to have. And even then, the first time the app explicitly wants to use the GPS (or other sensor) a prompt is displayed alerting the user and asking them to grant permission.
        Afterwards, if the user wishes to reverse their decision, the permissions can be rescinded in the settings.

        Also there is the fact that apps are confined, and blocked from doing more than they advertise they will do, or unconfined, in which case they have to be Open Source and the source code is actively reviewed every time before publishing a new version.

        If you are so concerned about these things, it would be a good idea to learn to read source code, so you can audit the code of the apps running on your device to your own satisfaction.

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        Google Pixel 3a (20.04 DEV)
        JingPad (24.04 preview)
        Meizu Pro 5 (16.04 DEV)

        P 1 Reply Last reply 25 May 2023, 13:21 Reply Quote 0
        • P Offline
          prophanetes @arubislander
          last edited by 25 May 2023, 13:21

          @arubislander said in doubts more than problems:

          If you are so concerned about these things, it would be a good idea to learn to read source code, so you can audit the code of the apps running on your device to your own satisfaction.

          In general I thought your response was great, but I find this part a little dismissive. I wholly agree it is a "nice idea" to be able to inspect source code, but it is far easier said than done. It takes years to become semi-proficient in a single language, and I don't know anyone who learnt a programming language by reading it alone, and not actually writing with it. It would be far simpler to just know the hardware was disabled, than expect the user (any user) to read and understand the code of every single application that could possibly want to use that hardware, in any language it may be written in.

          A 2 Replies Last reply 25 May 2023, 13:58 Reply Quote 0
          • A Offline
            arubislander @prophanetes
            last edited by 25 May 2023, 13:58

            @prophanetes I did not mean it to be dismissive. And it is not advice that I would give to everyone in every situation. In this case it seemed relevant. The only way you could be sure that the hardware is disabled is to have hardware switches. Unfortunately most devices UT runs well on do not have these. So in that case the user would either need to trust the word of others, like mine, or learn to audit the software themselves. I honestly don't see any other way around it.

            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
            Happily running Ubuntu Touch
            Google Pixel 3a (20.04 DEV)
            JingPad (24.04 preview)
            Meizu Pro 5 (16.04 DEV)

            P 1 Reply Last reply 25 May 2023, 22:51 Reply Quote 0
            • A Offline
              arubislander @prophanetes
              last edited by 25 May 2023, 14:08

              @prophanetes Also it would not be necessary to read and understand every application, it would be sufficient to read and understand the safeguards implemented in the OS to stop applications from having unauthorized access to the hardware.

              πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0
              • P Offline
                prophanetes @arubislander
                last edited by 25 May 2023, 22:51

                @arubislander All fair points.

                But from my experience switching from Xenial to Focal, adding hardware support to a ROM is slow and difficult. Removing or disabling hardware support at that level should be very easy. With all the hardware options, it would be messy to provide ROMs with every possible combination, but it should be relatively easy to ship a ROM with minimalist features by design. If I we offered a no-GPS version, I'm sure it would be popular.

                Testing the feature is actually disabled would not to be too difficult for the user. Open Source apps which are designed to use that hardware, e.g. GPS, will honestly report it is not working, and it could be verified by testing multiple apps by different authors. They can't ALL be in collusion with the device porter to deceive users about telemetry...

                A 1 Reply Last reply 26 May 2023, 06:23 Reply Quote 0
                • A Offline
                  arubislander @prophanetes
                  last edited by 26 May 2023, 06:23

                  @prophanetes said in doubts more than problems:

                  But from my experience switching from Xenial to Focal, adding hardware support to a ROM is slow and difficult. Removing or disabling hardware support at that level should be very easy.

                  Agreed, it is easier to make stuff not-work than to make stuff work. Though even disabling stuff would come with an added test burden as care would need to be taken that not too much is disabled, and that disabling sensor A at such a low level does not have unintended consequences elsewhere.

                  With all the hardware options, it would be messy to provide ROMs with every possible combination, but it should be relatively easy to ship a ROM with minimalist features by design. If I we offered a no-GPS version, I'm sure it would be popular.

                  I don't have any info to contest your claim, and personally I hardly ever use GPS, so I would not miss it's absence. But I have to wonder if it would be so popular as to justify doubling the number of device images that are built and stored.
                  And since this would in effect also be a case of disabling the feature in software, see below ...

                  Testing the feature is actually disabled would not to be too difficult for the user. Open Source apps which are designed to use that hardware, e.g. GPS, will honestly report it is not working, and it could be verified by testing multiple apps by different authors. They can't ALL be in collusion with the device porter to deceive users about telemetry...

                  The same tests could be done against the situation when the sensor is switched off in the settings, with an equivalent amount of confidence in the result.

                  πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                  Happily running Ubuntu Touch
                  Google Pixel 3a (20.04 DEV)
                  JingPad (24.04 preview)
                  Meizu Pro 5 (16.04 DEV)

                  1 Reply Last reply Reply Quote 1
                  • E Offline
                    ebsigma
                    last edited by 26 May 2023, 07:51

                    Hello everyone, thanks for your answers.
                    It is interesting to see the applications and the code (even if it is to see how they access parts of the device for security reasons) but the problem I am having is creating a custom rom for the company and making sure that if I remove the gps option (I put that example because I think it is the clearest) if I remove gps from the options,
                    that no app (legitimate or by hacker) can turn on the gps on their own...

                    W A 2 Replies Last reply 26 May 2023, 09:08 Reply Quote 0
                    • W Offline
                      wgarcia @ebsigma
                      last edited by 26 May 2023, 09:08

                      @ebsigma The Pinephone and the Librem 5 phones have hardware switches to turn off GPS, wifi antenna, cell phone antenna, and so on. Unfortunately UT is still not very operative on those devices.

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        arubislander @ebsigma
                        last edited by 26 May 2023, 09:29

                        @ebsigma Right, so in effect you are talking about a fork of the project where you've disabled GPS. If you do it at a low enough level, it will not be possible for any app to enable it themselves.

                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                        Happily running Ubuntu Touch
                        Google Pixel 3a (20.04 DEV)
                        JingPad (24.04 preview)
                        Meizu Pro 5 (16.04 DEV)

                        E 1 Reply Last reply 26 May 2023, 11:33 Reply Quote 0
                        • E Offline
                          ebsigma @arubislander
                          last edited by 26 May 2023, 11:33

                          @arubislander ok, That's what I meant, that if the device deactivation settings (in OS settings) did reach the deepest layer...

                          to be able to manually see and manipulate those factors, how can I see the OS code and manipulate it, compile it and so on... Is there a tutorial or guide or something where I can start to investigate? thank you so much.

                          A 1 Reply Last reply 26 May 2023, 14:11 Reply Quote 0
                          • A Offline
                            arubislander @ebsigma
                            last edited by 26 May 2023, 14:11

                            @ebsigma I don't think there is a tutorial or guide available.

                            The source code is distributed over a host of repositories on GitLab (and maybe some on GitHub still). What you seek should be found under https://gitlab.com/ubports/development/core, maybe more specifically https://gitlab.com/ubports/development/core/location-service.

                            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                            Happily running Ubuntu Touch
                            Google Pixel 3a (20.04 DEV)
                            JingPad (24.04 preview)
                            Meizu Pro 5 (16.04 DEV)

                            E 1 Reply Last reply 28 May 2023, 16:45 Reply Quote 0
                            • E Offline
                              ebsigma @arubislander
                              last edited by 28 May 2023, 16:45

                              @arubislander thanks for the information, I'll review the information to see if it helps me or I can start somewhere... thanks.

                              KenedaK 1 Reply Last reply 29 May 2023, 03:14 Reply Quote 0
                              • KenedaK Offline
                                Keneda @ebsigma
                                last edited by 29 May 2023, 03:14

                                @ebsigma
                                I don't know wich is your device, but on mines, it is easy to unplug the GPS antenna.
                                Since UT can't do A-GPS, no way to be localised i guess.
                                Don't know if it can fit your needs though.

                                2015-2023 : Meizu MX4 ☠️⚰️✝️
                                2023-2024 : Nexus 5 ☠️⚰️✝️
                                2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MrT10001 @ebsigma
                                  last edited by MrT10001 29 May 2023, 17:12

                                  @ebsigma There is no p0int in disconnecting GPS for privacy. If you are using it as a cell phone you will leave an IMEI footprint at every tower you connect to. This info is readily available to any authority and probably to Google, Apple and others for "research". If you want privacy, don't have any wireless transmitter or receiver, anything that goes through a server or telephone exchange, wear a hoody when going out, don't drive a car and avoid public transport. ALL is monitored in some form or other.

                                  Xiaomi Redmi Note 7.... And more...
                                  I have too many devices...

                                  P 1 Reply Last reply 29 May 2023, 20:41 Reply Quote 0
                                  • P Offline
                                    prophanetes @MrT10001
                                    last edited by 29 May 2023, 20:41

                                    @MrT10001 You forgot to say, "You might as well stop using UT and install Android." Keep in mind that not everyone who locks their house when they leave, sets a pincode/passphrase on their device, or adds UBlockOrigin to Firefox is wearing a tinfoil hat. Most people freely give away the digital footprints of their physical life, but it doesn't mean we all should give up and join in.

                                    M 1 Reply Last reply 30 May 2023, 03:53 Reply Quote 1
                                    • M Offline
                                      MrT10001 @prophanetes
                                      last edited by 30 May 2023, 03:53

                                      @prophanetes No what I would say, if you don't want to be tracked, don't use a mobile device, don't use a PC, don't use a motor vehicle, don't use public transport and use cash only. Switching off GPS or location services will not stop you being tracked. Contrary to popular belief, even burner phones can be tracked. If authorities, or persons in the know want to know what you as an individual are up to, they can and will track you.

                                      Xiaomi Redmi Note 7.... And more...
                                      I have too many devices...

                                      KenedaK P 2 Replies Last reply 30 May 2023, 05:35 Reply Quote 0
                                      • KenedaK Offline
                                        Keneda @MrT10001
                                        last edited by 30 May 2023, 05:35

                                        @MrT10001
                                        Also, if a governement really want to know everything about you throug your smartphone, i'd add a simple word : pegasus...

                                        2015-2023 : Meizu MX4 ☠️⚰️✝️
                                        2023-2024 : Nexus 5 ☠️⚰️✝️
                                        2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                                        πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          prophanetes @MrT10001
                                          last edited by 30 May 2023, 09:22

                                          @MrT10001 I don't disagree, it may be impossible to live in modern society without being seen by Fourteen Eyes. It doesn't mean we can't or shouldn't try to keep ourselves under the radar of individuals and other organisations who have something to gain from people who are lax with their privacy.

                                          Reply with your full name, residential address and credit card details, you will see what I mean. (There's no point trying to hide these details from anyone, your bank already has them.)

                                          1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            ebsigma
                                            last edited by 12 Jun 2023, 07:13

                                            well my intention of the questions is not "to be invisible" but to know on which layers are the security and the visible options, that is, to know that if I disconnect the gps from settings, that an app cannot turn it on. I have to document myself before making any app,
                                            I understand that it is something normal being an "open" system compared to android or ios.

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