[Moto G7 Power Guides, News, & Discussion] archstar1982:
HOW TO FLASH LINEAGE OS 17 WITH TWRP FOR XT1955-5 (WINDOWS PC)

1. Boot phone into bootloader

To get to Fastboot: Hold Vol Down + power button for more than 5 ~ 10 seconds

2. Temporarily booting a custom recovery using fastboot

Connect phone to PC, then use the command in Windows

"fastboot boot (file name of twrp)" ( e.g. "fasboot boot twrp-x.x.x-x-ocean.img")

2-a. !!IMPORTANT!! Pre-install instructions

If you are coming from stock ROM you must install copy-partitions zip file.

Within recovery go to Advanced >> ADB SIDELOAD >> swipe

In windows command "adb sideload (file name of copy partition)" ( e.g. "adb sideload copy-partitions-2020xxxx_xxxx.zip")

After install copypartition.zip, go to REBOOT >> BOOTLOADER

In windows command "fastboot -w" in Bootloader mode,, then go to step 3

2-b. If you are not coming from stock rom proceed to 3

Make sure to remove all Google account and security lock

3. Erase all data on both slots A/B

Go to bootloader mode, type "fastboot -w" in windows command (IGNORE ERROR/REMOTE FAILURE/ ITS OK!)

then boot into recovery by using command "fastboot boot (file name of twrp)" ( e.g. "fasboot boot twrp-x.x.x-x-ocean.img") in windows command

4. Formatting data and wipe Slot A or B

In recovery mode go to WIPE >> FORMAT DATA >> type "yes" then go back, then WIPE >>

check Dalvik/Art Cache, Data, Internal Storage, System >> SWIPE

5. Formatting data and wipe Slot A or B

Back to home by pressing back or home button then go to REBOOT(Don't reboot yet!!)

>> SLOT A(If you are coming from B in step 4) SLOT B(If you are coming from A in step 4) then go back to

>> WIPE >> Dalvik/Art Cache, Data, Internal Storage, System >> SWIPE. Back to REBOOT >> BOOTLOADER >> SWIPE

7. Boot back to recovery mode

Boot into recovery mode again use the command in Windows

"fastboot boot (file name of twrp)" ( e.g. "fasboot boot twrp-x.x.x-x-ocean.img") same as step 2

8. Install Lineage OS 17

In my case I was able to install without issue while I'm in Slot "A".

If you choose slot "A", custom rom will install to slot "B"

Within recovery go to REBOOT >> SLOT A >> back to home >> ADVANCED >> ADB SIDELOAD >> SWIPE

In windows command "adb sideload (file name of lineage os rom zip)" ( e.g. "adb sideload lineage-17.1-2020xxxx-nightly-ocean-signed.zip")

Installation now starts in slot B. When installed successfully >> REBOOT SYSTEM.

9. Bootloop or normal initial boot and back to bootloader

May bootloop twice, it will indicate corrupted need Factory Reset, Do the Reset..Rom will restart and boot..

When the rom boots up do not setup anything.

Just turn off the dvice and back to bootloader by "Hold Vol Down + power button for more than 5 ~ 10 seconds"

10. Installiing Google App

Boot into recovery mode again use the command in Windows

"fastboot boot (file name of twrp)" ( e.g. "fasboot boot twrp-x.x.x-x-ocean.img") same as step 2

Then go back to REBOOT to double check which slots you are in. It should switch to slot "B" automatic if not just press Slot "B".

Now back to home then go to >> ADVANCED >> ADB SIDELOAD >> SWIPE

In windows command "adb sideload (file name of G Apps zip)" ( e.g. "adb sideload open_gapps-arm64-10.0-nano-2020xxxx.zip")

!!At this moment DO NOT INSTALL MAGISK YET!!

11. Clean up and initial boot

Go to REBOOT >> BOOTLOADER

In windows command type "fastboot -w" in windows command (IGNORE ERROR/REMOTE FAILURE/ ITS OK!)

and type "fastboot reboot". Finally Lineage should starts now.

12. Magisk installation

After setting up your phone turn the developer mode and enable USB debugging.

Turn off your phone and back to bootloader again Hold Vol Down + power button for more than 5 ~ 10 seconds.

Boot into recovery mode again use the command in Windows

"fastboot boot (file name of twrp)" ( e.g. "fasboot boot twrp-x.x.x-x-ocean.img") same as step 2

Go to >> ADVANCED >> ADB SIDELOAD >> SWIPE

In windows command "adb sideload (file name of Magisk)" ( e.g. "adb sideload Magisk-vxx.x.zip")

After install back to home go to WIPE >> Dalvik/Art Cache >> back to home >> REBOOT >> SYSTEM.

At this moment my Favorite Game Pokemon Go works perfect!