895a614971
* 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
15 lines
253 B
C++
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
|