summaryrefslogtreecommitdiff
path: root/tools/preload-check
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2019-04-16 14:50:42 -0700
committerAndreas Gampe <agampe@google.com>2019-04-16 14:52:14 -0700
commitc771bfebe14a331e5ed4d72d95978e3074eb8ff9 (patch)
tree2e478b65b680f91c28a35a9750424e11644236c8 /tools/preload-check
parentbb621f2df4740f43c31c62916f33085f54036f0e (diff)
PreloadCheck: Reset UncaughtExceptionHandler
Do not use the framework's exception handler. Rather use the default behavior and print the exception to stdout, so that it appears in the test failure. Test: atest --test-mapping frameworks/base/tools/preload-check Test: manual Change-Id: I3563392408a72c97788452f467c027112f52f193
Diffstat (limited to 'tools/preload-check')
-rw-r--r--tools/preload-check/device/src/com/android/preload/check/Util.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/preload-check/device/src/com/android/preload/check/Util.java b/tools/preload-check/device/src/com/android/preload/check/Util.java
index 19cc5abf6f4d..fccea0a0c107 100644
--- a/tools/preload-check/device/src/com/android/preload/check/Util.java
+++ b/tools/preload-check/device/src/com/android/preload/check/Util.java
@@ -40,6 +40,8 @@ public class Util {
} catch (Throwable t) {
throw new RuntimeException(t);
}
+ // Reset the framework's kill handler.
+ Thread.setDefaultUncaughtExceptionHandler(null);
}
public static Collection<DexFile> getBootDexFiles() throws Exception {