I’m assuming you’re at wits end and are on verge of tossing it.
In you’re desperate and are just thinking of throwing it away, then in order of lowest risk to highest risk
delete all media
reset all settings using API if you can get to it (which it appears you can’t get to API)
apply for plug-in partner program to get development mode access. then perform factory reset using Android (internal camera OS) settings. see article below
reboot bootloader (must be in dev mode)
As the lens assembly is still intact, you can shop online for a working unit with cracked lenses and then preform the swap on the entire lens assembly. Alternately, you can try and sell it as a working lens assembly and body.