From 2544c6917aa747352112b49429ba4d77f36f05cf Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Tue, 15 May 2018 11:30:09 -0400 Subject: [PATCH] Fix crash when loading resources without code Should use default appComponentFactory, not the actual one from the app because we have no code. Test: manual Change-Id: I982967543c4cf5c28b19b36b6d183a30052bf602 Fixes: 78883500 --- core/java/android/app/LoadedApk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/LoadedApk.java b/core/java/android/app/LoadedApk.java index ca3257f24207d..9db642bb18a3d 100644 --- a/core/java/android/app/LoadedApk.java +++ b/core/java/android/app/LoadedApk.java @@ -700,7 +700,7 @@ public final class LoadedApk { librarySearchPath, libraryPermittedPath, mBaseClassLoader, null /* classLoaderName */); StrictMode.setThreadPolicy(oldPolicy); - mAppComponentFactory = createAppFactory(mApplicationInfo, mClassLoader); + mAppComponentFactory = AppComponentFactory.DEFAULT; } return;