some background: i recently erase whole disk in my android device, it also included partitions, so it is permanent brick, super brick. device is in qdl mode now. usually just partitions are erased in android devices. i ... so ... love the destroyer of disks ... i meant command dd. btw this destruction was intentional.
like it was said already, eg25 modem is a device with own memory and files and is connected through usb, which is integrated into a mainboard. so pinephone is sort of independent from eg25, assuming no mobile functions are needed.
eg25 uses similar partitioning than android devices, and uses fastboot, adb and qdl. it means correct partitions need to be flashed. if something is done wrong, then it might result deep brick (for the modem chip).
if eg25's whole internal memory is wiped including partitions, it is deep brick for the modem chip.
i could theorize, if some specific partitions are wiped. it is recoverable. however, i STRONGLY advice not doing this.
there was one security issue with modem, i don't remember name for it, but if i recall correctly, it is fixed in 30.006.30.006 and 30.007.30.007, and also in half-free firmware.
https://github.com/Biktorgj/quectel_eg25...006.30.006
dip switches are mentioned multiple times, i think it is better way to go. technically speaking it does not disconnect usb connection. it disconnects power for eg25 chip.
it is possible to disable software, i think "modemmanager" and/or "eg25manager". but it is not default, i don't know how to change the default. what is the use case, because even pinephone does not communicate with modem chip, modem chip may get power and therefore might do something independently.