Deprecate android_is_in_vendor_process
android_is_in_vnedor_process previously checked if current process is in system(-ish) section by trying to open vndk namespace. However, this would not work once VNDK is deprecated. As there is no clear way to replace this, and there is few usage on this API, it would be better deprecated, and be implemented from each module if required. Bug: 300366609 Test: AOSP CF build and boot succeeded Change-Id: I70c70efb36199e12d4877ea4ecb39dbf94653551
This commit is contained in:
parent
26cb9dbfef
commit
ebbf9753e9
2 changed files with 3 additions and 10 deletions
|
|
@ -20,15 +20,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
int android_is_in_vendor_process() __attribute__((
|
||||||
* Returns whether the current process is a vendor process.
|
deprecated("This function would not give exact result if VNDK is deprecated.")));
|
||||||
*
|
|
||||||
* 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();
|
|
||||||
|
|
||||||
void* android_load_sphal_library(const char* name, int flag);
|
void* android_load_sphal_library(const char* name, int flag);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
LIBVNDKSUPPORT {
|
LIBVNDKSUPPORT {
|
||||||
global:
|
global:
|
||||||
android_is_in_vendor_process; # llndk systemapi
|
android_is_in_vendor_process; # systemapi
|
||||||
android_load_sphal_library; # llndk systemapi
|
android_load_sphal_library; # llndk systemapi
|
||||||
android_unload_sphal_library; # llndk systemapi
|
android_unload_sphal_library; # llndk systemapi
|
||||||
local:
|
local:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue