xposed开发7 - 获取微信个人信息

xposed开发7 - 获取微信个人信息

Xposed获取微信个人信息

分析过程如上

// 获取微信个人信息
hookClass = "com.tencent.mm.ui.LauncherUI";
hookMethodName = "onCreate";
XposedHelpers.findAndHookMethod(hookClass, lpparam.classLoader, hookMethodName, Bundle.class, new XC_MethodHook() {
    @Override
    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_wexin_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");

        XposedBridge.log("微信个人信息: login_weixin_username: " + login_weixin_username);
        XposedBridge.log("微信个人信息: last_login_nick_name: " + last_login_nick_name);
        XposedBridge.log("微信个人信息: login_user_name: " + login_user_name);
        XposedBridge.log("微信个人信息: last_login_uin: " + last_login_uin);
    }
});

获取成功:

你可能感兴趣的:(xposed开发)