01
Read-only by design, enforced in one place
Every PTP operation must be on a READ_ONLY allowlist, and the check runs
inside PtpSession, so no code path can skip it. Wi-Fi browsing needs a
few session properties written. Those writes go through a separate allowlist of 8
properties that never touch the card or a shooting setting. Every write is logged,
and the original values are restored when the session closes.