diff options
author | Andreas Gampe <agampe@google.com> | 2019-04-16 14:50:42 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2019-04-16 14:52:14 -0700 |
commit | c771bfebe14a331e5ed4d72d95978e3074eb8ff9 (patch) | |
tree | 2e478b65b680f91c28a35a9750424e11644236c8 | |
parent | bb621f2df4740f43c31c62916f33085f54036f0e (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
-rw-r--r-- | tools/preload-check/device/src/com/android/preload/check/Util.java | 2 |
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 { |