summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin F. Haggerty <haggertk@lineageos.org>2019-08-13 04:19:30 (GMT)
committerKevin F. Haggerty <haggertk@lineageos.org>2019-08-13 04:19:30 (GMT)
commit6ee7acf296cabaadbb3488a358be91a448f8fb74 (patch)
tree0f08864f106aad336cf3310647734c14a9fa23c1
parentb3f9d2394b761aa415f6d4e7ff77b889a3b98063 (diff)
parentc3a4cf721d272e9ecc6910f15fdb2ad598f83a92 (diff)
downloadandroid_packages_apps_PackageInstaller-lineage-15.1.zip
android_packages_apps_PackageInstaller-lineage-15.1.tar.gz
android_packages_apps_PackageInstaller-lineage-15.1.tar.bz2
Merge remote-tracking branch 'aosp/oreo-mr1-security-release' into lineage-15.1lineage-15.1
* aosp/oreo-mr1-security-release: [RESTRICT AUTOMERGE]: Merge commit '217f31fb5da6a08b2172d292fa5b8f440c02ae3a' into OP_REQUEST_INSTALL_PACKAGES-denied Ask for PIN when granting permissions in front of lock screen RESTRICT AUTOMERGE: Trust session id only if started with ACTION_CONFIRM_INSTALL RESTRICT AUTOMERGE: Always use safe labels Change-Id: I90dd2a6fcbc28d7de845dda32ec17600d5b6b993
-rw-r--r--src/com/android/packageinstaller/PackageInstallerActivity.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java
index 0644417..339aff0 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -41,7 +41,6 @@ import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
-import android.os.RemoteException;
import android.os.UserManager;
import android.provider.Settings;
import android.support.annotation.NonNull;
@@ -526,16 +525,6 @@ public class PackageInstallerActivity extends OverlayTouchActivity implements On
mOriginatingUid, mOriginatingPackage);
switch (appOpMode) {
case AppOpsManager.MODE_DEFAULT:
- try {
- int result = mIpm.checkUidPermission(
- Manifest.permission.REQUEST_INSTALL_PACKAGES, mOriginatingUid);
- if (result == PackageManager.PERMISSION_GRANTED) {
- initiateInstall();
- break;
- }
- } catch (RemoteException exc) {
- Log.e(TAG, "Unable to talk to package manager");
- }
mAppOpsManager.setMode(appOpCode, mOriginatingUid,
mOriginatingPackage, AppOpsManager.MODE_ERRORED);
// fall through