MIUI. Securing and configuring

This is only recommendations, it's up to you to skip any step.
We also provides setting equivalents for LOS (LineageOS) when possible.

INIT SETUP

Select Language: English (US).
Chooose your region: United States.
Insert SIM card: SKIP, never connect to any network before all setup will be done.
Connect to network: SKIP all WIFI, do not connect.
Google Service, turn OFF all of is: Use location, Allow scanning, Send usage and diagnostic data. -> Accept.
Set password: Skip (never set pass or any other lock).
Additional settings, turn OFF all of is: Location, Send usage and diagnostic data, Automatic system updates, Personalized ads, User Expirience Program.
Select default launcher: App drawer.

DEVELOPER

MIUI: Settings -> About Phone -> tap x10 times on MIUI Verstion;  LOS: Settings -> About Phone -> tap x10 times on Build Number (developer).

Settings -> Additional settings -> {System} -> Developer options -> Turn on MIUI optimization -> turn OFF
*This will reset all granted permissions.
#+
Settings -> Additional settings -> {System} -> Developer options -> Notify about hight-risk features -> turn OFF

Settings -> Additional settings -> {System} -> Developer options -> Stay awake -> ON

Settings -> Additional settings -> {System} -> Developer options -> OEM unlocking -> ON
Settings -> Additional settings -> {System} -> Developer options -> Install via USB -> ON #<-- THIS WILL NEED AUTH TO MI ACCOUNT, useful for titanium backup -DELAY_UNTIL_NET
Settings -> Additional settings -> {System} -> Developer options -> USB debugging (Security settings) -> ON
Settings -> Additional settings -> {System} -> Developer options -> Wireless debugging -> ON #<-- THIS WILL NEED AUTH TO MI ACCOUNT -DELAY_UNTIL_NET

Settings -> Additional settings -> {System} -> Developer options -> Verify apps over USB -> OFF

Settings -> Additional settings -> {System} -> Developer options -> WebView implementation -> set 'Android System WebView' or other you prefer.

Settings -> Additional Settings -> Privacy -> turn ON Unknown sources ;

Settings -> Additional settings -> {System} -> System Tracing -> Trace debugable applications -> turn OFF

UPDATES

Settings -> Additional settings -> {System} -> Developer options -> Automatic system updates -> OFF

Password & security -> Authorization & revocation -> ## works OK with NO net with MIUI 12.5
Settings -> Additional Settings -> Authorization & revocation -> ##Revoking authorization -DELAY_UNTIL_NET (dont work without Internet access ; 
	turn OFF 'Updater' ; turn OFF 'msa' ; turn OFF 'System app updater' ; turn OFF 'Feedback' 

*After revoking from 'System app updater' (com.xiaomi.discover) and 'Updates' (com.android.updater) - clean it's data - this removes update notification red alerts in Settings menu.

Settings -> About Phone -> System update || MIUI Version -> "Install automatically" -> select "NO"
Settings -> About phone -> System update || MIUI Version -> ... -> Update settings -> turn OFF 'Download automatically' ; turn OFF 'Download automatically automatically' ; turn OFF 'Install automatically' ;
Settings -> About Phone -> System update -> fast tap on "menu" button -> long tap on Updater app image -> 'Restrict data usage' -> turn OFF 'Mobile data' + for old MIUI turn OFF backgroud data in permission (if no data - they dont allow it).
#open Link2SD app -> Updater -> Manage || Settings -> About Phone -> System update -> fast tap on "menu" button -> long tap on Updater app image -> Notifications -> Updater -> turn OFF App icon badge ; turn OFF Floating notifications ; turn OFF lock screen notifications ; turn OFF Sound, Vibration, Notification light, Ringtone ;

Settings -> System apps || Apps + System app settings -> System app updater -> Auto updates -> set 'Dont update'.
Settings -> System apps || Apps + System app settings -> System app updater -> Show update notifications -> turn OFF.

Settings -> System apps || Apps + System app settings -> Security -> Recieve recommendations -> turn OFF

open app Google play -> ... -> Auto-update Google apps -> turn OFF

LOS:Settings -> About phone -> LineageOS updates -> Preferences -> turn off Auto updates check, turn ON Delete updates when installed ;

STANDARD MIUI APP PROPERTY PAGE (Autostart, Restrict data usage, Battery saver, Notifications)

Settings -> Installed apps || Apps -> Manage apps -> ... -> Show all Apps -> ANY_APP (Updater|Analytics|System app updater|Browser|msa|Feedback|ETC) ->  turn OFF / ON what needed (Autostart, Restrict data usage, Battery saver, Notifications). ;
--OR-- "Settings -> Installed apps ->" ===== is equal to ===== "open app 'Security' -> Manage apps ->"
open app 'Security' -> Manage apps -> [same here] ;

Settings -> Installed apps -> ... -> Settings -> turn OFF 'Notify about updates', turn OFF 'Recommendations';

Apps -> Manage apps -> Permissions -> {@} -> Permission manager - you can completely remove permission manager work.

NETWORK / DATA USAGE

Settings -> Additional settings -> {System} -> Developer options -> Always keep mobile data on -> turn ON

Settings -> System apps -> Security -> Data usage -> 'Send app and network useage ans diagnostic data' -> Agree? , -> @ -> trun OFF 'Report data usage stats', turn ON 'Data usage notifications', turn ON 'Show network speed' ;


Settings -> System apps -> Security -> Restric Data usage -> Data usage Stats -> 

Settings -> System apps -> Security -> Restric Data usage -> turn off ALL possible data transfer (including Background) for following apps: Wallpaper Carousel, Yandex (spy app), Browser (Y Browser), Analytics (inc. background data), msa (inc. background data), System apps updater (inc. background data), Updater (disable if you can), Calculator, System launcher, Themes, Weather, Yellow pages, 

Settings -> System apps -> Security -> Restric Data usage -> ... -> Background connections: msa, mi video, Music, Yandex, Calculator, Analytics, Weather, Yellow pages, Y Browser, System apps updater (!), System launcher (!) + any other app that should NOT use network in background like: Amazon Shoppting, Recorder (!), Google play Store (!DANGER don't do it!), Wallpaper Carousel, Netflix.

--OR-- *for old MIUI

Android user layer::
 Settings -> Data usage -> scroll down to System apps -> Updater -> turn OFF Mobile data ;
*no search capability.
--OR-- --AND-- (looks like this two is independent)
MIUI user layer::
Settings -> Installed apps -> ... -> Show all Apps -> ANY_APP (Analytics|System app updater|Browser|msa|ETC) -> Restrict data usage -> Mobile data -> turn OFF ;
*have search capability.
--OR--
open app 'Security' (scroll down) -> Data usage -> Restrict data usage -> ... -> New apps' default settins -> Mobile data | Wi-Fi -> ON|OFF ;
*useful, grouped by mobile / wifi and enabled / disabled, do have search capability.
open app 'Security (scroll down) -> Data usage -> Restrict data usage -> ... -> Backgroud connection -> ANY_APP (Analytics|System app updater|Browser|msa|ETC) ;
*useful, grouped enabled / disabled , do have search capability.
#+
open app 'Security' (scroll down) -> Data usage -> Restrict data usage -> scroll down (Mobile data tab) -> System apps -> ANY_APP (Analytics|System app updater|Browser|msa|ETC) ;

BATTERY SAVER

Settings -> Battery & performance || Security Battery + Battery + App battery saver -> ... -> Show system apps -> ANY_USER_APP -> set Restrict background activity ;
Possible apps: Amazon Shoprring, Y Browser, Calculator, Facebook, Google Play Store (!DANGER!), LinkedIn, Maps (google), Mi Video, Music, Netflix, Weather, Yandex, Youtube.
*very useful, grouped by 'custom' and 'Battery saver'.


Settings -> Battery & performance || Security Battery + Battery + App battery saver -> ... -> Show system apps -> ANY_USER_APP -> set No restriction ;
Possible apps: Camera, Whatsapp, Telegram, Signal, Recorder (!this is audio recorder), Screen Recorder (if avail.)


Apps -> System app settings	-> Security -> Battery optimization -> 
Security app -> {@}  -> Battery optimization ->
open app 'Security' -> Battery -> Settings -> Battery optimization -> 
Settings -> Battery & performance -> Power -> Settings -> Battery optimization ->
	Battery Saver -> Don't wake screen for notifications -> turn OFF ? (*also see Settings -> Lock screen -> Wake lock screen for notifications)
	Battery Saver -> Turn off when charged -> turn OFF (stay in batt. saver even when charged)


*in old MIUI ver:
Settings -> Battery & performance -> Power -> App battery saver -> ... -> Show system apps -> ANY_APP (Analytics|System app updater|Browser|msa|ETC) -> Battery saver -> Restrict background activity ;
--OR-- (same here)
open app 'Security' -> Battery -> App battery saver -> [same here] ;

CLEANUP

Setting -> System apps -> Security (old: Security app) ->	-> Cleaner -> 
Apps -> System Apps settings -> Security			-> Cleaner -> 
	 Cleaner -> Remind to clean turn OFF ; Scan app memory turn OFF ; Update automatically turn OFF ; Recieve recommendations turn OFF ;
--OR-- *OLD MIUI
: Settings -> Battery & performance -> Power	-> Settings -> Clear cache when device is locked -> Never -> change to in 30 minutes ;
: open app 'Security' -> Battery ->		-> Settings

SYSTEM CACHE

Setting -> System apps -> Security (old: Security app) ->	-> Boost speed -> 
Apps -> System Apps settings -> Security			-> Boost speed -> 
Security app -> {@}  -> 
	Clear cache when device is locked -> in 30 minutes (default: Never) ;
	Recieve recommendations -> turn OFF ;

AUTOSTART

Settings -> Installed apps -> Permissions	-> Autostart -> ON / OFF what needed ;
Apps -> Permissions				-> Autostart
Possible turn ON of autostart: Whatsapp, Telegram, Signal.
--OR-- "Settings -> Installed apps ->" ===== is equal to ===== "open app 'Security' -> Manage apps ->"
open app 'Security' -> Manage apps -> [same here] ;
Settings -> System apps || Apps + Permissions -> Autostart -> .. -> Show system apps -> Camera -> ON.

LOCKED APPS

Apps -> System app settings	-> Security -> Boost speed -> Lock apps -> check ANY_APP ; 
Settings -> System apps		-> Security -> Boost speed -> Lock apps -> check ANY_APP ;
Security app -> {@}  -> 
*useful, grouped in list with checkboxes.
Possible apps: Camera (!Recomended!), WhatsApp, Telegram, Signal, Health monitoring apps (!), Screen Recorder (prevent accidently closing app when recording)

PERMISSIONS

Android user layer::
Settings -> Installed apps -> Permissions -> Permissions -> PERMISSION_NAME -> ANY_APP -> check/uncheck ANY ;
--OR-- "Settings -> Installed apps ->" ===== is equal to ===== "open app 'Security' -> Manage apps ->"
open app 'Security' -> Manage apps -> [same here] ;
*useful, apps grouped by permission name.
--AND--
Settings -> Installed apps -> Other permissions -> TAB: Apps ->  ANY_APP -> check/uncheck ANY ;
--AND--
Settings -> Installed apps -> Other permissions -> TAB: Permissions tab -> PERMISSION_NAME ->  ANY_APP -> check/uncheck ANY ;

SECURITY SCAN AND PRIVACY

Apps -> System app settings -> Security ->
Setting -> System apps -> Security (old: Security app) -> 
	turn OFF Recive recommendations (in the bottom of list) ; turn ON Load using only Wi-Fi ;
	-> Security Scan -> turn OFF 'Scan before installing' ; turn OFF 'Auto Updates: Avast' ; turn OFF 'Root' ; turn OFF 'System updates' ;

Google Play app -> ... -> Play Protect -> {@} ->
Settings -> Additional Settings -> {Privacy} -> Google Pay Protect
Settings -> Security status -> Google Play Protect -> 
	Inprove harmful apps detection -> turn OFF
	Scan device for security threats -> turn OFF || Scan apps with Play Protect -> turn OFF


Settings -> Additional Settings -> Privacy -> Usage and diagnostics
	turn OFF;

Settings -> Additional Settings -> {Privacy} -> Send diagnostic data automatically -> turn OFF ;

LOS:Settings -> Privacy -> Privacy Guard -> list down till 'Trebuchet' (universal) and uncheck it. ;

ADVERTISING

Settings -> Passwords & security -> Privatcy -> User Experience Program -> Ad services -> Personalized Ad Recommendation ->
Settings -> Additional Settings -> Privacy -> Ad services -> Personalized Ad Recommendation ->
	turn OFF ;

Settings -> Passwords & security -> Privatcy -> User Experience Program -> Enroll in User Experience Program
	turn OFF;

Settings -> System apps
Apps -> System app settings
	Music -> Sown Ads -> turn OFF ; 'Online Content services'?

FIND DEVICE

#Make sure you should to turn it OFF? - Probably you shouldn't.
MIUI: Settings -> Additional Settings -> Privacy -> {Special app access} -> Device admin apps (old: Device administrators) -> uncheck 'Find My Device' ; LOS: Settings -> Secuity -> Device administrators -> uncheck 'Find My Device' ; 

Settings -> Google -> Security -> Find My Device -> turn ON.

SYNC

Settings -> Sync ->
Settings -> Accounts & Sync ->
	Auto-sync data -> turn OFF.

*This will conserve data and battery usage,
*but you'll need to sync each account manually to collect recent information.
*And you won't receive notifications when updates occur.

LOCATION SETTINGS

#Improve location by allowing system apps and services to detect networks AT ANY TIME.
MIUI: Settings -> Additional Settings -> Privacy -> Location -> More ... -> Scanning -> turn OFF 'Wi-Fi scanning' ; turn OFF 'Bluetooth scanning' ;

#Let Google's location service and other apps scan for networks, even when WLAN is off
MIUI: Settings -> WLAN -> Additional Settings -> turn OFF 'Scanning always available' ;

ADVERTISEMENT

MIUI: Settings -> Additional Settings -> Privacy -> Ad services -> turn OFF 'Personalized Ad Recommendation' ;

SIM CARD AND MOBILE

Settings -> SIM cards & mobile networks -> turn OFF Always recieve MMS
Settings -> SIM cards & mobile networks ->  MOBILE OPERATOR NAME -> Preferred network type -> set Prefer 3G (save power, speed up Internet and allow to receive calls, since LTE blocks incoming calls sometime when in LTE mode)
NOTE*-- Network Mode settings: 2G/3G (auto) is GSM/WCDMA (auto mode) ; 3G only is WCDMA only ; 2G only is GSM only ;

NOTIFICATIONS AND STATUS BAR

Settings -> Notifications & status bar -> 
Settings -> Notifications & control center -> Status bar ->
	Show carrier when device is locked -> turn OFF
	+possibly: Battery indicator
	+possibly: Hide notch

MIUM:Settings -> Notifications & status bar -> Toggle positions -> Mobile data, Wi-Fi, Bluetooth, Flashlight (old: Torch), Mute (old: Silent), Vibrate, DND, GPS, {Auto} Brightness, Airplane, Hotspot ||||| Read{ing} mode, Battery saver, Rotate off, Sync, Buttons, Lock {screen}, Screenshot
LOS: Settings of Slider, user photos from drand-mobile to arrange spoiler icons: Wifi, Cellular data, Battery, Do not Disturb, Location, Flashlight, Portrait, Airplain mode, Hotspot, Bluetooth, Invert colors, LiveDisplay, Data Saver, Cast, Ambient display, Caffeine, Heads up, Sync, System profiles, Volume panel.
LOS:Slider -> turn off Location, select Night in LiveDisplay, turn ON Ambient display, turn OFF Sync.

DISPLAY AND SCREEN

Settings -> Additional settings -> Developer options -> Don't lock screen (while charging)

Settings -> Display -> turn OFF Auto-rotate screen

Settings -> Display ->
Settings -> Lock screen ->
	Double tap screen to wake || Double tap to wake or turn off screen when device is locked -> turn ON.
	Wake Lock screen for notifications -> turn ON? (*also see Settings -> Battery & performance -> Power -> Settings -> Battery optimization -> Battery Saver -> Don't wake screen for notifications)
	+possibly: Raise to wake.

Settings -> Display -> Dark mode -> turn ON.

Settings -> Display -> Reading mode -> Reading mode -> turn ON, Adjust -> slide adjust to right to maximum.

Settings -> Display -> Contrast & colors ->
Settings -> Display -> Color scheme ->
 set Color temperature to Warm, set Automatic contrast

Settings -> Lock screen & password -> Sleep -> 1 min by default, set 2 min or Never (if you prefer).

Settings -> Lock screen & password -> turn ON Launch Camera.

Settings -> Lock screen & password -> Sleep -> After XX minute(s) of inactivity.
*You can't set inactivity from Settings -> Display -> Sleep -> .. ;

MIUI:Settings -> Lock screen & password -> Advanced settings -> On lock screen -> set Dont show notifications at all ; LOS:Settings -> Notifications -> tap Gear for Settings -> On the lock screen - set Don't show notifications at all.

Setting -> System apps -> Recorder -> 
Apps -> System Apps settings -> Recorder ->
	Home screen indicator
	Record format AAC -> MP3 (WAV)
	Record quality -> High (Low)

DISPLAY AND SCREEN 2 - VAULT / Your Feed

Settings -> Home screen
Settings -> Home screen & Recents ->
	App vault -> turn OFF
	Fill cells of uninstalled apps -> turn OFF + Settings -> Google -> Search -> Your feed -> turn OFF Show feed

LEDS

Settings -> Additional Settings -> Notiicaton light - set it how you want.

DATE AND TIME AND REGION

Settings -> Additional Settings -> Region -> United states
Settings -> Additional Settings -> Date & time (Settings -> Date & time) -> turn OFF Automatic time zone and Automatic date & time || Use network-provides time + Use network provides zone, set ON User 24-hour format (Time Format),  search London (timzone +0 || UTC) and set current date and time.
Settings -> Additional Settings -> Date & time -> Region -> United States
Settings -> Additional Settings -> Date & time -> Time Zone -> Los Angeles || UTC

SOUNDS

Settings -> Sound & vibration ->
	Also vibrate for calls -> turn ON
	Vibrate in silent mode -> turn ON
	Vibrate on tap -> set Off (default medium)

	Additional settings -> Dial pad tones -> turn OFF
	Additional settings -> Screen locking sounds || Play sound when locking -> turn OFF
	Screenshot sound || Play sound when taking screenshots -> turn OFF, Delete sound -> turn OFF

	Additional settings -> Play sound when charger is connected -> turn OFF

	Additional settings -> Play audio at startup -> turn OFF

	Additional settings -> Play sound when uninstalling apps -> turn OFF
	Additional settings -> Play sound when deleting items -> turn OFF

KEYBOARD

Settings -> Sound & vibration -> Also vibrate for calls -> turn ON, Vibrate in silent mode -> turn ON, Dial pad tones -> turn OFF, Screen locking sounds -> turn OFF,  Screenshot sound -> turn OFF, Delete sound -> turn OFF
Settings -> Sound & vibration -> set Vibrate on tap -> set OFF

Settings -> Additional Settings -> Language & input -> Virtual keyboard -> Manage Keyboards -> turn OFF SwiftKey Keyboard, turn ON Google voice typing

Settings -> Additional Settings -> Language & input -> Languages -> English (United States)
Settings -> Additional Settings -> Language & input -> Gboard -> Languages -> Add keyboard -> YOUR_LOCAL_LANG -> YOUR_LOCAL_LANG.
Settings -> Additional Settings -> Language & input -> Gboard -> Preferences -> turn OFF vibrate on keypress, turn ON Popup on keypress, turn ON Voice input key ; turn ON show language switch key ;
Settings -> Additional Settings -> Language & input -> Gboard -> Text correction -> turn OFF Block offensive words, turn OFF Auto-correction, turn OFF Auto capitalization , turn OFF Double-space period
Settings -> Additional Settings -> Language & input -> Gboard -> Advanced -> turn OFF Share usage statistics, turn OFF Share snippets

Settings -> Additional Settings -> Language & input -> Google voice typing -> turn OFF Block/Hide offensive words.

Settings -> Additional Settings -> Language & input -> Google voice typing -> Languages -> check and HOLD on already checked English (US), check English (UK), check YOUR_LOCAL_LANG (YOUR_LOCAL_LANG), save.
Settings -> Additional Settings -> Language & input -> Google voice typing -> Offline speech recognition -> tab AUTO-UPDATE select Do not auto-update languages.
Settings -> Additional Settings -> Language & input -> Google voice typing -> Offline speech recognition -> tab ALL, tap and download English (US) -> Download, YOUR_LOCAL_LANG (YOUR_LOCAL_LANG). -DELAY_UNTIL_NET

Settings -> Additional Settings -> Language & input -> Text-to-speech output -> Preferred (old: Text-to-speech) Engine options -> Setting for Google Text-tospeech Engine -> turn OFF Anonymous usage reports
Settings -> Additional Settings -> Language & input -> Text-to-speech output -> Preferred (old: Text-to-speech) Engine options -> Install voice data -> English (United States) -Female, English (UK) - Voice set 1 + voice set 2, YOUR_LOCAL_LANG - Voice set1 download it. -DELAY_UNTIL_NET

DIAL

open app 'Phone' -> Settings -> Call recording -> turn ON Record calls automatically ; turn ON Call recording notification ;

MESSAGING

open app 'Messages' -> Settings -> Additional settings || Advanced ->
	turn OFF Download MMS content automatically ;
	turn OFF Allow WAP push messages (SI/SL) (Allow messages to load content from websites) ;
select Send via vCard ;

CAMERA

Settings -> System apps || Apps + System app settings -> Camera -> Focus & shttot -> ON, Save location info -> ON (while useing the app), Shutter sound -> OFF, see Autostart Note.

CONTACTS

open Contacts app -> \\\ -> Settings -> Default account for new contacts -> set 'Device'
#without this you will be unable to save contacts to local phone device:
open Link2SD app -> Google Contacts Sync -> Manage -> Force stop + Disable

PLUS

Settings -> Themes -> long tap on settings -> turn OFF Recommendations ; turn OFF Automatic updates ; turn ON save to sd card.
--OR--
launch app Themes -> tap menu to options, - 
Settings -> Connection & sharing -> Private DNS -> off -> Auto || Private DNS provider hostname.