Project

General

Profile

Issue #1925

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 7 months ago. Updated 27 days ago.

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

0%

Estimated time:
Resolution:
Device:

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.

History

#1

Updated by Fil Bergamo 7 months 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

#2

Updated by Denis 'GNUtoo' Carikli 7 months 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.

#3

Updated by Bubo Scandiacus 7 months 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.

#4

Updated by Jacob Bahn 7 months 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.

#5

Updated by Denis 'GNUtoo' Carikli 7 months ago

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

#7

Updated by Denis 'GNUtoo' Carikli 7 months 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
#8

Updated by Denis 'GNUtoo' Carikli 7 months 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
#9

Updated by Denis 'GNUtoo' Carikli 4 months 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)

#10

Updated by Denis 'GNUtoo' Carikli 27 days 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?

Also available in: Atom PDF