百度手机卫士 v8.6.2版本的 MD5 值为:fa60cb367e40201705a2d9f9ce2cbfdf
以下内容为反编译后的 byq.java 源代码,内容仅作参考
package dxoptimizer;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.Uri;
public class byq extends SQLiteOpenHelper {
private static String b = "AccountDbHelper";
private static boolean c = false;
private static volatile byq e;
public Context a;
private ContentResolver d;
public static byq a(Context context) {
if (e == null) {
synchronized (byq.class) {
if (e == null) {
e = new byq(context);
}
}
}
return e;
}
private byq(Context context) {
super(context, "account.db", (SQLiteDatabase.CursorFactory) null, 5);
this.a = context.getApplicationContext();
}
@Override
public void onCreate(SQLiteDatabase sQLiteDatabase) {
byr.a(sQLiteDatabase);
byt.a(sQLiteDatabase);
byu.a(sQLiteDatabase);
bys.a(sQLiteDatabase);
if (c) {
hvq.b(b, "AccountDbHelper onCreate" + sQLiteDatabase.toString());
}
}
@Override
public void onUpgrade(SQLiteDatabase sQLiteDatabase, int i, int i2) {
if (i == 1) {
a(sQLiteDatabase);
}
if (i <= 2) {
b(sQLiteDatabase);
}
if (i <= 3) {
c(sQLiteDatabase);
}
if (i <= 4) {
d(sQLiteDatabase);
}
}
private void a(SQLiteDatabase sQLiteDatabase) {
byr.a(sQLiteDatabase, "INSERT INTO medal(_id, medal_name, medal_icon, medal_share_str, medal_share_guide_str) VALUES(?, ?, ?, ?, ?)", new Object[]{16, "粉丝头衔", "https://sjwsst.baidu.com/apks/icon/medalsit.png", "15", "15"});
byr.a(sQLiteDatabase, 3, "https://sjwsst.baidu.com/apks/icon/medalthr.png");
byr.a(sQLiteDatabase, 4, "https://sjwsst.baidu.com/apks/icon/medalzhuanjia.png");
byr.a(sQLiteDatabase, 5, "https://sjwsst.baidu.com/apks/icon/medalfiv.png");
byr.a(sQLiteDatabase, 6, "2");
byr.a(sQLiteDatabase, 7, "https://sjwsst.baidu.com/apks/icon/medaleit.png");
byr.a(sQLiteDatabase, 8, "https://sjwsst.baidu.com/apks/icon/medalsev.png");
byr.a(sQLiteDatabase, 9, "3");
byr.a(sQLiteDatabase, 10, "https://sjwsst.baidu.com/apks/icon/medalten.png");
byr.a(sQLiteDatabase, 11, "https://sjwsst.baidu.com/apks/icon/medalele.png");
byr.a(sQLiteDatabase, 12, "https://sjwsst.baidu.com/apks/icon/medaltwe.png");
byr.a(sQLiteDatabase, 13, "https://sjwsst.baidu.com/apks/icon/medalthi.png");
byr.a(sQLiteDatabase, 14, "https://sjwsst.baidu.com/apks/icon/medalfot.png");
byr.a(sQLiteDatabase, 15, "https://sjwsst.baidu.com/apks/icon/medalfit.png");
byt.a(sQLiteDatabase, "INSERT INTO task(_id, task_name, task_skill_id, task_score, task_length, task_icon, task_medal_id, task_guid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)", new Object[]{20, "", -1, 0, 1, "", 16, ""});
if (c) {
hvq.b(b, "version:1 upgrade...");
}
}
private void b(SQLiteDatabase sQLiteDatabase) {
byt.a(sQLiteDatabase, "task_start_time", "INTEGER");
byt.a(sQLiteDatabase, "task_end_time", "INTEGER");
byr.a(sQLiteDatabase, "INSERT INTO medal(_id, medal_name, medal_icon, medal_share_str, medal_share_guide_str) VALUES(?, ?, ?, ?, ?)", new Object[]{17, "绿色和平", "https://sjwsst.baidu.com/apks/icon/greenpeace.png", "16", "16"});
byt.a(sQLiteDatabase, "INSERT INTO task(_id, task_name, task_skill_id, task_score, task_length, task_icon, task_medal_id, task_guid, task_start_time, task_end_time) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", new Object[]{21, "", 3, 0, 1, "", 17, "20", 1441036800000L, 1441900799000L});
if (c) {
hvq.b(b, "version:2 upgrade...");
}
}
private void c(SQLiteDatabase sQLiteDatabase) {
byt.a(sQLiteDatabase, "INSERT INTO task(_id, task_name, task_skill_id, task_score, task_length, task_icon, task_medal_id, task_guid, task_start_time, task_end_time) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", new Object[]{22, "露脸奖", 4, 1, 1, "4", -1, "21", 0, 0});
byt.a(sQLiteDatabase, 6, 5);
byt.a(sQLiteDatabase, 10, 5);
byt.a(sQLiteDatabase, 13, 5);
byt.a(sQLiteDatabase, 16, 5);
if (c) {
hvq.b(b, "version:3 upgrade...");
}
}
private void d(SQLiteDatabase sQLiteDatabase) {
byt.a(sQLiteDatabase, "INSERT INTO task(_id, task_name, task_skill_id, task_score, task_length, task_icon, task_medal_id, task_guid, task_start_time, task_end_time) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", new Object[]{23, "十万金主", 8, 5, 1, "", 18, "22", 0, 0});
byr.a(sQLiteDatabase, "INSERT INTO medal(_id, medal_name, medal_icon, medal_share_str, medal_share_guide_str) VALUES(?, ?, ?, ?, ?)", new Object[]{18, "十万金主", "https://sjwsst.baidu.com/apks/icon/shiwanjinzhu.png", "17", "17"});
bys.a(sQLiteDatabase, "INSERT INTO skill(_id, skill_name, skill_action) VALUES(?, ?, ?)", new Object[]{8, "安全支付", "com.dianxinos.optimizer.module.paysecurity.PaymentEnterActivity"});
if (c) {
hvq.b(b, "version:4 upgrade...");
}
}
public Cursor a(Uri uri, String[] strArr, String str, String[] strArr2, String str2, String str3, String str4) {
try {
return a().query(uri, strArr, str, strArr2, str4);
} catch (Exception e2) {
if (c) {
e2.printStackTrace();
}
return null;
}
}
private ContentResolver a() {
if (this.d == null) {
this.d = this.a.getContentResolver();
}
return this.d;
}
}