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

Commit 4811398e authored by Pawan Wagh's avatar Pawan Wagh Committed by Gerrit Code Review
Browse files

Merge "Add check for valid AIBinder_Class_setTransactionCodeToFunctionNameMap" into main

parents 1456474e df681340
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -299,7 +299,8 @@ AIBinder_Class* ICInterface::defineClass(const char* interfaceDescriptor,

#if defined(__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__) || __ANDROID_API__ >= 36
    if API_LEVEL_AT_LEAST (36, 202504) {
        if (codeToFunction != nullptr) {
        if (codeToFunction != nullptr &&
            (&AIBinder_Class_setTransactionCodeToFunctionNameMap != nullptr)) {
            AIBinder_Class_setTransactionCodeToFunctionNameMap(clazz, codeToFunction,
                                                               functionCount);
        }