From 389bc7baec4e10ccc56798969c7c247f6c6ab722 Mon Sep 17 00:00:00 2001 From: Howard Chen Date: Wed, 26 Feb 2020 17:19:10 +0800 Subject: [PATCH] Allow gsid to callback system server for oneway method Bug: 149790245 Bug: 149716497 Test: adb shell am start-activity \ -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \ -a android.os.image.action.START_INSTALL \ -d file:///storage/emulated/0/Download/system.raw.gz \ --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \ --el KEY_USERDATA_SIZE 8589934592 Change-Id: I41c7b1278cfc103c90282b6a6781eab66fc9dcdb --- private/gsid.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/private/gsid.te b/private/gsid.te index 5d7b04370..3ff9d678d 100644 --- a/private/gsid.te +++ b/private/gsid.te @@ -135,6 +135,8 @@ allowxperm gsid { ota_image_data_file }:file ioctl FS_IOC_FIEMAP; +allow gsid system_server:binder call; + neverallow { domain -init