yashsingh1/xdaforums huggingface dataset:
[Moto G Stylus (2021)] ShayBox:
You have the Moto G Stylus 2021 5G, not the Moto G Stylus 2021

Moto G Stylus 5G

The Moto G Stylus 5G is a 6.8" phone with a 1080x2400 resolution display. The Qualcomm SM4350 Snapdragon 480 5G chipset is paired with 6GB of RAM and 256GB of storage. The main camera is 48+8+5+2MP and the selfie camera is 16MP. The battery has a 5000mAh capacity.

xdaforums.com
[Moto G Stylus (2021)] Xydia:
Unfortunately TWRP doesn't have support for it: https://twrp.me/Devices/Motorola/.
[Moto G Stylus (2021)] Kerrylee1738$$$:
I'm assuming there are different variants of the xt2131-1 model? Because mine wasn't eligible for the unlock program
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] Tea54:
Test version of custom Team Win Recovery Project version 3.5.2_11.0 for OnePlus Nord N100 (Android 11 Only).

Everything works, except for:

MTP, .img firmware (for this you need to flash the full super.img image) and decryption of the Data section.

If anyone can modify this version of the recovery, we are very grateful to the future.

In the meantime, whoever wants to test or try it out, an image will be attached to the post. You can both boot (fastboot boot twrp.img) and flash (fastboot flash recovery_a twrp.img and fastboot flash recovery_b twrp.img).

I ask you to answer about all the problems found and write either to me personally or in this topic.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] brezzz:
Is there any newer version of this? i find this one freezes the phone a lot. thanks
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
I ran this TWRP for the OnePlus N100 in fastboot and it worked but I can't see any files. I've installed Android 11.

I'm trying to install Magisk zip but in TWRP I only see the folder tree and no files.

Do I need to install TWRP and not just run it from fastboot?

If I need to install it do I pick slot a or b or both?

Thanks for any help.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] Halphix:
do not install it. I installed it and it bricked my device. I needed to flash the stock recovery.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
It installed fine on my BE2013. Not extremely useful without the missing features though.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Can you install Magisk zip with this TWRP on your BE2013?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Honestly I haven't even tried flashing anything because I already have magisk and i had some issues with safety net that I didn't want to risk having to fix again.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
How did you install the Magisk zip file?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
I didn't. I patched firmware boot image and flashed through bootloader. However I just tried flashing from TWRP.

I put the zip on external SD because this version doesn't support decryption of data partition. I then entered the "mount" menu in TWRP and mounted external SD and then tapped "select storage" and selected external SD.

You should be able to flash it now. It didn't give any errors, but i didn't uninstall magisk first so don't know how well it actually worked.

I also don't know if you can do anything without external SD or without root access already.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Thanks.

That's very interesting...

You've given me a few good ideas.

I'll report back and let you know if it worked.

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
If you go with the boot image method I wouldn't mind helping you out.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
I had high hopes...

I fastbooted the TWRP, I didn't install it but I don't think that would make a difference.

I put the Magisk zip on the external SD card and from within TWRP I had no problem mounting the SD card but I still couldn't see any files, just a folder tree, and every folder empty.

When you run TWRP and mount the SD card can you see the files within the folders on the card?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Yes. It is important that you tap "select storage" and select "micro sd". After i did that i entered "flash" and immediately saw folders and zips on my external sd. In file manager i could see all files and even deleted some from there.

From root directory it's in /external_sd not in /storage.

Edit: Even though i also don't think installing TWRP makes a difference, i don't know if that's the case.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
I should mention i used "fastboot flash recovery xxx.img" not "... recovery_a" or "... recovery_b".

I don't know if this changes something with access
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Honestly patching boot image is probably less of a headache. I can even send the images pre-patched if you want. Just one fastboot command

I'd need to know your phone variant and update version.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Well, I don't think you have the file I need.

My N100 is a model BE2015, build number 11.0.1BE82CF

I just fastbooted TWRP again and I'm mounting and selecting external_sd but still zero files.

If I flash the TWRP with "fastboot flash recovery xxx.img" is there a way to reverse it if I ever need to?

Again thanks for the help.

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Well that might be the problem. That's a carrier locked phone, right? I'm not really familiar with those. I just know they are complicated to mod.

Not sure if you'll even be able to flash recovery and I'm surprised you can fastboot boot. But in theory, (at least on unlocked phones) if you can flash TWRP, you can flash stock recovery from firmware package.

I saw a quite extensive and fairly complicated guide to fully unlock a carrier phone here on XDA, but don't know how well it works or if you have followed any of these steps.

Edit: Also found this, looks like it works with your device: https://xdaforums.com/t/opn100-oos-...l-to-restore-your-device-to-oxygenos.4245499/
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Let me start by saying my phone is both SIM unlocked and bootloader unlocked.

The post you linked is talking about the same phone as me but the last post in that thread has an ominous post from someone on Android 11 bricking after trying that. I'm not sure if that works if you're already on 11.

I still can't understand why the TWRP can't see files on my SD card. I think the two missing elements are the fact that you have TWRP flashed to your phone and you're rooted already.

I really can't understand why being rooted would have anything to do with TWRP seeing the files on the SD card so I'm leaning toward it being flashed that's the difference.

I would like to try flashing TWRP but I'm still unsure how, plus I'm guessing I have no recovery if that goes awry.

If I could just get the zip fashed it should patch my boot.img and give me root fairly easily.

Does anyone have any suggestions as to ways back if the TWRP flash goes bad plus just what command do I use to flash it and what happens to the other slot?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Okay, so...

I have now tried flashing stock boot and stock recovery on both a and b, verified no root access, then trying "boot twrp.img"

Still able to see files on micro sd.

I then attempted to flash magisk zip to verify this method working.

Didn't seem to work at first, but i think this was due to me messing something up with active slot. Fastbooted into twrp again and flashed magisk again and it works.

So, in short; This absolutely works on a BE2013, but this recovery might not play well with your BE2015.

OP asks about potential problems so maybe you'll have luck messaging him and you could investigate together? Just a suggestion.

I'm sorry, but I really don't know how to help with that model. It's problematic that there's no firmware payload available. If you find one or if you can somehow dump the boot image from the phone then I'd be optimistic and happy to help any way I can.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] joegib:
I have the BE2011 model. Useful on this variant?
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
BE2011 should be very similar to BE2013. No tampering by a carrier. So i assume both flashing through fastboot and zip in TWRP will work. Firmware is available for this variant.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
I think I follow you.

I still can't understand why the files on the SD card are hidden for me and not for you.

As far as the OP goes I messaged him some time ago and never got a reply so I think he has forgotten this was posted.

Is there a way to "dump" the ROM from my phone?

I think getting root is so easy if we could just install the zip. Can you think of any other way of installing the zip without TWRP?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Me neither. Access to external storage should just work, but I don't have a deep understanding of the behind-the-scenes stuff. I would assume this has only been tested on the global and unlocked variants though.

Not that I know of, but as I said, I don't have the greatest knowledge or experience. Same with TWRP, don't know any other method.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Did some research. Check if you can see any files in /dev/block.

If you can then you should be able to copy the boot image. Not sure where to though, since you don't seem to be able to access sd, and adb/mtp doesn't work...

But yeah, in a terminal (or adb shell on PC) you can do:

adb shell (If PC)

find /dev -name 'by-name' 2>/dev/null

This gave me two outputs, the one that worked for me was the second one.

ls -la <output from last command>

(for example, mine was "ls -la /dev/block/platform/soc/4784000.sdhci/by-name")

This lists a bunch of stuff, including your boot location. Mine were:

boot_a -> /dev/block/sde11

boot_b -> /dev/block/sde32

If you can even see these files in TWRP then your issue becomes; where do you copy one of them?

Have you tried formatting your sd in TWRP? Could be such a dumb thing...

It's unfortunate that i can't get adb to work in this recovery, but maybe see if you have any luck. I'm not optimistic though. But then you could pull it to PC.

I successfully renamed the copied file to "boot.img" and patched it in the magisk app, so this is another working method. It does come with new difficulties though.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] tabuRebel:
Hey I have the BE2015 model for Metro. I tried the boot patch through magisk while my os was upgrade to 11 but the only image available on one plus was ~10.4 software update something like that. Anyway I flashed to boot_b and it bricked my phone and had to recover through the recovery software, but while I was tampering with it I was able to successfully flash twrp. After recovering everything I was downgraded back to 10.5 but after flashing twrp I loaded recovery and installed magisk.apk file and flashed that and got root access. Afterward i rebooted and root status is confirmed. Apparently I am unable to replace the boot animation though. I've tried via termux as root and within twrp's terminal and it won't let me change the folder file system permission? Any advice on the correct way to go about doing this? Also I can see my external_sdcard but can not access the data system_ext and 1 other partition. I can't remember right this moment.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
These days, even with root, system is read-only. So no modification from Android system. And as stated by OP and in previous comments; This recovery DOES NOT support decryption. Therefore you CAN NOT access system and data partitions.

Mods like these are performed systemless-ly. Which is why magisk exists. I would suggest finding a solution via magisk modules or researching how to do it yourself through magisk.

Btw, while I'm here, if you want to update to 11 again and keep magisk root:

Update normally with System Update.

DO NOT REBOOT when it's done.

Go into magisk manager and tap "Install".

Select "Install to inactive slot (after OTA).

Do the install, reboot when done.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Sorry, I just checked my own TWRP again and it looks like I am able to access system, product and vendor partitions. Of course, to be able to do so You have to first mount them in the mount menu. Data partition is however still not accessable, obviously.

But as you can see in all the previous comments between onlycash and myself, this recovery seems have questionable functionality and reliability on BE2015. onlycash hasn't been able to access anything at all, including external storage. So I can't guarantee anything.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] guionista:
When using "fastboot boot twrp.img"

the device is stuck at the oneplus logo.

Does it happen to anyone else? I tried with Android 10 and Android 11. EU device.

edit: only flashing works: "fastboot flash recovery twrp.img".
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] :
hey guys, hope all is well. just had a fellow N100METRO device user join my Telegram group. I have experience a bit with dynamic devices, recovery device trees and building recoveries. I don't have this device but I know some things that I think may help you guys a bit.

For instance, those who want to stay on stock rom, you can gain rw access to the partitions inside super while in OS if you extract super.img and rebuild it with OtaTools. R/W access in system, product and vendor is always nice when you want it.

GSI Roms also work with these devices and can be flashed with fastbootd. fastbootd can be accessed by being in regular fastboot and running the command: fastboot reboot fastboot

You can't access internal data in twrp because it's encrypted. You can wipe encryption in TWRP but it will re-encrypt every time on boot unless you disable encryption in your vendor partition. It can be done as I've done it on another dynamic device. The only other choice/option is to try and fix encryption in twrp.

so with all that said, I currently have a tree mostly made for twrp and am about to start doing some test builds. If anyone is interested in trying some test builds and reporting back to me, I will post my Telegram Link for such purposes. Once something is built and working decent, I will make a new proper thread for it.

TWRP Test Builds
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Always up for some low-risk testing and feedback. Joining.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] hagaygo:
Hi

I managed to use fastboot boot <filename.img> and twrp booted up on my be2013 device.

But as every one stated cant see any files , tried mounting several usb devices (which works fine on other devices/twrp) and usb-otg just wont mount.

Is it really not supported ? only way is insert sd card to the sim drawer every time ?
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
It's strange that most things work on mine.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] hagaygo:
does usb-otg mount works for you on this twrp ?
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Can't test it, but I doubt it since MTP and ADB doesn't work.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] guionista:
No. But adb sideload works.

adb works if you go to Mount and disable MTP.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] hagaygo:
Hi

My goal is to put the magisk.zip somewhere on the phone which twrp can access so can flash it , where should/can i put it using adb ?
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] guionista:
you can sideload it with adb, so there's no need for USB-OTG or SD card

1) boot into TWRP

2) Go to Mount > Disable MTP

3) Go to Advanced > adb sideload

3) Input in your pc terminal: "adb sideload pathToMagisk.zip"

if you don't have a magisk.zip, rename magisk.apk to magisk.zip

hth
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] hagaygo:
Thanks , i'll try it asap and update with the result (i understand i'll have to do it after each oneplus os update)
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Oh damn... Major egg on my face. @onlycash this just got a whole lot easier😅😅😅😅😅😅

This 100% works. I'm such a moron, how did I not know this...
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] guionista:
@thomaskmaagaard

tbf it's a bug. I also thought it wasn't going to work.

I only found out through another place where OP's recovery is posted
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
This won't come as a surprise but I couldn't seem to get this to work.

(My Phone is a Metro N100 running Android 11)

This is what I did, maybe I'm misinterpreting the instructions...

I fast booted into TWRP.

Then I went to Mount and Disabled MTP

Next, I go to Advanced, ADB sideload, this is when things go a little sideways.

When you go to ADB sideload in Advanced you have a slider on the screen, do I slide it first before inputting the PC command, or do I input the "ADB sideload pathToMagisk.zip" first then slide the screen in TWRP?

(My Magisk.zip is in the folder with the ADB so I am inputting "adb sideload Magisk.zip", do I need to adb sideload and then type the whole path even if it's in the same folder?)

Long story short I tried it a few different ways and I get mostly errors in ADB such as "device not found" and "protocol fault (no status)".

No matter what I do once I slide the screen in TWRP I get into a state that I can't get out of without holding down the power button for a few minutes to force a system reboot.

I think once you "Disable MTP" in TWRP you can't send any commands from the PC in ADB let alone sideload a file.

Maybe I'm doing something very wrong. I feel like this is very nearly working but the order of commands and or maybe a missing command is keeping it from working.

Any help will be much appreciated.

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
First: Try connecting ADB in system.

Do "adb devices".

When it asks for permission on phone select "Always allow from this PC", or whatever it says.

I'm not sure how this affects ADB in recovery, but it can't hurt.

What i did in twrp was:

Disable MTP.

Ran "adb devices" on PC to check phone was detected as "Authorized".

Opened "adb sideload" and did the slider.

Then ran "adb sideload magisk.zip" on PC.

Had magisk.zip in adb folder, but if you have adb in PATH then your terminal might be in the wrong directory. You CAN eliminate this issue by writing full path to zip or simply just check the active terminal directory.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Thanks for responding.

What does "try connecting ADB in system." What system? On my PC? Or are you talking about something in TWRP or is it a setting in Android? If you're talking about in Android I believe that setting is already set on my phone.

Could all this be happening this way because you have TWRP installed and not running it in fastboot?

Can you try fast booting TWRP like I'm doing and see if it stills works for you?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
Sorry, too vague. Just meant running "adb devices" while in the normal android system. Then it will ask you if you trust the PC trying to connect with ADB. Then reboot to twrp.

I am currently fastbooting twrp. Reflashed normal recovery a while ago. You can try joining the telegram group posted a few comments back and try booting the test build in there. I can't get touch to work with it, but you might have luck.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] guionista:
You slide first.

Then you input the command.

With disabled MTP you can send commands from the PC.

Sounds like you're doing everything right, but adb is not setup for your device.

Try doing what @thomaskmaagaard said and test "adb devices" out when booted into android, not TWRP.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
OK, this is what happened...

I booted into Android and my PC is "Authorized" and I saved the setting.

I rebooted into bootloader and ran "adb fastboot boot TWRP.img" and that worked.

Then I disabled MTP

When I ran "adb devices" I got this back:

I think something may be wrong but I pushed ahead...

Next I "Opened "adb sideload" and did the slider", then I ran "adb sideload magisk.zip" and this happened:

On the TWRP screen it said "Error" and this time it did let me back out of the Sideload screen.

What do you think I'm doing wrong?

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] hagaygo:
Tried it and it seems to work great , magisk seems to be working just fine.

Thanks for the help.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Did you get this to work on a Metro N100 and if so can you tell what I'm doing wrong?

Thanks for any help.

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] hagaygo:
My device is be2013 , not sure what is metro N100...
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] guionista:
From the first screenshot adb works.

But from the second screenshot it looks like your adb is outdated.

Try getting the latest version and it should work this time.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
You're doing nothing wrong. This all looks correct. There's a good chance you can fix that error by stopping adb.exe in task manager and reinstalling the newest version from this link.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
Hallelujah!!!!

I got it to work once I updated ADB.

It went super smooth and easy.

Now the question I have is how do we defend root?

What's the best plan, just count on being able to sideload the zip after every update, or is there a better alternative that should be tried?

Again thank you to everyone who was patient and so helpful to me over this tiresome task of trying to root my Metro N100, your help was much needed and appreciated!

.
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] thomaskmaagaard:
I've repeated this several times on XDA: When there's an update just install it yourself before it decides to do it by itself.

When the update is complete it will want to reboot. DON'T!

Instead go into magisk manager,

select "install",

select "install to inactive slot (after OTA)",

select "let's go".

Now root is installed over the new update on the inactive slot. Reboot your phone now and it will switch to the other slot with the newly rooted update.

Do this everytime you get an update. Alternatively, do the sideload instead if you prefer. No way is more correct.

Congrats on FINALLY having some success! What a journey xD
[OnePlus Nord N100 ROMs, Kernels, Recoveries, & Oth] onlycash:
That's interesting. I'm not sure how I'd install it myself, can you go into some detail on how this is done?

Is there any reason to fear that after some future update we could perhaps lose access to this barely functional TWRP making sideloading the zip impossible? Should I not let this worry me?

.