TIM v2.3.1版本的 MD5 值为:d6957e3ee7ce901ccc491cefdea0da8c
以下内容为反编译后的 QRUtility.java 源代码,内容仅作参考
package cooperation.qqreader;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Environment;
import android.text.TextUtils;
import com.tencent.common.app.AppInterface;
import com.tencent.mobileqq.app.AppConstants;
import com.tencent.mobileqq.app.PublicAccountDataManager;
import com.tencent.mobileqq.app.QQAppInterface;
import com.tencent.mobileqq.pluginsdk.PluginStatic;
import com.tencent.mobileqq.statistics.PluginStatisticsCollector;
import com.tencent.mobileqq.util.Utils;
import com.tencent.mobileqq.utils.VipUtils;
import java.io.File;
import mqq.app.AppRuntime;
public class QRUtility {
public static final int f98223a = 0;
public static String f69909a = "{\"id\":\"220628\",\"title\":\"天才魔音师\",\"author\":\"紫漠蝶\",\"downloadURL\":\"\",\"coverURL\":\"http://wfqqreader.3g.qq.com/cover/628/220628/b_220628.jpg\",\"contentUrl\":\"http://allreader.3g.qq.com/readonline\",\"is_real_url\": 0,\"type\":0,\"version\":417,\"chapterId\":-1,\"chapterTitle\": \"第1章 诡异事件\", \"drm\":0, \"finished\": 1, \"fileFormat\":\"txt\", \"sourceurl\":\"\"}";
public static final int f98224b = 1;
public static final String f69910b = "QR_SETTING";
public static final int f98225c = 2;
public static final String f69911c = "QR_USERPREF58";
public static final String d = "QR_USERPREF_NET";
public static final String e = "QR_USERPREF_FROM_NET";
public static final String f = "QR_USERPREF_CHANGE";
public static final String g = "QR_BOOKADDED";
public static void a(Activity activity, QQAppInterface qQAppInterface) {
a(qQAppInterface, activity, 2, "inter2");
}
public static void a(QQAppInterface qQAppInterface, Activity activity, int i, String str) {
Intent intent = new Intent();
intent.putExtra(AppConstants.Key.m, qQAppInterface.getCurrentAccountUin());
intent.putExtra("load_from_third_app", true);
intent.putExtra(PluginStatic.PARAM_PLUGIN_GESTURELOCK, true);
intent.putExtra(PluginStatic.PARAM_CLASS_STATISTICS_UPLOADER, "com.tencent.mobileqq.statistics.PluginStatisticsCollector");
if (0 == 0) {
intent.setClassName(activity, "cooperation.qqreader.QRBridgeActivity");
Bundle bundle = new Bundle();
bundle.putInt("qq_share_book_type", i);
bundle.putString("book_info", str);
intent.putExtras(bundle);
activity.startActivity(intent);
return;
}
PluginStatisticsCollector.a(activity, qQAppInterface.getCurrentAccountUin(), TextUtils.isEmpty("qqreaderplugin.apk") ? "qqreaderplugin.apk" : "qqreaderplugin.apk".substring(0, "qqreaderplugin.apk".indexOf(".")), null);
}
public static void a(QQAppInterface qQAppInterface, Activity activity, boolean z) {
Intent intent = new Intent();
intent.putExtra(AppConstants.Key.m, qQAppInterface.getCurrentAccountUin());
intent.putExtra("load_from_third_app", true);
intent.putExtra(PluginStatic.PARAM_PLUGIN_GESTURELOCK, true);
intent.putExtra(PluginStatic.PARAM_CLASS_STATISTICS_UPLOADER, "com.tencent.mobileqq.statistics.PluginStatisticsCollector");
if (0 == 0) {
intent.setClassName(activity, "cooperation.qqreader.QRBridgeActivity");
Bundle bundle = new Bundle();
bundle.putBoolean(QRBridgeActivity.n, true);
intent.putExtras(bundle);
activity.startActivity(intent);
return;
}
PluginStatisticsCollector.a(activity, qQAppInterface.getCurrentAccountUin(), TextUtils.isEmpty("qqreaderplugin.apk") ? "qqreaderplugin.apk" : "qqreaderplugin.apk".substring(0, "qqreaderplugin.apk".indexOf(".")), null);
}
public static boolean a(AppInterface appInterface) {
PublicAccountDataManager publicAccountDataManager;
if (appInterface == null || (publicAccountDataManager = (PublicAccountDataManager) appInterface.getManager(55)) == null) {
return false;
}
return publicAccountDataManager.m4572b("1805987832") != null;
}
public static int a(QQAppInterface qQAppInterface, String str) {
if (qQAppInterface != null) {
int a2 = VipUtils.a((AppRuntime) qQAppInterface, str);
if ((a2 & 4) != 0) {
return 2;
}
return (a2 & 2) != 0 ? 1 : 0;
}
return 0;
}
public static int a(Context context) {
return context.getSharedPreferences(f69910b, 0).getInt(f69911c, -1);
}
public static void a(Context context, int i) {
SharedPreferences.Editor edit = context.getSharedPreferences(f69910b, 0).edit();
edit.putInt(f69911c, i);
edit.commit();
}
public static void a(Context context, int i, boolean z) {
SharedPreferences.Editor edit = context.getSharedPreferences(f69910b, 0).edit();
edit.putInt(f69911c, i);
edit.putBoolean(e, z);
edit.commit();
}
public static void b(Context context, int i) {
SharedPreferences.Editor edit = context.getSharedPreferences(f69910b, 0).edit();
edit.putInt(f69911c, i);
edit.commit();
}
public static boolean m10787a(Context context) {
return context.getSharedPreferences(f69910b, 0).getBoolean(e, false);
}
public static boolean m10788b(Context context) {
return context.getSharedPreferences(f69910b, 0).getBoolean(g, false);
}
public static void a(Context context, boolean z) {
context.getSharedPreferences(f69910b, 0).edit().putBoolean(g, z).commit();
}
public static String m10786a(Context context) {
return b(context) + QRPluginBooks.f98211c;
}
public static String b(Context context) {
return Utils.m9070b() ? Environment.getExternalStorageDirectory().getPath() + QRPluginBooks.f98210b : context.getFilesDir().getAbsolutePath() + File.separator;
}
}