fix FakeContext getContentResolver NPE (#2904)

This commit is contained in:
5ec1cff 2023-12-30 11:31:54 +08:00 committed by GitHub
parent 1607548ffc
commit 2f58f0785d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ public class FakeContext extends ContextWrapper {
return ConfigFileManager.getResources();
}
@Override
public String getOpPackageName() {
return "android";
}
@Override
public ApplicationInfo getApplicationInfo() {
try {