Sounds like I'd be asking for a new tablet from that soon to be former friend.
And next time, don't let others have unfettered access to your devices. Better yet, put your own password that you will remember or can keep track of on it to prevent others from changing it (because you need to enter the old one to confirm a change to it).