I am using below code to find flex device. I am able to manage the UI for clover mini and clover station but when i release production build it does not work. The UI for flex is showing in station Pro device. Please suggest how to know, its station pro.
public static boolean isFlexDevice(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {//for flex/mini 2nd gen boolean mobileData = context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY); // BPS_Logger.e("FLEX_DEVICE", "" + mobileData); return mobileData; } if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP_MR1) { //only for flex 1st gen // BPS_Logger.e("FLEX_DEVICE", "Build.VERSION_CODES.LOLLIPOP "); return true; } else { //for all landscape // BPS_Logger.e("FLEX_DEVICE", "Platform.isCloverFlex() "+Platform.isCloverFlex()); return Platform.isCloverFlex(); } }