Redmi 4X stuck at boot loop


Question

I removed some apps from my non-rooted Redmi 4X device with 'adb shell' because it was becoming very slow and unresponsive even for basic tasks. The packages I removed following this tutorial are:


santoni:/ $ pm uninstall -k --user 0 com.xiaomi.glgm


Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.music
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.videos
Success
santoni:/ $ pm uninstall -k --user 0 com.android.email
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.account
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mi_connect_service
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.payment
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.id
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.in
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mirecycle
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.videoplayer
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.cloudsync
Failure [not installed for 0]
santoni:/ $ pm uninstall -k --user 0 com.miui.player
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.micloudsync
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.apps.photos
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.hybrid
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.screenrecorder
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.scanner
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.securitycenter
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.midrop
Success
santoni:/ $ pm uninstall -k --user 0 com.android.thememanager
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.weather2
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.yellowpage
Success
santoni:/ $

After I try to reboot, it is now stuck in a boot loop. How do I rectify this?
I use Arch Linux so please don't suggest any Windows-only tools that are
not available for Linux.


This phone is close to 4 years old and its battery is quite swollen, hence the screen too has come loose. Other forum threads suggest that it might be a battery issue however I would like to first try out anything I can do to revive this phone.


This is my first question on any stack exchange site so please forgive any errors and give me suggestions on how I can improve.


Answer

Removing com.miui.securitycenter was the cause of the bootloop.



As described in this article the reason for a boot loop is corrupted software/corrupted ROM



Not really. Nothing was corrupted. You just removed a system app needed for boot. I agree this package shouldn't be a boot dependency but this unfortunately is the case.


Honestly, with a Xiaomi Redmi 4X, you'd better install an AOSP ROM. Xiaomi doesn't provide security updates anymore.


I suggest you to either install the official LineageOS version (Android 9) or the official crDroid ROM (Android 11)


In general, if you can unlock the bootloader of your phone, go for a custom ROM. If you can't, use the Universal Android Debloater. The nice thing about this debloater is that the packages are documented so you can see what you can delete or not.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes