XposedHelpers.findAndHookMethod(XposedHelpers.findClass(
"com.tencent.mm.ui.LauncherUI"
, WxHook.wxClassLoader),
"onCreate"
, Bundle.
class
,
new
XC_MethodHook() {
protected
void
afterHookedMethod(MethodHookParam param)
throws
Throwable {
SharedPreferences sharedPreferences = ((Activity) param.thisObject).getSharedPreferences(
"com.tencent.mm_preferences"
,
0
);
String login_weixin_username = sharedPreferences.getString(
"login_weixin_username"
,
"null"
);
String last_login_nick_name = sharedPreferences.getString(
"last_login_nick_name"
,
"null"
);
String login_user_name = sharedPreferences.getString(
"login_user_name"
,
"null"
);
String last_login_uin = sharedPreferences.getString(
"last_login_uin"
,
"null"
);
log(login_weixin_username+
"---"
+last_login_nick_name+
"----"
+login_user_name+
"----"
+last_login_uin);
}
});