Characterizing the strong maximum principle for constant coefficient subequations