diff --git a/libvndksupport/include/vndksupport/linker.h b/libvndksupport/include/vndksupport/linker.h index 5f48c3974..684513565 100644 --- a/libvndksupport/include/vndksupport/linker.h +++ b/libvndksupport/include/vndksupport/linker.h @@ -20,15 +20,8 @@ extern "C" { #endif -/* - * Returns whether the current process is a vendor process. - * - * Note that this is only checking what process is running and has nothing to - * do with what namespace the caller is loaded at. For example, a VNDK-SP - * library loaded by SP-HAL calling this function may still get a 'false', - * because it is running in a system process. - */ -int android_is_in_vendor_process(); +int android_is_in_vendor_process() __attribute__(( + deprecated("This function would not give exact result if VNDK is deprecated."))); void* android_load_sphal_library(const char* name, int flag); diff --git a/libvndksupport/libvndksupport.map.txt b/libvndksupport/libvndksupport.map.txt index 1d94b9dcb..fc2502dcb 100644 --- a/libvndksupport/libvndksupport.map.txt +++ b/libvndksupport/libvndksupport.map.txt @@ -1,6 +1,6 @@ LIBVNDKSUPPORT { global: - android_is_in_vendor_process; # llndk systemapi + android_is_in_vendor_process; # systemapi android_load_sphal_library; # llndk systemapi android_unload_sphal_library; # llndk systemapi local: