IKE logger #wtf() should never crash "userdebug" builds

This commit updates the IKE logger to avoid crashing
"userdebug" builds.

Previously the IKE logger #wtf() would always call
"android.util.Log.wtf" and would crash "userdebug" and "eng" builds.
Since there is no Android API to diffrentiate a "userdebug" build
from an "eng" build, this commit updates IKE logger to check logging
configuration before calling "android.util.Log.wtf" to avoid
crashing "userdebug".

Bug: 234793068
Test: atest FrameworksIkeTests, CtsIkeTestCases
Change-Id: I93858f13627bca0a9930d45c2e918f92b966da81
(cherry picked from commit 39a02c0f21fe1e155736cfa36bbfa49099c20e1d)
Merged-In: I93858f13627bca0a9930d45c2e918f92b966da81
2 files changed
tree: a5b7a4b6a2db169fd3101c80853d2492057becfd
  1. apex/
  2. api/
  3. src/
  4. tests/
  5. Android.bp
  6. jarjar-rules-shared.txt
  7. jarjar-rules-test.txt
  8. OWNERS
  9. PREUPLOAD.cfg
  10. README.md
  11. TEST_MAPPING
README.md

IKEv2 Library for Android

Introduction

This IKEv2 library is an in-process client library implementing the IKEv2 protocol as well as extensions necessary for the support of IWLAN. It is designed to work in a non-privileged fashion on top of the Android IPsec API surface.