summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Morales2015-04-16 15:16:24 -0500
committerAndres Morales2015-04-16 15:17:54 -0500
commit6a49c2fa4371cad600f4a96da3d1644df862d2a5 (patch)
treede675d63c6cf4d3577512a8805db0f82f1e5fe33 /gatekeeperd/IGateKeeperService.cpp
parent5134cc0139f8c9e5657487f386b11803df284818 (diff)
downloadplatform-system-core-6a49c2fa4371cad600f4a96da3d1644df862d2a5.tar.gz
platform-system-core-6a49c2fa4371cad600f4a96da3d1644df862d2a5.tar.xz
platform-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(
115 } 115 }
116 return NO_ERROR; 116 return NO_ERROR;
117 } 117 }
118 case GET_SECURE_USER_ID: {
119 CHECK_INTERFACE(IGateKeeperService, data, reply);
120 uint32_t uid = data.readInt32();
121 uint64_t sid = getSecureUserId(uid);
122 reply->writeNoException();
123 reply->writeInt64(sid);
124 return NO_ERROR;
125 }
118 default: 126 default:
119 return BBinder::onTransact(code, data, reply, flags); 127 return BBinder::onTransact(code, data, reply, flags);
120 } 128 }