[Redmi 7A Guides, News, & Discussion] Kontex:
Did someone find a way to remove "pm uninstall -k --user 0 com.xiaomi.finddevice" without bootloops afterwards on the Redmi 7A? There are some hints that say you have to disable miui optimization in developer setting before uninstallation of the finddevice.apk. But that doesn't work. It is a very talkative app.

This is the list of apps that could be removed without bootloop issues on my device. It gives you a naked phone wiht reduced google and miui/xiaomi services. If you don't want to use an google account you can use the "Aurora Store" to install all your required apps:

adb shell
pm uninstall -k --user 0 android.autoinstalls.config.Xiaomi.pine
pm uninstall -k --user 0 android.telephony.overlay.cmcc
pm uninstall -k --user 0 cn.wps.moffice_eng
pm uninstall -k --user 0 cn.wps.xiaomi.abroad.lite
pm uninstall -k --user 0 com.alibaba.aliexpresshd
pm uninstall -k --user 0 com.android.backupconfirm
pm uninstall -k --user 0 com.android.bips
pm uninstall -k --user 0 com.android.bookmarkprovider
pm uninstall -k --user 0 com.android.browser
pm uninstall -k --user 0 com.android.calendar
pm uninstall -k --user 0 com.android.cellbroadcastreceiver
pm uninstall -k --user 0 com.android.chrome
pm uninstall -k --user 0 com.android.dreams.basic
pm uninstall -k --user 0 com.android.dreams.phototable
pm uninstall -k --user 0 com.android.emergency
pm uninstall -k --user 0 com.android.internal.display.cutout.emulation.corner
pm uninstall -k --user 0 com.android.internal.display.cutout.emulation.double
pm uninstall -k --user 0 com.android.internal.display.cutout.emulation.tall
pm uninstall -k --user 0 com.android.printspooler
pm uninstall -k --user 0 com.android.providers.downloads.ui
pm uninstall -k --user 0 com.android.providers.partnerbookmarks
pm uninstall -k --user 0 com.android.providers.userdictionary
pm uninstall -k --user 0 com.android.sharedstoragebackup
pm uninstall -k --user 0 com.android.soundrecorder
pm uninstall -k --user 0 com.android.stk
pm uninstall -k --user 0 com.android.wallpaper.livepicker
pm uninstall -k --user 0 com.android.wallpaperbackup
pm uninstall -k --user 0 com.android.wallpapercropper
pm uninstall -k --user 0 com.facebook.appmanager
pm uninstall -k --user 0 com.facebook.katana
pm uninstall -k --user 0 com.facebook.services
pm uninstall -k --user 0 com.facebook.system
pm uninstall -k --user 0 com.google.android.apps.docs
pm uninstall -k --user 0 com.google.android.apps.maps
pm uninstall -k --user 0 com.google.android.apps.photos
pm uninstall -k --user 0 com.google.android.apps.tachyon
pm uninstall -k --user 0 com.google.android.apps.wellbeing
pm uninstall -k --user 0 com.google.android.backuptransport
pm uninstall -k --user 0 com.google.android.ext.shared
pm uninstall -k --user 0 com.google.android.feedback
pm uninstall -k --user 0 com.google.android.gm
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.google.android.marvin.talkback
pm uninstall -k --user 0 com.google.android.music
pm uninstall -k --user 0 com.google.android.onetimeinitializer
pm uninstall -k --user 0 com.google.android.partnersetup
pm uninstall -k --user 0 com.google.android.printservice.recommendation
pm uninstall -k --user 0 com.google.android.setupwizard
pm uninstall -k --user 0 com.google.android.syncadapters.calendar
pm uninstall -k --user 0 com.google.android.syncadapters.contacts
pm uninstall -k --user 0 com.google.android.videos
pm uninstall -k --user 0 com.google.android.youtube
pm uninstall -k --user 0 com.huaqin.diaglogger
pm uninstall -k --user 0 com.mi.android.globalminusscreen
pm uninstall -k --user 0 com.mi.globallayout
pm uninstall -k --user 0 com.mi.globalTrendNews
pm uninstall -k --user 0 com.mi.webkit.core
pm uninstall -k --user 0 com.micredit.in
pm uninstall -k --user 0 com.milink.service
pm uninstall -k --user 0 com.mipay.wallet.id
pm uninstall -k --user 0 com.mipay.wallet.in
pm uninstall -k --user 0 com.miui.analytics
pm uninstall -k --user 0 com.miui.android.fashiongallery
pm uninstall -k --user 0 com.miui.backup
pm uninstall -k --user 0 com.miui.bugreport
pm uninstall -k --user 0 com.miui.calculator
pm uninstall -k --user 0 com.miui.cleanmaster
pm uninstall -k --user 0 com.miui.cloudbackup
pm uninstall -k --user 0 com.miui.cloudservice
pm uninstall -k --user 0 com.miui.cloudservice.sysbase
pm uninstall -k --user 0 com.miui.compass
pm uninstall -k --user 0 com.miui.daemon
pm uninstall -k --user 0 com.miui.face
pm uninstall -k --user 0 com.miui.freeform
pm uninstall -k --user 0 com.miui.gallery
pm uninstall -k --user 0 com.miui.global.packageinstaller
pm uninstall -k --user 0 com.miui.hybrid
pm uninstall -k --user 0 com.miui.hybrid.accessory
pm uninstall -k --user 0 com.miui.micloudsync
pm uninstall -k --user 0 com.miui.miservice
pm uninstall -k --user 0 com.miui.misound
pm uninstall -k --user 0 com.miui.miwallpaper
pm uninstall -k --user 0 com.miui.msa.global
pm uninstall -k --user 0 com.miui.notes
pm uninstall -k --user 0 com.miui.player
pm uninstall -k --user 0 com.miui.screenrecorder
pm uninstall -k --user 0 com.miui.smsextra
pm uninstall -k --user 0 com.miui.sysopt
pm uninstall -k --user 0 com.miui.touchassistant
pm uninstall -k --user 0 com.miui.videoplayer
pm uninstall -k --user 0 com.miui.vsimcore
pm uninstall -k --user 0 com.miui.weather2
pm uninstall -k --user 0 com.miui.wmsvc
pm uninstall -k --user 0 com.miui.yellowpage
pm uninstall -k --user 0 com.netflix.partner.activation
pm uninstall -k --user 0 com.opera.browser
pm uninstall -k --user 0 com.opera.preinstall
pm uninstall -k --user 0 com.tencent.soter.soterserver
pm uninstall -k --user 0 com.xiaomi.account
pm uninstall -k --user 0 com.xiaomi.discover
pm uninstall -k --user 0 com.xiaomi.glgm
pm uninstall -k --user 0 com.xiaomi.joyose
pm uninstall -k --user 0 com.xiaomi.location.fused
pm uninstall -k --user 0 com.xiaomi.mi_connect_service
pm uninstall -k --user 0 com.xiaomi.micloud.sdk
pm uninstall -k --user 0 com.xiaomi.midrop
pm uninstall -k --user 0 com.xiaomi.mipicks
pm uninstall -k --user 0 com.xiaomi.miplay_client
pm uninstall -k --user 0 com.xiaomi.mirecycle
pm uninstall -k --user 0 com.xiaomi.payment
pm uninstall -k --user 0 com.xiaomi.powerchecker
pm uninstall -k --user 0 com.xiaomi.providers.appindex
pm uninstall -k --user 0 com.xiaomi.scanner
pm uninstall -k --user 0 com.xiaomi.simactivate.service
pm uninstall -k --user 0 com.xiaomi.upnp
pm uninstall -k --user 0 com.xiaomi.xmsf
pm uninstall -k --user 0 com.xiaomi.xmsfkeeper

Optional:

Attention: alternate Keyboard installation required before unistall
pm uninstall -k --user 0 com.google.android.inputmethod.latin
Attention: alternate File Manager installation required before unistall
pm uninstall -k --user 0 com.android.fileexplorer
pm uninstall -k --user 0 com.mi.android.globalFileexplorer

You should have "com.android.mms" on your phone. It is the normal messaging app for android. "com.miui.smsextra" is not required.

You can try to deactivate miui optimization in developer settings and check if the sleep problem still exists without "com.xiaomi.xmsf ".