From 470a6a6806ebacee69f8e820cdb2ee307d58f11a Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Wed, 12 Mar 2014 13:47:37 -0400 Subject: Drop restorecon call from DownloadProvider. It is not necessary/useful to place this directory into a separate type from other app data files, so remove this restorecon. Change-Id: Iabd643a515c134ab2a62e82866a3f72530f795ba Signed-off-by: Stephen Smalley --- src/com/android/providers/downloads/DownloadProvider.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/com/android/providers/downloads/DownloadProvider.java b/src/com/android/providers/downloads/DownloadProvider.java index ad3cf7ac..45af4456 100644 --- a/src/com/android/providers/downloads/DownloadProvider.java +++ b/src/com/android/providers/downloads/DownloadProvider.java @@ -39,7 +39,6 @@ import android.os.Handler; import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor.OnCloseListener; import android.os.Process; -import android.os.SELinux; import android.provider.BaseColumns; import android.provider.Downloads; import android.provider.OpenableColumns; @@ -465,11 +464,6 @@ public final class DownloadProvider extends ContentProvider { Context context = getContext(); context.startService(new Intent(context, DownloadService.class)); mDownloadsDataDir = StorageManager.getDownloadDataDirectory(getContext()); - try { - SELinux.restorecon(mDownloadsDataDir.getCanonicalPath()); - } catch (IOException e) { - Log.wtf(Constants.TAG, "Could not get canonical path for download directory", e); - } return true; } -- cgit v1.2.3