From 53d37ba23f4805dc81849595d18160eac7e75439 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 9 Nov 2017 17:41:09 -0700 Subject: Better, consistent definition of AID_SHARED_GID. AID_SHARED_GID is a GID shared by a specific app across all users on the same device. Bring the UserHandle and multiuser.c implementations into agreement, and copy/paste the unit tests that verify that both behave identically. This fixes a regression where multiuser_get_shared_gid() was applying per-user isolation when it shouldn't have. Test: adb shell /data/nativetest64/libcutils_test/libcutils_test64 Bug: 34151068, 64548938 Change-Id: I491dd79d23a214425a68865d1d0f8269916aad4c --- libcutils/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcutils/Android.bp') diff --git a/libcutils/Android.bp b/libcutils/Android.bp index d7413d16c..9cba109a4 100644 --- a/libcutils/Android.bp +++ b/libcutils/Android.bp @@ -20,7 +20,7 @@ libcutils_nonwindows_sources = [ "android_get_control_file.cpp", "fs.cpp", - "multiuser.c", + "multiuser.cpp", "socket_inaddr_any_server_unix.cpp", "socket_local_client_unix.cpp", "socket_local_server_unix.cpp", -- cgit v1.2.3-54-g00ecf