mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 14:36:17 -04:00
Small tweaks
- Remove some more blobs - 19.1: disable FP animation (jesec) - 18.1: mata: allow major upgrades (to 19.1) (Updater patch by erfanoabdi) - mata: disable Vulkan, it doesn't work Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
8491016b84
commit
e38aff581e
5 changed files with 82 additions and 9 deletions
|
@ -0,0 +1,38 @@
|
|||
From 10b36261bda3a4d5459f55a0dca8e55b00203354 Mon Sep 17 00:00:00 2001
|
||||
From: Erfan Abdi <erfangplus@gmail.com>
|
||||
Date: Tue, 26 Apr 2022 00:18:03 +0430
|
||||
Subject: [PATCH] Updater: Add prop for allowing major updates
|
||||
|
||||
Change-Id: Ida461cab7f0c4953fbdd6ea4928bf14fff386056
|
||||
---
|
||||
src/org/lineageos/updater/misc/Constants.java | 1 +
|
||||
src/org/lineageos/updater/misc/Utils.java | 3 ++-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/org/lineageos/updater/misc/Constants.java b/src/org/lineageos/updater/misc/Constants.java
|
||||
index 6144ed74..554098ef 100644
|
||||
--- a/src/org/lineageos/updater/misc/Constants.java
|
||||
+++ b/src/org/lineageos/updater/misc/Constants.java
|
||||
@@ -46,6 +46,7 @@ private Constants() {
|
||||
public static final String PROP_RELEASE_TYPE = "ro.lineage.releasetype";
|
||||
public static final String PROP_UPDATER_ALLOW_DOWNGRADING = "lineage.updater.allow_downgrading";
|
||||
public static final String PROP_UPDATER_URI = "lineage.updater.uri";
|
||||
+ public static final String PROP_UPDATER_ALLOW_MAJOR_UPDATE = "lineage.updater.allow_major_update";
|
||||
|
||||
public static final String PREF_INSTALL_OLD_TIMESTAMP = "install_old_timestamp";
|
||||
public static final String PREF_INSTALL_NEW_TIMESTAMP = "install_new_timestamp";
|
||||
diff --git a/src/org/lineageos/updater/misc/Utils.java b/src/org/lineageos/updater/misc/Utils.java
|
||||
index 79ded8f2..c1896410 100644
|
||||
--- a/src/org/lineageos/updater/misc/Utils.java
|
||||
+++ b/src/org/lineageos/updater/misc/Utils.java
|
||||
@@ -113,8 +113,9 @@ public static boolean isCompatible(UpdateBaseInfo update) {
|
||||
public static boolean canInstall(UpdateBaseInfo update) {
|
||||
return (SystemProperties.getBoolean(Constants.PROP_UPDATER_ALLOW_DOWNGRADING, false) ||
|
||||
update.getTimestamp() > SystemProperties.getLong(Constants.PROP_BUILD_DATE, 0)) &&
|
||||
+ (SystemProperties.getBoolean(Constants.PROP_UPDATER_ALLOW_MAJOR_UPDATE, false) ||
|
||||
update.getVersion().equalsIgnoreCase(
|
||||
- SystemProperties.get(Constants.PROP_BUILD_VERSION));
|
||||
+ SystemProperties.get(Constants.PROP_BUILD_VERSION)));
|
||||
}
|
||||
|
||||
public static List<UpdateInfo> parseJson(File file, boolean compatibleOnly)
|
29
Patches/LineageOS-19.1/android_frameworks_base/326692.patch
Normal file
29
Patches/LineageOS-19.1/android_frameworks_base/326692.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
From ddf071766e4388217b14b9572eccbd3507cfa80d Mon Sep 17 00:00:00 2001
|
||||
From: Jesse Chan <jc@lineageos.org>
|
||||
Date: Sat, 15 Aug 2020 21:38:06 +0800
|
||||
Subject: [PATCH] Skip screen on animation when wake and unlock via biometrics
|
||||
|
||||
Screen on animation is slow. Modern fingerprint sensor is *FAST*.
|
||||
We need moar speed to deliver better user experience.
|
||||
|
||||
* OEMs are doing this for years.
|
||||
|
||||
Change-Id: I5f98259eb992b2f43872f957fcb0092412fe558c
|
||||
---
|
||||
.../src/com/android/systemui/statusbar/phone/StatusBar.java | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
|
||||
index a515bf54436c..9ff524f82866 100644
|
||||
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
|
||||
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
|
||||
@@ -3920,7 +3920,8 @@ public void updateScrimController() {
|
||||
|
||||
boolean launchingAffordanceWithPreview =
|
||||
mNotificationPanelViewController.isLaunchingAffordanceWithPreview();
|
||||
- mScrimController.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview);
|
||||
+ mScrimController.setLaunchingAffordanceWithPreview(launchingAffordanceWithPreview
|
||||
+ || mBiometricUnlockController.isWakeAndUnlock());
|
||||
|
||||
if (mStatusBarKeyguardViewManager.isShowingAlternateAuth()) {
|
||||
if (mState == StatusBarState.SHADE || mState == StatusBarState.SHADE_LOCKED) {
|
Loading…
Add table
Add a link
Reference in a new issue