BeiDou Left Out of Positioning: The GNSS Geofencing Policy on Pixel Phones

TL;DR A Pixel 11 Pro used in the US receives BeiDou satellite signals normally and also passes BeiDou raw measurements and navigation messages to apps, but the system does not use the BeiDou constellation when computing a position. The restriction is written in the USswitch entry of MediaTek’s GNSS configuration file: inside a latitude/longitude rectangle that roughly covers the contiguous US, the firmware excludes BeiDou (along with Japan’s QZSS and India’s NavIC) from the position solution. GLONASS is not affected. Re-solving the raw data recorded by the phones shows that under open sky, adding BeiDou shrinks the position scatter by about 20%; in simulated obstructed environments, the improvement from adding BeiDou is clearly larger. This practice is related to the FCC’s authorization rules for foreign satellite navigation systems, but the constellations Google excludes do not fully match the constellations the FCC has not authorized. 1. Background On Google’s Pixel hardware tech specs page, Pixel 10 and earlier models list the positioning systems separately for the US version and for other regions: ...

2026-10-25 · LastMod: 2026-11-01 · 19 min · sparktour

From bzImage to Nested VMs: Building a Subaru DENSO Head Unit Debug Environment with QEMU/KVM

The Subaru DENSO head unit studied in this article is a system made up of multiple operating systems and dedicated hardware: a QNX Hypervisor, QNX Neutrino and Linux run on an Intel x86 platform, and the applications depend on graphics, audio, networking and an authentication chip. Debugging directly on such a production device runs into the problem of debugging conditions first: access to a shell, serial port and debugger is usually restricted, and a service crash or system reboot may interrupt normal use of the head unit. To repeatedly observe programs, compare configurations and collect crash scenes, a lab environment independent of the car is much more convenient. ...

2026-10-19 · LastMod: 2026-11-16 · 21 min · sparktour

Turning an Unrooted Android Phone into a Cellular SIP Gateway for Asterisk with Shizuku

I have previously built cellular gateways for Asterisk out of EC20 and EG25 modules (Using EC20 Module, Asterisk, and FreePBX for SMS Forwarding and VoIP, Connecting a DJI/Baiwang Enhanced Transmission Module to Asterisk and Telegram SMS Bots), and used Flexisip to fix SIP clients missing calls in the background (Adding SIP Push to Asterisk/FreePBX with Flexisip and a Custom Linphone Build). One piece was still missing: some SIM cards simply do not work well in a module, and the easiest fix would be to let an ordinary Android phone act as the gateway itself. ...

2026-10-10 · LastMod: 2026-10-30 · 23 min · sparktour

Extracting MBNs from Xiaomi Firmware to Add VoLTE Carrier Profiles to Quectel EC20/EG25 Modules

In an earlier post, I wrote about using an EC20 module with Asterisk and FreePBX for SMS forwarding and VoIP. Although the EC20 can switch carrier profiles with AT+QMBNCFG, the selection built into the module is quite limited. My EC20 R06, for example, came with only four profiles: ROW, China Unicom, China Telecom, and China Mobile. Another EG25-like module had twenty profiles, but still lacked VoLTE profiles for some Hong Kong carriers. ...

2026-09-17 · LastMod: 2026-10-29 · 8 min · sparktour

Adding SIP Push to Asterisk/FreePBX with Flexisip and a Custom Linphone Build

Back in 2022, I wrote a post about using an EC20 module with Asterisk and FreePBX for SMS forwarding and VoIP. The setup could already route calls from the SIM card in the EC20 to a SIP client, but the post ended with one fairly serious usability issue: the SIP client on my phone had to stay running. Otherwise, incoming calls could not reach the client, and the caller would hear a busy tone. At the time, the only easy solution I found was Zoiper Push Proxy, which was not free. ...

2026-09-14 · LastMod: 2026-10-29 · 21 min · sparktour

Installing a Subaru D harness in a 2023 Subaru Outback

Installing a Subaru D harness in a 2023 Subaru Outback I recently bought a comma four from comma.ai and plan to get openpilot working on my car. This article walks through the process of installing the included Subaru D harness in a 2023 Subaru Outback with the dual-camera EyeSight system. In theory, other 2023-and-newer cars built on the Subaru Global Platform should come apart in a similar way, although some models may not have the two screws shown here. ...

2026-08-31 · LastMod: 2026-10-20 · 7 min · sparktour

Connecting a DJI/Baiwang Enhanced Transmission Module to Asterisk and Telegram SMS Bots

A few years ago I wrote a post about using an EC20 module with Asterisk and FreePBX for SMS forwarding and VoIP. The goal back then was to free a SIM card from an always-plugged-in old phone, so that it could make and receive calls through Asterisk and forward SMS through Telegram and similar tools. A few years later, I saw a seller clearing out first-generation DJI Enhanced Transmission modules on Pinduoduo, so I bought one for a little over 30 RMB. Its USB ID shows up as 2ca3:4006 DJI Technology Co., Ltd. Baiwang, but based on online information and its AT command responses, it is essentially an EG25/EC25-class Qualcomm-based modem. The catch is that it cannot be flashed with standard Quectel firmware. ...

2026-07-04 · 11 min · sparktour

Add optional passkey/webauth/OTP login to Keycloak

This article describes the process of configuring Keycloak for passwordless login using passkeys, webauthn, and OTP (One-Time Password). Some configurations in this article may require Keycloak 23 or higher to function properly. Configuring the Authentication Section In Keycloak’s Authentication - Flow menu, duplicate the browser flow. We’ll name the copy browser with optional webauth and otp. Duplicate Browser Flow In the new flow, delete browser password form and all steps/flows below it: ...

2024-01-24 · LastMod: 2024-07-29 · 2 min · sparktour

Mount NFS via RDMA on Mellanox Card

Recently, our laboratory acquired eight NVMe SSDs, which we connected to a server via PCIe adapter cards and configured into a RAID using ZFS. To enable rapid access to the storage pool from other servers in the lab, I picked up two ConnectX-4 CX4121A 10GbE network cards from a second-hand platform to link two servers, and set up NFS over RDMA. The seller on the second-hand platform did not include optical modules, so I randomly purchased two 10G Huawei modules, costing about 15-20 RMB each. ...

2023-08-24 · LastMod: 2024-04-15 · 5 min · sparktour

Configure esim.me SIM Card with PC/SC Smart Card Reader

I recently obtained several “removable eSIM cards” from esim.me from a friend in a group chat. In short, these eSIM cards are manufactured in the form of ordinary SIM cards, so they can be directly inserted into any mobile phone that supports physical SIM cards, and profiles can be added to the eSIM cards through the Android app provided by esim.me. Although esim.me differentiates the prices of these eSIM cards based on the number of profiles that each eSIM card can join, when I later searched for blog posts online, some people mentioned that the hardware of these eSIM cards at different price points is exactly the same, and esim.me only imposed software restrictions on cards at different price points through the mobile configuration app. And if these eSIM cards are inserted into LTE modules that support eSIM, profiles can be directly added and deleted through the Windows eSIM management interface. However, the current LTE modules that support eSIM are mainly Quectel’s RM-50xQ series (used price 550 yuan) and Dell’s dw5821e (used price 300 yuan) / dw5829e modules. It’s obviously not cost-effective to purchase these LTE modules just to configure the eSIM card. ...

2022-11-20 · LastMod: 2024-10-04 · 2 min · sparktour