Managed to means did or succeeded in doing. It does not always indicate that the speaker intended to do what he did. The bolt was badly rusted, but eventually she managed to get it undone. (presumably intentionally) She managed to scrape her knuckles and tear her shirt while trying to undo the bolt. (presumably unintentionally)