How can you recover a tab a passcode without powering off the device

I have a Samsung Galaxy Tab A and I put a passcode on it but I cannot remember the passcode anymore. I can’t power off my tablet because I need the passcode to do that. So I need help recovering the code. I was wondering if the manufacturer could do that. If you know please help.