2024年12月

https://bbs.ixmoe.com/t/topic/27722

Motorola 比较重要的两个分区,一个是 CID 分区,主管设备能刷入哪些固件,一个是 persist 分区,主管出厂的一些数据,例如 IMEI、蓝牙,WIFI MAC 地址、设备 SN 等参数。

解锁 BL 了以后,建议先将这两个分区备份了。那该如何备份呢?下面就推荐几种方法。

先 ROOT,可以看 Magisk 通用 ROOT 文章。

一、在手机中直接备份:

1.1 下载并安装 MT 管理器,授予 MT 管理器 ROOT 权限(主要是这个软件比较火,当然用 R.E. 管理器或者 SE 管理器也行)。

1.2 操作栏左边,打开 /dev/block/bootdevice/by-name/ 目录,右边随便打开一个文件夹用来放置备份文件,例如 /sdcard/Download 下面。

分区映射

找到并长按 cid 文件,然后选择复制。将 cid 分区备份出来。然后再以此类推备份 persist 分区。

备份CID

二、adb 命令备份

2.1 Tiny fastboot script 打开 flash.bat 输入 nnn 后,将会打开一个命令提示符对话框。

2.2 接下来输入 adb shell,然后输入 su,这时点亮手机屏幕,授予 shell root 权限。授予权限后,$ 符号将会变成 # 号。

D:\TFS>adb shell
pstar:/ $ su
pstar:/ #

2.3 备份分区

接下来复制粘贴如下命令,

dd if=/dev/block/bootdevice/by-name/cid of=/sdcard/Download/cid.img
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/Download/persist.img

这会将分区镜像备份到 /sdcard/Download/ 下。

CID 存储了一些证书,用 16 进制编辑器可以看到里边有形如 Motorola Security Engineering Root CA 的证书文件。

persist 分区是一个 ext4 格式的分区,可以用 7-zip 软件打开查看目录。

备份出来的 CID 和 persist 分区,请妥善保管,这样就不怕因为意外搞坏手机导致无药可救了。这两个分区,是唯一的,不能用在别的手机上面,用错了可能会变砖。

也请不要修改里边任何一个字节,因为有签名验证,任何一个字节错误都可能导致备份无法使用。

https://xdaforums.com/t/moto-x40-cn-to-motorola-edge-2023-us.4604491/#post-88738363

woundman

  1. Download & Install the latest version of fastboot. Fastboot Platform Tools
  2. Download & Install the Motorola USB drivers: Motorola USB Drivers
  3. Download the RETUS ROM: RETUS ROM DOWNLOAD
  4. Enable Developer mode (Settings -> About Phone -> Tap Build Number 7 times) and OEM Unlock on your device (If it's greyed out, you'll have to wait 1-7 days)
  5. Follow the official Motorola bootloader unlock guide: Motorola Bootloader Unlock Guide
  6. After unlocking the bootloader, extract the ROM file and return to fastboot mode.
  7. Once in fastboot mode, change to RETUS by typing "fastboot oem config carrier retus".
  8. Download & install MotoFlashPro: MotoFlashPro Utility. Choose the flashfile.xml from the extracted ROM folder, and your phone will be flashed.

WARNING:

This will wipe your data. You're fully responsible for issues that may arise.

Confirmed working:

Banking apps.
Root.
4G LTE.

Not working:

VPNs are broken currently. Fix coming soon. (Source)
5G does not work.

Last edited: Aug 8, 2023

woundman

Thanks for the guide

Anything that is not working? Like the vpn in eu version?

woundman

Thanks for the guide

Anything that is not working? Like the vpn in eu version?

VPNs are broken on all branches currently. Motorola said they'll be fixing VPNs in the near future. Everything else is working perfectly.  title=

VPNs are broken on all branches currently. Motorola said they'll be fixing VPNs in the near future. Everything else is working perfectly.  title=

Can I ask if eSIM support is enabled as well?

I have a Dish/Boost (ro.carrier = boost) variant and eSIM support is disabled in RETUS and BOOST ROM but not in RETEU or RETAIL. So it looks like the block may be in the US ROMs if RETUS does include eSIM support.

VPNs are broken on all branches currently. Motorola said they'll be fixing VPNs in the near future. Everything else is working perfectly.  title=

So android auto and Google maps location history is working.

Bank apps is working (with magisk fix)

I read that Widevine is L3?

So android auto and Google maps location history is working.

Bank apps is working (with magisk fix)

I read that Widevine is L3?

And I presume Ota update would work normally to receive us version rom updates?

So android auto and Google maps location history is working.

Bank apps is working (with magisk fix)

I read that Widevine is L3?

I get L1 on mine. X40 on reteu with locked bootloader

Attachments

I read that Widevine is L3?

Moto nukes L3 immediately after bootloader unlock. This is irreversible as it's a fuse in the CPU (iswarrantyvoid).

L1 works fine.

Moto nukes L3 immediately after bootloader unlock. This is irreversible as it's a fuse in the CPU (iswarrantyvoid).

L1 works fine.

Don't know mate, mines still L1 after unlocking the bl, installing reteu and locking again

Don't know mate, mines still L1 after unlocking the bl, installing reteu and locking again

Interesting. My mistake. I remember it was on L3 earlier but I checked with RETEU again (bootloader unlocked) and it says L1 again. So maybe it's not as bad as I thought.

woundman

Interesting. My mistake. I remember it was on L3 earlier but I checked with RETEU again (bootloader unlocked) and it says L1 again. So maybe it's not as bad as I thought.

I've ran reteu, retcn and retus. They are all running L1 after bootloader unlocked / locking. I've had zero issues with L1. The phone rans fantastic on Verizon in the USA. 5G even works! 5G was not working on Verizon with reteu & retcn.

Does this work on a Boost/Dish variant and does my BL need to be unlocked for it?

I've ran reteu, retcn and retus. They are all running L1 after bootloader unlocked / locking. I've had zero issues with L1. The phone rans fantastic on Verizon in the USA. 5G even works! 5G was not working on Verizon with reteu & retcn.

Does OTA update of retus work with an unlocked bootloader? Thanks!

Does this work on a Boost/Dish variant and does my BL need to be unlocked for it?

I had to unlock.

Either way RETUS won't give you eSIM so you have to use RETEU/RETAIL if you want eSIM on dish variant.

  1. Download & Install the latest version of fastboot. Fastboot Platform Tools
  2. Download & Install the Motorola USB drivers: Motorola USB Drivers
  3. Download the RETUS ROM: RETUS ROM DOWNLOAD
  4. Enable Developer mode (Settings -> About Phone -> Tap Build Number 7 times) and OEM Unlock on your device (If it's greyed out, you'll have to wait 1-7 days)
  5. Follow the official Motorola bootloader unlock guide: Motorola Bootloader Unlock Guide
  6. After unlocking the bootloader, extract the ROM file and return to fastboot mode.
  7. Once in fastboot mode, change to RETUS by typing "fastboot oem config carrier retus".
  8. Download & install MotoFlashPro: MotoFlashPro Utility. Choose the flashfile.xml from the extracted ROM folder, and your phone will be flashed.

WARNING:

This will wipe your data. You're fully responsible for issues that may arise.

Confirmed working:

Banking apps.
Root.
4G LTE.

Not working:

VPNs are broken currently. Fix coming soon. (Source)
5G does not work.

ok, i was following the guide, but i got lost in step 7, where do i have to insert this command?

edit, nvm im an idiot. I got it after a bit, thanks for the guide

Last edited: Jan 4, 2024

wuyongchang2021

wuyongchang2021

I've ran reteu, retcn and retus. They are all running L1 after bootloader unlocked / locking. I've had zero issues with L1. The phone rans fantastic on Verizon in the USA. 5G even works! 5G was not working on Verizon with reteu & retcn.

I changed my phone from retcn to retail and relocked the BL, and would like to try openmx ROM but I am afraid to brick it because I have read that ROM changing and unlock/relock process can be made only once, otherwise the phone got bricked, is that correct?

woundman

If you relocked your bootloader and it wasn't your default ROM, you're most likely out of luck and won't be able to unlock it again. I do not recommend unlocking and relocking your bootloader (unless it's the same default ROM).

I changed my phone from retcn to retail and relocked the BL, and would like to try openmx ROM but I am afraid to brick it because I have read that ROM changing and unlock/relock process can be made only once, otherwise the phone got bricked, is that correct?

https://xdaforums.com/t/guide-root-motorola-with-magisk-unlocked-bootloader-non-twrp-method.4222583/

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Root Motorola Devices with Magisk

Note:
This method has been working with most Moto Devices that the Bootloader can be UnLocked.
If the Bootloader cannot be Unlocked this method will not work.

Please only use this as a reference. If you require more help please post in your device's forum.
Mention me with @sd\_shadow

Quick Steps

  • Unlock the Bootloader

    • Note: Unlocking will wipe Userdata
  • Install Magisk manager app
  • device_info.png
  • If Ramdisk is Yes continue to Download Firmware
  • If Ramdisk is anything else see

  • Download Firmware Rescue and Smart Assistant(LMSA)(PC)

    • If the download is newer, now is a good time to flash the update.
      The newer boot.img may not work correctly with the older software on the device.
      If you want to keep the firmware version that is on the device see Other Firmware Options
    • Other Firmware options
  • Find the boot.img or init\_boot.img in the LMSA Downloads Folder

    • C:\ProgramData\RSA\Download\RomFiles
    • or
    • "ProgramData\LMSA\Download\RomFiles\"
  • Copy boot.img or init\_boot.img to Moto Device
  • inkedscreenshot_20210813-020307_li-2-jpg.5384813
  • inkedmagisk-select-and-patch-image_li-jpg.5384835
  •  title=
  • Copy magisk\_patched.img to PC
  • Flash magisk\_patched.img
  • Reboot
  • Open Magisk manager to verify you have the current version.
  • Hide Magisk

    • If you use apps the won't work if rooted devices (Banking apps) Enable Hide Magisk
  • Safetynet fix (21 March 2022)

More

Last edited: Jul 11, 2024

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Last edited: Feb 27, 2021

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Flashing magisk\_patched.img

Change .img name to exact file name.

Code:

fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
fastboot reboot

or

Code:

fastboot flash boot magisk_patched.img
fastboot reboot

Last edited: Feb 27, 2021

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Magisk in recovery

If your device does not have ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to reboot to recovery every time you want Magisk.

When Magisk is installed in your recovery, you CANNOT use custom recoveries to install/upgrade Magisk! The only way to install/upgrade Magisk is through the Magisk app. It will be aware of your device state and install to the correct partition and reboot into the correct mode.

Since Magisk now hijacks the recovery of the device, there is a mechanism to let you actually boot into recovery mode when needed: it is determined by how long you press the recovery key combo.

This does not replace stock recovery.

Last edited: Mar 26, 2021

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Magisk

Magisk Manager is dead.​

Long live the Magisk app!​

Ever since the first Magisk release, Magisk (the core components) and Magisk Manager (the companion app) are released separately and isn't necessarily always in sync. This leads to some confusion and a lot of complexity when downloading/installing Magisk through the app. Starting from v22.0, the Magisk app (renamed from Magisk Manager) includes everything it needs within the APK itself, making installation a 100% offline process.

Custom recovery lovers, no worries! The Magisk app APK itself is a custom recovery flashable zip, just like MAGIC™ title=. Check out the updated installation guide for more info.

Last edited: Jul 21, 2021

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Last edited: Mar 26, 2021

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Wow, thanks so much for the comprehensive reply @sd\_shadow. Think I may take a look at the non-TWRP method.

Interesting that you install Magisk immediately after unlocking bootloader. I had been following these instructions: https://appuals.com/root-Motorola-moto-g5-g5-plus/ which doesn't install Magisk until after TWRP - but then you're not using TWRP!

In answer to @Wolfcity, yes I had tried reboot to TWRP, but get the following:
C:\adb>fastboot boot recovery.img
cannot load 'recovery.img': No such file or directory

I should've said, that's mostly why I figured it had failed.

I'm actually rooting to make use of Nethunter on the device. It's an old device, so not one I'll be using for any everyday apps or accounts. It'll be dedicated to Nethunter - for legit purposes only!

Root Motorola Devices with Magisk

Note:
This method has been working with most Moto Devices that the Bootloader can be UnLocked.
If the Bootloader cannot be Unlocked this method will not work.

Please only use this as a reference. If you require more help please post in your device's forum.
Mention me with @sd\_shadow

Quick Steps

  • Unlock the Bootloader

    • Note: Unlocking will wipe Userdata
  • Install Magisk manager app
  • device_info.png
  • If Ramdisk is Yes continue to Download Firmware
  • If Ramdisk is anything else see

  • Download Firmware Rescue and Smart Assistant(LMSA)(PC)

    • If the download is newer, now is a good time to flash the update.
      The newer boot.img may not work correctly with the older software on the device.
      If you want to keep the firmware version that is on the device see Other Firmware Options
    • Other Firmware options
  • Find the boot.img in the LMSA Downloads Folder

    • "ProgramData\LMSA\Download\RomFiles\"
  • Copy boot.img to Moto Device
  • inkedscreenshot_20210813-020307_li-2-jpg.5384813
  • inkedmagisk-select-and-patch-image_li-jpg.5384835
  • Copy magisk\_patched.img to PC
  • Flash magisk\_patched.img
  • Reboot
  • Open Magisk manager to verify you have the current version.
  • Hide Magisk

    • If you use apps the won't work if rooted devices (Banking apps) Enable Hide Magisk

More

Question, when I did all of this through magisk everything went swell but my moto Touchscreen stopped working but booted just fine not sure if it was a one time fluke or not gonna try again any suggestions? Should I also Flash Recovery?

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team
Question, when I did all of this through magisk everything went swell but my moto Touchscreen stopped working but booted just fine not sure if it was a one time fluke or not gonna try again any suggestions? Should I also Flash Recovery?

If the touchscreen stopped working you likely used the wrong boot.img
You don't need a custom recovery just for root.

Sweet thanks I'll look again at what I got

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Ok I see Where I messd up now looks like I used wrong channel

Flashing magisk\_patched.img

Change .img name to exact file name.

Code:

fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
fastboot reboot

or

Code:

fastboot flash boot magisk_patched.img
fastboot reboot

I can't get my pc to see the phone when the phone is in fastboot mode

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team
I can't get my pc to see the phone when the phone is in fastboot mode

See device manager, how is it listed?

@sd\_shadow My devices is edge xt2063-2 (USA,5G brand N71),It’s can't connect to chinatelecom(5G band N78)
But xt2603-3(Europe)ROM include N78 band
Can I flash XT2063-3 EU ROM on mydevices just by fastboot mode?
Or Just need modify some .img files

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team
@sd\_shadow My devices is edge xt2063-2 (USA,5G brand N71),It’s can't connect to chinatelecom(5G band N78)
But xt2603-3(Europe)ROM include N78 band
Can I flash XT2063-3 EU ROM on mydevices just by fastboot mode?
Or Just need modify some .img files

If the bootloader is unlocked, no problem.
If the bootloader is still locked, just flash the radio part.

I can't get my pc to see the phone when the phone is in fastboot modemak

Also Make sure To Update Drivers

https://xdaforums.com/t/rescue-and-smart-assistant-lmsa-motorola-lenovo-only.3951714/

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Rescue and Smart Assistant
LMSA: Lenovo's Motorola Smart Assistant (PC)
For Lenovo and Motorola Devices Only​

Rescue and Smart Assistant (LMSA) is an official tool installs on PC. Can help to manage smart device (include all Lenovo android phone, MOTO phone, Lenovo tablet ) data, flash smart device software, and more Lenovo support functions.​

Note: Most Devices Released in 2014 and Newer should be compatible. - 28 July 2021​

Note: There used to be an Update option, it was removed several years ago.​

Quick Links

Problem: Moto Phone will not update, even though you know that an update is available.​

Solution: Use the Update or Rescue option​

Problem: Device will not boot, or you lust want to reflash the firmware​

Solution: use the Rescue Option​

If you have a Verizon Branded Device You may need to use​

Moto's description of options.

  • Device Management: connect device via USB cable or Wi-Fi, and then manage Pictures, Videos,
    Music, Contacts, SMS, Files Management, Back/Restore;
  • Flash: upgrade device system software to the newest release, and even can rescue device from software caused un-operational status;

How to use Lenovo Moto Smart Assistant

Download/Install Smart Assistant on PC and User Guide (Win 10/7)

Smart Assistant App
The Smart Assistant App should install automatically after you enable
USB debugging in developer options
It may take a minute
If not install the app from mirror below.

Optional (Needed for manage Pictures, Videos, Music, Contacts, SMS, Files Management)

The PC program is not very fast,​

Be patient.​

Using Flash Rescue Option

Last edited: Jul 27, 2024

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Last edited: Apr 21, 2020

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Supported devices that can be Flashed/ rescued
Tested by me or reported by others
If your device is not listed, it may still work.

  • Moto G Plus (5th Gen S) alexmaisa
  • Moto G5 Plus - lm\_1970
  • Moto G5 - Akipe
  • Moto E 2015 Surnia/Otus - MotoJunkie01
  • Moto G 2015 Osprey/Merlin - MotoJunkie01
  • Moto G5S Plus - alexmaisa
  • Moto G6/ali/XT1925-12
  • Moto X4/payton/XT1900-1
  • Moto G7 Power/ocean/XT1955-5
  • Moto X2/ victara\_verizon / XT1096

Pretty much any device made after 2015 should be compatible. -28 July 2021

Last edited: Jul 29, 2021

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Unsupported Devices

  • Older devices
  • XT1060 Moto X 1st Gen - Rescue is Unsupported.
  • XT1768 Moto E4 Software Channel: USC - Rescue is Unsupported.
  • Moto Z XT1650 - Milad.\_.R
  • Moto G8 Play now supported -20 Sept 20

Last edited: Sep 21, 2020

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Look for downloaded Firmware in something like

Code:

 C:\ProgramData\LMSA\Download\RomFiles

You may need to uncheck

Code:

Hide protected operating system files

in View/Options/Change Folder and Search options/View

Last edited: Feb 18, 2020

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Skip Data Wipe

There is a way to flash firmware without losing data
Open LMSA select Flashing/rescue
boot the device to Fastboot mode
Connect the device to PC
Let LMSA download the Firmware
Once the firmware is downloaded, don't continue with flashing.
Open C:\ProgramData\LMSA\Download\RomFiles
Select the firmware for the device you want to flash
Open the flashfile.xml with a text editor like notepad++ (https://notepad-plus-plus.org/)
Delete this line

Code:

<step operation="erase" partition="userdata"/>

save the changes
Continue the flashing with LMSA

Note: This is not guaranteed to work
Thanks to nicolap8
How to: flash stock without losing data (without reformatting) by nicolap8

Last edited: Apr 21, 2020

Thanks for sharing. Never bothered to download this because I didn't know it had so many features like clipboard transfer, only heard of it's "Rescue" option before. With Smart Assistant 4.4.0.12 my stock rooted Moto G6 (-6 version) the flash option says "Coming soon" with a small "Go Rescue" option in the bottom. It could be my computer or the root though, because I plugged in my Moto g 2015 Osprey with Ressurection Remix Pie and it says "Coming soon" for it too, though I'm not sure if that's the ROM's /root fault. I know the flash wouldn't work with root/ but thought it would at least show the option in the windows app for the stock g6.

I was looking for an alternative to RSDLite to re-flash my g6's current firmware since some have reported it fixing the widespread lag, guess manual is my only option.

Edit: It appears the Play Store link in the OP isn't the right app, I used the ADB method to install but just figured I would mention it.

Last edited: Aug 10, 2019

Worked on my Moto Z4 xt1980-3, but was wonky at times--had to run it several times (would sometimes hang around 47%, other times said device not supported, though I had just downloaded the ROM of the supported device) but it's come through both times so far! -A

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Options have changed again.
Updated Instructions Here - 20 July 2021

Using Rescue option to Download Firmware

Open Rescue and Smart Assistant

 title=

Sign in

 title=

 title=

Compare target version with the current version, also verify that ro.carrier, and model name, and other info is correct.
If it looks good
Click the Download button.
To find downloaded firmware see post #5

 title=

Last edited: Jul 20, 2021

is it possible to use the zip file from https://mirrors.lolinet.com/firmware/moto/lake/official/ with LMSA-Tool?
If yes how? Just unzip into the folder? Many thanks in advance.
device G7 Plus RETEU3, still on August Patch (although December available), it won't update to newer patch or update to Android 10

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Tell me

Can any body tell me from lmsa is it possible z3 security patches install to z2 force ? Manually

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team

Troubleshooting

If you see this

Unable to match the appropriate firmware. Some key information cannot be read from device

Your device is unsupported, missing a Baseband, or mismatched firmware.

If the device is missing the Baseband or it doesn't match the software channel
LMSA will not be able to flash the firmware.

See these alternative options.

xdaforums.com

[Guide] Using Fastboot.exe with Motorola devices

Guide: Using Fastboot.exe with Motorola Devices If your device has its own section please post in that section. You can ping me with @sd\_shadow MediaTek or Qualcomm Chip? Do I have a MediaTek Device? see post #26 Info: If you have a MediaTek...

xdaforums.comxdaforums.com

Last edited: Mar 4, 2021

Tell me

No that isn't compatible.

Sent from my ali using XDA Labs

Tell me one thing,
Why incompatible?
Whether same specs ?
Actually when i boot my device into fastboot there is baseband number is not found ? What is that ?

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team
Tell me one thing,
Why incompatible?
Whether same specs ?
Actually when i boot my device into fastboot there is baseband number is not found ? What is that ?

The security updates can't be simply separated from the update.

The specs are very similar but there are differences
Mainly the screen
https://www.phonemore.com/compare/p...b-vs-motorola-moto-z2-force-xt1789-01/8729308

Sounds like you flashed the wrong firmware.

Sent from my ali using XDA Labs

Does the upgrade flash delete data like it claims it does? Z2Force, and Z4

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team
Does the upgrade flash delete data like it claims it does? Z2Force, and Z4

There is a warning to backup data, but
I have uipdated a Moto G6/ali/XT1925-12 , Moto X4/payton/XT1900-1, and Moto G7 Power/ocean/XT1955-5
Without data wipe.
I do recommend using the LMSA backup option, just to be safe.

Moto g8 play bricked ( XT 2015 -2 )

Funciona com moto g8 play (Xt 2015 2)?

sd_shadow

sd\_shadow

Recognized Contributor / XDA Welcome Team