IMEI has become 0 - how to fix?


Question

I was using stock Android Pie with build ALI_PPSS29.55-24-2 on my Moto G6 (ALI, XT1925-13). It was also rooted using Magisk. After more than an year the performance degradation happened and I thought to do a factory reset using the menu option in Settings.


Do not know why the reset operation did not help and ended up in boot loop.


At this juncture I thought to restore the ALI_PPSS29.55-24-2 ROM image and also thought to install RevengeOS which is Android 10 from XDA.


Flashed the latest TWRP for my phone, copied the downloaded image zip file from the XDA page and installed. All went well but the network was not detected at all. Worried with that, I tried to reach out the telegram group but it did not help.


Left alone, I thought to restore ALI_PPSS29.55-24-2 and successfully returned to Android Pie (9). However the network is not detected. Typing *#06# shows bar code with IMEI as 0.


I now read that I should have backed up the EFS partition which was not known. When the instructions for the installation said to backup, I only backed up my files and not the EFS partition.


Is there any options left? Any help is appreciated. Thanks.


The reason for me to raise this as a new question is that time had moved on and the options/suggestions for other question might not work or might have improved.


FYI: I have the back up of persist folder which I am not sure whether is still intact.


Edit : after "Adb reboot bootloader" I can toggle to "Barcode" option and it displays the IMEI number correctly. Also seen with command "fastboot getvar all" - as said in this XDA forum:



Your IMEI is not lost, it's just sitting there. You can see it in fastboot using "fastboot getvar all" command, and in the "Barcode" in bootloader menu.
Any attempt in writing IMEI via QPST tool is futile, because our device is write protected.





Update: Flashed PPSS29.55-24-2 stock Pie image - all went well except the SIM/network/IMEI


Answer

[Solved] I read in many XDA posts that IMEI might not be actually lost by installing custom ROM, but it might be just a case that the permission might have been changed. To verify, see if the IMEI number is shown in boot loader or bar code screen, if so then this is the case. Since my case is also similar, those posts suggested to flash factory image to restore the IMEI. I am not sure why it did not happen when I tried the same with the version that I already downloaded and have flashed already which is ALI_RETAIL_9.0_PPSS29.55-24-2.


Somehow inexplicably this did not work even though I tried to flash many times.


I stumbled on an XDA post which showed me a repository of factory images of various phones and in my phone case (Moto G6 ALI XT1925-13), I found the latest images from here.


From this site, I downloaded latest ALI_RETAIL_9.0_PPSS29.118-15-11-9 image and flashed which worked.


Edit
The above 118 version had was unstable and tried ALI_RETAIL_9.0_PPSS29.55-37-7-6_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip which seems to be okay so far.


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