此文超级简单 大牛们请绕道
app版本6.46.0
使jp.pxv.android.commonObjects.model.OAuthUser的isPremium()返回true即可
APP修改
先过签名验证 主流方案均可
定位到jp.pxv.android.commonObjects.model.OAuthUser的isPremium方法
加一行
const/4 v0, 0x1
[i]
保存 签名 安装即可
Xposed模块
主体代码
public class Hook implements IXposedHookLoadPackage {
@Override
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam loadPackageParam) throws Throwable {
if (loadPackageParam.packageName.equals("jp.pxv.android")) {
Class OAuthUser = loadPackageParam.classLoader.loadClass("jp.pxv.android.commonObjects.model.OAuthUser");
XposedHelpers.findAndHookMethod(OAuthUser, "isPremium", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
param.setResult(true);
XposedBridge.log("pixiv: return premium");
}
});
}
}
}
编译好的模块
[i]
[i]