I need a way to spoof the GPS on my phone without alerting the clock-in software that I’m using a third party app to do it. I have android

I suspect that the clock-in software is checking for developer options > mock gps > select app. I’ve tried a couple different gps spoofing apps with the same result “it appears you are using a third party GPS app. Please disable it before clocking out”

  • fatalError@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    You would probably need to root the phone for that to work. If it is a company phone I would not recommend it though.

  • LoveSausage
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 year ago

    Not sure but aren’t there magisk modules for that? Might be a way

  • mathemachristian[he]@lemm.ee
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    I don’t know how the encryption works on your phone, but I used mitmproxy to spoof GPS data sent by an app to a server. Need to be able to install and use your own CA though which is a hassle in android.

      • mathemachristian[he]@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 year ago

        Sorry for the second reply just wanted to make sure you got notified of this:

        It would probably prudent to mitm the app-server connection regardless just to see what kind of data it collects especially if you’re using it on your personal phone. Be aware that having a company app installed on your personal phone might entitle your company to look at your phone depending on the legal set up that you agreed to. Precisely in order to check on people who might be working around their “accountability apps”.

        Also depending on the situation they might in theory be able to ascertain where you are, or at least where you are not depending on the IP used to connect to their server, I don’t know how advanced you think their anti-fraud measures are but just to keep in mind that any data sent could be used against you.

        If you want to go the mitmproxy route definitely disable the mobile internet connection because if your wifi drops and you dont connect to the server via the proxy it would send the unaltered GPS data.

  • Maoo [none/use name]@hexbear.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    What you want is either an alternate location services provider that can generate plausibly fake location streams or a middle layer that is deeply embedded in the OS. Privacy/security-focused Android projects use one of these techniques, but usually with real location data. For example, using LineageOS with privileged microG comes with alternative location providers like Mozilla’s.

    My personal knowledge of the actual fake data generators is pretty bad, though. I haven’t personally spoofed location in a way that’s intended to work in the way you need.

    For the microG version, you’d be using https://github.com/microg/UnifiedNlp with a spoof plugin. I’m not aware of a spoof plugin but wouldn’t be surprised if one existed. There is also this app but it looks pretty crude: https://github.com/wesaphzt/privatelocation

    IMO to defeat spoofing detection you’d need something a little more sophisticated. Something that embeds a proper simulation of a person traveling, then being still, and having some biased noise / systematic accuracy reporting added depending on the location. Could be a good side project for a lefty to work on…