This is one of the reasons why you should just not buy Apple-branded stuff: such things are designed to be remotely-lockable. With an Android-based device this couldn't happen. Provided that you have a backup of your data, you could just reflash the device, restore your backup and start using the device again. Just don't buy Apple stuff. Between people having assistance denied (example: Linus Sebastian 5 k$ Mac Pro),…
Just a note, he wasn't 'denied assistance', Apple told them the computer was damaged beyond repair. Just like if you get your car into a serious crash it'll be written off, that's what Apple declared to his iMac Pro because he had physically damaged it so much.