I don’t have the hardware, software, or experience to do this, but I imagine there are folks in the community that do. A 3D printed frame to fit around the doorbell, that when attached would prevent the removal of the SD card and the raising of the doorbell to remove it, would solve both issues it seems. The frame would fit around the phone and then screw in securely. It could also be unscrewed to access the doorbell. It would not need to run the full thickness of the doorbell, just enough to cover the SD slot. It would need to allow for the speaker holes on the bottom with an opening, or leaving the bottom of the frame off completely. Is this workable, and if someone comes up with one, let us know.