Commit graph

1 commit

Author SHA1 Message Date
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