summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorrich cannings <richc@google.com>2012-09-14 13:18:55 -0700
committerrich cannings <richc@google.com>2012-09-14 13:40:30 -0700
commite4bf0eae061c821eaaec988097a8d31332d21646 (patch)
tree697bacff5ea0a360176a646c2f27d137d6961a0c /services/java
parenta043c2c0534afe418fc39bdb43bfaab394ba821a (diff)
downloadframeworks_base-e4bf0eae061c821eaaec988097a8d31332d21646.zip
frameworks_base-e4bf0eae061c821eaaec988097a8d31332d21646.tar.gz
frameworks_base-e4bf0eae061c821eaaec988097a8d31332d21646.tar.bz2
DEFAULT_VERIFY_ENABLE turns verification off
When DEFAULT_VERIFY_ENABLE == false, package verification must be completely off. Bug: 7132197 Change-Id: Icc0dbb4a3f4f5f00ddadecda6cc42976618c4332
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/pm/PackageManagerService.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/java/com/android/server/pm/PackageManagerService.java b/services/java/com/android/server/pm/PackageManagerService.java
index e208068..5c3042d 100644
--- a/services/java/com/android/server/pm/PackageManagerService.java
+++ b/services/java/com/android/server/pm/PackageManagerService.java
@@ -5902,9 +5902,12 @@ public class PackageManagerService extends IPackageManager.Stub {
* @return true if verification should be performed
*/
private boolean isVerificationEnabled() {
+ if (!DEFAULT_VERIFY_ENABLE) {
+ return false;
+ }
+
return android.provider.Settings.Global.getInt(mContext.getContentResolver(),
- android.provider.Settings.Global.PACKAGE_VERIFIER_ENABLE,
- DEFAULT_VERIFY_ENABLE ? 1 : 0) == 1 ? true : false;
+ android.provider.Settings.Global.PACKAGE_VERIFIER_ENABLE, 1) == 1;
}
/**