diff options
author | Taesu Lee <taesu82.lee@samsung.com> | 2021-06-29 14:15:43 +0900 |
---|---|---|
committer | Orion Hodson <oth@google.com> | 2021-06-29 09:21:38 +0100 |
commit | c57fb648e418ef60e2950f7f68e280653c2a9f18 (patch) | |
tree | b8795702986d35abb648020447c718013545dc68 /core/jni | |
parent | 91c4f415e3b3aced748a8db161428c356d0f021e (diff) |
Fix JNI error
Replace CallStaticVoidMethod with CallStaticObjectMethod.
Bug: 192290163
Test: build & boot
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
(cherry picked from commit 07e04b69a5368936fac185a6fbf8588bf0dc9d25)
Merged-In: I02980e58bfd9bb334f1aa50c9e51a8ce4ae5e059
Change-Id: I1ae548e31722675b90be5447aa84e8f5e207cc98
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/com_android_internal_os_Zygote.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index 90008c552995..527b959e15c5 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -1620,7 +1620,7 @@ static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, if (is_system_server) { // Prefetch the classloader for the system server. This is done early to // allow a tie-down of the proper system server selinux domain. - env->CallStaticVoidMethod(gZygoteInitClass, gGetOrCreateSystemServerClassLoader); + env->CallStaticObjectMethod(gZygoteInitClass, gGetOrCreateSystemServerClassLoader); if (env->ExceptionCheck()) { // Be robust here. The Java code will attempt to create the classloader // at a later point (but may not have rights to use AoT artifacts). |