Fixes to native app ops services

Bug: 8181262
Change-Id: I3d3f20453f6c6f2756c988363c5b5453ef309cb6
diff --git a/include/binder/AppOpsManager.h b/include/binder/AppOpsManager.h
index f64d5da..256cb94 100644
--- a/include/binder/AppOpsManager.h
+++ b/include/binder/AppOpsManager.h
@@ -28,9 +28,9 @@
 {
 public:
     enum {
-        MODE_ALLOWED = 0,
-        MODE_IGNORED = 1,
-        MODE_ERRORED = 2
+        MODE_ALLOWED = IAppOpsService::MODE_ALLOWED,
+        MODE_IGNORED = IAppOpsService::MODE_IGNORED,
+        MODE_ERRORED = IAppOpsService::MODE_ERRORED
     };
 
     enum {
diff --git a/include/binder/IAppOpsService.h b/include/binder/IAppOpsService.h
index 2883e38..7cb55e5 100644
--- a/include/binder/IAppOpsService.h
+++ b/include/binder/IAppOpsService.h
@@ -46,6 +46,12 @@
         START_WATCHING_MODE_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION+4,
         STOP_WATCHING_MODE_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION+5
     };
+
+    enum {
+        MODE_ALLOWED = 0,
+        MODE_IGNORED = 1,
+        MODE_ERRORED = 2
+    };
 };
 
 // ----------------------------------------------------------------------
@@ -64,4 +70,3 @@
 }; // namespace android
 
 #endif // ANDROID_IAPP_OPS_SERVICE_H
-