Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4bf0eae authored by rich cannings's avatar rich cannings
Browse files

DEFAULT_VERIFY_ENABLE turns verification off

When DEFAULT_VERIFY_ENABLE == false, package verification must be completely
off.

Bug: 7132197
Change-Id: Icc0dbb4a3f4f5f00ddadecda6cc42976618c4332
parent a043c2c0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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;
    }

    /**