[HOWTO] Install /e/ on Motorola Moto G7 (River)

Most devices have unique installation steps, The Moto G7 (codenamed River) is no exception. I have installed multiple ROMs on this model for multiple people and have seen most every possible scenario come up. In fact, these instructions will work for all G7 models (G7 Plus, G7 Play, G7 Power) with only a slight adjustment. The steps below are written from a windows perspective. While this whole process can be done on a Mac or Unix, I don’t have those so you will have to adapt.

Hopefully, this will ease your concerns, this phone is almost impossible to hardbrick (meaning that you almost can’t break the phone by modifying the OS. I would call it a softbrick. When something does go wrong, you can always go back to stock (the way the phone looked when you bought the phone) and start the modifications over. I can not be held responsible for your actions. Modifying your cell phone is your choice.

**This process involves unlocking the Bootloader. This will void the phone’s hardware warranty. **
**This process will delete all user data (pictures, music, downloads, etc.). **
Make sure you have backed up what you need to an SD card or in the cloud.

Safe download links for the Moto G7 (River) are available below.

If you are an advanced user, here are the steps summarized. (Detailed steps in link.)

  1. Unlock the bootloader
  2. From ADB temporarily flash TWRP (Instructions) (Download)
  3. Flash copy-partions.zip (Download - This is the same file LineageOS uses)
  4. Flash the ROM you want
  5. Flash TWRP-installer.zip (latest version)
  6. Reboot to Recovery
  7. Flash optional apps you want like Magisk.zip, GApps.zip, AddonSU, etc.
  8. Reboot to bootloader
  9. From ADB execute fastboot -w
  10. Boot to System
  11. Done!

Steps for beginners:

  1. Install Motorola drivers on your computer (Download Win x32) (Download Win x64) (Download Mac)
  2. Install ADB on your computer
    2.1 Click here for instructions on the xda-developers website tell you how to configure phone and computer, and where to download the software you need.
    2.2 The simplest place to install this to is the root folder c:\ so after it is installed you can access it from c:\ADB. If you save it somewhere else, make note of the directory where the adb.exe file is located. This will be further known as the “ADB folder”
  3. Download copy-partitions.zip and move it to your ADB folder. (Download - This is the same file LineageOS uses).
  4. Find the ROM you want to install (it should be a zip file), download, and copy it to your ADB folder (Download /e/ Unofficial for G7)
  5. Download the most recent TWRP-Installer-(version)-River.zip from TWRP and move it to the ADB folder. Currently it is twrp-installer-3.4.0-0-river.zip
  6. Download the most recent TWRP-(version)-river.img from TWRP and move it to the ADB folder. Currently it is twrp-3.4.0-0-river.img
  7. Unlock Bootloader. You will need to sign-up for a Motorola account which is free and easy to do. Follow the instructions at Motorola Support to unlock your bootloader.
  8. Connect phone to PC with original USB-C cable and let drivers install if it needs to.
  9. Turn off phone.
  10. Hold the Power + Volume Down buttons for several seconds and let go of the buttons when the screen comes up. You should see the Android laying down. The phone is now in “Bootloader mode” (or Fastboot mode as some websites call it)
  11. Open a Command prompt window on your computer and change the directory to the ADB folder
  12. Type fastboot boot twrp-(version)-river.img (or whatever the name of the TWRP file you downloaded is). (example: fastboot boot twrp-3.4.0-0-river.img) Your phone should boot to TWRP home screen.
  13. In TWRP press Advanced > Sideload > Swipe to Start Sideload
  14. In the command window on your computer type adb sideload copy-partitions.zip
  15. Reboot into bootloader mode
  16. Type fastboot boot twrp-3.4.0-0-river.img (or whatever the name of the TWRP file you downloaded is). Your phone should boot to TWRP home screen.
  17. In TWRP press Reboot. At the bottom of that screen, confirm the partition is set to A, if not select “Slot A”
  18. Go back to the Home screen by pressing the Home icon at the bottom center.
  19. Press Wipe > Format Data > type yes and enter
  20. Go back to the Home screen
  21. Press Wipe > Advanced Wipe > select Dalvik, Data, System (only those three) and Swipe to Wipe at the bottom
  22. Go back to the Home screen
  23. Press Reboot > Bootloader and the phone will reboot
  24. Type fastboot boot twrp-3.4.0-0-river.img (or whatever the name of the TWRP file you downloaded is). Your phone should boot to TWRP home screen.
  25. Press Advanced > ADB Sideload and Swipe to Start Sideload
  26. In the command prompt window type adb sideload (the name of the ROM.zip that you downloaded). (example: adb sideload e-0.7-p-20191205-UNOFFICIAL-river.zip)
  27. Go back to the Home screen.
  28. Press Advanced > ADB Sideload and Swipe to Start Sideload
  29. Now type adb sideload twrp-installer-3.4.0-0-river.zip (or whatever name is the TWRP-installer.zip file is). (this is important!)
  30. Go back to the Home screen.
  31. Press Reboot > Bootloader and the phone will reboot
  32. In the command window type fastboot -w

Officially, you are now modded with a new ROM. However, some people want to install GApps, root or Magisk. These are optional. If you downloaded the /e/ ROM, then don’t install Google Apps, but if you installed Lineage, Havoc, or another ROM, you may want to install GApps, BitGapps, or Open GApps. Most people will want to install Magisk so I will continue with those steps.

  1. Download Magisk-v20.4.zip and move it to the ADB folder
  2. Download MagiskManager-v7.5.1.apk
  3. Type fastboot boot twrp-3.4.0-0-river.img (or whatever the name of the TWRP file you downloaded is). Your phone should boot to TWRP home screen.
  4. Press Advanced > ADB Sideload and Swipe to Start Sideload
  5. Type adb sideload Magisk-v20.4.zip
  6. If you have any more optional zip files to install, put the files in the ADB folder and type adb sideload (filename).
  7. Reboot to bootloader from TWRP.
  8. Type fastboot -w (this will wipe your userdata partition)
  9. Boot to system
  10. Complete the initial setup
  11. Settings > About Phone > press “Build Number” 7 times to enable Developer mode.
  12. Settings > System > Advanced > Developer options
  13. Enable Advanced Restart debugging in developer options
  14. Enable Android Debugging
  15. Install MagiskManager-v7.5.1.apk

Links:
Telegram Support Group
Lineage River Installation

2 Likes