Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 13手机上有些问题 #3

Open
renwfy opened this issue Apr 6, 2023 · 0 comments
Open

android 13手机上有些问题 #3

renwfy opened this issue Apr 6, 2023 · 0 comments

Comments

@renwfy
Copy link

renwfy commented Apr 6, 2023

问题1:
if("getPackageInfo".equals(method.getName())){
String pkgName = (String)args[0];
Integer flag = (Integer)args[1];
if(flag == PackageManager.GET_SIGNATURES && appPkgName.equals(pkgName)){
Signature sign = new Signature(SIGN);
PackageInfo info = (PackageInfo) method.invoke(base, args);
info.signatures[0] = sign;
return info;
}
}

args[1] 类型是 Long

问题2:
部分手机替换签名没生效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant