Skip to content

Commit 0baba59

Browse files
Steven MorelandGerrit Code Review
authored andcommitted
Merge "libbinder: allow libbinder_ndk + libbinder.vendor" into main
2 parents c36f1c1 + 576662a commit 0baba59

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

libs/binder/IServiceManager.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,11 @@ bool checkPermission(const String16& permission, pid_t pid, uid_t uid, bool logP
253253
}
254254
}
255255

256+
#endif //__ANDROID_VNDK__
257+
256258
void* openDeclaredPassthroughHal(const String16& interface, const String16& instance, int flag) {
257-
#if defined(__ANDROID__) && !defined(__ANDROID_RECOVERY__) && !defined(__ANDROID_NATIVE_BRIDGE__)
259+
#if defined(__ANDROID__) && !defined(__ANDROID_VENDOR__) && !defined(__ANDROID_RECOVERY__) && \
260+
!defined(__ANDROID_NATIVE_BRIDGE__)
258261
sp<IServiceManager> sm = defaultServiceManager();
259262
String16 name = interface + String16("/") + instance;
260263
if (!sm->isDeclared(name)) {
@@ -274,8 +277,6 @@ void* openDeclaredPassthroughHal(const String16& interface, const String16& inst
274277
#endif
275278
}
276279

277-
#endif //__ANDROID_VNDK__
278-
279280
// ----------------------------------------------------------------------
280281

281282
ServiceManagerShim::ServiceManagerShim(const sp<AidlServiceManager>& impl) {

0 commit comments

Comments
 (0)