yashsingh1/xdaforums huggingface dataset:
[Moto G7 Power Guides, News, & Discussion] Kramin1978:
Getting Start Up Failed

I'm trying to relock my Moto G7 (not the power edition), using these steps but It seems to load the files ok, but then it tries to boot a few times, then comes up to the bootloader logs. I'm trying to clean it up to give to my son as I got a new phone. Because it is standard G7 I downloaded the River version instead of Ocean. Is there anything else that I might be missing?

---------- Post added at 10:41 PM ---------- Previous post was at 09:55 PM ----------

Nevermind. I realized it had locked it in any case. Was able to use the Lenovo Repair tool to get it up from there.
[Moto G7 Power Guides, News, & Discussion] Sword Master:
So

So it works for river (moto g7)? Were you stuck in fastboot and had to use the Lenovo rescue tool from there or did it boot and you used the rescue tool? Also could you give step by step instructions on what you did?
[Moto G7 Power Guides, News, & Discussion] Sword Master:
Did you use the latest stock firmware or not?
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
Work on Moto G7 Plus? i tryed relock but still receive this message "cant check for corruption bootloader" every reboot system.
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Flash the latest firmware for your device and as the last command enter fastboot oem lock
[Moto G7 Power Guides, News, & Discussion] budmerman:
could you clarify this step please? how does the .bat file know the rom file to install? ive tried this a few times with no result.

thanks
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Both must be placed in the same folder, e.g.

C:\Programs\ADB_Fastboot
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Here are a few lines from inside the .bat file:

fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot flash system system.img_sparsechunk.0

The general command syntax is:

fastboot flash PARTITION FILE

PARTITION=dtbo

FILE=dtbo.img

FILE is only the file name w/o any path. So, your cmd line will only search in the current folder for "dtbo.img" and nowhere else.
[Moto G7 Power Guides, News, & Discussion] budmerman:
thank you so much. i was panicking because i have to return this phone because the radio keeps crashing. easy peasy. run the file in the firmware file.
[Moto G7 Power Guides, News, & Discussion] redspeed:
Worked for me coming from Lineage non rooted. I didnt have the allow OEM unlock option in developer settings so after it completed flashing back to stock it didnt reboot on it own. I just rebooted manually and the bootloader was still locked. I was then able to go into developer setting in stock and made sure the allow OEM unlock was checked and ran the bootloader bat file again and it relocked the bootloader that time.
[Moto G7 Power Guides, News, & Discussion] lilila:
Warning!!!!!!

Tried this on my g7 plus xt1965-t us retail version. Now the phone is flash_locked, stuck on boot logo.
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Did you boot the system successfully before relocking the bootloader?
[Moto G7 Power Guides, News, & Discussion] lilila:
Yes. Just deleted google account. Then tried the relock bat. Was planning to sell it anyway.
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Did you also boot the system completely on stock without any modification before relocking? Only relocking the bootloader, which deletes all your data and not more, won't lead to an unbootable device.
[Moto G7 Power Guides, News, & Discussion] iToristo:
HELLO.

I know this is extremely late but can I Relock Motorola G7 Play

Security Patch: August 1, 2020

Android Version: 10
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
It should be able to relock, just make sure it's 100% stock and boots

before locking.
[Moto G7 Power Guides, News, & Discussion] iToristo:
How do i make sure i have the right things?
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
Easiest way is use LMSA'S flash rescue option

https://xdaforums.com/general/general/update-moto-lenovo-moto-smart-assistant-t3951714

Or

See what getvar all says

fastboot getvar all

https://xdaforums.com/general/rooting-roms/guide-flashing-motorola-firmware-t4042039
[Moto G7 Power Guides, News, & Discussion] iToristo:
Okay I'll look into it thank you
[Moto G7 Power Guides, News, & Discussion] iToristo:
" Download the lastest firmware according to your variant/software channel" Could someone explain that part for me? I clicked the link and i dont know what to download in that "ocean" folder
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
What's your model no? XT19xx-x
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Open https://mirrors.lolinet.com/firmware/moto/ocean/official/

Then choose your carrier (retus, retin, what ever) > choose your model XT1955-X > your download starts. ;-)

To get the information about your carrier and your model you can use

fastboot getvar all
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
Safest way to get firmware is LMSA

Rescue and Smart Assistant (LMSA)(Motorola/Lenovo Only)

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...

xdaforums.com

or run getvar all to find

Codename, model #, software channel. and software version

fastboot getvar all

https://xdaforums.com/showpost.php?p=81613421&postcount=4
[Moto G7 Power Guides, News, & Discussion] Rocc69:
My Moto G7 Power is running Android 11. Is there a "Lock-11q_windows.bat" file available. Or could I just flash "Lock-10q_windows.bat" file?
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
You only need to flash the latest firmware for your device. After that (still in fastboot mode) you run the command

fastboot oem lock

and follow the instructions in your terminal's output.

You should read sth. like "still signed system image required" which means you have to flash all system.img_sparsechunk.X parts a second time. When finished run the lock command again and follow the instructions in your output line. Go ahead until your bootloader is locked.

But it's highly recommended to flash the latest firmware and boot up once before locking the bootloader!! If sth. should fail you are still able to access all partitions. Complete the setup wizard, test your mobile data and Wifi (and whatever you want) and if your device runs without any issues, you should start with the beginning of this post.
[Moto G7 Power Guides, News, & Discussion] Rocc69:
Sideloading the firmware in TWRP didn't work.

What am I doing wrong?
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Oh man... you need fastboot mode for that. Furthermore the latest firmware build is NOT Android 11, it's A 10! So, use the script for A 10.
[Moto G7 Power Guides, News, & Discussion] Rocc69:
This file name contains a number 10 not 11 so I assumed it was Android 10. How do I find the firmware for Android 10?

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors.lolinet.com
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
First I need to know your region.

RETEU, Europe?

Is your device a XT1955-4?

If you shouldn't know that, boot your device into fastboot mode (bootloader menu). Your specific model no. is shown somewhere inbetween the text lines there.
[Moto G7 Power Guides, News, & Discussion] Rocc69:
XT1955-4 Europe.
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
1. Download the latest firmware here.

2. According to your desktop's OS download the lock script from OP.

3. Unpack the firmware ZIP into the ADB/Fastboot directory on your PC. Make sure the lock script is also stored in the same directory as your firmware.

4. Boot your device into fastboot mode and connect it to your PC.

5. Run

fastboot devices

to check the connection. Output should be serial no. followed by "fastboot" (somewhere on the right side).

6. First of all (remember post #81) flash the firmware

without

locking the bootloader by using the following commands:

Spoiler content hidden.

7. If process is finished without any errors reboot into system, complete the setup wizard and test your connectivity (and what else you would like to).

8. When done, boot into fastboot mode again and execute the lock script.

Good luck!
[Moto G7 Power Guides, News, & Discussion] Rocc69:
It wasn't me. It was a glitch in the new OS update lol

My problem was fixed here https://xdaforums.com/t/colors-scre...ng-lineageosmicrog-help.4268513/post-84916311

Thanks allot for your help buddy (y)
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
it didn't work, a warning screen keeps popping up every time I restart the system, thus making it visible that the system has already been rooted once making it difficult for me to be able to resell this device as original. Would there be other ways to leave it as original?
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
The bootloader is locked? Do you see the message on fastboot screen "flashing_locked"?
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
Yes but every reboot this message appears "you device software can't be checked for corruption, please lock the bootloader" and on top in Moto logo its appear "verity mode is set to disable" My device is Moto G7 Plus Lake Retbr Android 10
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
This forum is for Moto G7 Power devices and

not

for G7 Plus.

The G7 Plus cannot get the status oem_locked, only flashing_locked. The first one is needed to get rid of the warning screens and messages.
[Moto G7 Power Guides, News, & Discussion] wanb1i:
I followed the instructions exactly (Moto G7, Android 10), but now I can't get out of the Bootloader. On reboot it just boots back to the bootloader. Bootloader does indicate that it is locked, but no OS. Any help would be appriecated.
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
i get successfuly locked bootloader OS running normaly but when I restart, warning message still appear on every boot, "your device has loaded a diferent operating system. Visit this link on another device. motorola.com/unlockbootloader" After this boot message the system starts normally, but I want a solution to remove this warning from the boot.
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Yes, but successfully does not mean oem_locked. Boot into fastboot mode and check your lock status (screenshot).
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
in place of "oem_locked" its appears "flash locked".
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
Reflash systemsystem.img_sparsechunks
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
All of 5 sparsechunks files?
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
Reflash systemsystem.img_sparsechunks

Yes
[Moto G7 Power Guides, News, & Discussion] Tsumetaay:
Sorry for the bad news, but you just transformed your phone into a paperweight.

i locked my G6+ and the same thing happened, i've tried everything (even blankflash), but nothing fixes it, so the only solution is replacing the motherboard with a brand new one, i even saw a thread where someone says: "You didn't forgot your keys in a bulletproof car, you forgot your keys in a nuclearproof tank."
[Moto G7 Power Guides, News, & Discussion] wanb1i:
So I used the Lenovo Smart Assistant Version 5.5.0 (other versions crashed on me) to fix my G7. Worked like a charm!
[Moto G7 Power Guides, News, & Discussion] Tsumetaay:
Do you have any download links for the 5.5.0 version exactly? i could only find v5.5.0.9 on lenovo side
[Moto G7 Power Guides, News, & Discussion] bilabongsurf:
(bootloader) flash permission denied
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Your bootloader should be unlocked. With a locked bootloader you're only able to flash the complete firmware.
[Moto G7 Power Guides, News, & Discussion] empierrelouis:
Just relocked my MetroPCS Moto G Stylus (2020) bootloader & flashed Android 11 stock ROM using your guide. Thank you so much!
[Moto G7 Power Guides, News, & Discussion] Tsumetaay:
thats the thing, when you relock your device it lock status appears as "flashing_locked" instead of "oem_locked", which locks the flash of everything, even motorola signed stuff
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Moto G6 and Moto G6+ have the same issues.

The G6 is able to get the status oem_locked after relocking by fastboot oem lock.

But the G6+ is not able to get that status. It seems that the bootloader doesn't support that way of relocking.

So, once the device is unlocked there's no way to bring it back to oem_locked.
[Moto G7 Power Guides, News, & Discussion] Tsumetaay:
That happens with SD660 socket boards, but if you lock the bootloader with a bad firmware like i did the phone is dead...
[Moto G7 Power Guides, News, & Discussion] wanb1i:
2 min google search... https://support.lenovo.com/us/en/downloads/ds101291
[Moto G7 Power Guides, News, & Discussion] Tsumetaay:
actually thats 5.5.0.9, i tought it was something with the 5.5.0 specific version only, i already tried to fix with that version but didnt work.
[Moto G7 Power Guides, News, & Discussion] sd_shadow:
I doubt it's the version that's the problem, but I did find this version

rescue_and_smart_assistant_v5.1.0.9_signed_setup.exe
[Moto G7 Power Guides, News, & Discussion] Tsumetaay:
that one asks for update then it closes, sad, but thanks
[Moto G7 Power Guides, News, & Discussion] mickelek:
I love you guy first time i made it :)
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
Hey I need help relocking bootloader of Motorola one p30 play with August security patch(qpks30.54-22-24)
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
1. flash firmware images and use ONLY the commands inside the flashfile.xml and keep this order!

2.

before running any lock command

let your phone boot up to check everthing is ok. Finish the installation wizard to check connectivity of your wifi and SIM.

3. boot into fastboot mode and run

fastboot oem lock

and follow the output on your PC. Maybe you have to flash the firmware images a second time. That's normal. But some Motos need a bunch of commands to get relocked and you have to repeat the lock command a few times until all conditions are met.

IMPORTANT: Do not enter any other command during the relock process than required! This will stop the relock routine and you have to start from the beginning!

Every Moto has its own, slightly different, relock routine. So, it's very likely that you get one or more error messages because the steps above are only the common way to relock your device.

if you need any help, just let me know. ;-)
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
Yes I need help because I did all of that and one the final 'fastboot oem lock' it says still requires signed boot.img. I'm confused because I extracted the latest firmware from LMSA.
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Did you get a message like "Still require signed system.img and/or oem.img" during the relock process? What images did you flash?
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
No it said "still requires signed boot.img" also do you have discord so we can discuss there?
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
No, I don't. I guess "still requires signed boot.img" is not the only message during the whole relock process? My question is: What images were being flashed except the complete firmware? Did you flash any single images to relock your device?
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
Okay so after flashing latest firmware which is August security patch I did 'flash oem lock' 3 times and that's when it said "still requires signed boot.img" and when entering the 'flash oem lock' command two times it says "flash all valid images now" and when I enter that flash oem lock command again without flashing the valid images it says "still requires signed boot.img"
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Yes, that's right. That's what I wrote above. Follow the output messages on your PC.

The output is: still requires signed boot.img

You do: Flash

only the boot.img

and run the lock command again.

When you see the output "Still require signed system.img and/or oem.img" you have to flash vendor.img AND oem.img!
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
...and of course also the system.img ;-)
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
Like all the sparse chunks and oems? Tomorrow or later today I'll show you the files I have for the latest firmware and you can give me the commands to flash whatever system and vendor images is needed to be flashed.
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
all the files on the latest firmware for moto one p30 play:
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
ive flashed the boot, but it still says it requires signed boot.img after flashing boot.img command and rerunning fastboot oem lock command.
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
the bootloader says this:

C:\Users\Lakshmi\Downloads\DEEN_QPKS30.54_22_24_cid50_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml>fastboot flash boot boot.img

(bootloader) is-logical:boot_a: not found

Sending 'boot_a' (65536 KB) OKAY [ 2.060s]

Writing 'boot_a' OKAY [ 0.933s]

Finished. Total time: 3.514s

C:\Users\Lakshmi\Downloads\DEEN_QPKS30.54_22_24_cid50_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml>fastboot oem lock

(bootloader) Still require signed boot.img

OKAY [ 0.007s]

Finished. Total time: 0.008s
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Attached you'll find the relock process taken from my Moto G6 (XT1925).
[Moto G7 Power Guides, News, & Discussion] smartasiankid:
Completely forgot to mention but on the bootloader unlocked warning screen it said "N/A" instead of "bad key" like my Moto g6 did when it had an unlocked bootloader and also I have unlocked relocked Moto g6 bootloader.
[Moto G7 Power Guides, News, & Discussion] Skorpyun812:
So I tried relocking my moto edge XT2063-2 and when using the lock script (Lock Q 10, i believe. I was on Android 10 stock. Don't recall the version but, I didn't unlock my bootloader until like ... August of this year. That's when the auto updates stopped). The lock script found in the provided link, successfully relocked my bootloader, rebooted back to bootloader then I got that red triangle. I tried rebooting into recovery, the bootloader rebooted again and now all the graphics are gone, replaced with just words, "Start, Restart Bootloader, Recovery Mode, Power Off, Bootloader Logs" and that's it. No Recovery, No ROM. At the bottom it says I'm in "AP Fastboot Flash Mode (Secure)" and "No Bootable A/B slot", "Failed to boot Linux, falling back to fastboot", Fastboot reason: Fall-through from charger boot mode". Powershell and Command prompt give daemon errors but, still report successfully when entering command "adb devices" but, lists no devices. Blankflash is "waiting for device".

Should I just launch this thing? I'm ready to launch this thing. I've never had a phone brick on me like this. I just can't figure out how to talk to it at this point.
[Moto G7 Power Guides, News, & Discussion] Skorpyun812:
So, I tried fixing the issue by addressing "No Bootable A/B slot". This is what happened with the commands I entered:

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools> fastboot devices

Z********F fastboot

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools>fastboot set_active other

Setting current slot to 'a' FAILED (remote: '')

fastboot: error: Command failed

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools> fastboot set_active other

Setting current slot to 'a' FAILED (remote: '')

fastboot: error: Command failed

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools> fastboot set_active b

Setting current slot to 'b' FAILED (remote: '')

fastboot: error: Command failed

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools> fastboot flash boot_b boot.img

Sending 'boot_b' (98304 KB) OKAY [ 2.225s]

Writing 'boot_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools> fastboot set_active a

Setting current slot to 'a' FAILED (remote: '')

fastboot: error: Command failed

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools>fastboot flash boot_a boot.img

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

Writing 'boot_a' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools>fastboot flash boot boot.img

fastboot: error: Failed to identify current slot

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools>fastboot boot_a boot.img

fastboot: usage: unknown command boot_a

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools>fastboot boot_b boot.img

fastboot: usage: unknown command boot_b

Thoughts anyone?
[Moto G7 Power Guides, News, & Discussion] Skorpyun812:
Being the stubborn novice I am, I took the "Lock script" and created a new .bat via copy n paste then, edited the script from "lock" to "unlock" everywhere in the coding or whatever the proper term is (3 places towards the bottom of the text). Now I am able to talk to the partitions successfully (Slot A/B). Here's the first few lines of command for comparison to my previous reply:

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools> fastboot devices

Z********F fastboot

C:\Users\Murica\Desktop\platform-tools_r31.0.3-windows\platform-tools>fastboot set_active other

Setting current slot to 'a' OKAY [ 0.172s]

Finished. Total time: 0.172s
[Moto G7 Power Guides, News, & Discussion] Skorpyun812:
I successfully flashed slot A and got my recovery back (TWRP). Still won't boot but, it's pretty much child's play from here. I hope someone finds this useful if the lock script "soft brick's" their device. I will note that the script DID WORK! It did in fact lock my bootloader, causing this loop of dead ends. WOOOOO! The novice did a thing! :)
[Moto G7 Power Guides, News, & Discussion] toddk63:
In fact you do need to enable "Allow OEM Unlock". That was my hangup. I thought I was rooted, but re-rooted then could change that switch.
[Moto G7 Power Guides, News, & Discussion] analla:
Hi! I have a Motorola G60, I opened the bootloader, but couldn't find any modified ROMs for it. I didn't change anything, I didn't root.

How to lock the bootloader?

Fastboot oem lock?
[Moto G7 Power Guides, News, & Discussion] plakkat:
Hello! How can make this work con android 12¿?
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Android 12 on Moto G7 Power??
[Moto G7 Power Guides, News, & Discussion] plakkat:
Sorry 😅 android 12 on moto edge x30
[Moto G7 Power Guides, News, & Discussion] Gabi 0306:
ola, gostaria de saber se funciona no moto z2 play (albus)
[Moto G7 Power Guides, News, & Discussion] Januwar:
Well, and what if Windows 10 and Android 12? No file available??
[Moto G7 Power Guides, News, & Discussion] WoKoschekk:
Apart from the fact that there's no certain version of Windows required or even mentioned (because a batch script is a batch script since Win95 or maybe longer) I'm convinced you are able to lock your bootloader without any script. Just by executing 'fastboot oem lock' and reading the output messages in your terminal window.
[Moto G7 Power Guides, News, & Discussion] Januwar:
Wow, that simple... fastboot oem lock did the job. Thank you!