openbmap / radiocells-scanner-android

WLAN and cell tower scanner for Radiocells.org
https://www.radiocells.org
Other
57 stars 25 forks source link

No neighbouring cells on Android M #174

Open ThijsWithaar opened 7 years ago

ThijsWithaar commented 7 years ago

When scanning for cell towers, the app only shows and logs the one the phone is currently connected to.

According to http://stackoverflow.com/a/39504564/673137, the API for neighbouring cells has changed on Android M and upwards.

Would it be possible to support the new API as well?

edit: Ah, I see that api is included in the code, but it definitely doesn't track neighbouring cells on my phone. Is there maybe a permission missing? (I did have to manually grant location permissions before the app would run)

edit2: A short test with the 'G-Nettrack lite' app shows that at least my phone is capable of recording neighbour info.

edit3: Other snippets of code in the internet seem to first try the new api, and if that results in an empty list of neighbours, try the old api.

wish7code commented 7 years ago

edit2: A short test with the 'G-Nettrack lite' app shows that at least my phone is capable of recording neighbour info.

That's good to know, I'll have to investigate!

There are cases, where the modem doesn't support neighboring cells (e.g. some Samsungs), but obviously this isn't the case with your phone.