If the phone is glitchy, you can boot into Safe Mode to uninstall problematic apps. Are you trying to fix a bricked device remove a screen lock