[Moto G7 Questions & Answers] deathcruizer:
I've seen alot of guys here who are encountering problems while flashing custom roms.Make sure you have backed up all your data before starting the procedure.

This method is also valid for those who are coming straight from the Stock rom.

Prerequisites :

•Unlocked Bootloader

•ADB and Fastboot Files

•Desired Custom Rom

•Copypartitions file

•TWRP image

•TWRP installer - Download and move it to Internal Storage

•A USB C-Type Cable and some Brain.

•Magisk [Optional]

•Fresh Gapps ARM64 (I'd recommend Mini)

Installation :

#1. Back up all your data or simply move everything to your PC.

#2.Boot your phone into Bootloader Mode [Power button + Volume Down] or Enable Debugging mode,And run this Command ''adb devices''- To ensure that the device is connected,then ''adb reboot bootloader''.

#3.Move the ''twrp.img'' file to the ''adb" folder of your PC.

#4.You'll see 3-4 files along with twrp.img file you just copied there[adb folder], Simply Click Shift+Right Click anywhere in that blank space,then click on Open Powershell Window here or Open Command Prompt Window.

#5.Attach your phone to the PC,you'll hear a sound,yet run this Command "fastboot devices" to ensure that the device is connected properly [Device ID will appear]

#6.Now you're supposed to temporarily boot TWRP in order to permanently flash the Custom Recovery.So to do this ,Run this Command while the device is connected to the PC in fastboot mode > "fastboot boot twrp.img '' [After Typing fastboot boot, simply drag twrp.img file into the PowerShell or Command prompt window to Complete the Command ''fastboot boot twrp.img'',it may look like ''fastboot boot C://adb/twrp.img''.

#7.After Booting Temporarily into TWRP,Swipe for Modifications,Locate and install TWRPinstaller.zip,this will permanently install TWRP as your Recovery.

#8.After installing TWRP,Return to the home screen of TWRP and Reboot into Recovery from there.[Permanently Flashing incase you don't need hassles with computer flashing]

#9.After booting again into TWRP,Click on Wipe>Format User Data>Type Yes>Go to Home screen Reboot into Recovery.

#10.After booting again into TWRP,Click on Wipe>Advanced Wipe> [Tick on Dalvik/Art Cache,Cache, System,Data] > Wipe it off.

#11.Go back to the Home Screen of the TWRP,Reboot into Recovery.

#12.Now Push copypartitions.zip file to your phone from your PC,then flash it via TWRP,then again,Reboot your phone to Recovery.

#13.Now Push the Desired Custom rom you would want to install on your G7 river from the PC> Install it> After the Installation Finishes,Reboot your phone to the Bootloader mode from TWRP [As the the Recovery will be replaced by the Custom Rom's Recovery,hence, TWRP will be removed].

#14.Once in the Fastboot Mode,run the command in PowerShell or CMD, "fastboot boot twrp.img"

#15.After booting again into TWRP,Push Gapps File into your phone and install it Accordingly,After the installation Finishes,Wipe Dalvik Cache,Come back to the Home screen of TWRP,Reboot > Power Off in TWRP,then manually Power it On,After powering it On,the rom may prompt you for a factory reset,that's it. You've successfully installed Custom Rom along with the Google Apps without Messing with the partitions.

#16.Now, Finally Boot your phone into Bootloader mode, run the command "fastboot boot twrp.img" and install TWRPinstaller.zip,this will again permanently install TWRP as your recovery.

#17.You may root your phone by installing Magisk or Flash any other zip without the need of temporarily booting TWRP,as you've flashed it permanently. Simply Reboot to Bootloader then Boot into Recovery.

Errors and Fixes:

#1.If you encounter any problem while flashing zips from the internal storage, simply move all the zips to the MicroSD or USB OTG and flash it from there.

#2.If your TWRP isn't reading the internal storage properly or isn't responding well,simply reboot your phone again to the Bootloader mode,again boot twrp.img and try again,this should do the thing.

#1.copy-partitions-AB.zip

#2.twrp-3.3.1-0-river.img

#3.twrp-installer-3.3.1-2-river.zip

Find these files on the internet or XDA forums as I can't Post links yet,Happy to help!