[Moto G Stylus 5G] Pysis:
Didn't find an exact section for it.

List:

Moto G Stylus 5G

Moto G Stylus (2021)

Moto G Stylus (Moto G Pro)

This seemed the closest, as it is how I bought the phone from Amazon using the selector: https://www.amazon.com/Stylus-Unlocked-Motorola-512GB-Camera/dp/B0CBNLS6BD/

Motorola Moto G Stylus | 2022 | Unlocked | Made for US 4/128GB (XT2211-2)

Operating System Android 10.0

Cellular Technology 4G / 3G

Memory Storage Capacity 4 GB

Screen Size 6.8 Inches

Wireless network technology GSM, CDMA, LTE

I want to install new a OS/CFW/Rom/LineageOS/bootloader/twrp to have more control of the device, remove bloatware, improve performance, enhance security and privacy, etc.

Didn't see an entry in these lists:

https://wiki.lineageos.org/devices/

https://twrp.me/Devices/

Tried following these guides, but didn't work, or not the exact model:

https://www.getdroidtips.com/lineage-os-19-moto-g-stylus-5g/

https://www.getdroidtips.com/twrp-recovery-moto-g-stylus-5g/

https://xdaforums.com/t/rom-official-los-modded-19-1-discontinued.4392453/

https://xdaforums.com/t/discontinued-recovery-unofficial-twrp-3-6-2-12_1-for-denver-osaka.4360767/

https://xdaforums.com/t/latest-reco...oto-g-stylus-5g-2021-xt2131-1-denver.4494683/

Not familiar with terms or products such as crossflash, LMSA, RETUS, and others. I just prefer the ones I have mentioned here.

Without further progress, may just re-lock the bootloader and continue using the OEM OS, possibly with rooting and other apps/changes to improve device usage that way.

Important Messages:

> adb devices -l

... device usb:...X product:milan_g model:moto_g_stylus__2022_ device:milan transport_id:#

> fastboot devices -l

... fastboot usb:...X

> fastboot oem unlock (pbp)

(bootloader) Bootloader is unlocked! Rebooting phone

OKAY [ 21.829s]

Finished. Total time: 21.830s

> fastboot -w

Erasing 'userdata' OKAY [ 0.575s]

Erase successful, but not automatically formatting.

File system type raw not supported.

Erasing 'metadata' OKAY [ 0.007s]

Erase successful, but not automatically formatting.

File system type raw data not supported.

Finished. Total time: 0.587s

> fastboot flash boot (pbp)

Warning: skip copying boot_a image avb footer (boot_a partition size: 33554432, boot_a image size: 100663296).

Sending 'boot_a' (98304 KB) OKAY [ 2.536s]

Writing 'boot_a' (bootloader) Preflash validation failed

FAILED (remote: '')

fastboot: error: Command failed

boot_a

> pbp | numfmt --to=iec-i

32Mi

Lineage-Rec-Boot.img

> file (pbp)

...:Android bootimg, kernel (0xb84f18), ramdisk (0x62c)

twrp-3.6.2_12.1-BETA-V1.img

> file (pbp)

...: Android bootimg, kernel (0x1a4b5b1), ramdisk (0x62c)

osaka-ofox.img

> file (pbp)

...: Android bootimg, kernel (0x2278cbf), ramdisk (0x62c)

<all>

> stat -c '%s' (pbp) | numfmt --to=iec-i

96Mi

> fastboot flash recovery_a (pbp)

Sending 'recovery_a' (98304 KB) OKAY [ 2.559s]

Writing 'recovery_a' (bootloader) Invalid partition name recovery_a

FAILED (remote: '')

fastboot: error: Command failed

> fastboot flash recovery_b (pbp)

Sending 'recovery_b' (98304 KB) OKAY [ 2.223s]

Writing 'recovery_b' (bootloader) Invalid partition name recovery_b

FAILED (remote: '')

fastboot: error: Command failed

> fastboot flash recovery (pbp)

Sending 'recovery' (98304 KB) OKAY [ 2.219s]

Writing 'recovery' (bootloader) Invalid partition name recovery

FAILED (remote: '')

fastboot: error: Command failed

> fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: MBM-2.1-milan_g-d0c05a0a6b-230402

(bootloader) product: milan

(bootloader) board: milan

(bootloader) secure: yes

(bootloader) hwrev: PVT

...

(bootloader) storage-type: eMMC

(bootloader) emmc: 128GB SAMSUNG DV6DBB RV=08 PV=00 FV=0000000000000002

(bootloader) ram: 4GB SAMSUNG N NVM DIE=1Gb M5=01 M6=08 M7=00 M8=12

(bootloader) cpu: MT6769V/CZ

(bootloader) securestate: flashing_unlocked

(bootloader) factory-modes: disabled

(bootloader) iswarrantyvoid: yes

(bootloader) max-download-size: 134217728 (128Mi)

(bootloader) reason: Reboot mode set to fastboot

(bootloader) date: 06-15-2023

(bootloader) sku: XT2211-2

(bootloader) carrier_sku: XT2211-2

(bootloader) ro.build.fingerprint[0]: motorola/milan_g/milan:12/S3RDE32.

(bootloader) ro.build.fingerprint[1]: 123-37/e19b1:user/release-keys

(bootloader) ro.build.version.mtk: alps-mp-s0.mp1.tc2sp-V2.280

(bootloader) version-baseband: MT6769P_TC2.PR4.SP.V1.2.P29.03.26R

(bootloader) kernel.version[0]: Linux version 4.19.191+ (nobody@android-

(bootloader) kernel.version[1]: build) (Android (6443078 based on r38390

(bootloader) kernel.version[2]: 2) clang version 11.0.1 (https://android

(bootloader) kernel.version[3]: .googlesource.com/toolchain/llvm-project

(bootloader) kernel.version[4]: b397f81060ce6d701042b782172ed13bee898b7

(bootloader) kernel.version[5]: 9), LLD 11.0.1 (/buildbot/tmp/tmp6_m7QH

(bootloader) kernel.version[6]: b397f81060ce6d701042b782172ed13bee898b79

(bootloader) kernel.version[7]: )) #1 SMP PREEMPT Sun Apr 2 13:37:34 UTC

(bootloader) kernel.version[8]: 2023

(bootloader) frp-state: no protection (0)

(bootloader) ro.carrier: retus

(bootloader) current-slot: a

(bootloader) running-boot-lun: 1

(bootloader) running-slot: _a

(bootloader) slot-successful:_a: yes

(bootloader) slot-successful:_b: no

(bootloader) slot-bootable:_a: Yes

(bootloader) slot-bootable:_b: Yes

(bootloader) slot-retry-count:_a: 1

(bootloader) slot-retry-count:_b: 7

(bootloader) slot-suffixes: _a,_b

(bootloader) slot-count: 2

(bootloader) pcb-part-no: SB28D28307

(bootloader) is-userspace: no

(bootloader) is-logical:

all: listed above

Finished. Total time: 0.015s