Some improvements to DialerStrictMode.

Only mutate the thread policy when on the main thread to prevent accidentally changing the policy for a non-main thread. The alternative here is Assert.isMainThread(), but that would make DialerStrictMode more difficult to use.

Also switched one use of #disableDeathPenalty to the more concise #bypass.

Bug: 64118795
Test: verified bugfood build does not crash on launch
PiperOrigin-RevId: 164794473
Change-Id: I58db414cbb003241a1afcddabfd6557612351598
1 file changed
tree: 326e73199fe32125a7bcbbcdda4a64dc2a7c45a9
  1. assets/
  2. java/
  3. Android.mk
  4. AndroidManifest.xml
  5. LICENSE