From 81d8b0ee011acc5a8cfe81c329797a49c88ce0ee Mon Sep 17 00:00:00 2001 From: Jin Qian <jinqian@google.com> Date: Mon, 16 Oct 2017 16:39:13 -0700 Subject: [PATCH] storaged: move storaged file from DE to CE Allow vold/system_server to call storaged service Test: adb shell storaged -u Bug: 63740245 Change-Id: I88219e32520006db20299468b7a8c7ce0bfa58e0 Merged-In: I88219e32520006db20299468b7a8c7ce0bfa58e0 (cherry picked from commit fa6c3d7c4c9e18bc5d1877db0ed4c8ef833783d2) --- private/file_contexts | 4 +++- private/system_server.te | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/private/file_contexts b/private/file_contexts index d87d9bfd3..03bd889d5 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -376,7 +376,6 @@ /data/misc/recovery(/.*)? u:object_r:recovery_data_file:s0 /data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0 /data/misc/sms(/.*)? u:object_r:radio_data_file:s0 -/data/misc/storaged(/.*)? u:object_r:storaged_data_file:s0 /data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0 /data/misc/textclassifier(/.*)? u:object_r:textclassifier_data_file:s0 /data/misc/user(/.*)? u:object_r:misc_user_data_file:s0 @@ -396,6 +395,9 @@ /data/misc/profiles/ref(/.*)? u:object_r:user_profile_data_file:s0 /data/misc/profman(/.*)? u:object_r:profman_dump_data_file:s0 +# storaged proto files +/data/misc_ce/[0-9]+/storaged(/.*)? u:object_r:storaged_data_file:s0 + # Fingerprint data /data/system/users/[0-9]+/fpdata(/.*)? u:object_r:fingerprintd_data_file:s0 diff --git a/private/system_server.te b/private/system_server.te index 351068661..9879913aa 100644 --- a/private/system_server.te +++ b/private/system_server.te @@ -178,6 +178,7 @@ binder_call(system_server, gatekeeperd) binder_call(system_server, installd) binder_call(system_server, incidentd) binder_call(system_server, netd) +binder_call(system_server, storaged) binder_call(system_server, vold) binder_call(system_server, wificond) binder_call(system_server, wpantund) @@ -585,6 +586,7 @@ allow system_server mediadrmserver_service:service_manager find; allow system_server netd_service:service_manager find; allow system_server nfc_service:service_manager find; allow system_server radio_service:service_manager find; +allow system_server storaged_service:service_manager find; allow system_server surfaceflinger_service:service_manager find; allow system_server vold_service:service_manager find; allow system_server wificond_service:service_manager find; -- GitLab