summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2015-02-11 20:53:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-11 20:53:14 +0000
commit5de5c2f27fb6f92a50928c761472839bdb6675ed (patch)
tree4779b639c583b5ae01027185602766f5903da2ee /src
parent7efdf954f7890852d7295971e3cf74ad47c4f97c (diff)
parent512965420a8c5b00780610e962574215c91cf829 (diff)
downloadandroid_packages_apps_PackageInstaller-5de5c2f27fb6f92a50928c761472839bdb6675ed.tar.gz
android_packages_apps_PackageInstaller-5de5c2f27fb6f92a50928c761472839bdb6675ed.tar.bz2
android_packages_apps_PackageInstaller-5de5c2f27fb6f92a50928c761472839bdb6675ed.zip
am 51296542: am 10763f1c: Merge "Hidden ApplicationInfo flags are now in privateFlags."
* commit '512965420a8c5b00780610e962574215c91cf829': Hidden ApplicationInfo flags are now in privateFlags.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/packageinstaller/PackageInstallerActivity.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java
index e600dd8f..9153d71a 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -356,7 +356,8 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen
try {
mSourceInfo = mPm.getApplicationInfo(callerPackage, 0);
if (mSourceInfo != null) {
- if ((mSourceInfo.flags & ApplicationInfo.FLAG_PRIVILEGED) != 0) {
+ if ((mSourceInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED)
+ != 0) {
// Privileged apps are not considered an unknown source.
return false;
}
@@ -593,7 +594,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen
ApplicationInfo sourceInfo = getSourceInfo();
if (sourceInfo != null) {
if (uidFromIntent != VerificationParams.NO_UID &&
- (mSourceInfo.flags & ApplicationInfo.FLAG_PRIVILEGED) != 0) {
+ (mSourceInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) != 0) {
return uidFromIntent;
}
@@ -623,7 +624,8 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen
ApplicationInfo applicationInfo =
mPm.getApplicationInfo(packageName, 0);
- if ((applicationInfo.flags & ApplicationInfo.FLAG_PRIVILEGED) != 0) {
+ if ((applicationInfo.privateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED)
+ != 0) {
return uidFromIntent;
}
} catch (NameNotFoundException ex) {