"fmd locate cell" returns outdated data
-
I have searched for duplicates (including closed issues) -
I have read the wiki
Bug Summary
fmd locate cell returns outdated data.
Steps to reproduce
- Option 1: Send
fmd locate cell - Option 2: Go to the OpenCellIdActivity and click "Test connection"
Actual behaviour
The cell data is outdated.
Expected behaviour
The cell data is up-to-date.
Background
This is a regression, caused by the rework in !301 (91c46443) to replace deprecated APIs with their new counterparts.
OpenCelliD and BeaconDB are working fine. The cause is that in queryCellParametersFromTelephonyManager() we get an outdated list of cell infos. We should call requestCellInfoUpdate() to have the latest data.
I missed this because I was writing and testing this at a time where I was at home long enough for the cell info the be "correct" even though it was outdated.
Now that I tested it while travelling, I noticed this bug. I saw it being ~30 minutes delayed...
Metadata
- FMD Android version: 0.12.0
- Android version: 16