yashsingh1/xdaforums huggingface dataset:
[Moto G Stylus 5G] Electimon:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

LineageOS Modded is a free, community built, aftermarket firmware distribution of Android 12 (S), which is designed to increase performance and reliability over stock Android for your device.

LineageOS Modded is based on the Android Open Source Project and LineageOS with extra contributions from many people within the Android community.

All the source code for LineageOS Modded is available in the LineageOS Modded Github repo.

Flashing Instructions:-

1. Download the OTA zip, copy partitions zip and boot image

2.

fastboot -w

3.

fastboot flash boot Lineage-Rec-Boot.img

4. Select ADB Sideload mode in Lineage Recovery

4.

adb sideload copy-partitions-20210323_1922.zip

5. Reboot back into Recovery and Select Sideload again

6.

adb sideload LineageOS-Modded-19.1-Osaka-V2-OTA.zip

7. Enjoy!

Bugs :

Permissive

3G only on Sprint/Boost

You tell me!!!

* Drop a comment down below if you need any help, you can also Join https://t.me/electimonrel on telegram if you need any help.

Downloads:

https://1pwn.ixmoe.com/android/osaka/Lineage-Rec-Boot.img

https://1pwn.ixmoe.com/android/osaka/LineageOS-Modded-19.1-Osaka-V2-OTA.zip

https://1pwn.ixmoe.com/android/copy-partitions-20210323_1922.zip

Contributors

@Electimon, @Androbots

Source Code: https://github.com/moto-sm4350

Version Information

Status: Stable

1/23/2022: lineage_osaka-img-eng.electimon-Jan-Week3 pushed

6/13/2022: Pushed new update, 19.1 and fixed GPS!

7/6/2022: Device tree is now available to support additional development
[Moto G Stylus 5G] ArtiicPanda:
Great work 👍
[Moto G Stylus 5G] 333parad0x:
Thank you for this, you definitely made this device worth keeping
[Moto G Stylus 5G] ShayBox:
Is there anything you know of that doesn't work like calling/texting, any big deal breakers?
[Moto G Stylus 5G] Electimon:
Nothing that I know about
[Moto G Stylus 5G] ShayBox:
Wait... this says osaka not denver, is this even for the this forums device? (Moto G Stylus 5G)

Spoiler content hidden.

EDIT: The phone doesn't stay in the bootloader long enough to flash, it reboots every 30 seconds or so

EDIT2: Needs windows, linux just keeps resetting it, however now it gets to the rebooting to fastbootd step, it reboots into fastbootd (wrong product name, says osaka not denver), but fastboot update fails to recognise fastboot.

fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

EDIT3: Apparently re-running the fastboot update in the now fastbootd bootloader successfully flashes it, woo.

So I'm guessing just normal magisk to root?
[Moto G Stylus 5G] sosthenisRR:
Osaka=Denver. Denver=Osaka.

5g isn't working on some variants. Check telegram for more information on this build.
[Moto G Stylus 5G] ShayBox:
Some more bugs to add, no sound (even alarms) and can't receive calls and texts for me, boost.
[Moto G Stylus 5G] Electimon:
Can you send a logcat
[Moto G Stylus 5G] Deleted member 4197323:
Just curious -- what's the reasoning for needing to have updated via OTA at least once?
[Moto G Stylus 5G] Electimon:
From the factory Slot B partitions aren't filled so if you accidentally switch to it the SoC cannot have the secondary bootloader and you have yourself a brick
[Moto G Stylus 5G] jdfjunk:
1. Newly bought Stylus 5g phone xt 2131 and tried to load lineage (Week 1, 2, 3)

2. bootloader unlocked

3. OTA update done (slot b filled)

4. fastboot -w

5. fastboot update lineage_osaka-img-eng.electimon-Jan-Week1.zip

6. reboot

Just getting a boot loop every time I restart it goes back to fastboot

I can get to fastbootd and have tried update their too.

Unable to load lineage

Any thoughts what i am doing wrong?
[Moto G Stylus 5G] Electimon:
Where exactly does it bootloop, do you get to see the lineage fastbootd screen?
[Moto G Stylus 5G] yapr:
i have had similar issues
[Moto G Stylus 5G] Electimon:
If you are running the fastboot update command it is normal it goes to fastbootd, watch the cmd for progress.
[Moto G Stylus 5G] jdfjunk:
it says okay for all items.

finished. then reboots and brings me back to regular fastboot.
[Moto G Stylus 5G] Electimon:
Can you show me a picture of the CMD window after it's completed? Thanks
[Moto G Stylus 5G] Electimon:
Hm, if you have the stock package handy (if not its available on lolinet) try running this command using vbmeta.img from stock

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
[Moto G Stylus 5G] jdfjunk:
ran command fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
[Moto G Stylus 5G] Electimon:
Alright try booting, I assume it flashed successfully.
[Moto G Stylus 5G] jdfjunk:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Sending 'vbmeta_b' (8 KB) OKAY [ 0.002s]

Writing 'vbmeta_b' OKAY [ 0.005s]

Finished. Total time: 0.008s

reboots to fastboot
[Moto G Stylus 5G] jdfjunk:
fastboot --disable-verity --disable-verification fl

ash vbmeta vbmeta.img

Sending 'vbmeta_b' (8 KB) OKAY [ 0.002s]

Writing 'vbmeta_b' OKAY [ 0.005s]

Finished. Total time: 0.008s

goes to fastboot at boot
[Moto G Stylus 5G] Electimon:
Anyway you can contact me on telegram?, the messages come delayed here.
[Moto G Stylus 5G] jdfjunk:
i dont have telegram. do you have signal?
[Moto G Stylus 5G] jdfjunk:
Might be related to the OTA

I saw this which looks like a flagging problem with fastboot

I tried this:

fastboot oem fb_mode_clear

but did not work.

Also saw this:

https://xdaforums.com/t/troubleshoo...-ota-update-in-moto-g4-xt1621-athene.3714325/

Troubleshooting: TWRP Boot Loop after OTA update in MOTO G4 (XT1621 Athene)
[Moto G Stylus 5G] Electimon:
Try switching to Slot A and rerunning the fastboot update command.

fastboot set_active a

fastboot update package.zip
[Moto G Stylus 5G] jdfjunk:
weird i am getting....

fastboot error: device does not support slots
[Moto G Stylus 5G] jdfjunk:
reloaded stock before trying again... problem is that I have most current image in Slot A. what is the best way to move forward since slot B is likely empty. and wont take an OTA. how can i fill slot b before loading lineage?

sorry have not done this in a while
[Moto G Stylus 5G] ShayBox:
Afaik flash back to stock with smart assistant and do an OTA update to populate slot b
[Moto G Stylus 5G] sosthenisRR:
Also if you want to populate slot b, after flash back to full stock with smart assistant you can go into developers options and run the DSU loader. It will install a GSI or gsi/gsm ROM to slot b. Then complete your objective then fastboot -w that should fix the population issues.
[Moto G Stylus 5G] AZsuperuser420:
After using recovery assistant you can fastboot flash boot_a to boot_b etc without even backing up stock to your PC. Recovery done with windows 10/11, fastboot etc on Ubuntu. Only GSI I have ever gotten to work on Denver is the aosp unmodified one
[Moto G Stylus 5G] SAR420:
to install i boot directly to twrp recovery. advanced wiping the data works flawlessly as well as other functionality within twrp, however when i attempt to install the zip, it returns with:

Invalid zip file format!

Error installing zip file '/sdcard/lineage_osaka-img-eng.electimon-Jan-Week3.zip'

lack of information with error is frustrating. does anyone know why it could be doing this or any potential fixes? ive already tried unzipping and rezipping file. adb sideloading was a potential fix online but those tutorials were quite confusing. thanks all
[Moto G Stylus 5G] yapr:
i have bootloader
[Moto G Stylus 5G] yapr:
lets try again...

I have the bootloader unlocked but I'm getting a preflash validation fail. I don't understand why this error has occurred nor how to fix it. I did look and some older phones had this error but the files to correct it are not available anymore. My bootloader was unlocked using Motorola's website. All attempts to load lineage have failed due to this free flash validation error. I have no problems stock but I am confused load lineage and overcome this problem. Anyone have any ideas?
[Moto G Stylus 5G] Electimon:
Imagine not reading the installation instructions
[Moto G Stylus 5G] Electimon:
try

fastboot --disable-verity --disable-verification vbmeta vbmeta.img using vbmeta.img from your stock package
[Moto G Stylus 5G] SAR420:
my apologies, i was using other guides online in conjunction with this zip file. i was trying to find the solution to my problem everywhere else except there jeez what a blunder... tysm for the help and the rom
[Moto G Stylus 5G] koyo:
Hey Electimon, I have a request: For the next weekly, can there be a build without Gapps? I want to install the nanodroid package instead of using gapps but they cannot coexist
[Moto G Stylus 5G] yapr:
hi

lineage boot problem

posted by in twrp in case as well in case my error was there.

i see i have similar problem to another member. i have lineage installed via directions. no errors. lineage recovery works. kernel installed. magisk installed. but....

lineage will not boot

i have tried :

1. reinstalling lineage many times

2. fastboot -w then fastboot update xxxx

3. fastboot oem fb clear

4. fastboot --disable-verity --disable-verification flash vbmeta

5 reinstalling stock then back to lineage install.

6. even aosp does not load

7. i do occassionally see an error in twrp if i try adb sideload but am able to adb sideload in fastboot d.

any ideas how to allow for boot lineage or how to diagnose? maybe file or partition messed up?

i use linux or can use windows to troubleshoot.

i appreciate any help possible
[Moto G Stylus 5G] Electimon:
Try without magisk
[Moto G Stylus 5G] yapr:
i already did
[Moto G Stylus 5G] jdfjunk:
so i believe this error is related to the fact that the phone updated to android 12. essentially, it takes my oem/bootloader unlocked phone and locks it to android 12.

my guess as to why phone wont boot lineage:

flashing manually bootloader shows preflash validation error which probably indicates that the flash is seeing the files as older.

i cant load android 11 stock through rescue and recovery and when i do it manually i get preflash error.

two questions:

are there additional steps to get this lineage working on android 12

or

is there another way to downgrade to android 11?
[Moto G Stylus 5G] Electimon:
Nah i just don't like the codename Denver so I name my stuff Osaka. I'll look into that data issue.
[Moto G Stylus 5G] Jo233:
can confirm that I had the same issue. Reverted back to stock until it's fixed
[Moto G Stylus 5G] ST Dog:
Do you have any reports of it working with Verizon? Particularly that VoLTE is functioning?

I've never been able to find stuff on telegram.
[Moto G Stylus 5G] erectfy:
The download link is dead!
[Moto G Stylus 5G] ShayBox:
1pwn.ixmoe.com
[Moto G Stylus 5G] Gravy_570:
Don't know if you tried this yet, but figured I'd throw my 2 cents in to try and help

fastboot oem config bootmode normal
[Moto G Stylus 5G] assolimany:
F:\moto\xt2131\blankflash_from_RRES31.Q2-11-61-4-2>fastboot update F:\moto\xt2131\lineage_osaka-img-eng.electimon-Jan-Week3.zip

target reported max download size of 788199424 bytes

archive does not contain 'boot.sig'

archive does not contain 'recovery.img'

archive does not contain 'system.sig'

archive does not contain 'vendor.sig'

--------------------------------------------

Bootloader Version...: MBM-3.0-uefi-70b09d38a0-220131

Baseband Version.....: M4350_HI405_19.533.01.95R DENVER_TMO_CUST

Serial Number........: ZY22CZG8P8

--------------------------------------------

checking product...

OKAY [ 0.002s]

sending 'boot' (98304 KB)...

OKAY [ 2.246s]

writing 'boot'...

OKAY [ 1.514s]

sending sparse 'system' (720896 KB)...

OKAY [ 24.807s]

writing 'system'...

(bootloader) Preflash validation failed

FAILED (remote failure)

finished. total time: 28.784s

F:\moto\xt2131\blankflash_from_RRES31.Q2-11-61-4-2>
[Moto G Stylus 5G] RTVance:
What is the status of this mod on verizon?

Thanks
[Moto G Stylus 5G] jhjhjhjhjhjh:
Edit no one posted if the method I used worked but one person.

Seems the developer and or weekly testers are on telegram therefore no support here on xda for this rom., .answers like I'll get to it when I have time is so disrespectful, as if someone begged anyone..lol..

Well I'm off this thread.
[Moto G Stylus 5G] DragonfireEX402:
Good to hear the 5G is working on the custom ROM. I've wanted to try it since almost a week ago, but was hesitant to install because of said issue. Will try installing now.
[Moto G Stylus 5G] dever76:
Thanks for this addition. Quick question, should I be flashing in fastboot or fastbootd?
[Moto G Stylus 5G] jhjhjhjhjhjh:
edit
[Moto G Stylus 5G] dever76:
After a successful install of @Electimon custom LineageOS 19 on a Moto G Stylus 5G RETUS. I've had a few minor functionality issues. Otherwise it's been very stable on 5G, wifi, & calls. All cameras work, minor bug with choppy recorded video playback is present.

The following don't work for me:

GPS (satellites don't lock), all Location settings were toggled on.

LineageOS Mod Settings problems: No battery percentage when toggled to show it in Battery Status Style, does not change to icon to circle if toggled also. Status bar Clock Position isn't working. Doesn't seem like anything in Status Bar & Buttons works. Navigation bar mods work.

SafetyNet Passes Basic integrity - Fails CTS profile match (tried kdrag0n's Universal SafetyNet Fix 2.2.1 on Magisk 24.3, as well as various fingerprints in MagiskHide Props Config, with all prop values active, also used the Zygisk Enforce DenyList for Google Play Services *gms & *unstable, & Google Play Store methods), none worked for me.

GPS is the main drawback for me using it as a daily.

Any idea what I can do to get GPS working?
[Moto G Stylus 5G] Sandmandrew:
Hello. if you're still having issues with it saying remote failure, try changing your adb fastboot operation. i opened powershell in the same folder as the rom but it didn't like it. Start in platform tools folder with cmd and move rom inside of that folder to update
[Moto G Stylus 5G] Electimon:
I'll check when I get the time
[Moto G Stylus 5G] dever76:
Just to let you know what I've tried.

Replaced gps.conf izat.conf & flp.conf in /vendor/etc/ using this threads fix.

https://xdaforums.com/t/moto-g5s-plus-gps-fix-for-custom-roms.3953378/#post-80071118

It didn't work.

Of note, when I use GPS Test app, it says "This device doesn't have GPS".

Looking forward, let me know if you want me to test anything else out.

Thanks.
[Moto G Stylus 5G] PoochyX:
Has 5G gotten fixed on here yet ?
[Moto G Stylus 5G] SecretV:
I've been testing this all day. Got it installed on my Metro version of this phone. I was able to get 5G working after following an ever increasing chain of guides. First I had to root stock by flashing a patched boot.img then I had to pull persist.img, then flash this rom patch the boot.img on this rom to get root, then put my original persist.img into this rom. Install magisk, install VoEnabler module and then run this through elevated adb shell setprop persist.sys.phh.ims 1

I was never able to get GPS to work. Tried custom gps.conf file, tried a module, and nothing. GPS works with stock so I'm not sure what gives.

The rom feels great for daily tasks, but without a working gps I'm going to have to pass on this for now as a daily.
[Moto G Stylus 5G] dever76:
Been running it a week now, & it's been very stable with no problems aside from GPS. GPS not working is big one though, wish I knew how to fix it or what path to follow.
[Moto G Stylus 5G] yoshi00178:
My phone got stuck on waiting for devices after it loaded into fastbootd, i have motorola drivers installed and i made sure i followed the guide, i also tried to do more then 1 image just to make sure and got the same results
[Moto G Stylus 5G] yoshi00178:
how did you get it to run in fastbootd? once i get into fastbootd, windows says i dont have drivers for it but in normal fastboot it works fine and it connects properly
[Moto G Stylus 5G] dever76:
Are you using the latest version of the android SDK?

If not, update it to the latest. Make sure the SDK executables are in your current PATH in your command prompt environment variables.

I never really did anything in fastbootd to get LineageOS installed. It does boot into fastbootd on its own during the flashing process of LOS, but you don't have to do anything in it.

Be sure to populate the second slot, slot b by installing an image via DSU Loader in Developer Options, before attempting a flash. This is much quicker than doing an OTA update to populate slot b.
[Moto G Stylus 5G] yoshi00123:
I'm pretty sure I'm using the newest one, I downloaded it the day I tried it since it was a new computer, and I've messed with custom rims before I'm pretty sure it's in the right area but I'll double check to be safe
[Moto G Stylus 5G] dever76:
5G works for me on a RETUS version, cid was 0x0032. I use Tmo.
[Moto G Stylus 5G] dever76:
If all of the SDK stuff is right, I'd suggest using the Lenovo tool to "Rescue" back to stock, populating slot b with DSU Loader, boot into Android 12 GSI Arm64 once, then follow Electimons instructions.
[Moto G Stylus 5G] yoshi00123:
My phone only has android 11 right now
[Moto G Stylus 5G] roiikka:
This might be a noob-ish question (intermediate modder here), might not be but .. is this compatible with the Stylus 2021 also ? I have the Minsk one not the 5G version. Just asking cuz I use Samsung ROMs too and they're combined sometimes. I.E. - Galxy S5 KLTE Lineage OS ROMs are all in one install now. Thanks in advance by the way for any pointers, tips, etc. I have SmartPack manager on it now on Performance CPU governor and it's still laggy-ish ..

These are nice devices I just got mine from a shop and thought the 5G ROM was the 2021 one only to find out they're separate devices after buying it. Mine's rooted, Magisk, Viper4Android, bootloader unlocked, etc. The works. Yet stock, still. I want to keep it cuz I use the stylus for sketching my inventions in the future but I don't want to buy a whole other Stylus just to get a ROM for it.

Out of luck ?

Thanks .. - Roiikka -
[Moto G Stylus 5G] roiikka:
I have the factory unlocked unbranded one btw
[Moto G Stylus 5G] Electimon:
No, Minsk uses a different CPU
[Moto G Stylus 5G] roiikka:
Ok! Great. That explains it. Thanks!
[Moto G Stylus 5G] TheBumWhoTouchedBums:
so i downloaded the aosp march one and its just stuck on a screen that says android..... any advice?
[Moto G Stylus 5G] hawk1500:
I was only able to get the LOS one to work.
[Moto G Stylus 5G] Electimon:
Pushed Update
[Moto G Stylus 5G] I am cat:
Can someone make like a video of showing how it looks like when you install it?
[Moto G Stylus 5G] cody8279:
Since installing this update, I am unable to play media through Bluetooth, tested on different playback devices to make sure.
[Moto G Stylus 5G] Electimon:
Thank you for the report, I will investigate.
[Moto G Stylus 5G] chip71513:
cant seem to get it to boot even after returning to firmware and then applying instructions in op. It suceeds in updating but then gets to the bootlogo and returns to the bootloader
[Moto G Stylus 5G] jpearson82:
Any fix yet on the Boost mobile 3G issue?
[Moto G Stylus 5G] winocelot:
my phone just reboots to the bootloader, i did everything in the steps.
[Moto G Stylus 5G] jpearson82:
Same here, but mine reboots to fastboot and that is as far as I can get.
[Moto G Stylus 5G] winocelot:
i just decided to use stock android with root instead.
[Moto G Stylus 5G] nibake:
+1
[Moto G Stylus 5G] nibake:
Although I really would like to give lineage a spin so I'm going to hold out hope for some help either here or telegram :cool:
[Moto G Stylus 5G] winocelot:
Same
[Moto G Stylus 5G] jpearson82:
Thank you to nibake i was able to get this working!
[Moto G Stylus 5G] footjobs:
This is great good work! I have a slight issue tho is there any way to fix a error for ex kernel manager I'll show you in the picture what I mean. It says the system file manager isn't enabled when I try to choose directory is there any work around? Or fix?
[Moto G Stylus 5G] Kalel888:
How do I install this with twrp and where do I find the microg apps?
[Moto G Stylus 5G] yoshi00178:
no matter what i do i cant get it to actually boot, it always just goes back to the bootloader after i do all the steps
[Moto G Stylus 5G] Electimon:
I'll look into this, I have people who have successfully flashed them
[Moto G Stylus 5G] yoshi00178:
yea whenever i would try, it would stop at 47% and then stop and says its done, but it wont boot, i can send logs if need be
[Moto G Stylus 5G] footjobs:
its because he has not fastboot flash ota your week3 lineage hes sideloading on stock rom
[Moto G Stylus 5G] winocelot:
maybe its a problem if you're phone was from a carrier. since it happens to me on a spectrum moto g stylus 5g
[Moto G Stylus 5G] duffman452001:
I too am running into this issue on a retail device that was just recently flashed with the official A12.
[Moto G Stylus 5G] lucidweaboo:
I followed the directions and successfully installed the 19.1 LOS version; however, I've run into issues including the camera app crashing once I take a picture, an error saying that a rear camera is no longer functioning, Bluetooth being able to connect but no audio gets through, video stutters when rotating to landscape mode, and settings crashing as soon as I try to open an apps info. Also, the status bar isn't quite big enough to fit the hole punch, but I can live with that tbh. Idk if this is happening to anyone else or if it's a one-off occurrence? I've also reinstalled it twice already with all issues still present. Any help would be appreciated 👍
[Moto G Stylus 5G] Electimon:
7/6/2022: Device tree has been pushed to org
[Moto G Stylus 5G] jpearson82:
What does that mean if you don't mind me asking?
[Moto G Stylus 5G] Electimon:
You can use the trees used to build this ROM to build other roms
[Moto G Stylus 5G] jpearson82:
Ok I installed the Lineage Week 3 package. But I am not sure how to install the OTA update. I would appreciate anyone's help.
[Moto G Stylus 5G] jpearson82:
When installing the OTA update, I get stuck in a boot loop. I would appreciate anyone's help.
[Moto G Stylus 5G] SuperTechno2004:
Cool! Would this work on the 2020 variant of the G Stylus?
[Moto G Stylus 5G] nibake:
I would highly recommend against this unless you have no other option. The instructions do not work. They will bootloop your phone. If you put in the effort into finding out the right way to install the ROM (or I can send you good instructions if you insist) you will not be able to install the OTA, it will bootloop your phone. Without the OTA you will have a phone with mobile data that cycles unreliably between everything from H to 5G. GPS will also be inaccurate. Unreliable data and inaccurate GPS and updates not working. Did I mention poor/no support? If that sounds like something you want, I will send you instructions for the install that work. If not, you should try for a different model for now. I just finished up setting myself up on a different model now and the experience is a night and day difference. Using this ROM on the 5G Stylus is just on all around bad experience, however, on the other phone which I recently ordered, installing and using Lineage has been a lot of fun.

Did I mention support for this model is not there? How long has this thread been up with instructions that, when followed to the letter, will bootloop your phone? That's a real disservice to the community if you ask me.
[Moto G Stylus 5G] Electimon:
No it won't only the 5G 2020 variant
[Moto G Stylus 5G] Electimon:
Yes this ROM is discontinued
[Moto G Stylus 5G] camljh:
why discontinue? i want to install custom rom