Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Drop restorecon call from DownloadProvider."
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkral authored and Gerrit Code Review committed Mar 15, 2014
2 parents c5d43a1 + 470a6a6 commit 2834a68
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/com/android/providers/downloads/DownloadProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
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;
Expand Down Expand Up @@ -465,11 +464,6 @@ public boolean onCreate() {
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;
}

Expand Down

0 comments on commit 2834a68

Please sign in to comment.