This is a bit late, but I think this solution might work on some people cases.
I tried to use Build.MANUFACTURER to check if it is a HTC device. This solution doesnt work on some devices and we can ensure that that devices is running Sense anyway
If you notice, you may see Play Store needs to check what features available on the phone to display correct apps, and HTC Sense is one of the features!
To get all available features:
public FeatureInfo[] getSystemAvailableFeatures(Context context) {
FeatureInfo[] features = context.getPackageManager().getSystemAvailableFeatures();
for (FeatureInfo f : features) {
Log.d("Features", "feature " + f.name);
}
return features;
}
This will return something like these:
com.example D/Features﹕ Feature android.hardware.wifi
com.example D/Features﹕ Feature android.hardware.location.network
com.example D/Features﹕ Feature com.sec.android.mdm
com.example D/Features﹕ Feature android.hardware.location
com.example D/Features﹕ Feature android.hardware.sensor.gyroscope
com.example D/Features﹕ Feature android.hardware.screen.landscape
com.example D/Features﹕ Feature com.htc.software.Sense5.0
Notice the last line! You can use it to check HTC sense version
Hope it helps