package com.czhj.devicehelper.cnadId; import android.content.Context; import android.provider.Settings; import com.czhj.sdk.logger.SigmobLog; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; public class a { /* renamed from: com.czhj.devicehelper.cnadId.a$a reason: collision with other inner class name */ private static class C0032a { private static final a a = new a(); private C0032a() { } } private a() { } public static a a() { return C0032a.a; } private String b(Context context) { return Settings.System.getString(context.getContentResolver(), "ZHVzY2Lk"); } private String c(Context context) { String packageName = context.getPackageName(); String string = context.getSharedPreferences(packageName + "_dna", 0).getString("ZHVzY2Lk", "NA"); if (string.equals("NA")) { return null; } return string; } private String d(Context context) { String str = null; try { File file = new File("/sdcard/Android/ZHVzY2Lk"); if (!file.isDirectory()) { if (file.isFile()) { FileInputStream fileInputStream = new FileInputStream(file); String readLine = new BufferedReader(new InputStreamReader(fileInputStream)).readLine(); if (readLine != null) { str = readLine; } fileInputStream.close(); return str; } } SigmobLog.e("The File doesn't not exist."); return null; } catch (Exception e) { SigmobLog.e(e.getMessage()); } } public String a(Context context) { String b = b(context); if (b != null) { return b; } String c = c(context); return c != null ? c : d(context); } }