[Xiaomi Mi 11i / 11X Pro / Redmi K40 Pro+] asad007:
Hello,

There are some settings tweaks for NON-ROOT users.

Setedit app tweaks :

Download and Install the "SetEdit" app from playstore.

Open the app and make sure you are at system table

press Add new setting and type "wifi.supplicant_scan_interval" and set it's value at "200"

Press Add new setting and type "pm.sleep_mode" and set it's value as "1"

Scroll down and find "wifi_auto_disable" and set its value as "1"

To set Refresh Rate at 90Hz : (only works for MIUI ROMS)

Set your refresh rate first to 120hz in MIUI settings.

then open setedit app

find "user_refresh_rate" and press the line, choose edit value in popup, and set it to "90"

save changes and Enjoy the 90hz Refresh Rate ( better for battery but still smooth enough ).

Setup Naptime (by @franciscofranco ) using adb shell (NO ROOT REQ) :

Download Naptime app from Playstore

go to miui settings -> About phone -> keep tapping on MIUI version (to enable developer settigns) -> go back to main settings view -> additional settings -> Developer options,

in Developer options scroll down to debugging section and enable USB debugging and enable 1) Install via USB 2) USB debugging (security settings) 3) Enable Viewing attributes ( Screenshot attached).

NOTE : while enabling the above settings you will get warnings, accept them and move on.

now we grant permissions required for naptime :

connect your device to PC and install adb drivers ( you can find many articles online how to setup adb)

now check whether adb was installed, open cmd and type adb , if it installed correctly then you will get a list of commands

now connect your phone with usb cable and type adb devices to check whether your device is connected

then grant permissions to naptime using adb -d shell pm grant com.franco.doze android.permission.DUMP then hit enter,

now type adb -d shell pm grant com.franco.doze android.permission.WRITE_SECURE_SETTINGS hit enter once more.

Now Naptime should open and work as expected, if so disconnect the device from USB and turn off USB debugging and developer options. ( better to close them after the work is done)

now open Naptime and enable all the options at the end, below the heading "OPTIONS" (Screenshot attached)

ENJOY BETTER PHONE STANDBY ! ( NAPTIME makes the phone enter Doze faster within minutes of screen off).

To Disable ZRAM :

Connect to pc and enable dev options as done above for naptime

open cmd ( hoping you have set up adb already ) and type adb -d shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS

now open setedit app and choose global table from above

scroll to the last line

set the value of "zram_enabled" to "0" (default is "1"). (no quotation marks obviously)

DONE !!

De-Bloat your ROM using adb shell :

ADB is needed with USB debugging enabled in dev settings,

use the following in cmd window to remove useless system apps after connecting phone to pc :

Facebook services (they come preinstalled even when you dont have facebook)

adb shell pm uninstall -k --user 0 com.facebook.appmanager

adb shell pm uninstall -k --user 0 com.facebook.services

adb shell pm uninstall -k --user 0 com.facebook.system

Google Chrome

adb shell pm uninstall -k --user 0 com.android.chrome

OK google

adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.okgoogle

Google Quick Search

adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox

Google Assistant

adb shell pm uninstall -k --user 0 com.google.android.apps.assistant

Google location history

adb shell pm uninstall -k --user 0 com.google.android.gms.location.history

MIUI Bloat

adb shell pm uninstall -k --user 0 com.mi.health

adb shell pm uninstall -k --user 0 com.mi.android.globalpersonalassistant

MI wallet

adb shell pm uninstall -k --user 0 com.mipay.wallet.id

MI wallet for india

adb shell pm uninstall -k --user 0 com.mipay.wallet.in

Other MIUI stuff

adb shell pm uninstall -k --user 0 com.miui.analytics

adb shell pm uninstall -k --user 0 com.miui.bugreport

adb shell pm uninstall -k --user 0 com.miui.cloudbackup

adb shell pm uninstall -k --user 0 com.miui.cloudservice

adb shell pm uninstall -k --user 0 com.miui.cloudservice.sysbase

adb shell pm uninstall -k --user 0 com.miui.hybrid

adb shell pm uninstall -k --user 0 com.miui.hybrid.accessory

adb shell pm uninstall -k --user 0 com.miui.micloudsync

adb shell pm uninstall -k --user 0 com.miui.miservice

adb shell pm uninstall -k --user 0 com.miui.msa.global

adb shell pm uninstall -k --user 0 com.miui.player

adb shell pm uninstall -k --user 0 com.miui.touchassistant

adb shell pm uninstall -k --user 0 com.miui.videoplayer

adb shell pm uninstall -k --user 0 com.miui.weather2

adb shell pm uninstall -k --user 0 com.miui.yellowpage

adb shell pm uninstall -k --user 0 com.xiaomi.glgm

adb shell pm uninstall -k --user 0 com.xiaomi.joyose

adb shell pm uninstall -k --user 0 com.xiaomi.micloud.sdk

adb shell pm uninstall -k --user 0 com.xiaomi.mipicks

adb shell pm uninstall -k --user 0 com.xiaomi.payment

adb shell pm uninstall -k --user 0 com.miui.cleaner

adb shell pm uninstall -k --user 0 com.miui.mishare.connectivity

adb shell pm uninstall -k --user 0 com.xiaomi.midrop

Remove NFC :

adb shell pm uninstall -k --user 0 com.android.nfc

adb shell pm uninstall -k --user 0 com.android.apps.tag

adb shell pm uninstall -k --user 0 com.miui.nextpay

REMOVE AOSP ROMS BLOATWARE ( Project Elixir/EvolutionX/Pixel-Expirience )

adb shell pm uninstall -k --user 0 com.android.wallpaper.livepicker

adb shell pm uninstall -k --user 0 com.android.managedprovisioning

adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.xgoogle

adb shell pm uninstall -k --user 0 com.google.android.accessibility.soundamplifier

adb shell pm uninstall -k --user 0 com.google.android.apps.diagnosticstool

adb shell pm uninstall -k --user 0 com.google.android.apps.helprtc

adb shell pm uninstall -k --user 0 com.google.android.apps.internal.betterbug

adb shell pm uninstall -k --user 0 com.google.android.apps.wellbeing

adb shell pm uninstall -k --user 0 com.google.android.feedback

adb shell pm uninstall -k --user 0 com.google.android.marvin.talkback

adb shell pm uninstall -k --user 0 com.google.android.printservice.recommendation

adb shell pm uninstall -k --user 0 com.google.android.tag

adb shell pm uninstall -k --user 0 com.google.audio.hearing.visualization.accessibility.scribe

adb shell pm uninstall -k --user 0 com.google.ar.core

adb shell pm uninstall -k --user 0 com.android.chrome (Google Chrome)

adb shell pm uninstall -k --user 0 com.android.hotwordenrollment.okgoogle (OK google)

adb shell pm uninstall -k --user 0 com.google.android.googlequicksearchbox (Google Quick Search)

adb shell pm uninstall -k --user 0 com.google.android.apps.assistant (Google Assistant)

adb shell pm uninstall -k --user 0 com.google.android.gms.location.history (Google location history)

TO RE-INSTALL ANY APP YOU UNINSTALLED :

adb shell pm install-existing NameOfPackage

(Replace NameOfPackage with the app name as above )

CHANGE WIFI SLEEP POLICY :

With SetEdit app setup as above ( with permissions to write secure settings)

1) Open setedit app

2) go to global table

3) find wifi_sleep_policy

4) edit its value and set as "0" ( or any option from below, default is 2)

- Keep WiFi on during sleep: Always = 2

- Keep WiFi on during sleep: Only When Plugged In = 1

- Keep WiFi on during sleep: Never = 0

5) find wifi_wakeup_enabled and set to 0

More SetEdit Tweaks :

Improve Power Management​

Open setedit app ( with permission given from adb as above ), and set the following

if a setting is missing add it and put the value as below.

In global table :

cached_apps_freezer enabled

app_standby_enabled 1

app_restriction_enabled true

hotword_detection_enabled 0

In secure table :

long_press_timeout 250

multi_press_timeout 250

smartspace 0

systemui.google.opa_enabled 0

in system table :

gearhead:driving_mode_settings_enabled 0

Some Recommended settings ( to decrease battery drain ) :

/settings/system/developer options/Background Process limit = "4 processes"

ill Keep Adding more as i find them, Stay Tuned ......