aboutsummaryrefslogtreecommitdiff
path: root/sandbox
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2023-11-22 14:00:02 -0800
committerCopybara-Service <copybara-worker@google.com>2023-11-22 14:00:42 -0800
commit1051084a140586a47e0ab5cac55e93d60f27473a (patch)
treeb82144e52f83a6adb26d56a36ae4b6a7f75e2997 /sandbox
parent2fefc594fc11373de473680d2da2566701570e5c (diff)
downloadrobolectric-1051084a140586a47e0ab5cac55e93d60f27473a.tar.gz
ShadowServiceManager and Android configurer update
Exclude instrumenting an Exception and added missing IPlatformCompat service PiperOrigin-RevId: 584714205
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/src/main/java/org/robolectric/config/AndroidConfigurer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sandbox/src/main/java/org/robolectric/config/AndroidConfigurer.java b/sandbox/src/main/java/org/robolectric/config/AndroidConfigurer.java
index c03b88262..1fb7a98d2 100644
--- a/sandbox/src/main/java/org/robolectric/config/AndroidConfigurer.java
+++ b/sandbox/src/main/java/org/robolectric/config/AndroidConfigurer.java
@@ -106,6 +106,10 @@ public class AndroidConfigurer {
// Instrumenting these classes causes a weird failure.
builder.doNotInstrumentClass("android.R").doNotInstrumentClass("android.R$styleable");
+ // Instrumenting this Exceptions causes "java.lang.NegativeArraySizeException: -2" and
+ // leads to java.lang.NoClassDefFoundError.
+ builder.doNotInstrumentClass("android.app.RecoverableSecurityException");
+
builder
.addInstrumentedPackage("dalvik.")
.addInstrumentedPackage("libcore.")