Project

General

Profile

Actions

Issue #1925

open

On the Galaxy SII, the GPS isn't supposed to work, but OSMAnd is able to get a position in "device only" mode

Added by Bubo Scandiacus over 5 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
Freedom
Target version:
Start date:
04/26/2019
Due date:
% Done:

0%

Estimated time:
Resolution:
Device:
Grant:
Type of work:
Bug tracker editions, Unknown

Description

The Bluetooth and GPS modules of the Galaxy S2 i9100 require non-free firmware and therefore shouldn't work. I have the same issue on my other S2 and on my Galaxy Note.

Actions #1

Updated by Fil Bergamo over 5 years ago

Hi,

thank you for reporting this seemingly anomalous behaviour.

I confirm I can reproduce it on a i9100 (Galaxy S2) with a fresh install of the official Replicant 6.0 0003 image.

We are investigating about this.
I will report any news on this ticket.

Thank you.

Fil

Actions #2

Updated by Denis 'GNUtoo' Carikli over 5 years ago

Bluetooth

To reproduce for Bluetooth I did the following:
  • I installed Replicant as usual: I reinstalled the recovery, installed the zip and then did a full factory reset in the recovery.
  • Once booted, I then scanned for other bluetooth devices that I found.

The bluetooth chip most probably has some firmware in a rom that can most probably be patched at runtime, so it's possible that it works for some devices but not others.

We need to read the bluetooth driver and kernel logs to understand what happens if no bluetooth firmware is present, to validate that it's indeed the case and to understand in which condition it's supposed to work and not to work.

It would be really nice if the ROM makes it work, though it's a double edged sword as the ROM most probably has security issues. In the longer term we would need to find the time to look into internalblue to see if we can fix the security issues.

GPS

For GPS I need more time to try it. As it's not supposed to work at all I'm really curious to know how you managed to get it working.

We need to dig more into it too, as we may uncover some deeper issue such as applications being able to not respect the position privacy settings and so on.

  • Did you get a position? Do you have more details on how you managed to get a position?
  • If so What made you think that the position was given by the GPS?
  • In Settings->Location mode is it set to "Device only" ?

Denis.

Actions #3

Updated by Bubo Scandiacus over 5 years ago

I got an accurate position using the OsmAnd app. The wifi and cellular network were disabled and the location mode was set to device only.

Actions #4

Updated by Jacob Bahn over 5 years ago

I turned on BT on both my i9100 (with sim) and my n7100 (no sim). Both devices says BT is on but they do not find each other despite less than 5 cm distance between them.

I also turned on GPS on the n7100 but so far OsmAnd has not caught any satelites.

Actions #5

Updated by Denis 'GNUtoo' Carikli over 5 years ago

For the GPS, osmand requires the android.permission.ACCESS_LOCATION_EXTRA_COMMANDS permission. So it may be related to that somehow.

Actions #7

Updated by Denis 'GNUtoo' Carikli over 5 years ago

  • Subject changed from Bluetooth and GPS are working on the Galaxy S2 when they shouldn't to OSMAnd is able to get a position in "device only" mode but the GPS isn't supposed to work
This bug report is becoming a bit messy. I've splitted it in two:
  • one for the GPS part (this one)
  • one for the bluetooth part: #1928
Actions #8

Updated by Denis 'GNUtoo' Carikli over 5 years ago

  • Subject changed from OSMAnd is able to get a position in "device only" mode but the GPS isn't supposed to work to On the Galaxy SII, the GPS isn't supposed to work, but OSMAnd is able to get a position in "device only" mode
Actions #9

Updated by Denis 'GNUtoo' Carikli over 5 years ago

This may also apply to the Galaxy Note (N7000) as the bluetooth also works there. It's the same SOC than the Galaxy SII (I9100)

Actions #10

Updated by Denis 'GNUtoo' Carikli about 5 years ago

  • Status changed from New to Feedback

I've been unable to reproduce the bug.
Maybe I'm missing some of the things that makes getting a position work.

For the people able to reproduce the bug, could you describe more precisely the actions that enabled you to get a position?

Actions #11

Updated by JuanPi Carbajal about 5 years ago

I've been also unable to reproduce this behavior on i9100.
GPStest https://github.com/barbeau/gpstest is unable to get GPS data
I have tried all the modes in the Location settings

Actions #12

Updated by _I3^ RELATIVISM almost 4 years ago

  • Type of work Bug tracker editions added
Actions #13

Updated by _I3^ RELATIVISM almost 4 years ago

  • Type of work Unknown added
Actions #14

Updated by _I3^ RELATIVISM almost 4 years ago

#1937 might be the answer for this given such firmware is already mainline, so maybe that is why wifi is present even though proprietary version of it is removed

Actions

Also available in: Atom PDF