Guard ANGLE rules file check with DEBUG flag

Temporarily disable ANGLE rules file checking to avoid
LeakedClosableViolation which is triggering crashes.

This can be removed when refactor is completed that avoids
holding a file descriptor open until the driver loads.

Bug: 119516511
Test: cts-tradefed run singleCommand cts -m CtsAngleIntegrationHostTestCases
Change-Id: Icd8a48c853825ebfd64cf0746ae8203554e1684e
(cherry picked from commit bcf422bde166af8b886eb86b04f5edefb1cd4c72)
diff --git a/core/java/android/os/ b/core/java/android/os/
index 900b62d..8cafbde 100644
--- a/core/java/android/os/
+++ b/core/java/android/os/
@@ -269,7 +269,7 @@
         // If no temp rules, load the real ones from the APK
-        if (rulesFd == null) {
+        if (DEBUG && (rulesFd == null)) {
             // Pass the rules file to loader for ANGLE decisions
             AssetManager angleAssets = null;