Merge "OMS: do not hide reason for failing transactions (on non-user builds)"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2769d9ea14
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user