Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13fb2cac authored by Winson's avatar Winson
Browse files

Check mIncludeCode before building appComponentFactory

It should be impossible to resolve a custom appComponentFactory
if the LoadedApk doesn't contain any code paths, so just skip
it to avoid logging an incorrect error.

Bug: 146219140

Test: manual force updateApplicationInfo call, verify bunch of
        errors before fix, no logs after fix; rest of device works

Change-Id: Icbb8533c95c9437ec0a946886e00b9c341e21796
parent 45328cdf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ public final class LoadedApk {
    }

    private AppComponentFactory createAppFactory(ApplicationInfo appInfo, ClassLoader cl) {
        if (appInfo.appComponentFactory != null && cl != null) {
        if (mIncludeCode && appInfo.appComponentFactory != null && cl != null) {
            try {
                return (AppComponentFactory)
                        cl.loadClass(appInfo.appComponentFactory).newInstance();