Raising a "devil" Chao in Sonic Adventure 2 Battle can mean one of two things, so it helps to know which one you are aiming for.
The genuine devil is a Dark Chaos Chao, a special immortal form. This one never evolves further once it reaches that state, and it is considered one of the more prestigious Chao to raise. It takes consistent care aligned toward the dark side, and there are plenty of video guides online that walk you through it step by step.
The simpler version is just a regular dark Chao. To get one, pet a newborn Chao using a dark character, such as Shadow or Rouge, until the ball floating above its head turns dark red. After that alignment is set, simply wait for the Chao to evolve through its life stages, and you will end up with a dark-aligned companion.