yashsingh1/xdaforums huggingface dataset:
[Moto G40 / G60] arsradu:
Hmmm that's interesting... You should have been able to boot into recovery from bootloader... Just use the arrow keys until you see recovery mode, then Power key to select. But if that doesn't work...then I don't know.

Can you boot a custom recovery and try the same thing?

To boot into twrp (without flashing it), you can do the following command:

fastboot boot /path-to-your-twrp.img

You can download it from here.
[Moto G40 / G60] milan.vyas7:
Here is the output.

C:\platform-tools_r33.0.3-windows\platform-tools>fastboot boot twrp-3.6.2_12.1-0-hanoip-20220808-0701.img

Sending 'boot.img' (36600 KB) OKAY [ 0.792s]

Booting (bootloader) Fastboot boot command is not available in locked device

FAILED (remote: '')

fastboot: error: Command failed
[Moto G40 / G60] arsradu:
Oh maaan... This sucks. Then I don't know...
[Moto G40 / G60] Patrick972:
Até agora não há como resolver esse problema sem usar jtag
[Moto G40 / G60] arsradu:
Yeah, I'm not sure you can fix it without using the JTAG...

By the way, which Android version did you install before reaching this state?
[Moto G40 / G60] Patrick972:
In this case he was on android 12 and tried to downgrade to 11, but in doing so he also blocked the bootloader and in that the system no longer allows to rewrite the rom
[Moto G40 / G60] arsradu:
Weird... I thought going back from 13 to 12 is gonna be a challenge. But one thing is for sure: before locking the bootloader, the OEM Unlocking option needs to be ON. If it's not, better not lock.
[Moto G40 / G60] Patrick972:
I'll explain more or less what happens, the bootloader was unlocked and it went back from 12 to 11, in that when turning on the device there was no option to allow oem unlock because it was already unlocked, it returned the message "O bootloader is already unlocked" in that he went to try to lock it, and when he turned it on, he had the problem of No valid operating system found, and when trying to flash the rom it gave flash denied and when trying to unlock the bootloader he told him to turn on the device and enable oem unlocking being impossible to do this since the device does not start, and with it there is no way to start by twrp or do anything at all
[Moto G40 / G60] arsradu:
Yeah, I saw that... It's not just that it doesn't accept flashing commands anymore. It doesn't take any commands anymore. Which is a really, really bad situation to be in.

Mine also says "bootloader is already unlocked". Which is normal, because it is unlocked. :)) And I'm back to stock Android 12 right now.

But I'm not going to lock the bootloader until the OEM Unlocking option is ON (or turns ON by itself). Meaning bootloader is unlockable. This is just in case something bad happens and I need to flash something or boot into a custom recovery.
[Moto G40 / G60] Patrick972:
O jeito é esperar pra ver se o jtag realmente resolve, se não resolver o único jeito é mandar pra motorola e trocar a placa mãe.
[Moto G40 / G60] asdrhyme:
I am also getting this error in RSA, any help to fix this. Do I have wait for 7 days and try again
[Moto G40 / G60] arsradu:
You could try... For as far as I understood, Google requires an internet connection in order to unlock that option. But....if you can't boot, I don't see how you could do that... But yeah, you could try after about a week or so.
[Moto G40 / G60] xindefenggan:
Hello, mine is an engineering machine, do you not have to worry about this situation, because it is not locked in the first place
[Moto G40 / G60] arsradu:
Hmm...can you bring more details onto this? What is it not locked? :)

I was talking about the OEM Unlocking option from the OS (basically what tells the bootloader if the device's get_unlock_ability is true, meaning option is ON). Also, it might be different for engineering units, compared to retail units.

What do you mean it's not locked in the first place? Wha is not locked? The option? The bootloader? I'm confused. :))
[Moto G40 / G60] xindefenggan:
It's just that you don't need to go to Motorola's official website to get the unlock code, you can directly connect to the computer to flash the program, because mainland China will not receive system update pushes. But I forgot whether I turned on developer mode and turned on the OEM lock switch at first, I think it's just a decoration
[Moto G40 / G60] xindefenggan:
This has always been a bug, an icon waiting to be installed has been there, and it came back not long after I removed it. . . No software is being installed in the Google Play Store
[Moto G40 / G60] xindefenggan:
{Mod edit: Quoted post has been deleted. Oswald Boelcke}

There are also people in China who can solve black bricks.
[Moto G40 / G60] Copo Gold:
I've been looking for a solution for several days. People who know the solution don't want to reveal how they manage to do it. What will be the secret? That is the question.
[Moto G40 / G60] ankurpandeyvns:
In the video, the first time when the flashing failed, the phone was on Flashing_locked state, on the second time it was on oem_locked state
[Moto G40 / G60] xindefenggan:
please consult him

{Mod edit: Attached screenshot has been deleted. Oswald Boelcke}
[Moto G40 / G60] arsradu:
So, to summarise the video:

1. phone says flashing_locked

flashing fails, phone fails to boot

2. magic happens in the background

3. phone now says oem_locked

flashing succeeds.

4. all good

Tool used in the video: https://www.ligtelgsm.com.br/downloads/class/index.php?p=file&idprog=9150

Not sure it's all about the tool though.

Also, it seems to make a difference whether it's flashing_locked or oem_locked.

I'm just wondering, has everyone with this issue used fastboot flashing lock instead of fastboot oem lock to lock their bootloader?
[Moto G40 / G60] Copo Gold:
I managed to change my status from flashing_locked to oem_locked, but I still can't flash. About the tool used in the video (Android Tool) I have it, but I couldn't solve my problem using it.
[Moto G40 / G60] Copo Gold:
I managed to change my status from flashing_locked to oem_locked, but I still can't flash.
[Moto G40 / G60] ankurpandeyvns:
How did you do it?
[Moto G40 / G60] Tomek2424:
{Mod edit: Quoted post has been deleted. Oswald Boelcke}

he is legit? i wanna repair my moto g60, and i contacted with him, he want 50-70 usd, that will be dont scam?
[Moto G40 / G60] Copo Gold:
it's not scam.
[Moto G40 / G60] milan.vyas7:
Did anyone found solution about how to make phone alive? Loosing hope😢
[Moto G40 / G60] arsradu:
Did you try bringing the phone to a repair service center? I'm afraid that might be the only way to fix this.

To prevent it, just don't relock the bootloader until the OEM Unlocking option is ON. But if you already did lock the bootloader...I don't think there's another way right now, other than the service center. If I find out more, I'll let you know. But so far...this seems to be the only way.
[Moto G40 / G60] milan.vyas7:
I visited the service center yesterday, and they informed me that nothing can be done from software side. The only option is a motherboard replacement, which will cost the same as a new phone. 😰

I have seen below video on YouTube. He is fixing Moto G60 having same issue as mine. I have contacted him to fix, hoping for the best.
[Moto G40 / G60] xindefenggan:
This looks a bit like how I saved the black brick after I failed to flash aosp13 last time

This looks a bit like how I saved the black brick after I failed to flash aosp13 last time
[Moto G40 / G60] Tomek2424:
did you repair phone?
[Moto G40 / G60] milan.vyas7:
Till now not. If anyone's phone got repaired please let us know in this thread.
[Moto G40 / G60] arsradu:
Which custom ROMs did you guys try before flashing stock? Also, did your use LMSA to restore stock ROM?

That error seems to appear when you try to lock the bootloader on a custom ROM. So if this was the stock ROM, in guessing something must have remained from the previous installations.
[Moto G40 / G60] piyushkr03:
{Mod edit: Quoted post has been deleted}

Thankyou so much Antony. It really worked after, I had lost all my hopes.

Others should contact him, he was able to fix my phone within minutes.

Just download Team viewer and latest firmware on your PC, and he will take care of the rest.

It's Amazing
[Moto G40 / G60] arsradu:
Cool! But...how? With this MagicTool...or how?
[Moto G40 / G60] WCM22:
so is there an hope? I am trying to get my my X30 pro work again....
[Moto G40 / G60] milan.vyas7:
{Mod edit: Quoted post has been deleted}

Hello All,

My Phone become alive and all because of Antony.

Everyone who has same issue, download latest ROM of your phone and give TeamViewer to him and sit back & relax.

Thanks once again bro..!!
[Moto G40 / G60] arsradu:
Glad to hear! But...again, how?
[Moto G40 / G60] Tomek2424:
my phone works too, thanks @Copo Gold
[Moto G40 / G60] Copo Gold:
Repair box. I was able to help some members for free, but this is unfortunately no longer possible. There is no free way to fix this problem
[Moto G40 / G60] Ahmed.ragab:
Hello Milan,

Did you manage to fix this issue cause I have the same issue for my Motorola edge 20 pro.
[Moto G40 / G60] Pixel<3:
What should one do to safely lock the bootloader after flashing stock rom so the phone boots even after locking the bootloader?

To avoid the "No Valid Operating System could be Found. The device will not boot." screen.
[Moto G40 / G60] arsradu:
Well, make sure you flash everything. Preferably from LMSA. But if you're on Mac for example, I've had success flashing with a custom script. The idea is to flash everything you need to flash. :)

After that, reboot to bootloader, enter recovery, make sure it is indeed the STOCK recovery, and do a wipe data/factory reset.

Reboot to system and make sure it works.

Reboot to bootloader and lock the bootloader using this command:

fastboot oem lock.

After that, before going into system, go into recovery, and do one more wipe data/factory reset. Just in case.

Then reboot to system.

Hope it works for you. So far, I did this twice on the G60 (and multiple times on other devices) and it worked perfectly fine.
[Moto G40 / G60] Jan Skokan:
Hi, try this, I hope it helps!
[Moto G40 / G60] classic757:
So did he ever contact you back and if so did he fix your issue?

I'm having the same issue with my Moto G Stylus 5G 2022 and I am thinking about contacting him myself.
[Moto G40 / G60] designlab:
I have the exact same problem, i tought about your suggestion this is my result:

platform-tools ./fastboot getvar current-slot

current-slot: b

Finished. Total time: 0.001s

➜ platform-tools ./fastboot --set-active=a

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

fastboot: error: Command failed

Any ideas?
[Moto G40 / G60] designlab:
El link para el programa no sirve!
[Moto G40 / G60] arsradu:
Unfortunately, as long as the bootloader is locked, you can’t change slots. I thought it might work. Turns out it doesn’t. :(
[Moto G40 / G60] HemanthJabalpuri:
@arsradu Thanks for sharing all your thoughts here. I am thinking to unlock bootloader of my 4 days old Moto G52 but after seeing these I am afraid to unlock because at some point I need to relock it.

Some people said that with that flashing_locked you can't use any flash tool like LMSA. Is it fine flashing with LMSA for you with locked bootloader having flashing_locked?

It is because SafetyNet fails with unlocked bootloader right?

What I am thinking is people are locking bootloader with another region ROM or they fails to restore stock ROM fully.

I am new to this Moto, A/B and Qualcomm but after reading about these I found that in flashfile.xml, I can't able to find commands for flashing to both the slots! Am I wrong? If it is right then one of the slot may have custom partitions like many people when trying to flash GSI by following many guides in Internet will flash vbmeta, vbmeta_system with --disable flags.

Thanks
[Moto G40 / G60] HemanthJabalpuri:
Is it Moto G60?

This seems good to me.

I will keep that in mind.

Thanks
[Moto G40 / G60] arsradu:
Yes. As long as the bootloader is unlocked, it seems that the position of that OEM Unlocking ON/OFF switch is not relevant.

I thought it might make a difference, especially since, even on other Motorola phones, it's set to ON, even when bootloader unlocked, but real life tests show that it doesn't.

You're welcome :)

If anything, you can always @ me and I'll try to reply and help, if I can.
[Moto G40 / G60] jojofarnandise:
Your mobile has been null means everything is'0' You can't flash any files on this device it's dead brick you can't revive device with such issues.
[Moto G40 / G60] Er. Aditya:
guys i was flashing latest stock firmware and ended up with same error no os found on my motorola g32

wasnt even trying to unlock bootloader or anything please help
[Moto G40 / G60] arsradu:
Wait. Are you saying your bootloader is factory locked? Why were you flashing your phone? And also, what did you use for that? Did you do it with LMSA?
[Moto G40 / G60] Er. Aditya:
i was learning from a video how to flash moto firmware and ended up like this :( whats LMSA
[Moto G40 / G60] arsradu:
LMSA stands for Lenovo Motorola Smart Assistant and it's the official Motorola PC tool. It's also called RSA (Rescue and Smart Assistant).
[Moto G40 / G60] Er. Aditya:
Can u please share link for that bro , thanks aton for helping me here
[Moto G40 / G60] arsradu:
here you go: https://support.lenovo.com/us/en/downloads/ds101291-rescue-and-smart-assistant-lmsa
[Moto G40 / G60] Er. Aditya:
cant thankyou enough brother , once i fix this i am gonna sell it
[Moto G40 / G60] paulolego28:
@arsradu

I have a moto g60 which I updated to android 12, regreted it immediately, I have been investigating a lot about this, to see if I can downgrade back to 11 without risk, and happened to find this thread. I have been reading all your posts in this thread and you seem to know a lot about this topic. So, is it possible to unlock my bootloader (it says "oem_locked"), flash android 11 rom, and relock the bootloader so I end up with a "clean android 11 firmware on my phone?

I have never unlocked my bootloader before or done anything sketchy with it, I just wanna go back from 12 to 11. Thanks in advance.
[Moto G40 / G60] arsradu:
Yes, you can go back to Android 11 after unlocking the bootloader (which will void your warranty). And yes, you should be able to lock the bootloader back, as well, though I don’t remember trying it on an older OS myself. At least not on this phone. But yeah…it should be possible. Worst case scenario, it won’t allow you to lock the bootloader. But it shouldn’t affect anything else. Also, as long as you only work with stock ROMs, the risk of bricking your phone should be minimum.

What is your country/region? This is important when choosing the ROM. Do you have a Windows machine at hand? This can be done on other operating systems as well. I’m on MacOS for example. So windows is not a requirement for this. But it’s a popular OS. That’s why I’m asking.

But…why do you wanna go back to Android 11 so much? I don’t mind Android 12.
[Moto G40 / G60] paulolego28:
My region is Mexico, and my software channel is openmx, the thing is that on the bootloader it says hanoip_retail_latam, and when I try to repair it in RSA, it downloads a retail version but for mexico, so I don't really know which one is it. Also, I don't know if I should download the first or lastest build, because I still want to keep getting patches and firmware updates (if any are released).

I do have a windows machine, in fact, it's the only OS I have at home.

The thing is that I have always liked Motorola because it sticks a lot to native android, and when I bought the phone, android 11 seemed like the perfect OS, after getting all the updates, it was really polished, no bugs or performance issues, everything worked fine. But when I decided to install the 12 update (because I thought it could only get better that 11), everything changed, all the customization I had erased because the new OS didn't support it, I think they tried to make it look more like IOS (which I personally don't like, that's why I buy Motorola). Now the phone has this Issue where the screen doesn't look 120 Hz, and when I turn it to 60 Hz, it doesn't feel like it too. I even downloaded the FPS display to see if it was lagging or something, but according to it, everything is fine, although it isn't. And now I get random freezes for like 30 - 60 secs, it unfreezes after that and everything normal, but it is very annoying some times.

It's not like I can't live without android 11, but it would be so much better to have it specially with all the issues that android 12 brought me.
[Moto G40 / G60] arsradu:
If the channel is OPENMX, I'd say you should probably stick to that.

Latest available Android 11 build seems to be this one (RRIS31.Q1-42-51-12-4)

If you want a different build, you can choose another one from here.

Now, as far as UI goes...there's not much you can do. That's Android 12. In terms of usability issues...I would first try to see if they're not somehow app related, rather than OS related.

For that, you can try a few simple things, such as:

1. boot into Safe Mode

2. backup and reset the phone (without restoring the backup at first).

These are all easier options than downgrading the OS. Not to mention, it allows you to keep your warranty intact. Which might or might not matter to you. But...it might be useful one day. Personally, I don't care about it too much. Because, stuff I'd like to be covered by warranty (like drops and water damage) are not, and stuff that is covered by warranty (like factory defects) are usually very, very rare. So...after I test the phone for a while, to make sure there are no factory defects, I tend to just unlock the bootloader and test new stuff.

Right now, I'm back on Android 12 stock, with a relocked bootloader. So I've got no warranty. But also...none of the issues you're describing. :))

So, my advice would be: try the troubleshooting steps above. See if they make a difference. The refresh rate never bothered me. And it seems very smooth even with Android 12. But...we're living in different parts of the world, and using different models and different software. So...it could be different. :) But...scrolling through contacts for example seems really smooth. I didn't test it with an FPS meter. But...seems really smooth, so no need to. Also, I don't really care much about refresh rate. I'm not a gamer, and even if I was...online games need a lot more than a high refresh rate to be played smoothly. You need GPU acceleration, you need good internet speed, you need a good server to feed you all that information fast enough so you can't see any lag or stutter. I feel the display refresh rate can and should only be tested in offline apps (like Contacts, app drawer etc), not in games or social media apps. Because those rely on internet to get the information you need. And that increases the number of variables in this ecuation.

However, if you really wanna go back to Android 11, you should be able to. But again, my advice...would be to test it for a little while, with all your apps, just in case it's not actually the OS but one of the apps that's causing you troubles.

In terms of updates...my advice would be to get the latest available Android 11 build. Because it will likely not offer you just the security updates going forward. It will try to upgrade to Android 12 altogether. So...if you wanna stay on Android 11, you'll also get the security patch for Android 11. I could be wrong about it...but I think that's how it works. You can't stay on Android 11 and have the latest security patches.

So before locking the bootloader, just test the phone on Android 11, with all the apps, to make sure everything works as expected.
[Moto G40 / G60] paulolego28:
Aight, how do I boot into safe mode in moto g60? And what does this do exactly?

I am not a gamer, at least not a hardcore one, I don't care about 120 Hz in games, it's just that the frame rate of the phone is not working correctly, not in games only, but everywhere. In the home screen, while navigating on the net, YouTube, social apps, etc. Also the problem is that even if I turn the refresh rate down to 60 Hz, it still keeps lagging and seeming lower than it should.

If I manage to make it work properly, I obviously won't downgrade to 11.
[Moto G40 / G60] arsradu:
Safe Mode allows the phone to boot without third party apps. To boot into Safe Mode, hold down the Power button, hold down the Reboot option on the screen, confirm it (there should be a pop-up), then wait for the phone to reboot.

Test, then reboot normally to exit Safe Mode.
[Moto G40 / G60] paulolego28:
Alright, I've been using the phone for a while now, and at least until now, the crashes have stopped, the battery still drains fast as hell, and the frame rate is as inconsistent as always. I really don't like at all this android 12 thing, but I'll stick to it, I don't wanna mess up my phone.
[Moto G40 / G60] ionelbumbaru:
I have a mobile phone, moto g60 xt2135-2, after I installed the original android 12, I forgot that I had also installed twrp.img before and when I try to open it, it is stuck in the bootloader, but when I turn it on, it tells me on the screen that it does not have any valid and signed operating system, please help me, I have noticed that many people who like to install customized android operating systems have experienced something like this, thank you very much
[Moto G40 / G60] felipegdoro:
Olá amigo, onde você conseguiu esse conserto com JTAG a 200 reais, estou com o mesmo problema
[Moto G40 / G60] arsradu:
I don't have it, and I don't think the software is what makes the trick work. Pretty sure it's something else, something that's not being shown on the video.
[Moto G40 / G60] arsradu:
There is someone in this thread who I think can perform this repair for a fee. Other than that no, i don't know another way.
[Moto G40 / G60] eknath67:
In the discription you can see his number try to contact him I gave my pc access through anydesk

He used some tool as shown in the video

Where flashing locked turns to oem locked

Then he used rsa tool

Rsa tool recognized the device when its in OEM locked state and shows rescue device option

Hit resuce and its done 👍
[Moto G40 / G60] AHMADHAFEZY:
My phone also has this problem and I can't install ROM. Has anyone solved the problem and can advise?

moto edge 30
[Moto G40 / G60] ami007ar:
Even I am facing the same issue and till now I didn't found any solution to this on whole internet !! Did anyone found any solution for this bull**** "flashing_locked" ??
[Moto G40 / G60] xdauser1620:
Verified boot not allows you to run other software than Motorola=Vendor supplied roms. You probably locked back your bootloader then soft bricked and bootloops.
[Moto G40 / G60] ami007ar:
Who is anthony, did your moto G60 really got out of issue "flashing_locked"? If yes, please share contact details with me.
[Moto G40 / G60] devAbdou:
i need the email of this technician can help me please i am in the same situation flash locked can not boot up moto g9 power
[Moto G40 / G60] ozo1ozo:
i can help anyone with flashing_locked

pm me
[Moto G40 / G60] strayh_:
help me
[Google Pixel 6] naveediftikhar:
Ok so I updated to android 13 by flashing a complete image, but after that the play store started that my device is not play protect certified. Can't install some apps.. Any help would be great.
[Google Pixel 6] ze7zez:
Have you wiped the Play Store cache in the application settings?
[Google Pixel 6] Lughnasadh:
Likely because your bootloader is unlocked.

Are you rooted? If so, This Magisk mod should help. Also wipe cache and data from Play Store and reboot after installing the mod.

You can also try to download the apps that aren't available to you on Play Store from APK mirror, as an alternative.
[Google Pixel 6] tom1807:
This is normal, even when not rooted. My one was also not certified, took a day or so then it showed up as certified, even I am rooted. If it still doesn't, force stop of PlayStore and delete the storage.

But as written above, it takes up to a day being certified.

Cheers

Tom