In my case it was an extension. Installed Cody extension which caused Android studio to freeze automatically 10 seconds after startup. Had to quickly open plugins page and uninstall it before it froze again. Took me a few attempts.