summaryrefslogtreecommitdiffstats
path: root/gatekeeperd/IGateKeeperService.cpp
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-04-16 13:16:24 -0700
committerAndres Morales <anmorales@google.com>2015-04-16 13:17:54 -0700
commit6a49c2fa4371cad600f4a96da3d1644df862d2a5 (patch)
treede675d63c6cf4d3577512a8805db0f82f1e5fe33 /gatekeeperd/IGateKeeperService.cpp
parent5134cc0139f8c9e5657487f386b11803df284818 (diff)
downloadsystem_core-6a49c2fa4371cad600f4a96da3d1644df862d2a5.tar.gz
system_core-6a49c2fa4371cad600f4a96da3d1644df862d2a5.tar.bz2
system_core-6a49c2fa4371cad600f4a96da3d1644df862d2a5.zip
Implement SID API
Change-Id: Id11632a6b4b9cab6f08f97026dd65fdf49a46491
Diffstat (limited to 'gatekeeperd/IGateKeeperService.cpp')
-rw-r--r--gatekeeperd/IGateKeeperService.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gatekeeperd/IGateKeeperService.cpp b/gatekeeperd/IGateKeeperService.cpp
index b1e4811a9..d4ed53377 100644
--- a/gatekeeperd/IGateKeeperService.cpp
+++ b/gatekeeperd/IGateKeeperService.cpp
@@ -115,6 +115,14 @@ status_t BnGateKeeperService::onTransact(
}
return NO_ERROR;
}
+ case GET_SECURE_USER_ID: {
+ CHECK_INTERFACE(IGateKeeperService, data, reply);
+ uint32_t uid = data.readInt32();
+ uint64_t sid = getSecureUserId(uid);
+ reply->writeNoException();
+ reply->writeInt64(sid);
+ return NO_ERROR;
+ }
default:
return BBinder::onTransact(code, data, reply, flags);
}