package com.seewo.ota.util;

import android.os.Build;
import android.util.Log;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/* JADX INFO: compiled from: StringUtils.java */
/* JADX INFO: loaded from: classes.dex */
public class r {
    public static String a() {
        Log.d("StringUtils", "getProductModel: " + b() + ", getFlavorName: " + com.seewo.vcommons.data.d.d() + ", getOTASpecial: " + com.seewo.vcommons.data.d.f());
        return b() + "_" + com.seewo.vcommons.data.d.d().trim() + "_" + com.seewo.vcommons.data.d.f().trim();
    }

    public static String b() {
        return (Build.VERSION.SDK_INT == 33 && d.e.h.a.a.h(9)) ? d() : c();
    }

    private static String c() {
        String strL = com.seewo.vcommons.data.d.l(d.e.h.a.b.a, "empty");
        if ("empty".equals(strL)) {
            strL = com.seewo.vcommons.data.d.l("persist.sys.product.model", "empty");
        }
        if ("empty".equals(strL)) {
            strL = com.seewo.vcommons.data.d.l("ro.customer.product.model", "empty");
        }
        return strL.equals("empty") ? com.seewo.vcommons.data.d.l("ro.product.model", "empty") : strL;
    }

    private static String d() {
        return com.seewo.vcommons.data.d.l("ro.product.model", "empty");
    }

    public static String e(long j2) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(j2);
        return new SimpleDateFormat("yyyy-MM-dd HH:mm").format(calendar.getTime());
    }
}
