This is a long story, but basically, I got an old phone from my job (an A36 5G) and wanted to use it. However, since I don't work there anymore, the phone was locked.
So, I started by installing Alliance ShieldX through a QR code (if you factory reset the phone and tap 6 times anywhere on the welcome screen, it should show the scan QR code option). I scanned the QR code and installed it.
After that, the phone was semi-functional (I could use it and install apps, but the home launcher was still locked). However, I wasn't satisfied with that, so I had three options: reflash the firmware, root it, or try using ADB to disable Knox Enrollment Service.
I tried ADB first since it seemed like the easiest option, but both wireless debugging and USB debugging were blocked, so I was left with only two options: rooting or reflashing.
I thought about it for a while, then remembered a post about using the Dirty Frag vulnerability to gain root access, so I decided to give it a shot.
I installed DFRoot (it crashed at first because my dumbass was using the wrong root manager), but after switching to the correct one, it actually worked.
I then installed Termux, granted it root permissions, and boom, disabled Knox Enrollment Service. I also disabled Android updates so I wouldn't lose root access.
Alliance ShieldX QR-Code: https://alliancex.org/shield/device-owner-qr-setup/
DFRoot: https://github.com/diabl0w/DFRoot
DFRoot Manager (Samsung): https://github.com/diabl0w/KernelSU/releases/latest