platform_hardware_tequila_c.../libbinder/IServiceManager.cpp
R0rt1z2 895a614971 compat: Provide shim with IPermissionController stubs
* All the IPermissionController related functions are guarded by
  `if !defined(__ANDROID_VNDK__)` [1], meaning they're not fully
  accessible to vendors.

* Since we know these are mainly used to check whether an app or
  process has a required permission, simply provide an stub that
  returns true no matter what the permission / caller are.

- [1]: https://github.com/LineageOS/android_frameworks_native/blob/lineage-20.0/libs/binder/IServiceManager.cpp#L170

Change-Id: I898bf8eb577faecb8bc0f007498b835816dddb93
2023-07-18 18:10:41 +00:00

15 lines
253 B
C++

/*
* Copyright (C) 2023 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <utils/String16.h>
namespace android {
bool checkCallingPermission(const String16& /* permission */) {
return true;
};
} // namespace android