Fork of the MicroG UnifiedNlp repository with a working standalone app implementation
Go to file
mar-v-in 75bd6cedd0 Add signing support to gradle (via user.gradle configuratio file) 2015-01-02 20:54:29 +01:00
api Revamp configuration UI, handle preferences the android way 2014-12-26 16:20:38 +01:00
compat Fixing lint's and add gradle support 2015-01-02 19:59:03 +01:00
res Fixing various bugs across platforms 2014-12-26 19:01:25 +01:00
sample Backends should require ACCESS_COARSE_LOCATION permission 2014-03-11 19:51:23 +01:00
src Fixing lint's and add gradle support 2015-01-02 19:59:03 +01:00
.gitignore Add signing support to gradle (via user.gradle configuratio file) 2015-01-02 20:54:29 +01:00
Android.mk Geocoding up and running 2014-12-25 22:44:00 +01:00
AndroidManifest.xml Fixing lint's and add gradle support 2015-01-02 19:59:03 +01:00
README.md Update README to fix #8 2015-01-01 14:23:50 +01:00
build.gradle Add signing support to gradle (via user.gradle configuratio file) 2015-01-02 20:54:29 +01:00
proguard.flags Add missing files 2014-03-10 14:05:56 +01:00
settings.gradle Fixing lint's and add gradle support 2015-01-02 19:59:03 +01:00

README.md

UnifiedNlp

The next generation NetworkLocationProvider, based on plugins

Installation

Release builds may be found on the release page. Installation requires a rooted system.

Android 4.4 - 5.0 (KitKat / Lollipop)

Download NetworkLocation.apk, copy it to /system/priv-app/NetworkLocation.apk and reboot. The following shell commands will do the job:

adb root && adb remount
adb push path/to/NetworkLocation.apk /system/priv-app/NetworkLocation.apk
adb reboot

Android 4.2 - 4.3 (Jelly Bean)

Download LegacyNetworkLocation.apk, copy it to /system/app/NetworkLocation.apk and reboot. The following shell commands will do the job:

adb root && adb remount
adb push path/to/LegacyNetworkLocation.apk /system/app/NetworkLocation.apk
adb reboot

Android 2.3 - 4.1 (Gingerbread / Honeycomb / Ice Cream Sandwich / Jelly Bean)

These releases are no longer actively supported and might be unstable. Additionally, most backends require a newer Android version.

However the LegacyNetworkLocation (instructions for Android 4.2) usually works quiet well.

Usage

UnifiedNlp as it does not provide any features, but acts as a middleware for multiple backends.

Here is an open list of backends for geolocation known to me:

  • AppleWifiNlpBackend - backend that uses Apple's service to resolve wifi locations
  • OpenWlanMapNlpBackend - backend that uses OpenWlanMap.org to resolve user location.
  • LocalGSMLocationProvider - Local opencellid based location provider backend
  • LocalGSMBackend - Local location provider for gsm cells with separate database file (lacells.db)
  • PersonalWifiBackend - Local location provider for WiFi APs using on-phone generated database.
  • (...) Create issue or pull request to extend this list :)

The following is an open list of backends for (reverse) geocoding:

After installing a backend, you can use UnifiedNlp by activating network-based geolocation in Settings->Location. Since KitKat, you need to select any mode but "device only", on older Android version this setting is called "Wi-Fi & mobile network location" (ignore any misleading texts saying this is for Google's location service, you don't have Google's service installed but UnifiedNlp 😄)

As part of a custom ROM

UnifiedNlp can be build as part of Android when building an Android ROM from source.

Add the repo to your (local) manifest.xml and extend the PRODUCT_PACKAGES variable with NetworkLocation for KitKat and LegacyNetworkLocation for Jelly Bean.

Backend-development

Take a look at the API documentation in /api/README.md. You might also be interested in the sample backends in /sample/

Building

To be build with Android Build System using make UnifiedNlp, make LegacyNetworkLocation or make NetworkLocation

Attribution

Some components: Copyright (C) 2013 The Android Open Source Project

License

Copyright 2014 μg Project Team

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.