diff options
author | Googler <noreply@google.com> | 2023-11-22 14:00:02 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-11-22 14:00:42 -0800 |
commit | 1051084a140586a47e0ab5cac55e93d60f27473a (patch) | |
tree | b82144e52f83a6adb26d56a36ae4b6a7f75e2997 /sandbox | |
parent | 2fefc594fc11373de473680d2da2566701570e5c (diff) | |
download | robolectric-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.java | 4 |
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.") |