yashsingh1/xdaforums huggingface dataset:
[Moto G Stylus 5G] careloads:
Thanks again for your work! I got sick and havent even unlocked yet and now, an update just dropped! I wont restart the phone for as long as I can until we get more info. I assume I can do the unlock but I am concerned the update may be bad for us.

Edit: I took the update figuring that Moto wouldn't give us unlock keys only to revoke them in an update. Call me what you will but I do love their launcher and features but I am a simple man. Is it possible to do a stock rom degoogle? Lineage 20 was the best so far for me but I still prefer the stock rom. Either way, hope to get it done over the weekend. Thanks again for the dev!
[Moto G Stylus 5G] DragonFire1024:
I'm not entirely sure. I'm sure there are some scripts or ways that it can be done but it would probably have to require root access and bootloader unlocked simply because you would be altering the system image before you even boot the phone and the only way to flash that system image would be to have the bootloader unlocked. You could probably D Google the rhyme but if worse comes to worst I'm not sure if you'll be able to flash a gapps package to it. There's only one way to find out but however with that being said I'm not sure you would be able to flash it through the TWRP build. But again there's only one way to try.
[Moto G Stylus 5G] DragonFire1024:
Well I have finally got a kernel to build. However I have not yet got it working. My guess is I probably have to flash back to stock and start all over again and then Flash the new kernel. Much like installing the GSI, you can't be rooted when doing so. So that would at least be my guess for now. The one error I was trying to fix I finally found a solution earlier this afternoon it's amazing how just the couple of characters will literally fix an entire build sequence.
[Moto G Stylus 5G] hamza.fisa:
Aah finally i found this thread. Was searching everywhere for this model.

I actually bought this phone used so i was kind of worried for a second as official listings don't have the 4/64 variant anywhere. Even on the official Motorola websites the model moto g 5g 2023 has only 4/128, so i was kind of confused 😕

But there is still 1 more thing bugging me. That's about the chipset. Checked it through cpu z and it's showing snapdragon 750g?

Is this true?

View attachment 6056291View attachment 6056293
[Moto G Stylus 5G] hamza.fisa:
Edit: finally found where this phone originated (phone's from Nigeria of all places!!)

model number is XT-2313-6

Just wanted to ask the community here that is the cpu chipset correct or is it only for me here?
[Moto G Stylus 5G] jasonmerc:
I remember back when I had this phone that the USA variant is the Snapdragon 480+, but it looks like you have the Nigerian variant (thats actually kinda cool) so it must be different internationally.

Since you have Show Taps on, check the bottom left and bottom right corners of the touch screen. Right around where the Enter and Number buttons on your keyboard would be. Tap them rapidly and see if you get moments where you touch the screen but your touch doesnt actually register. This was a problem with BOTH Moto G 5G 2023's I got, both of which were new in box. Hopefully you don't have this problem yourself, but if you do you should to try to get a refund if you can.
[Moto G Stylus 5G] hamza.fisa:
I checked it from my side and it seems to be working fine.
[Moto G Stylus 5G] DragonFire1024:
I have never known Motorola or developers involved with that company to be so nice and actually achieve things when you ask. Thinking I would have an enormous amount of trouble trying to get the kernel source code for this device, I put literally a grain of salt into thinking I would get anything out of making the request. Much to my surprise, they delivered.

The kernel name implies your device is on the same version of firmware. For example, if you are unlocked you want to be on firmware version T1TPN33.58-68-1-2-1 in order to use this kernels source code to build a kernel. I do not know if this implies you must also be on the next version and require a new source or not. This was literally just posted with the last couple of hours so I haven't even had a chance to at it yet. We'll see what I can do with it this coming weekend. In the meantime for other curious minds here you go:

MMI-T1TPN33.58-68-1-2-1: https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-T1TPN33.58-68-1-2-1
[Moto G Stylus 5G] DragonFire1024:
Also wanted to make a note. If you look in /proc on your device, there is a compressed config file, config.gz. if you decompress it you get a config file that you can change the name to pnangn_defconfig and place it in the appropriate directory within the kernel source in order to build the kernel.
[Moto G Stylus 5G] careloads:
Kernel building is beyond my skill level but still super cool work! I will wait n see how it plays out, thanks again!
[Moto G Stylus 5G] DragonFire1024:
So far not so good. Everything builds at least so far as I can see, however the device does not boot. I have only had to fix one thing inside the source code which was expected and happened on other versions of the source code I've tried to work with. At the very end there are two errors but from what I can understand I don't think cause so much of a problem but I have to do some more research. I'm also going to try a few other things with the build environment configuration that might be throwing it off. Given this is a source code directly from the horse's mouth I'm clearly not doing something right I just have to figure out what that is. Maybe the modules need to be installed I don't know but there are only three of them, that don't serve any purpose that would cause the colonel not to boot properly. I did not try to install them yet. Maybe this will only boot on the stock firmware, but I am currently on the Evolution X GSI. Maybe I am doing something wrong with the config/defconfig.

Given this device is still rather new and not many people seem to be interested in unlocking it yet, this becomes even harder to get things to work. With computer code like this it's always better to have more than one pair of eyes to look over things. It takes a lot of time to do some of these things especially to even build a kernel because it involves a lot of reading... Excessive amounts of it sometimes. It becomes tiring so I know I miss things and sometimes I fix stuff and don't even remember what it is I did to fix it lol.
[Moto G Stylus 5G] DragonFire1024:
question...in either penang or pnangn. does anyone have vendor/lob/modules/1.1 directory and folder on their device? TWRP asks for it ( it doesn't stop the build, that doesn't mean that it messes something up that could otherwise make things work) and the only thing I have is vendor/lib/modules/5.4. Or does anyone know the firmware version I can download and grab that folder off of? Have not been able to find the 1.1 folder in any other repositories I've been able to find between the two devices at least so far.

I have been making progress I have gotten at least USB OTG to finally build, but the problem is I cannot get twrp to mount it or acknowledge it's got any storage space available. Product also wasn't appearing properly in the amount options and I've been able to get it to do so however again cannot get that to mount. Still haven't been able to get ADB or MTP to work though it might have been fixed in the build that is currently running. But I'm not holding my breath yet LOL.
[Moto G Stylus 5G] careloads:
I have lib/modules/5.4 same as you:
[Moto G Stylus 5G] DragonFire1024:
I seem to have remember tracking them down at one point and then taking them out and deleting the folder because the build process stopped when script hit the modules. And if I recall correctly I wasn't able to track down a firmware version that actually had those folders and files in it. But since I am off on the weekends I will see if I can track them down again.

On a side note, I've been able to track down some of the errors I've been having while building TWRP (I am absolutely shocked at how hard it is to track these things down and would think they'd be more prevalent). Looks like in order to make things function properly while using it, I'm going to have to flash the phone back to pure stock. Because of the implementations I have and tricks I am using in order to get R/W and a few other things including the GSI, TWRP, at least the build that I posted in the forums here, isn't reading a proper partitions or directories and whatnot in order to function properly on its first run. So that's another thing I will have to do this weekend is to flash the device back to stock and run it again (yuck).
[Moto G Stylus 5G] careloads:
Great work! Let us know how we can help.
[Moto G Stylus 5G] DragonFire1024:
well i've not made any progress unfortunately. It seems when you may have fixed something, 2 more things stop working. So far the most stable build of TWRP I have been able to build is the one I posted earlier. As I began to fix storage issues and mounting issues, Things started to get irritating. as you progress the touch screen stops working. Can't press buttons or slide to accept. I was finally able to get USB OTG to mount and be recognized (storage was still 0MB) but then the screen just stops. It turns on and off but that's all. ADB and MTP still no closer to working which means Neither Ubuntu 20 or Windows 10 will recognize the device when plugged into the PC and booted to twrp.

I even started with a bare minimal config created by twrpdtgen without adding any modifications or extra configs. Still the same issues. So this weekend I am going to start from scratch and work my way around a few configs at a time.
[Moto G Stylus 5G] careloads:
Hope your efforts bear fruit, seems we are the only ones left here.
[Moto G Stylus 5G] n6bhu:
I too, am an XT-2313-6 owner... my search for the appropriate rooting tools and alternative firmware led me to this thread.

I don't know of how much help I can be, but for what it's worth I've rooted all my phones up to now, and my new Moto G 5G just un-shaded/un-greyed its 'OEM-unlock' toggle-switch in Developer Options (though, I haven't requested my code from Motorola yet; I did verify the phone's eligibility to be unlocked). My phone has laid-down its gauntlet.
[Moto G Stylus 5G] careloads:
Thanks for joining. I can follow directions but have no real experience with dev. Just doesnt seem to be enough people here. I got the key to unlock last fall but waited to pull the trigger for a solid plan. Almost ready to find another phone now.
[Moto G Stylus 5G] n6bhu:
Bummer... I can relate; I've wanted to just give up more times than I can count in years past. Our phones are apparently "a little too new" as it were. We may have to wait a while before we get a good break in this case.

My first Android was an Alcatel 5060 -- inexpensive, as well as "refurbished" as it's known (I call it "used," or "recycled"). Very, very easy to root, even by one who didn't really know what they were doing. The two Motos that followed it (Xt1563, xt1687) took a lot more of my attention; as will this (new) one.

I haven't a lot of software development experience either; my background was originally in electronics (back in the last century). I do have extensive Linux knowledge though, and I can usually figure things out after a while, with a little luck.

We can compare notes while waiting for somebody else to shed a little insight on things; for now, my guess is that this particular phone is somewhat more of a challenge even for developers. (It wouldn't be the first time Motorola made a kloodgy product; they've done so throughout the years, including with some of their commercial radio gear.) My wife's Moto Edge (xt2113-2 racer) was a pretty funky phone... easy enough to root, and a problematic phone, rooted or not.

We'll figure this stuff out.☮
[Moto G Stylus 5G] rei20:
Is there a GSI for penang Europe? My software channel is actually retgb, but the build number seems the same as the europe version https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-T1TP33.75-96-1

What's the advantage of flashing a GSI? Does it remove the bloatware?
[Moto G Stylus 5G] careloads:
Yeah depending on version and your definition of bloatware. Pretty sure Gapps are a separate flash. Check first bunch of posts for GSI info. I consider Gapps to be bloat.
[Moto G Stylus 5G] n6bhu:
Yes, Gaaps is both bloatware AND malware. Just checking-in; still doing some research before I dig-in... ☮
[Moto G Stylus 5G] eriklion:
Android 14 has been released for this device. I'm encountering an error saying that the package could not be verified. OTA

The version is U1TPN34.26-78.

Coming from T1TPNS33.58-94-4

Lmsa/smart rescue won't download the newer version as it's not on it yet.
[Moto G Stylus 5G] nbtort:
I'm getting that error too... Could it be that the bootloader is unlocked?
[Moto G Stylus 5G] eriklion:
I restored with a stock rom(no wipe)(Downloaded with LMSA and flashed manually with fastboot), it seems that it could detect that it was rooted, even though the stock boot image was restored. It's running 14 now.

XT2313-6 RETUS

PNANGN_G_U1TPN34.26_78_subsidy_DEFAULT_regulatory_DEFAULT_cid50_R3_CFC.xml.zip is the rom.
[Moto G Stylus 5G] nbtort:
Was about to start working on my phone to get 14 but realized I need Windows to run it... Guess this'll be an all day thing to get going haha
[Moto G Stylus 5G] xin123:
motog 5g 2023. do I have to register the warranty to get the OEM unlocking to be un-gray? thx
[Moto G Stylus 5G] n6bhu:
With regard to the greyed-out 'OEM-unlock' switch:

I assume that your Moto G 5G is new... in that case, one must first put the phone into service (i.e. add SIM, "connect it to the internet") and leave it connected steadily to the internet for seven days (or so they say); this worked for me, although I was a bit skeptical at first.

"And on the seventh day, God un-greyed the 'OEM-unlock' switch..." (I'm kidding of course, the others were right). I still have yet to find a TWRP-image or Lineage ROM for it however; hence, my appearance here. (I actually prefer Arrow OS, but they seem to have lost intrest as of late.)

P.S. Motorola makes it clear that obtaining the unlocking-code for the bootloader is the delineation (from their perspective) that you have unlocked the bootloader (i.e. your warranty ends there, irrespective of whether or not you have actually unlocked the bootloader). Nothing has ever stopped me from rooting all my previous Androids -- a voice in my head tells me "just do it!" Good luck, and keep in-touch.
[Moto G Stylus 5G] xin123:
but I am using wifi and not mobile data, because I only have 1GB to use for 2 years.. not sure if that would work..
[Moto G Stylus 5G] n6bhu:
Wifi ought to be sufficient. The connection to your mobile carrier, alone I would imagine is analogous to your phone's being "active." (And, perhaps not all carriers operate/function in exactly the same manner, but for what it's worth my Moto-G/'23 doesn't seem to use any data 'til I'm downloading appreciably-sized files/data.)
[Moto G Stylus 5G] xin123:
arrgh have to kill the battery by leaving it plugged in charged 100% for 1 week to keep it always on..
[Moto G Stylus 5G] n6bhu:
These phones have 'adaptive charging' (and I don't really know how well it works to be honest; I played with the 'ACC' module in Magisk -- "Advanced Charging Control" with my Moto G5 Plus, and it always seemed to under-charge the battery no matter what I did with its settings.

I don't think you'll cook your battery. Particularly, henceforth -- you probably have just a few days left before your greyed-out 'OEM-unlock' switch becomes active. Only after several months of leaving the phone plugged-in to the charger regularly would it likely degrade your battery.
[Moto G Stylus 5G] xin123:
the popup full screen or notification for system update is so easy to accidently press yes

motorola software update (blocked by your it admin

disable notifiations grayed out

does this work?

https://www.reddit.com/r/MotoG/comments/zk4m5b
or do I have to wait for the OEM thing beforehand ? thx

so locked, why android.. I thought ios was locked now its the same with android
[Moto G Stylus 5G] xin123:
why the motorola shows 5g icon but samsung a13 5g doesn't show 5g icon? both is connected to 5g NSA
[Moto G Stylus 5G] n6bhu:
Until you root your phone, one must assume that its features/functions are/have been "idiot-proofed" as it were. (The term "idiot-proof" came from 'Mad Magazine' back in the 60s when I was a kid. Many steps have been taken with Androids so users can't mess things up with their mere curiosity while tinkering -- believe me, I've tried.)

You ought to be able to upgrade your phone while awaiting further links, instructions, et al to compromise Google's "stranglehold" on your phone (sorry about the Ted Nugent reference... "Stranglehold" was his big hit back when I was around nineteen).

A few days ago, my phone offered me 'Android 14' so I took it. My reasoning was that it's "only temporary" like everything else (particularly when my reasoning is also inclusive of going with an entirely new ROM whenever I can grasp my fingers around it, and give Google the gate). Keep digging, that's how one gains such knowledge.
[Moto G Stylus 5G] careloads:
I never did unlock my bootloader and just took the update. One of my major issues with this phone was that Macrodroid couldnt fire my hotspot at all, a deal breaker when combined with other connectivity annoyances. Now with A14 Macrodroid Enable Hotspot appears to be working....after I ditched this thing and went back to an old fav, the Moto Z4. I am willing to try dev experiments now that this is a backup device so feel free to reach out if anyone needs testing.
[Moto G Stylus 5G] n6bhu:
I have yet to unlock my bootloader; though, I have Motorola's blessings to do, which is what matters most. (I'm rather surprised that nobody has a ROM for this phone yet; its current hardware variant I understand is still somewhat new, and it may also be a bit more of a challenge to build a new ROM for this phone, in particular. We'll see.)

If I can get a TWRP image (that works) for it, I can still install Magisk -- then it's up to me to butcher the existing ROM until I can replace it with something a little more tricked-out. Which is hat I did to my first Android -- an Alcatel 5060, and later, my Moto X Play (though I later replaced the stock ROM with Lineage.)

Initially, I installed Arrow OS on my Moto G5 Plus, then later I tried Lineage -- I decided that I liked Arrow OS better (for various reasons) and, after "something strange" happened I reloaded Arrow OS. (Just a side-note: the Moto G5 Plus was a rather oddball piece of hardware, apparently; I would still be using it now had the power-switch not "caved-in" and collapsed, making it impossible now to turn it back on, henceforth. Bummer.)☮
[Moto G Stylus 5G] DrinkingSubset:
Thank God you’re working on this phone because I’ve gone through the same issues but I did have someone help me with TWRP and got it to run, but yet not writable.
[Moto G Stylus 5G] 1337haXXor:
So I have mine unlocked and rooted and it's been.. Fine. Can't say the phone is great. I've always gotten used flagship phones, but I don't do anything super intensive anymore like gaming, so I figured I couldn't go wrong with a brand new mid-tier phone. Man, this phone is slow.. Whatever, either way.

I have the XT2315-1, bought directly from Motorola's website, factory unlocked. On lolinet, what does that make it? I did it months ago and have a useless memory, I see saved in a folder I have: XT2315-1_GENEVN_SPECTRUM_13_T1TGNS33.60-55-3-3_subsidy-SPECTRUM_regulatory-DEFAULT_cid50_CFC.xml and GENEVN_G_T1TGNS33.60_55_3_3_subsidy_DEFAULT_regulatory_DEFAULT_cid50_CFC.xml. I believe the second one is my phone's backup, and I flashed the SPECTRUM one?

Annnnnnnnnyway, sorry, to the point. I'm on a way old version, I'm wondering if any of the OTA system updates actually fixed anything or made the phone better, and I was wanting to update it. I blocked the com.motorola.ccc.devicemanagement and the other ones involved with OTAs, so I haven't gotten the message. So questions.

* Should I have used the SPECTRUM one? Or was I supposed to use a different one?

* If I used the wrong one, can I update using the correct one now, or should I stay on the SPECTRUM one to avoid issues?

* Lastly, what's the process? Can I just re-enable OTA updates and do it that way, or do I have to download the file and flash it with TWRP?

Thanks!
[Moto G Stylus 5G] hazmat42:
So if you bought the phone unlocked from Motorola you should have used the RETUS (assuming you live in the US or have a US phone) or RETCA (if Canadian). I believe that it can be fixed by going back and flashing the correct files, although if everything is working then maybe just leave it. As for the OTA updates, if you don't care about root I believe you can just re-enable them although if you want to keep root you'll need to go about it quite different. Basically you'll go into magisk, remove root, update and reboot. There is a guide around here somewhere.
[Moto G Stylus 5G] 1337haXXor:
Thanks for the info.

Yeah, I'd like to do a system update, then re-root.

So now that I flashed the SPECTRUM version, if I reenable OTA updates, will the updates be the SPECTRUM line, or will it send me the one I was supposed to use, RETUS?

Or should I just get the most current RETUS version and flash directly to that (then root the boot.img)?
[Moto G Stylus 5G] hazmat42:
hmmmmm......those are some damn good questions!!!

So i just started poking around in my newly rooted Moto G Stylus 5g 2023 (not the exact phones, but close enough to make some educated guesses) with termux to see what I could find. build.prop was my first stop. I believe that whatever is listed as .fingerprint is going to the one that will be sent to you. If it were me, and I could be wrong, I would go back to RETUS. I feel that is your best bet.

So i rooted my phone by flashing TWRP, using adb to pull my boot.img, and installing it with magisk. For my updates Ill be do exactly the method I mentioned to you unless I go with a custom ROM or GSI, which Im sure I will. Anyway, please keep me informed on what happens!
[Moto G Stylus 5G] 1337haXXor:
Yeah, in my mind, I'll reboot to TWRP, dirty flash the newest RETUS zip, and boot it root-less. Then I'll patch the boot img with Magisk and reboot. So that'd make me on the newest update (February or so), and rooted.

But.. I forget. Will this wipe my data? Trying to remember if I need to backup my pictures/downloads and such.
[Moto G Stylus 5G] xin123:
does rooting make me need to erase the phone's contents? thx
[Moto G Stylus 5G] 1337haXXor:
So I followed the steps, got the Evolution img, but when I get to the part of flashing the system, I get FAILED (remote: 'Not enough space to resize partition').

So then I tried the "slim" Evolution GSI, which got further, but at the first step I got: Writing 'system_a' FAILED (remote: 'No such file or directory').

What do I do? And now that I've wiped product_a, what happens if I just try to boot? Will it bootloop/error out then boot to partition b, since I copied it? Or am I stuck here until I fix this?

EDIT: Okay, I started over, reflashed the entire stock image from loli. Made sure it booted properly and everything seemed good. Followed the steps, but still stuck, though this time a step or so later. When flashing the system, this is what I get:

Resizing 'system_a' OKAY [ 0.026s]

Sending sparse 'system_a' 1/17 (262116 KB) OKAY [ 6.197s]

Writing 'system_a' FAILED (remote: 'No such file or directory')

fastboot: error: Command failed

So the resizing works, sending works, but it just won't write it?