[Moto G40 / G60] arsradu:
Do you have an SD Card? If so, it would be a lot easier to do it.

If not, you'll have to push the ROM onto the internal memory (or sideload).

Here's the instructions. I'll try to clarify where needed.

Guide for the rom which has Google apps:

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

1. connect phone to computer

2. enable developer options & usb debugging

3. Open command prompt in platform tools latest. ( Don't use minimal adb tools )

It refers to this. You need to download the zip for your platform, extract and place it somewhere on your computer. Let's say it's on your C:\ drive if you're using Windows.

So it will be C:\platform_tools\adb.exe for example.

Also, don't use Minimal Adb. It's a software.

Copy-paste ROM.zip and TWRP.img to the platform tools folder.

To open a cmd prompt inside the platform_tools folder, you just navigate to that folder using File Explorer, and in the path bar (up top where you can see c:/platform_tools), type "cmd" and press Enter.

This should open a command prompt window with the destination already set to your folder.

4. Type adb devices

In that window, you need to type: "adb devices"

This should return your serial number if it's connected properly.

5. Type adb reboot bootloader

This will reboot the device into bootloader mode. You can achieve the exact same thing by booting the device with Volume Down and Power button pressed together.

6. Check your phone connected and triggered in fastboot mode or not using ( type fastboot devices )

To make sure the device is connected in fastboot mode as well, in the command prompt window, type: "fastboot devices"

This should, once again, return your device.

7. Download TWRP to flash my builds

8. type "fastboot -w" -> inside the cmd prompt window

9. type "fastboot erase userdata" -> inside the cmd prompt window

10. type "fastboot boot twrp-name.img" -> inside the cmd prompt window. This will temporarily boot you into TWRP recovery so you can browse your ROM and flash it..

You need to rename the TWRP.img file to "twrp-name.img" if you're planning to use the command above as it is. If not, you can just rename it to "twrp.img" and use command:

"fastboot boot twrp.img"

11. push ROM.zip to internal storage via using command prompt by typing (adb push ROM.zip /sdcard)

or copy paste to internal storage if it is accessible from file explorer on your computer.

In order for this to work, I think TWRP needs to be in adb mode. Once booted into TWRP check the Advanced section. I think the ootion was somewhere in there.

This is about using command "adb push ROM.zip /sdcard" from Cmd Prompt (again, you'll have to rename the ROM zip file to match the command or change to command to match the filename). This is just to copy the ROM to the device.

Unfortunately, I couldn't get this part to work. The path is different. I can't figure out what would be the right "sdcard" address in this case, but it doesn't work as it is.

So, here you'll have to improvise.

Either you try to copy-paste the file onto your internal memory, from File Explorer or as I said above, use an sdcard. It is A LOT easier with an sd card.

Alternatively, you can use "adb sideload ROM.zip".

12. flash ROM.zip ( by default skip digest check will be enabled so don't untick & don't tick anything extra )

If you used the adb sideload command above, you don't need this step anymore. If you didn't, and you just copied the file onto your device, this is the part where you need to browse through TWRP to get to it, and then flash it.

13. swipe to flash -> again, refers to flashing from TWRP

14. reboot system -> this is self explanatory.

So, looks like the biggest challenge is getting the ROM onto the device. And, once again, my recommandation would be to just use an external SD Card for this.

Then, all you have to do is:

1. erase and wipe userdata with commands:

"fastboot -w"

and

"fasbtoot erase userdata"

2. boot into TWRP

3. browse for the ROM.zip file

4. flash it.

5. reboot.

The thing is that, these installation steps assume that you already know what a Cmd Prompt is, how to open one in a specific location, what is platform_tools and how to get it, how to set PATH for it, in case you need to, and all that. These are all unrelated things for the ROM itself. They're just setup parts. But they need to be done. Most people already know that, so...that's why instructions like these don't go into too many details. They don't have to, cause it's unrelated to the ROM.