device_get_location
Read the Android device's current GPS location. Counterpart of ios_get_location. Returns { latitude, longitude, source }. source is the part worth reading: "mock" = the value device_set_location is currently simulating (authoritative); "device" = a real fix parsed from dumpsys location, which is BEST-EFFORT — the format varies by OEM and Android version, so a device with a valid fix can still come back as "none"; "none" = nothing could be determined, with latitude and longitude null. Treat "none" as "unknown", never as "the device has no location".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Device serial number (UDID) |