I applied following to distinguish between normal Android OS and Android TV:
if (pm.hasSystemFeature("com.google.android.tv")) {
// here it is a Android TV
} else {
// here it is a smartphone or tablet or Car
}
It does not work for Android based TV sticks. I think it works for GoogleTv only?
How can I check for any Android based TV?