Here's a #pinephoneKeyboard mod I just thought of. Why not just block off the phone usb port if it shouldn't be used for charging? Losing the ability to use usb accessory devices is certainly a trade off of capability for safety, but worth it in my opinion.