Yeah, that's a known thing. Sony uses some DRM system for cameras, and you lose the keys when you flash AOSP. If you google around, you can hack it to save and restore the keys. Not worth buying Sony on general principle. Plenty of other alternatives.