We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e93cccb + 816e4f7 commit 49b0246Copy full SHA for 49b0246
core/java/android/app/ContextImpl.java
@@ -1480,7 +1480,9 @@ public void enforceUriPermission(
1480
public Context createPackageContext(String packageName, int flags)
1481
throws PackageManager.NameNotFoundException {
1482
if (packageName.equals("system") || packageName.equals("android")) {
1483
- return new ContextImpl(mMainThread.getSystemContext());
+ final ContextImpl context = new ContextImpl(mMainThread.getSystemContext());
1484
+ context.mBasePackageName = mBasePackageName;
1485
+ return context;
1486
}
1487
1488
LoadedApk pi =
0 commit comments