QQ android 登录模块简单分析
QQ数据库表总共有27张:
加密函数:
加密密码后保存到数据库的qq_selfinfo表中。
//
//根据notice_info.xml文件提取出qqimsecure的信息,
//获取系统中已经存在的qqimsecure信息
//比较,返回newversion或oldversion
public Constants.SecureStatus getSecureStatus()
{
Exception localException1 = 0;
Context ctx = this.g;
SharedPreferences noticeInfoXml = ctx.getSharedPreferences("notice_info", MODE_PRIVATE == 0);
String strPkg = noticeInfoXml.getString("pkg", "com.tencent.qqpimsecure");
String strPkgAD = ad.a(strPkg);
String strCert = noticeInfoXml.getString("cert", "00B1208638DE0FCD3E920886D658DAF6");
String strCertAD = ad.a(strCert);
int iVersion = noticeInfoXml.getInt("version", 0);
//返回x509的MD5等appinfo信息
//1.获取com.tencent.qqpimsecure包的version,signature等信息
//2.将signature转x509证书,提取md5
//3.将信息封装到appinfo中
//EQQSecureNotInstalled = 0,EQQSecureOldVersion = 1, EQQSecureNewVersion =2
AppInfo appInfo = a.a(ctx, strPkgAD);
。。。。。。
更多相关文章
- Android:eclipse启动时出现异常Failed to initialize Monitor Th
- 取消程序在最近六项中显示以及直接调用信息短信界面
- Android(安卓)Camera简单整理(四)-Android(安卓)Camera性能Debug
- Android之使用MediaMetadataRetriever类获取媒体信息
- android的System.out.println
- Android(安卓)获取屏幕的多种宽高信息的示例代码
- android 获取sim卡运营商信息(转)
- Android下使用TelephonyManager类获取设备电话相关信息
- 【Android(安卓)开发教程】编码实现获取与修改预设信息中的值