Heart of Iron by Ashley Poston (Heart of Iron #1)
Seventeen-year-old Ana is a scoundrel by nurture and an outlaw by nature. Found as a child drifting through space with a sentient android called D09, Ana was saved by a fearsome space captain and the grizzled crew she now calls family. But D09, one of the last remaining illegal Metals has been glitching, and Ana will stop at nothing to find a way to fix him.