Giter VIP home page Giter VIP logo

Comments (4)

mar-v-in avatar mar-v-in commented on May 29, 2024

Using gsm cells to geolocate is not possible on Android version 4.1 and below because of missing API support on most devices.
Please try disabling cell location in the Mozilla backend settings.

from ichnaeanlpbackend.

IzzySoft avatar IzzySoft commented on May 29, 2024

Thanks! That exception is gone with this (you might consider "graying out" that option, or at least deactivate it and issue a warning when the user activates it on a device running 4.1 and below). Still doesn't work (see logcat excerpt at pastebin).

To make sure it's not simply due to DonkeyGuard still interfering (see lines 15, 28 and 41), I deactivated that module in Xposed, rebooted, and tried again (logcat here): stack traces are gone, still no success.

Looks like I'm haunted: cannot get this working on any device I try. Only my "good old Milestone²" simply works fine with the old NOGAPPS solution. Afraid to break that when updating, so I better don't (yet).

from ichnaeanlpbackend.

mar-v-in avatar mar-v-in commented on May 29, 2024

The second stack trace contains the right location (line 28) and this should mean that everything is working. Can you verify using a tool like Here GPS Location (select network and enable refresh, then wait a few seconds and read) that it still fails to locate you?

from ichnaeanlpbackend.

IzzySoft avatar IzzySoft commented on May 29, 2024

@mar-v-in I've seen that line, yes. But I suspected it being from Google's network location, as the Xposed module tells me it's not a UnifiedNlp source.

Of course I can try whether my location is shown in some app (will do so when I'm back home, I'm confident the location shows up (Edit: it does)) – but that doesn't tell me about the source of the location data. I don't want Google's location service to do anything on the device, but solely UnifiedNlp. So how can I tell the two apart in the logs? Wasn't there a string applied with UnifiedNlp locations? And if that line 28 comes from UnifiedNlp, why do lines 29/31 state "UnifiedNlp locations state changed to FAIL" / "UnifiedNlp location: FAIL"?

PS: I've checked for debugging settings, and found some in the OpenBmap module. Activated that, ran the Xposed check again. Now comes the strange thing: OpenBmap finds a location – but it's not the one that's reported later:

I/org.openbmap.unifiedNlp.Geocoder.OnlineProvider(11635): JSON response: {"source":"wifis","accuracy":30,"location":{"lng":11.570856997514667,"lat":48.166475879909996},"measurements":104}
D/Location found(11671): Location[mProvider=network,mTime=1437413601039,mLatitude=48.1664691,mLongitude=11.5706033,mHasAltitude=false,mAltitude=0.0,mHasSpeed=false,mSpeed=0.0,mHasBearing=false,mBearing=0.0,mHasAccuracy=true,mAccuracy=20.0,mExtras=Bundle[mParcelledData.dataSize=212]]
  • lat: 48.166475879909996 / 48.1664691
  • lon: 11.570856997514667 / 11.5706033

No indication that Ichnaea did anything except for these log entries – which rather suggest it's not active at all: "D/IchnaeaBackendService(11625): No instance found active." (Btw: between lines 7 and 8 are only debug infos from OpenBmap, which seems to confirm my suspicion that it's not used at all).

PPS: Just figured why the OpenBmap location did not make it: that backend crashed right after finding the location, throwing an java.lang.NoSuchMethodError: android.location.Location.getElapsedRealtimeNanos (link below this comment).

from ichnaeanlpbackend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.