| 382 | } |
| 383 | |
| 384 | virtual void preBoot(Thread* t) |
| 385 | { |
| 386 | // Android's System.initSystemProperties throws an NPE if |
| 387 | // LD_LIBRARY_PATH is not set as of this writing: |
| 388 | #ifdef PLATFORM_WINDOWS |
| 389 | _wputenv(L"LD_LIBRARY_PATH=(dummy)"); |
| 390 | #elif(!defined AVIAN_IOS) |
| 391 | setenv("LD_LIBRARY_PATH", "", false); |
| 392 | #endif |
| 393 | |
| 394 | interceptMethods(t, true); |
| 395 | |
| 396 | JniConstants::init(reinterpret_cast<_JNIEnv*>(t)); |
| 397 | |
| 398 | JNI_OnLoad(reinterpret_cast< ::JavaVM*>(t->m), 0); |
| 399 | |
| 400 | libconscrypt_JNI_OnLoad(reinterpret_cast< ::_JavaVM*>(t->m), 0); |
| 401 | |
| 402 | mayInitClasses_ = true; |
| 403 | } |
| 404 | |
| 405 | virtual bool mayInitClasses() |
| 406 | { |
nothing calls this directly
no test coverage detected