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

Commit 47f8c4f0 authored by Andrei Homescu's avatar Andrei Homescu
Browse files

libbinder: disable JavaThreadAttacher on non-Android OSes

Bug: 224644083
Test: m
Change-Id: Ibfa0535fa09af569f55aa1e6b8d5ff6adb720eb3
parent 7cdf5c26
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@
#include "RpcWireFormat.h"
#include "Utils.h"

#ifndef __ANDROID_RECOVERY__
#if defined(__ANDROID__) && !defined(__ANDROID_RECOVERY__)
#include <android_runtime/vm.h>
#include <jni.h>
#endif
@@ -316,7 +316,7 @@ RpcSession::PreJoinSetupResult RpcSession::preJoinSetup(
}

namespace {
#ifdef __ANDROID_RECOVERY__
#if !defined(__ANDROID__) || defined(__ANDROID_RECOVERY__)
class JavaThreadAttacher {};
#else
// RAII object for attaching / detaching current thread to JVM if Android Runtime exists. If