mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 21:27:36 +02:00
Make the checkPackagePrivateAccess functionality an option
This is only needed for 4.2.0, but not 4.2.1. Both are api 17, so we can't tie this functionality to an api level.
This commit is contained in:

committed by
Connor Tumbleson

parent
89e6b06521
commit
52482802dc
@ -164,7 +164,7 @@ public class ClassPath {
|
||||
return unknownClass;
|
||||
}
|
||||
|
||||
public boolean needCheckPackagePrivateAccess() {
|
||||
public boolean shouldCheckPackagePrivateAccess() {
|
||||
return checkPackagePrivateAccess;
|
||||
}
|
||||
|
||||
|
@ -628,7 +628,7 @@ public class ClassProto implements TypeProto {
|
||||
for (int i=0; i<vtable.size(); i++) {
|
||||
Method superMethod = vtable.get(i);
|
||||
if (methodSignaturesMatch(superMethod, virtualMethod)) {
|
||||
if (!classPath.needCheckPackagePrivateAccess() || canAccess(superMethod)) {
|
||||
if (!classPath.shouldCheckPackagePrivateAccess() || canAccess(superMethod)) {
|
||||
if (replaceExisting) {
|
||||
vtable.set(i, virtualMethod);
|
||||
}
|
||||
|
Reference in New Issue
Block a user