Merge "OMS: do not hide reason for failing transactions (on non-user builds)"

This commit is contained in:
TreeHugger Robot
2022-11-03 16:39:53 +00:00
committed by Android (Google) Code Review

View File

@@ -60,6 +60,7 @@ import android.content.pm.overlay.OverlayPaths;
import android.content.res.ApkAssets;
import android.net.Uri;
import android.os.Binder;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.FabricatedOverlayInternal;
@@ -881,7 +882,7 @@ public final class OverlayManagerService extends SystemService {
}
Slog.d(TAG, "commit failed: " + e.getMessage(), e);
throw new SecurityException("commit failed"
+ (DEBUG ? ": " + e.getMessage() : ""));
+ (DEBUG || Build.IS_DEBUGGABLE ? ": " + e.getMessage() : ""));
}
} finally {
traceEnd(TRACE_TAG_RRO);