From: LuK1337 Date: Tue, 9 May 2017 11:23:51 +0000 (+0200) Subject: Update OMS patches X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85d22b398802fbcc13886b48e0f1693b31d6c498;p=GitHub%2FStricted%2Fandroid_vendor_extra.git Update OMS patches --- diff --git a/patches/system/sepolicy/0001-OMS7-N-Add-service-overlay-to-service_contexts.patch b/patches/system/sepolicy/0001-OMS7-N-Add-service-overlay-to-service_contexts.patch index 49cad43..dec1591 100644 --- a/patches/system/sepolicy/0001-OMS7-N-Add-service-overlay-to-service_contexts.patch +++ b/patches/system/sepolicy/0001-OMS7-N-Add-service-overlay-to-service_contexts.patch @@ -1,7 +1,7 @@ -From 1feca61b0366caa178889d9dd905c0f35c4c4351 Mon Sep 17 00:00:00 2001 +From f60df3b40bef428241ee3d931568e8de816fef7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Mon, 22 Jun 2015 09:31:25 +0200 -Subject: [PATCH 01/11] OMS7-N: Add service 'overlay' to service_contexts +Subject: [PATCH 01/12] OMS7-N: Add service 'overlay' to service_contexts The 'overlay' service is the Overlay Manager Service, which tracks packages and their Runtime Resource Overlay overlay packages. diff --git a/patches/system/sepolicy/0002-Introduce-sepolicy-exceptions-for-theme-assets.patch b/patches/system/sepolicy/0002-Introduce-sepolicy-exceptions-for-theme-assets.patch index ef5d7ca..5db6628 100644 --- a/patches/system/sepolicy/0002-Introduce-sepolicy-exceptions-for-theme-assets.patch +++ b/patches/system/sepolicy/0002-Introduce-sepolicy-exceptions-for-theme-assets.patch @@ -1,7 +1,7 @@ -From 9e49f50fa1a4fcab0d9458c3406fe70b66218fde Mon Sep 17 00:00:00 2001 +From a420610fb6940291fac20da7d7310b9fe942dfcb Mon Sep 17 00:00:00 2001 From: d34d Date: Wed, 4 Jan 2017 10:29:34 -0800 -Subject: [PATCH 02/11] Introduce sepolicy exceptions for theme assets +Subject: [PATCH 02/12] Introduce sepolicy exceptions for theme assets Assets such as composed icons and ringtones need to be accessed by apps. This patch adds the policy needed to facilitate this. diff --git a/patches/system/sepolicy/0003-sepolicy-fix-themed-boot-animation.patch b/patches/system/sepolicy/0003-sepolicy-fix-themed-boot-animation.patch index 761a1fc..227b217 100644 --- a/patches/system/sepolicy/0003-sepolicy-fix-themed-boot-animation.patch +++ b/patches/system/sepolicy/0003-sepolicy-fix-themed-boot-animation.patch @@ -1,7 +1,7 @@ -From a29c592adf45bdd1042d9339d3b0047e7032c78e Mon Sep 17 00:00:00 2001 +From 1d859c985c4bea5656dd525b35885a1cd9cd15aa Mon Sep 17 00:00:00 2001 From: bigrushdog Date: Wed, 4 Jan 2017 10:31:29 -0800 -Subject: [PATCH 03/11] sepolicy: fix themed boot animation +Subject: [PATCH 03/12] sepolicy: fix themed boot animation W BootAnimation: type=1400 audit(0.0:42): avc: denied { open } for uid=1003 path="/data/system/theme/bootanimation.zip" dev="mmcblk0p42" ino=1657697 scontext=u:r:bootanim:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0 diff --git a/patches/system/sepolicy/0004-sepolicy-fix-themed-sounds.patch b/patches/system/sepolicy/0004-sepolicy-fix-themed-sounds.patch index c40cace..2eed2be 100644 --- a/patches/system/sepolicy/0004-sepolicy-fix-themed-sounds.patch +++ b/patches/system/sepolicy/0004-sepolicy-fix-themed-sounds.patch @@ -1,7 +1,7 @@ -From 8882f733308ff6ac5e5292eb38253bda7b874427 Mon Sep 17 00:00:00 2001 +From 43b569d877370cf0ea109cfdd57976c22a4eba91 Mon Sep 17 00:00:00 2001 From: George G Date: Wed, 8 Feb 2017 17:22:44 +0200 -Subject: [PATCH 04/11] sepolicy: fix themed sounds +Subject: [PATCH 04/12] sepolicy: fix themed sounds 02-08 17:26:48.011 18259-18259/? W/SoundPoolThread: type=1400 audit(0.0:31): avc: denied { read } for path="/data/system/theme/audio/ui/Lock.ogg" dev="dm-0" ino=1006317 scontext=u:r:drmserver:s0 tcontext=u:object_r:theme_data_file:s0 tclass=file permissive=0 diff --git a/patches/system/sepolicy/0005-initial-policy-edits-for-masquerade-to-operate-rootl.patch b/patches/system/sepolicy/0005-initial-policy-edits-for-masquerade-to-operate-rootl.patch index b062e7d..b29d9fd 100644 --- a/patches/system/sepolicy/0005-initial-policy-edits-for-masquerade-to-operate-rootl.patch +++ b/patches/system/sepolicy/0005-initial-policy-edits-for-masquerade-to-operate-rootl.patch @@ -1,7 +1,7 @@ -From 3a536ae9574dae37422ec188f119d9769c68355c Mon Sep 17 00:00:00 2001 +From d7c74a0c8d441ebd4db743a56bd22e01609d3c1c Mon Sep 17 00:00:00 2001 From: Surge1223 Date: Sat, 18 Feb 2017 08:46:15 -0600 -Subject: [PATCH 05/11] initial policy edits for masquerade to operate rootless +Subject: [PATCH 05/12] initial policy edits for masquerade to operate rootless Change-Id: Iddfc408f206033772b9d49d335ca94e63b5e5210 --- diff --git a/patches/system/sepolicy/0006-sepolicy-rename-masquerade-domain-and-allow-JobServi.patch b/patches/system/sepolicy/0006-sepolicy-rename-masquerade-domain-and-allow-JobServi.patch index f0fd6da..7b051f3 100644 --- a/patches/system/sepolicy/0006-sepolicy-rename-masquerade-domain-and-allow-JobServi.patch +++ b/patches/system/sepolicy/0006-sepolicy-rename-masquerade-domain-and-allow-JobServi.patch @@ -1,7 +1,7 @@ -From 95904cb6390312b0e842b5cbb8fda6a28f524f12 Mon Sep 17 00:00:00 2001 +From 7fb0e2bca061721e879e4dd05c0985fc003407d6 Mon Sep 17 00:00:00 2001 From: Surge1223 Date: Tue, 21 Feb 2017 12:28:05 -0600 -Subject: [PATCH 06/11] sepolicy: rename masquerade domain and allow JobService +Subject: [PATCH 06/12] sepolicy: rename masquerade domain and allow JobService in system_server This attempts to address the issue of JobService being unable to process diff --git a/patches/system/sepolicy/0007-sepolicy-allow-masquerade-to-read-and-write-theme-as.patch b/patches/system/sepolicy/0007-sepolicy-allow-masquerade-to-read-and-write-theme-as.patch index 9a406f1..427e5c9 100644 --- a/patches/system/sepolicy/0007-sepolicy-allow-masquerade-to-read-and-write-theme-as.patch +++ b/patches/system/sepolicy/0007-sepolicy-allow-masquerade-to-read-and-write-theme-as.patch @@ -1,7 +1,7 @@ -From 4fe1775849e375de906ba4ad92d1b3e79d4c8bc3 Mon Sep 17 00:00:00 2001 +From 35e7f6b212da283b29132f2734da6360c3a36c13 Mon Sep 17 00:00:00 2001 From: Surge1223 Date: Wed, 22 Feb 2017 20:45:04 -0600 -Subject: [PATCH 07/11] sepolicy: allow masquerade to read and write theme +Subject: [PATCH 07/12] sepolicy: allow masquerade to read and write theme assets Fix for masquerade to handle theme assets including fonts and bootanimation, also diff --git a/patches/system/sepolicy/0008-sepolicy-Fix-application-of-bootanimation.patch b/patches/system/sepolicy/0008-sepolicy-Fix-application-of-bootanimation.patch index fd79690..82b8524 100644 --- a/patches/system/sepolicy/0008-sepolicy-Fix-application-of-bootanimation.patch +++ b/patches/system/sepolicy/0008-sepolicy-Fix-application-of-bootanimation.patch @@ -1,7 +1,7 @@ -From f5397bc7a0b0483d4fe484fd24c82ca941262ea3 Mon Sep 17 00:00:00 2001 +From ff7ba5a6d5524f632134c6bcf43173043479e27e Mon Sep 17 00:00:00 2001 From: Miccia Date: Mon, 27 Feb 2017 12:36:21 +0100 -Subject: [PATCH 08/11] sepolicy: Fix application of bootanimation +Subject: [PATCH 08/12] sepolicy: Fix application of bootanimation Change-Id: I7365d28fecf18b4d1aa42b2210e023b202dd97a5 --- diff --git a/patches/system/sepolicy/0009-sepolicy-Redo-masquerade-rules.patch b/patches/system/sepolicy/0009-sepolicy-Redo-masquerade-rules.patch index 5875d10..bfc326c 100644 --- a/patches/system/sepolicy/0009-sepolicy-Redo-masquerade-rules.patch +++ b/patches/system/sepolicy/0009-sepolicy-Redo-masquerade-rules.patch @@ -1,7 +1,7 @@ -From 542b2618ace4fc577949507829ce3f27d9c0514d Mon Sep 17 00:00:00 2001 +From 931433e0e94054c4898276213fa18e0ca93d29e2 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 1 Mar 2017 23:11:49 +0100 -Subject: [PATCH 09/11] sepolicy: Redo masquerade rules +Subject: [PATCH 09/12] sepolicy: Redo masquerade rules * Use macros * Label custom properties diff --git a/patches/system/sepolicy/0010-Welcome-to-Theme-Interfacer-2-2.patch b/patches/system/sepolicy/0010-Welcome-to-Theme-Interfacer-2-2.patch index c81b595..c234f41 100644 --- a/patches/system/sepolicy/0010-Welcome-to-Theme-Interfacer-2-2.patch +++ b/patches/system/sepolicy/0010-Welcome-to-Theme-Interfacer-2-2.patch @@ -1,7 +1,7 @@ -From a0cb9177aff9b17cea5119a9b8fb6770784857cf Mon Sep 17 00:00:00 2001 +From 4ef2c96d7fa1f63ebbec4b9ac3ac7fe7b6cd36a0 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Sat, 4 Mar 2017 19:20:10 -0700 -Subject: [PATCH 10/11] Welcome to Theme Interfacer! [2/2] +Subject: [PATCH 10/12] Welcome to Theme Interfacer! [2/2] Change-Id: I4a28c8840957d385338529540e081eabd3135cc1 Signed-off-by: Nathan Chancellor diff --git a/patches/system/sepolicy/0011-sepolicy-add-file-and-domain-trans-to-interfacer.patch b/patches/system/sepolicy/0011-sepolicy-add-file-and-domain-trans-to-interfacer.patch index 178163c..bff7470 100644 --- a/patches/system/sepolicy/0011-sepolicy-add-file-and-domain-trans-to-interfacer.patch +++ b/patches/system/sepolicy/0011-sepolicy-add-file-and-domain-trans-to-interfacer.patch @@ -1,7 +1,7 @@ -From a65b9f9786bda8cca29f808cf8669bebb0c59578 Mon Sep 17 00:00:00 2001 +From 44f026c91d25d3e72d9654efc0c238cb451d6451 Mon Sep 17 00:00:00 2001 From: Surge Raval Date: Sun, 16 Apr 2017 05:00:13 +0000 -Subject: [PATCH 11/11] sepolicy: add file and domain trans to interfacer +Subject: [PATCH 11/12] sepolicy: add file and domain trans to interfacer This will fix bootanimations not applying on 7.1.2 ROMs diff --git a/patches/system/sepolicy/0012-sepolicy-Allow-system_server-to-set-theme_prop.patch b/patches/system/sepolicy/0012-sepolicy-Allow-system_server-to-set-theme_prop.patch new file mode 100644 index 0000000..01c2e3e --- /dev/null +++ b/patches/system/sepolicy/0012-sepolicy-Allow-system_server-to-set-theme_prop.patch @@ -0,0 +1,31 @@ +From b3bdd5ba0f03e0e85c064defb3842d57ca1990ab Mon Sep 17 00:00:00 2001 +From: Harsh Shandilya +Date: Tue, 9 May 2017 09:18:10 +0530 +Subject: [PATCH 12/12] sepolicy: Allow system_server to set theme_prop + +[ 6065.716763] init: avc: denied { set } for property=sys.refresh_theme +pid=1131 uid=1000 gid=1000 scontext=u:r:system_server:s0 +tcontext=u:object_r:theme_prop:s0 tclass=property_service permissive=0 + +I am yet to spot any regressions this is causing, but better safe than sorry + +Change-Id: I971b92dd3c074cda2ba0b49ffd256679dc4086de +--- + system_server.te | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/system_server.te b/system_server.te +index a30a09e..037ecb8 100644 +--- a/system_server.te ++++ b/system_server.te +@@ -353,6 +353,7 @@ set_prop(system_server, cppreopt_prop) + + # theme property + get_prop(system_server, theme_prop) ++set_prop(system_server, theme_prop) + + # Create a socket for receiving info from wpa. + type_transition system_server wifi_data_file:sock_file system_wpa_socket; +-- +2.11.1 +