yashsingh1/xdaforums huggingface dataset:
[Magisk] pndwal:
If Restore Images "did nothing", I suspect Complete Uninstall, which includes Restore Images, will have failed with errors also...

Please say if you did anything more to restore unpatched images because it isn't clear...

Despite 'losing root', before concluding your device is properly returned to stock in the event that Uninstall options don't work, you need to (properly) flash back boot.img or full ROM via fastboot or similar 'download' mode... PW
[Magisk] TheSamOfTheDay:
I probably have to try that with the fastboot thing. I say that when I hit Restore Images I didn't see anything afterwards that changed so I hit Complete Uninstall which rebooted my phone without root. Still no mobile service then I factory resetted and the screen for OrangeFox Recovery showed up to decrypt my data or something by putting in my PIN.
[Magisk] TheSamOfTheDay:
I mean of course I can't follow the repeated instructions because I can't really remember how I did it the first time, Ill consult a rooting guide. Also, I say it's locked because that's what it literally says for the UICC unlock, as it tells me "This device is locked by the carrier SIM."
[Magisk] J.Michael:
When I said "instructions...repeatedly", I meant the instructions you have been given in this thread, in posts addressed to you.

This is the first time I have heard the phrase "UICC unlock". The first Google result talks about Sprint. I don't think it's a Magisk issue. Try searching XDA.
[Magisk] TheSamOfTheDay:
Well maybe it isn't a Magisk issue but upgrading it and a module is the last thing that happened to my device before it got carrier locked which is probably a one in a million chance.I thought I would ask because maybe someone would know what happened.

I can try resetting ROMs and such but I already tried supposed fixes for the Invalid SIM card error and I feel like giving up, especially if I have to go through all those instructions and end up with no favorable result.
[Magisk] HippoMan:
Oh, now I see what I misunderstood: that the praise and glitter is offered because of how the post helped you by reminding you about the need to test the SIM. I incorrectly thought you were admonishing the original poster for not testing the SIM.

I apologize for my misunderstanding.

And anyway, I actually would appreciate a piece of coal as a gift. :):)
[Magisk] J.Michael:
Just one instruction to start: Burn a complete copy of the stock ROM. If that doesn't restore your ability to use SIM related functions, then stop and take a breath.

It also wouldn't hurt if one of us understood the meaning of "UICC unlock". Since I don't have such a phone, I nominate you.
[Magisk] asripath:
Looks like carrier locked sim.

During the uninstall/install of magisk

And flashing of boot images the carrier info seems to have been modified.

[2024] Sprint UICC Unlock Guide: Unlock & Fix Your Phone Now

Get an UICC unlok error message or can't switch your phone to another carrier network? This UICC unlock guide will help you unlock your phone!

www.wipelock.com

T-Mobile® Official Site: Get Even More Without Paying More

Save on incredible benefits every month. Learn about unlimited plans, 5G internet & more.

www.sprint.com
[Magisk] TheSamOfTheDay:
Well that's great we have reached an official conclusion of this after unrooting and factory resetting instead of my speculation but now how do I return it to unlocked status? I don't use Sprint (even if it's merged with T-Mobile).

Like I mentioned before, no scam services that after I pay them they say "we unfortunately aren't able to do this or that but thanks for the money sucker"
[Magisk] TheSamOfTheDay:
I already decided to get a new phone in the meantime, I considered a factory refurbished like the now-locked phone, a pre-rooted phone off eBay (which all strangely mention Pokemon Go location spoofing) or a direct purchase from T Mobile themselves as an upgrade full of their awesome bloatware.
[Magisk] TheSamOfTheDay:
I think I did have a copy of the stock ROM at recommendation of the guy who walked me through the rooting process but I think I deleted it or something since I didn't think something like this would happen to me, since I try to be an optimist. Oh well.
[Magisk] pndwal:
Just catching up here...

Ok, starting to understand... Originally you said:

Naturally we all thought you meant bootloader unlocked since that's a requirement for rooting (although B/L can be locked again with root in special circumstances)... Since flashing a mismatched boot.img commonly results in users having SIM/mobile network, WiFi, BT and similar issues, that looked like your issue to me...

It never occurred to me that you had an originally carrier locked device that had been unlocked and had somehow reverted to locked, preventing use of a non-carrier SIM!...

Also, carrier lock status has nothing to do with root except that some carriers may also disable OEM Unlocking ability (that's bootloader, not carrier) on devices they supply (by applying their modifications to the ROM).

... I still didn't twig that you meant to carrier-unlock here either... 🤪

So I think root, modules etc has nothing to do with this issue, assuming device was properly carrier unlocked (using manufacturer method/codes)... But I'm not betting this was done properly...

Did you apply unlock codes?... Or was some hack solution for unlocking applied by you, someone else, or a seller (perhaps they applied a hack to bypass a mandatory waiting time or payment due for unlocking, or it was preloaded with a modded/unofficial ROM etc)?

It's unlikely a root update or similar would account for carrier lock reverting unless it wasn't unlocked property or by using official methods in the first place... In that case all bets would be off... 😬 PW
[Magisk] TheSamOfTheDay:
I tried putting in some sort of codes in the dialer but of course with the device being carrier locked I couldn't make any calls whatsoever
[Magisk] TheSamOfTheDay:
If Magisk or one of it's modules didn't carrier lock my phone then what did?
[Magisk] J.Michael:
Where did you buy this phone?

Was it carrier-locked when you bought it?

Did you buy a new SIM card?

How did you carrier-unlock the phone?

Where did you find the stock ROM? (The one you "must have deleted or something"?)

Have you located and downloaded the stock ROM a second time?

Have you ever tried burning a complete stock ROM to see if that restores the ability to use the phone?
[Magisk] TheSamOfTheDay:
I bought the phone already unlocked and factory refurbished off Amazon and I still have the same SIM card.

I think the Stock ROM I deleted was the copy of the unpatched IMG file so it's before I patched it with Magisk. I'm also positive I don't have the original IMG unless maybe if I look through File History on my PC.

Haven't tried burning any kind of ROM.

Good news though, I actually went back to T Mobile and got a new 5G Stylus 2023. A bit smaller but still awesome. I will think about keeping the old Stylus or selling it to a pawn shop.
[Magisk] J.Michael:
ROM is bigger than image file, ROM typically contains a number of image files. ROM may be a ZIP file, a tar file, or some other container-type file.

Where did you get the ROM file? Was it given to you with the phone? Were you told from where to download it? Did you find it yourself on some web site?

If the carrier-unlock process consists of replacing the kernel, or patching the boot image, and you managed to find a carrier-locked boot image, then that explains how you re-locked your phone.

I still don't understand how your SIM card worked fine in a random phone at the phone store, but is apparently not on the right network for *your* phone.
[Magisk] zgfg:
Stock ROM zip is maybe 2.5 GB, boot.img only eg 192 MB - that's just an example (from my ROM)

ROM must contain System partitions (System, Vendor, etc)

Hence, boot img is by no means the whole ROM. Unzip and you will find inside a dozen or more img files (some of them, like system.img being significantly bigger than boot.img)

On the modern ROMs, all img files are usually archived to payload.bin - you must additionally use Payload Dumper to unpack them
[Magisk] andrew2432:
Has any one successfully hidden magisk draftkings fantasy? It sounds like the same problem he's having, even hiding the magisk app doesn't work. I haven't tried to from fresh but I may soon
[Magisk] TheSamOfTheDay:
Hi, for some reason it said I had insufficient privileges and I couldn't reply sooner. Anyway, your guess is as good as mine. Even when I ordered the phone and booted it up right out the box it was full of Boost Mobile stuff, in fact even after factory resetting, the boost Mobile stuff came right back as bloatware. Very unusual that I didnt think about up until now.
[Magisk] TheSamOfTheDay:
BTW to answer your other questions there is an application by Lenovo for situations like these which actually was a step in the rooting process. It had to give me a boot.img to start with and to back up. I think it was called the Smart Rescue Assistant or something of that sort. Other than that all I did was replace the stock boot with the Magisk boot and my phone was rooted just like that.
[Magisk] J.Michael:
The trouble is, we are not convinced that you had the right "stock boot" image. I know it is possible for a not quite right boot image to leave you with a mostly working system, and so far that is the only theory about why you lost your SIM card related functions.

You said you took the phone to some store, where someone checked that your SIM card still works perfectly well in another phone. Please elaborate: Was that store affiliated with the carrier to which you believe the phone is locked? If you are having problems, and they are because of the "carrier lock", then doesn't that mean that your SIM card is registered to another provider?

Can you talk to someone at that store about getting a proper boot image for your phone?

I don't know from SIM cards. When you change providers, do you have to get and use a new SIM card from the new provider? Or is there some ID number you can give your new provider, so it can enter your SIM card in its database?

What we really need is for you to go back in time to before you broke the phone, and try burning the supposedly stock boot image you were given -- no Magisk patch, just burn that boot image to your phone to see if you still can use SIM related functions.
[Magisk] TheSamOfTheDay:
I don't know for sure, hopefully all my Magisk stuff is saved on my SD card after factory resetting my old phone. I don't know what network my old phone got locked to but based on what you said when I mentioned UICC unlock, it's possibly locked to AT&T or another carrier. I don't know how but I want to fix it cuz I really do like my 2021 Stylus.

Also, the SIM card itself works from any device you put it in. In fact, it's working on my new phone so like I said earlier it's not the SIM card that is malfunctioning it is the old phone itself. So no ID number or database required except if I was a wanted fugitive running from the law and/or living off the grid.

My old phone was working normally since I rooted it network -wise. I could make and receive calls no problem up until this past Saturday which started this nonsense.

I will try to have time to find the old stock image and see how burning it might revert this severely unwanted change.
[Magisk] zgfg:
How did you store your 'Magisk stuff' to SD card, and actually, what do you mean by 'Magisk stuff' (precisely, which partitions, folders, files) and how do you ever think to reuse/restore that if you would want?!

And btw, what for
[Magisk] J.Michael:
You are all over the place, and I cannot keep up.

At some point you declared that your phone had been locked. I thought you were the one who called it "carrier locked". I thought that carrier-locked meant I bought the phone locked to Verizon, I cannot switch to T-Mobile. For that to be the problem you were experiencing, your SIM card would have to be somehow associated with a provider other than the one the phone was originally using. If, in the store, your SIM card worked just fine in a random phone, that random phone was willing to work on the network associated with the SIM card. That random phone cannot be equivalent to your phone.

You said you downloaded a ROM, but then "deleted it or something". Are you now saying you have the full ROM in the "Magisk stuff" on the SD-card?

If you were able to use your phone for some time after installing Magisk, why did you come here claiming that Magisk had "locked" your phone? You should be trying harder to remember what you did "last Saturday" -- *that* is more likely to be what caused your problems.

Given that you say your phone is useless, and you have already wiped it, you should try to find a full ROM for your phone. Not a custom ROM, a ROM that claims to be what was on the phone when you received the phone. Or at least a ROM that claims to be from the distributor of the phone. If the phone works well with that ROM, you probably shouldn't try to install Magisk.
[Magisk] TheSamOfTheDay:
No I mean I still had the same stock ROM when I patched Magisk on the old phone if that's what you mean. I'm only suspecting my phone is "carrier -locked" because of the Invalid SIM error which means either my SIM card doesn't work with my phone anymore or none of the SIM cards do and the SIM -related functions are fried.

The "Magisk stuff" is like all my Magisk data like modules and settings but I don't actually know if Magisk does store those sort of things after uninstallation.

I'm just mixing up ROM with boot.img, which is the one I possibly deleted. The original unpatched boot.img I probably deleted.
[Magisk] TheSamOfTheDay:
I mean my modules and settings, if that's possible, if not then there's nothing I can do try and restore my phone to how it was when it was rooted. I thought it all gets saved somewhere.
[Magisk] zgfg:
Magisk database and modules are stored in /data/adb/modules - did you transfer a copy of them to your SD card?
[Magisk] TheSamOfTheDay:
I don't think so but maybe Swift Backup would've since I use it to back up stuff often when my old phone was still rooted.
[Magisk] zgfg:
Swift Back-up does not backup Magisk DB and modules folder
[Magisk] J.Michael:
Start over. Call the helpful guy at the store and ask if you can download a copy of the ROM that was on the phone when you bought it. (Make an effort to not randomly say "boot image" when you mean "ROM".)

Do that much and let us know.
[Magisk] TheSamOfTheDay:
Well the store was the T-Mobile store meaning I only brought my old phone in there to confirm if it was my SIM card or my phone acting up, so he's not going to restore anything phone related since nobody at a T Mobile store could repair a phone, only if the SIM card was acting up he could've gotten me a new one.

So to recap, he's not going to download anything since I didn't even buy the phone from their store anyway so they could give a crap about what happens to a refurbished unlocked phone from Amazon.

Luckily there are stock ROMs available on the Internet for the 2021 Stylus but even then I doubt flashing them would fix anything if even factory resetting my phone didn't do anything. I really do think something internally messed with the network settings and disabled some carrier unlock feature.
[Magisk] J.Michael:
First, I didn't tell you to ask him to download something for you. I told you to ask if *you* could download a ROM. I assumed you would understand that that would include *him* giving *you* a clue about the URL.

Second, you have got to distinguish between your hunches and facts. I will accept as a fact that something is not working on your phone, and even that it used to work. But please stop saying "locked". We don't know what went wrong. When you phrase every quedtion as "how can I unlock my phone", you make it less likely that you will ever get the real solution.

Third, I do not believe that "factory reset" is what any English speaking person would assume. It's a tidy phrase, so manufacturers et al. use it, but I do not believe that it means "restore all software". I believe that all it accomplishes is wiping the "data"

partition. If you screwed up your settings, then you get to start over. If you screwed up the boot partition, then the boot partition stays screwed up.

Now, you say you installed Magisk, and for a while everything was fine. Then "last Saturday" something happened. If you can't remember doing anything out of the ordinary -- installing an app, installing a Magisk module, flashing some random partition -- then there is very little chance of figuring out what went wrong.

I can only hope that burning a full ROM will restore the phone to its initial state. I know there could be magical hidden things that even a full ROM doesn't restore. But there is a really good chance that burning a full ROM will restore the phone.

If you don't want to take the time to download and burn a full ROM without a guarantee of success, then I'm done.
[Magisk] J.Michael:
@TheSamOfTheDay This thread is for the Lenovo Rescue and Smart Assistant. I only read a few posts starting where that link will take you, but I got the impression that @IronTechmonkey had great success replacing the ROM on a number of phones that are at least cousins of your phone.
[Magisk] IronTechmonkey:
Apologies for some OT but since it was mentioned, and to assist in any segue toward the Lenovo rescue and smart assistant: @TheSamOfTheDay, I've used that Lenovo utility (which runs on Windows) successfully to restore several Motorola phones to the latest available stock version for the particular phone. There are a few hoops to jump through and obstacles to avoid but those things are manageable. If you're interested in restoring one of your Moto phones to latest available non-rooted stock (boot loader remains locked or unlocked as it was before the restoration) then post in that thread where I and the few others who lurk might (or might not) be able to advise.
[Magisk] TheSamOfTheDay:
Well that sucks

I can try restoring the original ROM since I don't have anything to lose at this point.
[Magisk] m0han:
CMIIW: Swift Backup is for backing up text messages, call logs, apps and - in the case of rooted devices - 'app data' too. (Not all) Magisk modules are proper apps. Or, are they?

If, as @J.Michael said, you can convince the T-Mobile store guy to give *you* a clue about the URL to the original ROM.

In the meantime, why don't you take up @IronTechmonkey's suggestion to post in 'that thread' where he and the few others who lurk might (or might not) be able to advise.
[Magisk] SebaS-DG:
How is working now for you? With magis delta were working for me until the new update of shell box, like 5 days ago

Now I cant make it login
[Magisk] TheSamOfTheDay:
I might take a look at the assistant thingamajig. Maybe it can restore the stock ROM or I can just download it off a website that has the official firmware. Issue is that the ROMs names on the websites have carrier names attached to them as well so even then I'm unsure these ROMs are carrier-unlocked themselves. I don't know why things like this happen to me.

P.S. T-Mobile store employees don't really know sh1t about phones unless they are selling them to you. They wouldn't know anything about ROMs.
[Magisk] zgfg:
Eg, Swift Backup will backup your Magisk apk and its settings like Dark theme, Upgrading channel to Canary and so

But not things that are related to Magisk (but not related to Magisk app)

More precisely, Swift Backup will backup Magisk apk and its settings:

/data/app/.../com.topjohnwu.magisk-.../,

/data/user/0/com.topjohnwu.magisk

but not Magisk stuff from /data/adb

---

Similarly eg for JamesDSP Magisk module

Swift Backup will backup:

/data/app/.../james.dsp-.../,

/data/user/0/james.dsp

and

Internal memory /JamesDSP

ie, your JamesDSP app and its settings but not the JamesDSP Magisk module, ie not its folder:

/data/adb/modules/ainur_jamesdsp

---

Hence, when you Restore from Swift Backup, you will only have Magisk app displaying Magisk No (no root, no modules, nothing) and the useless JamesDSP app

You must flash Magisk again, setup your DenyList etc, install modules, etc

Once you install JamesDSP module, you can restore your JamesDSP apk settings from Swift Backup to restore your Bass boost, Gain, Equalizer, etc - but all that is useless (probably, JamesDSP app will force-close BCS it will not find the module installed) if you didn't first install Magisk itself and JamesDSP Magisk module through the Magisk app

---

If I recall correctly (I don't have Pixel) it was mentioned on XDA that PixelFlasher provides an option to backup Magisk stuff and the modules (afaik, that will restore the JamesDSP module but not JamesDSPapk and its settings)

Btw, that option shall work generally,not only for Pixels (you could try, PF is a PC app)

I'm also not sure does it completely restore LSPosed modules (they install to their own folders)

@badabing2003 can tell more

---

Exercise: Take MiXPlore (root granted) and find the folders mentioned above

For /data/app/, "..." stands for some base64 hash encoding or so - hence it is unique and different for your phone/(re)installation of the same app

Eg, my current JamesDSP apk installation folder is:

/data/app/~~dpigj2ZddgUQchMaJFwT0w==/james.dsp-YS914pz2eVKvD-87JsLXOw==/

Your will look similarly but the 'scrambled' part will be different

---

PS (for some others): Don't take all that as another Google conspiracy to piss-off the Android users😁
[Magisk] casouzaj:
I handed the XZ2 over to my wife, and She'll Box is not on it, anymore. Sorry! Anyway i,n her phone Magisk Delta changed from Black List to White List mode (I mean, Zygisk, Unmount Modules and Unmount Modules by default are enabled. Root demanding apps and processes are in the Mount list. Regarding Play Integrity spoofing, Displax' Safetynet fix v2.4.0_1.3, chiteroman's Play Integrity Fix addon v9.0 and Shamiko. As it is in White List mode, sulist-auto-whitelist module is also installed.
[Magisk] TheSamOfTheDay:
Im in recovery mode with OrangeFox Recover and it seems all my old Magisk stuff like narsil_useroptions is on my SD card
[Magisk] TheSamOfTheDay:
Also I am using the Lenovo crap to download the latest available stock ROM to my phone and hopefully it will fix my issues and then this arc will come to an end.
[Magisk] TheSamOfTheDay:
I have installed the latest ROM for my old phone with the Lenovo Rescue assistant
[Magisk] J.Michael:
And? Does the phone work? Does the phone work as a phone?
[Magisk] mkcs:
Everytime I flashed a new Magisk module from the Magisk Manager, it reboots to the recovery rather than the system. Anyone knows the resaon? I have been using xiaomi.eu MIUI 12.5.6 Redmi K20 Pro. Magisk version: 26.3, Magisk Manager indicates that ramdisk is unavailable. However, patching boot image with or without checking the box 'Install to Recovery' can root the phone
[Magisk] TheSamOfTheDay:
Unfortunately no I just put a T-Mobile SIM card inside and it still isn't detecting any signals.

EDIT: Just to confirm, it is still showing a notification from HiddenMenu that it is an invalid SIM card so now I'm wondering how updating Magisk and/or modules can render a phone useless this way.