Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c57fb648 authored by Taesu Lee's avatar Taesu Lee Committed by Orion Hodson
Browse files

Fix JNI error



Replace CallStaticVoidMethod with CallStaticObjectMethod.

Bug: 192290163
Test: build & boot

Signed-off-by: default avatarTaesu Lee <taesu82.lee@samsung.com>

(cherry picked from commit 07e04b69)
Merged-In: I02980e58bfd9bb334f1aa50c9e51a8ce4ae5e059
Change-Id: I1ae548e31722675b90be5447aa84e8f5e207cc98
parent 91c4f415
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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).