Aggressive Doze option will work only on the Android devices higher than 6+ versions. If the ROM had disabled the Doze Mode on your device. In case of utilizing the customized ROM that is created by the community then it is advisable to contact the ROM modder for enabling the appropriate flag on your ROM using the Script code.