1 #pragma once 2 3 #ifndef ANDROID_SECURITY_FLAG 4 #define ANDROID_SECURITY_FLAG(FLAG) ANDROID_SECURITY_FLAG_##FLAG 5 #endif 6 7 #ifndef ANDROID_SECURITY_FLAG_DEPRECATE_FSVERITY_INIT 8 #define ANDROID_SECURITY_FLAG_DEPRECATE_FSVERITY_INIT true 9 #endif 10 11 #ifdef __cplusplus 12 13 #include <memory> 14 15 namespace android::security::flag { 16 17 class flag_provider_interface { 18 public: 19 virtual ~flag_provider_interface() = default; 20 virtual bool deprecate_fsverity_init() = 0; 21 }; 22 23 extern std::unique_ptr<flag_provider_interface> provider_; 24 25 deprecate_fsverity_init()26inline bool deprecate_fsverity_init() { 27 return ANDROID_SECURITY_FLAG_DEPRECATE_FSVERITY_INIT; 28 } 29 30 } 31 32 extern "C" { 33 #endif // __cplusplus 34 35 36 bool android_security_flag_deprecate_fsverity_init(); 37 38 #ifdef __cplusplus 39 } // extern "C" 40 #endif 41 42