summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSudheer Shanka <sudheersai@google.com>2018-11-13 18:19:53 -0800
committerSudheer Shanka <sudheersai@google.com>2018-11-13 18:48:42 -0800
commit21bf35b26557d5fb1ed376cbf18a7bcab97069b6 (patch)
treee4a02d7e67adb7f7624b689a2be64ad36f14b0ae /src
parent52c2ef8358b281e7e03f20663eab7af451cd6d7e (diff)
downloadandroid_packages_providers_DownloadProvider-21bf35b26557d5fb1ed376cbf18a7bcab97069b6.tar.gz
android_packages_providers_DownloadProvider-21bf35b26557d5fb1ed376cbf18a7bcab97069b6.tar.bz2
android_packages_providers_DownloadProvider-21bf35b26557d5fb1ed376cbf18a7bcab97069b6.zip
Remove references to DefaultContainerService.
DefaultContainerService is not being used for anything now and is going to be removed. Bug: 111838160 Test: builds and boots Change-Id: Idcd0ef4b479809ea2953d7a583b61aa1769755e0
Diffstat (limited to 'src')
-rw-r--r--src/com/android/providers/downloads/DownloadProvider.java18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/com/android/providers/downloads/DownloadProvider.java b/src/com/android/providers/downloads/DownloadProvider.java
index f8d5aae2..8498b5aa 100644
--- a/src/com/android/providers/downloads/DownloadProvider.java
+++ b/src/com/android/providers/downloads/DownloadProvider.java
@@ -36,9 +36,7 @@ import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.UriMatcher;
-import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.database.SQLException;
@@ -185,7 +183,6 @@ public final class DownloadProvider extends ContentProvider {
/** List of uids that can access the downloads */
private int mSystemUid = -1;
- private int mDefContainerUid = -1;
/**
* Creates and updated database on demand when opening it.
@@ -419,18 +416,6 @@ public final class DownloadProvider extends ContentProvider {
mOpenHelper = new DatabaseHelper(getContext());
// Initialize the system uid
mSystemUid = Process.SYSTEM_UID;
- // Initialize the default container uid. Package name hardcoded
- // for now.
- ApplicationInfo appInfo = null;
- try {
- appInfo = getContext().getPackageManager().
- getApplicationInfo("com.android.defcontainer", 0);
- } catch (NameNotFoundException e) {
- Log.wtf(Constants.TAG, "Could not get ApplicationInfo for com.android.defconatiner", e);
- }
- if (appInfo != null) {
- mDefContainerUid = appInfo.uid;
- }
// Grant access permissions for all known downloads to the owning apps
final SQLiteDatabase db = mOpenHelper.getReadableDatabase();
@@ -1036,8 +1021,7 @@ public final class DownloadProvider extends ContentProvider {
private boolean shouldRestrictVisibility() {
int callingUid = Binder.getCallingUid();
return Binder.getCallingPid() != Process.myPid() &&
- callingUid != mSystemUid &&
- callingUid != mDefContainerUid;
+ callingUid != mSystemUid;
}
/**