package com.ifpdos.debugmenu.action;

import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.cvte.vman.VmanMiddleWare;
import com.ifpdos.debugmenu.action.base.ItemInfoAction;
import d.b.a.a.a;
import d.f.a.r2.y2;
import d.f.a.v0;
import d.i.f.c.c;
import java.util.Locale;

/* JADX INFO: loaded from: classes.dex */
public class ShowProductModelAction extends ItemInfoAction implements v0 {
    private String standard_data;

    public ShowProductModelAction(Context context) {
        super(context);
    }

    private String getProductModel() {
        String strF;
        String str = y2.a;
        try {
            String modelName = VmanMiddleWare.getInstance().getDevcieCtrl().getModelName();
            Log.i("PropertiesUtils", "getProductModel vman =" + modelName);
            if (!TextUtils.isEmpty(modelName)) {
                return modelName;
            }
        } catch (Exception e2) {
            StringBuilder sbB = a.B("getProductModel error=");
            sbB.append(e2.getMessage());
            Log.e("PropertiesUtils", sbB.toString());
        }
        if (!"empty".equals(c.f("ro.customer.product.model", "empty"))) {
            return c.e("ro.product.model");
        }
        String strA = y2.a();
        if (d.i.f.b.a.g() && !d.i.f.b.a.a.contains("viewsonic_biaopai")) {
            return String.format(Locale.ENGLISH, "IFP%s50", strA.substring(1, 3));
        }
        String str2 = d.i.f.b.a.a;
        if (str2.equals("skyworth")) {
            return String.format(Locale.ENGLISH, "S%sEC", strA.substring(1, 3));
        }
        if (d.i.f.b.a.b()) {
            strF = y2.a();
            if ("E55IB-GLM351A-G".equals(strF) || "E65IB-GLM351A-G".equals(strF)) {
                strF = String.format(Locale.ENGLISH, "P%s12", strF.substring(1, 3));
            } else if (!"EX65".equals(strF) && !"EX75".equals(strF)) {
                "EX86".equals(strF);
            }
        } else {
            if (str2.equals("edpro")) {
                return String.format(Locale.ENGLISH, "ETP%sU", strA.substring(1, 3));
            }
            if (str2.equals("opi")) {
                strF = y2.a();
                if (strF.startsWith("L55EB")) {
                    strF = "L55EB-EV5501IDP";
                } else if (strF.startsWith("L65EB")) {
                    strF = "L65EB-EV6501IDP";
                } else if (strF.startsWith("L75EB")) {
                    strF = "L75EB-EV7501IDP";
                } else if (strF.startsWith("L86EB")) {
                    strF = "L86EB-EV8601IDP";
                }
            } else {
                if (str2.equals("zhejiang_dahua")) {
                    return String.format(Locale.ENGLISH, "LU%s-ST400", strA.substring(1, 3));
                }
                if (str2.equals("nec")) {
                    return c.f("ro.product.model", "empty");
                }
                if (!d.i.c.a.r()) {
                    return strA;
                }
                strF = c.f("ro.product.model", "empty");
            }
        }
        return strF;
    }

    @Override // com.ifpdos.debugmenu.action.base.ItemInfoAction
    public String getValue(Context context) {
        return getProductModel();
    }

    @Override // d.f.a.v0
    public void setStandData(String str) {
        this.standard_data = str;
    }
}
