I've managed to unlock the bootloader using Motorola's online instructions and the adb and fastboot utilities that come with Linux. The next step is to flash a custom recovery application on the recovery partition.
After this failed attempt, I attempted to put my phone into recovery just to see what would happen. What I got was a screen displaying the Android mascot on its back with its chest plate opened and a black exclamation point inside a red triangle. The words "No Command" were displayed underneath the graphic. After waiting a few minutes, the phone, on its own, booted normally. My phone's OS seems to operate perfectly fine.
I can only surmise that whatever was originally on my recovery partition from the manufacturer has been wiped and there is now nothing on the recovery partition at all. So, I decided to see if I could boot into the TWRP image directly without flashing it. So, I ran this in the terminal window: fastboot boot twrp-3.3.0-0-river.img. I received this as a response:
G7 Power, being a new device, has the new A/B partition layout, requiring new installation procedures that differ from standard A-only devices. This is clearly outlined in the thread where you got your image from:
This device has 2 "slots" for ROMs / firmware. TWRP will detect whichever slot is currently active and use that slot for backup AND restore. There are buttons on the reboot page and under backup -> options to change slots. Changing the active slot will cause TWRP to switch which slot that TWRP is backing up or restoring. You can make a backup of slot A, switch to B, then restore the backup which will restore the backup of A to slot B. Changing the slot in TWRP also tells the bootloader to boot that slot.
An Android device consists of several pieces of software, including the bootloader, radio, recovery and system. The recovery is a runtime environment separated from Android that can perform various system-related tasks. It contains tools to help repair installations as well as official updates. There are two kinds of recovery, one is stock recovery, the other is custom recovery.
The stock recovery on Android device can delete all user and cache content ( for factory reset purposes ), allow external tools to run functions on Andorid device and perform system updates. The stock recovery is a limited system. A custom recovery is a third-party recovery environment. Compared to stock recovery, the custom recovery has more addtional features. It is modified to allow update packages that have not been digitally signed by official sources. Custom recoveries has the ability to create and restore device backups.
Head to TWRP official website and go to the Devices page for searching the version of your device. Go to the "download links" section on that page and download the TWRP image. Copy the TWRP image to the folder in which you have installed the ADB and rename it to twrp.img.
Every phone is a bit different to another when booted into bootloader. But most of modern devices boot into bootloader by turning off the device, then hold the "Power" and "Volume Down" buttons for 10 seconds before releasing. If this method doesn't work well on your device, you had better refer to the Google instructions.
Note:If the TWRP ask if you would like to root your device, choose "DO Not Install". Tt is better to root your device with KingoRoot, the professional one-click root apk for Android device, rather than having TWRP do it for you. Remember, backup before you do anything else in TWRP, lest you mess up your device in the process.
3a8082e126