Loading libvndksupport/linker.c +7 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ #define LOG_TAG "vndksupport" #include <log/log.h> #include <sys/types.h> #include <unistd.h> __attribute__((weak)) extern struct android_namespace_t* android_get_exported_namespace(const char*); __attribute__((weak)) extern void* android_dlopen_ext(const char*, int, const android_dlextinfo*); Loading @@ -46,6 +48,11 @@ static struct android_namespace_t* get_vendor_namespace() { } int android_is_in_vendor_process() { // Special case init, since when init runs, ld.config.<ver>.txt hasn't been // loaded (sysprop service isn't up for init to know <ver>). if (getpid() == 1) { return 0; } if (android_get_exported_namespace == NULL) { ALOGD("android_get_exported_namespace() not available. Assuming system process."); return 0; Loading Loading
libvndksupport/linker.c +7 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ #define LOG_TAG "vndksupport" #include <log/log.h> #include <sys/types.h> #include <unistd.h> __attribute__((weak)) extern struct android_namespace_t* android_get_exported_namespace(const char*); __attribute__((weak)) extern void* android_dlopen_ext(const char*, int, const android_dlextinfo*); Loading @@ -46,6 +48,11 @@ static struct android_namespace_t* get_vendor_namespace() { } int android_is_in_vendor_process() { // Special case init, since when init runs, ld.config.<ver>.txt hasn't been // loaded (sysprop service isn't up for init to know <ver>). if (getpid() == 1) { return 0; } if (android_get_exported_namespace == NULL) { ALOGD("android_get_exported_namespace() not available. Assuming system process."); return 0; Loading