Stub functions not present on android Q

This commit is contained in:
Billy Laws 2022-02-14 14:43:32 +00:00
parent db24bb4750
commit 9d047fb117
2 changed files with 10 additions and 5 deletions

View file

@ -99,7 +99,6 @@ struct IQtiMapper : public IBase {
}; };
} // namespace V3_0 } // namespace V3_0
#ifdef SHIM_MODE
namespace V2_0 { namespace V2_0 {
struct IQtiMapper : public IBase { struct IQtiMapper : public IBase {
@ -183,5 +182,4 @@ struct IQtiMapper : public IBase {
}; };
} // namespace V2_0 } // namespace V2_0
#endif
} // namespace vendor::qti::hardware::display::mapper } // namespace vendor::qti::hardware::display::mapper

View file

@ -36,9 +36,6 @@
#include <log/log.h> #include <log/log.h>
#include <utils/NativeHandle.h> #include <utils/NativeHandle.h>
#include <utils/misc.h> #include <utils/misc.h>
#define SHIM_MODE 1
#include "ext/common.h" #include "ext/common.h"
#include "ext/gr_utils.h" #include "ext/gr_utils.h"
#include "ext/mapper.h" #include "ext/mapper.h"
@ -47,6 +44,16 @@
using namespace android::hardware; using namespace android::hardware;
using namespace android; using namespace android;
// These two functions are used by the blob and aren't present on Q so weakly stub them
extern "C" uint64_t __attribute__((weak)) atrace_get_enabled_tags() {
return 0;
}
namespace android::hardware::details {
void __attribute__((weak)) return_status::onValueRetrieval() const {}
}
bool IBase::isRemote() const { bool IBase::isRemote() const {
return false; return false;
} }