Skip to content

Instantly share code, notes, and snippets.

@llelectronics
llelectronics / gist:5d7302a666175fdcaca0627960eea184
Created January 21, 2026 16:53
Xiaomi Fix notification delays HyperOS 3.0 (CN)
# Get a list of packages you want to whitelist (you can add more apps to the list if you want to for example |threema)
pm list packages -e -3 | grep -E "zalo|facebook|gm|telegram|instagram|ugc|discord|whatsapp|twitter|mastodon|sms|reddit|wechat" | sed -e "s/^package://"
# Get apps on the white list currently
cmd settings get system cloud_lowlatency_whitelist
# Write new apps to the white list
cmd settings put system cloud_lowlatency_whitelist <LIST_OF_PACKAGES_SEPARATED_BY_COMMA>
Example:
pm list packages -e -3 | grep -E "zalo|facebook|gm|telegram|instagram|ugc|discord|whatsapp|twitter|mastodon|sms|reddit|wechat" | sed -e "s/^package://" >/data/local/tmp/b.txt
wlist=""
for word in $(cat /data/local/tmp/b.txt); do wlist="$wlist$word;"; done
echo $wlist
cmd settings put system millet_white $wlist
cmd settings put global low_power_sticky 1
cmd settings put secure miui_optimization 0
cmd settings put secure sync_on_wifi_only 0
cmd settings put system background_power_saving_enable 0
cmd settings put system deviceLevelList "v:1,c:3,g:3"
diff --git a/pages/AccountList.qml b/pages/AccountList.qml
index c05e0b8..6de56c4 100644
--- a/pages/AccountList.qml
+++ b/pages/AccountList.qml
@@ -21,15 +21,13 @@ Column {
Label {
id: unreadCountLabel
+ z: accountIcon.z + 1
color: highlighted ? Theme.highlightColor : Theme.primaryColor
From b5a06939c75489a10f9068c7cbe57ba8ecd071c5 Mon Sep 17 00:00:00 2001
From: Leszek Lesner <leszek.lsner@web.de>
Date: Wed, 6 Sep 2017 23:35:04 +0200
Subject: [PATCH] Add proper full screen support
---
.../Source/WebKit2/UIProcess/qt/QtPageClient.cpp | 17 +++++++++++++++--
.../Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.h | 1 +
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/qtwebkit-5.212.0-alpha2/Source/WebKit2/UIProcess/qt/QtPageClient.cpp b/qtwebkit-5.212.0-alpha2/Source/WebKit2/UIProcess/qt/QtPageClient.cpp
index 372d8c6..45966c5 100644
--- a/qtwebkit-5.212.0-alpha2/Source/WebKit2/UIProcess/qt/QtPageClient.cpp
+++ b/qtwebkit-5.212.0-alpha2/Source/WebKit2/UIProcess/qt/QtPageClient.cpp
@@ -298,12 +298,25 @@ bool QtPageClient::isFullScreen()
void QtPageClient::enterFullScreen()
{
- notImplemented();
+ if (!m_webView)
@llelectronics
llelectronics / Module.cpp
Created May 19, 2017 15:57
Allow reading in many sections in one file
diff --git a/src/Module.cpp b/src/Module.cpp
index a7c3aea..1825cba 100644
--- a/src/Module.cpp
+++ b/src/Module.cpp
@@ -137,13 +137,11 @@ void Module::Private::populateSources()
for(QString const& path : paths) {
// One hard-coded channel, and one for the distribution we're actually running on
QStringList channelTypes = QStringList() << QString("%1/release-channels/channels/general-use").arg(path) << QString("%1/release-channels/channels/%2").arg(path).arg(os.id);
-
+
Index: calamares-2.4/src/modules/locale/LocaleConfiguration.cpp
===================================================================
--- calamares-2.4.orig/src/modules/locale/LocaleConfiguration.cpp
+++ calamares-2.4/src/modules/locale/LocaleConfiguration.cpp
@@ -41,6 +41,7 @@ LocaleConfiguration::fromLanguageAndLoca
{
LocaleConfiguration lc = LocaleConfiguration();
QString language = languageLocale.split( '_' ).first();
+ lc.myLanguageLocaleBcp47 = language;