sounds like a ground came loose somewhere... when you say aftermarket.. do you mean just a head unit? subs? amps?
more info on the setup would help, also did you install it yourself?
"Engineers believe if it ain't broke, it doesn't have enough features yet"