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

Commit d93f3b10 authored by Adam Powell's avatar Adam Powell
Browse files

Fix crash for showing linker errors for apps with no label

Use ApplicationInfo#loadLabel to provide the standard fallback chain
of strings to identify an app instead of getString on the raw label
resource id, which will throw a NotFoundException if 0.

Bug 27469189

Change-Id: I344273c600f029361f3accfe5d91b0d332635b3d
parent a7932845
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6599,7 +6599,8 @@ public class Activity extends ContextThemeWrapper
        if (isAppDebuggable || isDlwarningEnabled) {
            String dlwarning = getDlWarning();
            if (dlwarning != null) {
                String appName = getString(mApplication.getApplicationInfo().labelRes);
                String appName = getApplicationInfo().loadLabel(getPackageManager())
                        .toString();
                String warning = "Detected problems with app native libraries\n" +
                                 "(please consult log for detail):\n" + dlwarning;
                if (isAppDebuggable) {