Add ModernPermissionManagerServiceImpl skeleton and two methods.
Also allow compatibility layer to talk to policy directly by
introducing scopes for getting and mutating state, because
compatibility layer shouldn't have direct access to states, while
scope also allows getting rid of a lot of boilerplate for passing
states around.
Bug: 182523293
Test: presubmit
Change-Id: I36f53383c261b51372178d8c183c190bdb3c7132
diff --git a/services/permission/Android.bp b/services/permission/Android.bp
index b03f17b..dc9b558 100644
--- a/services/permission/Android.bp
+++ b/services/permission/Android.bp
@@ -29,6 +29,8 @@
],
static_libs: [
"kotlin-stdlib",
+ // Adds reflection-less suppressed exceptions and AutoCloseable.use().
+ "kotlin-stdlib-jdk7",
],
jarjar_rules: "jarjar-rules.txt",
kotlincflags: [