From 06aec1f6f25949db0bd991f54f2ac4e05c891fa2 Mon Sep 17 00:00:00 2001 From: d34d Date: Wed, 14 Sep 2016 15:23:14 -0700 Subject: themes: Relabel theme dir after creation After creating the theme directory it will be labeled as a system_data_file. By calling SELinux.restorecon() the directory will be correctly labeled as a themeservice_app_data_file Change-Id: I73a28da883a467bf8859d879dbe22962424e4a23 TICKET: NIGHTLIES-3349 --- .../platform/internal/ThemeManagerServiceBroker.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerServiceBroker.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerServiceBroker.java index 771c537..c46608c 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerServiceBroker.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/ThemeManagerServiceBroker.java @@ -23,6 +23,7 @@ import android.os.FileUtils; import android.os.IBinder; import android.os.RemoteCallbackList; import android.os.RemoteException; +import android.os.SELinux; import android.system.ErrnoException; import android.system.Os; import android.system.StructStat; @@ -257,7 +258,10 @@ public class ThemeManagerServiceBroker extends BrokerableCMSystemService