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

Commit 0472a26d authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Give DPM callers unsafe labels.

Tests want the full label, so give it to them.

Test: none
Bug: 74254785
Change-Id: Ia358ee54396ee0a0684fd352c7133f54d9f8c4a7
parent b133cbfd
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -7833,8 +7833,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
            ApplicationInfo appInfo = userContext.getApplicationInfo();
            ApplicationInfo appInfo = userContext.getApplicationInfo();
            CharSequence result = null;
            CharSequence result = null;
            if (appInfo != null) {
            if (appInfo != null) {
                PackageManager pm = userContext.getPackageManager();
                result = appInfo.loadUnsafeLabel(userContext.getPackageManager());
                result = pm.getApplicationLabel(appInfo);
            }
            }
            return result != null ? result.toString() : null;
            return result != null ? result.toString() : null;
        } finally {
        } finally {