  We present recent measurements from the Belle and Belle II experiment related
to $CP$ violation in decays of charmed mesons via two complementary approaches.
We also propose a new algorithm to determine the flavor of neutral charmed
mesons.
