I didn't bother to unlock/root my Redmi Note 15 5G, there are enough ways to cutomize this Android HyperOS (Android16)
Do the usual tweaks like disable ads, uninstall system apps, disable MIUI optimization and RAM expansion
Unlock option to write settings to global, system and secure db when in adb shell:
Goto Android Settings menu
Sign in to your Xiaomi Account
Enable Developer options
Goto Developer options and enable 1) USB debugging and 2) USB debugging (Security settings)
Now you are able to write settings to all settings db's and do the tweaks via adb shell (I once had to reboot to make it work)
Note: after changing settings you better turn off USB debugging Security settings for safety!!!
Note: Windows cmd script to get all settings from your Android device via ADB: here
The tweaks
setprop persist.log.tag E
setprop persist.traced.enable 0
pm trim-caches 4096G
pm art cleanup
sm fstrim
Note: just pick what you need/want. Don't copy/paste everything into adb shell
settings put global device_idle_constants locating_to=3000,motion_inactive_to=3000,idle_to=300000,min_time_to_alarm=600000
settings put global transition_animation_duration_ratio 0.2 #faster MIUI home
settings put global activity_starts_logging_enabled 0
settings put global adaptive_battery_management_enabled 1
settings put global adb_allowed_connection_time 0 #604800000
settings put global add_users_when_locked 0
settings put global always_show_bluetooth_icon 1 #notset
settings put global ambient_enabled 0
settings put global animator_duration_scale 0.5
settings put global apm_enhancement_enabled 1
settings put global app_auto_restriction_enabled 1
settings put global app_standby_enabled 1
settings put global battery_saver_constants enable_night_mode=false
settings put global battery_stats_constants track_cpu_times_by_proc_state=false
settings put global battery_tip_constants app_restriction_enabled=true
settings put global bedtime_mode 0 #1=low backlight
settings put global ble_scan_background_mode 0 #0=low_power 1=balanced 2=low_latency 3=ambient_discovery
settings put global ble_scan_always_enabled 0
settings put global bluetooth_disabled_profiles 0
settings put global bluetooth_off_timeout 600000 #5 min
settings put global cached_apps_freezer enabled
settings put global cdma_cell_broadcast_sms 1
settings put global data_activity_timeout_mobile 30 #sec 0=disable
settings put global data_activity_timeout_wifi 30 #sec 0=disable
settings put global data_roaming1 1
settings put global data_roaming 1
settings put global default_dns_server 94.140.14.14
settings put global default_restrict_background_data 0
settings put global development_settings_enabled 1
settings put global disable_window_blurs 1
settings put global dropbox_age_seconds 1
settings put global dropbox_max_files 1
settings put global enable_automatic_system_server_heap_dumps 0
settings put global enable_diskstats_logging 0
settings put global enable_ephemeral_feature 0
settings put global enable_non_resizable_multi_window 0 #must be 0
#settings put global enable_tare 0 #0 1 2 The Android Resource Economy battery management system
settings put global encoded_surround_output 1 #0=auto 1=never 2=always 3=manual
#settings put global encoded_surround_output_enabled_formats "5,6,7,8,9,10,14,17,18,19" #5,6,7,10, cannot set if playing
settings put global fiveg_power_saving_visible 1
settings put global foreground_service_starts_logging_enabled 0
settings put global fstrim_mandatory_interval 604800000
settings put global game_driver_all_apps 0
settings put global heads_up_notifications_enabled 1
settings put global heads_up_default_snooze_length_ms 300000 #60000
settings put global job_scheduler_quota_controller_constants max_job_count_per_rate_limiting_window=10,rate_limiting_window_ms=60000,max_job_count_active=75,max_session_count_active=75
settings put global location_background_throttle_interval_ms 3600000 #1 hour
### location_enable_stationary_throttle location_background_throttle_package_whitelist
settings put global location_ignore_settings_package_whitelist com.google.android.dialer #com.google.android.gms,com.google.android.dialer
settings put global lockscreenSimpleUserSwitcher 0
settings put global low_power_trigger_level 10
settings put global mobile_data_always_on 0
settings put global mobile_signal_detector 0
settings put global netstats_poll_interval 3600000
settings put global network_avoid_bad_wifi 0
settings put global network_recommendations_enabled -1
settings put global nsd_on 0
settings put global ntp_server pool.ntp.org
settings put global ntp_timeout 60000
settings put global ota_disable_automatic_update 1
settings put global personalized_ad_enabled 0
settings put global private_dns_mode hostname #opportunistic
settings put global private_dns_specifier dns.adguard.com
settings put global render_shadows_in_compositor 1
settings put global satellite_mode_enabled 0
settings put global send_action_app_error 0
settings put global service_region NL #for wifi, use your country ISO code, wifi_country_code
settings put global shortcut_manager_constants icon_quality=80
settings put global show_hidden_icon_apps_enabled 1
#settings put global show_tare_developer_options 1
settings put global show_temperature_warning 1
settings put global show_usb_temperature_alarm 1
settings put global side_button 0
settings put global soft_ap_timeout_enabled 1
settings put global sys_free_storage_log_interval 1440
settings put global sys_traced 0
settings put global sysui_powerui_enabled 1
settings put global task_stack_view_layout_style 2 #0=2D 1=hor 2=stack
settings put global tcp_default_init_rwnd 20
settings put global ticker_gets_heads_up 1
settings put global transition_animation_scale 0.0
settings put global unused_static_shared_lib_min_cache_period 300000 #2h 15min is 15*60*1000=900000 5m=300000
#settings put global user_hfp_client_setting 1 #0=unset 1=enabled 2=disabled, only for watch?
settings put global user_switcher_enabled 0
settings put global warning_temperature 85
settings put global wifi_always_requested 0
settings put global wifi_badging_thresholds "10:1000,20:2000,30:4000,40:8000,50:16000"
settings put global wifi_country_code NL #like service_region
settings put global wifi_enhanced_auto_join 1
settings put global wifi_ephemeral_out_of_range_timeout_ms 60000
settings put global wifi_framework_scan_interval_ms 300000 #screen off
settings put global wifi_frequency_band 0 #pref 0=auto 1=2.4 2=5 GHz
settings put global wifi_idle_ms 60000 #sleep after 1 minute inactivity
settings put global wifi_max_dhcp_retry_count 3
settings put global wifi_network_show_rssi 0
settings put global wifi_networks_available_notification_on 0
#settings put global wifi_off_timeout 300000 #5min
settings put global wifi_poor_connection_warning 0
settings put global wifi_power_save 5 #(120) 5 minutes
settings put global wifi_scan_always_enabled 0
settings put global wifi_scan_throttle_enabled 1
settings put global wifi_score_params "rssi2=-92:-87:-73:-60,rssi5=-90:-85:-70:-57,rssi6=-90:-85:-70:-57"
settings put global wifi_sleep_policy 2
settings put global wifi_supplicant_scan_interval_ms 10000 #screen on, not connected
settings put global wifi_suspend_optimizations_enabled 1
settings put global wifi_verbose_logging_enabled 0
settings put global wifi_wakeup_enabled 0
settings put global wifi_watchdog_on 1
settings put global wifi_watchdog_poor_network_test_enabled 0
settings put global window_animation_scale 0.0
settings put global zram_enabled 1
settings put global spatial_audio_feature_enable 1
settings put global notification_snooze_options "default=15,options_array=30:60:120:1440"
settings put system advanced_settings 1
settings put system alarm_vibration_intensity 2
settings put system apply_ramping_ringer 0
settings put system auto_caps 0
settings put system auto_punctuate 0
settings put system auto_replace 0
settings put system battery_indicator_style 3
settings put system bluetooth_discoverability 1
settings put system bluetooth_discoverability_timeout 60
settings put system bluetooth_show_battery 1 #in notifications
settings put system camera_flash_notification 0
settings put system com.miui.home.preferences.launcher_pulldown_gesture notification_bar
settings put system dark_mode_enable_by_power_save 0
settings put system dark_mode_enable_by_setting 1
settings put system deviceLevelList v:1,c:1,g:1
settings put system device_font_scale 1.0
settings put system dim_screen 1
settings put system enable_rotation_button 1
settings put system expandable_under_lock_screen 0
settings put system fod_animation_enabled 0
settings put system font_scale 1.0
settings put system force_use_control_panel 1
settings put system haptic_feedback_enabled 0
settings put system haptic_feedback_intensity 2 # 0 1 2 3
settings put system heads_up_timeout 5000
settings put system notification_light_pulse 1
settings put system notification_vibration_intensity 3
#settings put system peak_refresh_rate 120 #Infinity
settings put system ring_vibration_intensity 3
settings put system screen_brightness_for_als 2 #1=bright 2=normal 3=dim
settings put system screen_brightness_mode 1 #0=manual 1=auto
settings put system screen_flash_notification 0
settings put system screen_off_timeout 60000
settings put system vibrate_input_devices 0
settings put system vibrate_when_ringing 1
settings put system key_miui_mod_icon_enable 1 #0
settings put system call_connected_tone_enabled 1
settings put system camera_flash_notification 1
settings put system mishare_near_share 0
settings put system miui_home_animation_rate 1 #0=slow 1=normal 2= 3=smooth
settings put system miui_recents_show_mem_info 1
settings put system vibrate_in_silent 1
settings put system power_center_5g_save_mode 1 #0
settings put system screen_key_order 2 1 3
settings put system min_refresh_rate 1
#settings put system peak_refresh_rate 120 #Infinity
settings put system is_smart_fps 0
settings put system status_bar_show_notification_icon 6 #0/1 but now number in OS3
settings put system keyguard_disable_power_key_long_press 1
settings put system speed_mode 1 #high fps in all apps
settings put system nearby_scanning_enabled 0
settings put system bluetooth_always_show_icon_value 1
settings put system keyguard_disable_power_key_long_press 1 #0
settings put system screen_key_order "2 1 3"
settings put system status_bar_expandable_under_keyguard 0
settings put system wifi_assistant 0
settings put secure adaptive_charging_enabled 1
settings put secure adaptive_connectivity_enabled 0
settings put secure adaptive_sleep 0
settings put secure assist_long_press_home_enabled 1 #0
settings put secure attentive_timeout -1 #msec -1=disable
settings put secure auto_download 0
settings put secure auto_update 0
settings put secure auto_revoke_disabled 1
settings put secure automatic_storage_manager_days_to_retain 3650
settings put secure automatic_storage_manager_enabled 0
settings put secure aware_enabled 0
settings put secure background_blur_enable 0
settings put secure bluetooth_call_enable 1
#settings put secure camera_autorotate 0
settings put secure camera_gesture_disabled 1
settings put secure cast_mode 0
settings put secure charge_optimization_mode 0
settings put secure charging_sounds_enabled 1
settings put secure charging_vibration_enabled 1
settings put secure disable_voicetrigger 1
settings put secure double_tap_to_sleep 1
settings put secure double_tap_to_wake 0
settings put secure doze_always_on 0
settings put secure doze_enabled 0
settings put secure enable_camera_privacy_indicator 1
settings put secure enable_location_privacy_indicator 1
settings put secure enable_projection_privacy_indicator 1
settings put secure flashlight_available 1
settings put secure global_actions_panel_enabled 0 #wallet/etc on lock screen?
settings put secure immersive_mode_confirmations confirmed
settings put secure in_call_notification_enabled 0
settings put secure instant_apps_enabled 0
settings put secure location_mode 3 #LOCATION_MODE_HIGH_ACCURACY
settings put secure location_time_zone_detection_enabled 1
settings put secure lock_screen_allow_private_notifications 1
settings put secure lock_screen_show_notifications 1
settings put secure lock_screen_show_only_unseen_notifications 0
settings put secure lock_screen_show_qr_code_scanner 0
settings put secure lock_screen_show_silent_notifications 1
settings put secure lockscreen.disabled 0
settings put secure lockscreen_show_controls 0 #home devices
settings put secure lockscreen_show_wallet 0
settings put secure mishare_auto_start_scan 0
settings put secure miui_optimization 0
settings put secure miui_updater_enable 0
settings put secure nav_bar_force_visible 1 #0
settings put secure navigation_mode 0 #navbar
settings put secure night_display_activated 0
settings put secure night_display_auto_mode 0
settings put secure notification_badging 1
settings put secure notification_bubbles 0
settings put secure notification_history_enabled 1
settings put secure parental_control_enabled 0
settings put secure power_menu_locked_show_content 0
settings put secure screensaver_enabled 0
settings put secure send_action_app_error 0
settings put secure show_notification_snooze 1 #if 1 then also set notification_snooze_options
settings put secure smart_device_control 0
settings put secure speed_mode_enable 0 #?
settings put secure status_bar_show_vibrate_icon 1
settings put secure support_highfps 1 #if joyose package is enabled
#show_qr_code_scanner_setting com.google.android.gms/.mlkit.barcode.ui.PlatformBarcodeScanningActivityProxy
settings put secure swipe_bottom_to_notification_enabled 0
settings put secure system_navigation_keys_enabled 1
settings put secure sysui_do_not_disturb 1
settings put secure sysui_volume_down_silent 1
settings put secure sysui_volume_up_silent 1
settings put secure tts_default_pitch 86
settings put secure tts_default_rate 100
settings put secure ui_night_mode 1
settings put secure update_from_store 0
settings put secure updater_dialog_type 0
settings put secure upload_debug_log_pref 0
settings put secure upload_log_pref 0
settings put secure upload_log_pref_last_status_for_passport 0
settings put secure volume_dialog_dismiss_timeout 4000
settings put secure wake_gesture_enabled 0
settings put secure xota_update 0
settings put secure xspace_enabled 0
Note: Work in progress. There is much to investigate.
# Preset created in ADB AppControl 1.8.6
# Total applications: 52
# 2026-05-23_22:06:51
# Xiaomi 25098RA98G Uninstalled applications
com.altice.android.myapps
com.android.browser
com.android.phone.cust.overlay.miui
com.android.virtualization.terminal
com.android.wifi.resources.xiaomi
com.aura.oobe.vodafone
com.boundax.koreapreloadappinstaller
com.dti.aone
com.dti.bouyguestelecom
com.dti.telefonica
com.facebook.appmanager
com.facebook.services
com.facebook.system
com.google.android.adservices.api
com.google.android.apps.bard
com.google.android.apps.docs
com.google.android.apps.photos
com.google.android.apps.safetyhub
com.google.android.apps.subscriptions.red
com.google.android.apps.tachyon
com.google.android.apps.youtube.music
com.google.android.feedback
com.google.android.gms.supervision
com.google.android.ims
com.google.android.marvin.talkback
com.google.android.videos
com.google.mainline.adservices
com.ironsource.appcloud.oobe.hutchison
com.mi.appfinder
com.mi.globalbrowser
com.mi.globalminusscreen
com.mi.webkit.core
com.miui.analytics
com.miui.android.fashiongallery
com.miui.bugreport
com.miui.cloudbackup
com.miui.cloudservice
com.miui.daemon
com.miui.micloudsync
com.miui.miservice
com.miui.msa.global
com.miui.phrase
com.miui.videoplayer
com.miui.yellowpage
com.orange.aura.oobe
com.orange.update
com.sfr.android.sfrjeux
com.xiaomi.aicr
com.xiaomi.glgm
com.xiaomi.joyose
com.xiaomi.micloud.sdk
com.xiaomi.midrop
com.xiaomi.mipicks
com.xiaomi.payment
com.xiaomi.simactivate.service
com.xiaomi.xmsf
com.xiaomi.xmsfkeeper
de.telekom.tsc