OK, I thought, The most important point is the android version and not the hardware.because most exploits work on different hardware, but on the same Android version excellent.
The android version is one of the most important things with rooting, however just because two (or more) devices from the same company it doesn't mean that the firmware (software) is built the same.