microg / UnifiedNlp

Alternative network location provider for Android, with plugin interface to easily integrate third-party location providers.
944 stars 207 forks source link

Added dejavu and nominatim backends, added logging #250

Open thuryn opened 1 year ago

thuryn commented 1 year ago

This UnifiedNlp reconstruction has been made to solve problem with backends (their mortality). The whole work is not finished, but it works fine on my phone and I'm happy to use UnifiedNlp again. So I want to share my work with somebody, who wants it. Not all changes is not comfortable for the author, so that's why I made this PR to review it. Yes many classes could be deleted now, and some parts is hardwritten (intents for settings screen), but any way and again - I'm glad it works after many hours.

Installation is tricky - the final solution should be probably accomplished by installation app first - where user confirm all requested permissions and then install the real UnifiedNlp on top of the installation app to get the real providers. I did it with updated app (on top of Magisk module) and Pepmission manager X app.

Main changes/features: 1) added module for UnifiedNlp application (app), for nominatim (app-nominatim) and dejavu (app-dejavu) backends 2) app-dejavu - cell network scanning rewritten to solve the problem with no cell id (the new API provides cell id just for registered cell) 3) added settings screen into dejavu backend - you can clear the DB and see number of rows. Maybe I add the import/export function from wifi backend. 4) added logging into file (not finished)

IzzySoft commented 1 year ago

I did it with updated app (on top of Magisk module)

Just wondering: which Magisk module are you referring to here? The microG installer?