Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions device/tegu/MODEM-PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,26 @@ startNmea 25; callbacks location 4, NMEA 5).
omamobile-modem 0.1.7 runs gnssd as an optional daemon, so its exit no
longer stops the profile. Until M6 qualifies the power-off, don't stop the
modem profile by hand; reboot with someone at the palmtop.
- **gnssd's custom GNSS library (2026-10-28, omamobile-modem 0.1.8).** An
`strace` of gnssd found two gaps. gps.cfg sets
`GlueLayer_IsUseCustomGnssLib=1`, and gnssd `dlopen()`s
`/vendor/lib64/libcustomgnss.so` (ENOENT), which waits for the CP at
`/sys/bus/platform/devices/cpif/modem_state` and then `dlopen()`s
`libsitril-gps.so`, which uses `libsitril-client.so` (RIL's GPS channel,
over binder to the radioExternal HAL). Nothing links the three, so the
extractor never copied them; they are `VENDOR_LIBS` of the tegu modem
profile now, and the chroot binds cpif at its bus path too. With both,
libcustomgnss logs "Modem state ONLINE"; `GpsOpen()` still fails (no
radioExternal HAL in the chroot: no binder), and Kepler still faults at
every engine start. A re-run of the extractor on the BP3A factory image
(2026-10-29) resolves everything: 195 files against 188, the three
libraries plus libbinder, libbinder_ndk, libapexsupport and the
radioExternal NDK library, nothing new to stub. **An existing 9a chroot
gets the libraries only when its owner re-extracts** (`tools/extract-vendor-chroot
-p modem -d tegu` on the factory image, then the install line from its
usage text); a chroot from before 0.1.8 keeps running without them, as
before. The second `/sys` bind is in every phone's modem profile and is
harmless on the 7 Pro and the 6 Pro: cbd never looks there.

### Suspend with the modem on (2026-10-27, early morning, same kernel)

Expand Down
3 changes: 3 additions & 0 deletions packages/omamobile-modem/profiles/modem.conf
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ modem_baseband() {
modem_sysfs() {
local s=$ROOT/sys n
bind /sys/devices/platform/cpif "$s/devices/platform/cpif" ro
# gnssd's libcustomgnss waits for "ONLINE" at the bus path of the same
# device, a symlink on a real /sys
bind /sys/devices/platform/cpif "$s/bus/platform/devices/cpif" ro
for n in plat config; do
if [[ -d /sys/firmware/devicetree/base/chosen/$n ]]; then
bind "/sys/firmware/devicetree/base/chosen/$n" \
Expand Down
2 changes: 1 addition & 1 deletion packages/omamobile-modem/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.7
0.1.8
5 changes: 5 additions & 0 deletions tools/extract-vendor-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ profile_lists() {
VENDOR_FILES+=(firmware/kepler.bin etc/gnss/gps.cfg etc/gnss/ca.pem
etc/init/init.gnss.rc)
SYSTEM_DIRS+=(system/etc/security/cacerts)
# gnssd dlopen()s these (gps.cfg's GlueLayer_IsUseCustomGnssLib):
# libcustomgnss waits for the CP and opens RIL's GPS channel
# through libsitril-gps and libsitril-client (MODEM-PLAN G3).
VENDOR_LIBS+=(lib64/libcustomgnss.so lib64/libsitril-gps.so
lib64/libsitril-client.so)
# libandroid_net (gnssd) needs one symbol from the tethering APEX,
# as gpsd on cheetah: the shim build provides a stub.
STUB_LIBS=(libcom.android.tethering.connectivity_native.so)
Expand Down