OSDN Git Service

Debugging issue #37272284: ActivityManager: SELinux tag not defined
authorDianne Hackborn <hackbod@google.com>
Wed, 12 Apr 2017 23:14:42 +0000 (16:14 -0700)
committerDianne Hackborn <hackbod@google.com>
Wed, 12 Apr 2017 23:14:42 +0000 (16:14 -0700)
Add a little more info to the exception message.

Test: manual
Change-Id: I7ccbd5720d0e6c22a6caa9bfcb24cf40effde804

services/core/java/com/android/server/am/ActivityManagerService.java

index 17459ea..10b62f1 100644 (file)
@@ -3878,7 +3878,8 @@ public class ActivityManagerService extends IActivityManager.Stub
             // the per-user SELinux context must be set
             if (TextUtils.isEmpty(app.info.seInfoUser)) {
                 Slog.wtf(TAG, "SELinux tag not defined",
-                        new IllegalStateException("SELinux tag not defined"));
+                        new IllegalStateException("SELinux tag not defined for "
+                        + app.info.packageName + " (uid " + app.uid + ")"));
             }
             final String seInfo = app.info.seInfo
                     + (TextUtils.isEmpty(app.info.seInfoUser) ? "" : app.info.seInfoUser);