[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] filipepferraz:
Credits

Moto X4 is getting some custom rom love, because [MENTION=6298645]erfanoabdi[/MENTION] worked in BEAST mode and created the trees for this device, even though he does not own the device.

A big thanks too [MENTION=921457]munchy_cool[/MENTION] that organized and build the Lineage 15.1, CarbonROM 6.1 and Resurrection Remix v6.1.

I will help then to maintain the RR build and try to get nearly as possible from fixes in Lineage.

Obligatory Warning: This guide and ROM assumes you know the fundamentals of fastboot, flashing TWRP, and running a flash all. Your warranty is voided because of the unlocked bootloader. This is a Third Party ROM. Things may not work as expected compared to stock (for better or for worse).

not wo

Warning 2: If you can't do fastboot commands, do a flash all, root your device or flash TWRP/ROM, please do not ask for help here. If you cannot flash all back to stock, please stay stock for everyone's sake.

Warning 3: if you don't flash the firmware zip so both slots have the firmware, when you boot after flashing, you WILL have a bootloop or even a brick.

Warning 4 : This is an Engineering build, which means it's pre rooted and all apps have access to root. Only the SU binary is missing.

Warning 5 : Kernel is permissive.

This is an initial release and it WILL have bugs. If your phone is a daily, and you cannot afford downtime or random reboots then please do not flash.

I am new to this, DO NOT expect fixes on the fly. Post logcats and I will see what I can do.

​

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Resurrection Remix Oreo

Resurrection Remix the ROM has been based on LOS, Slim, Omni, DU and original Remix ROM builds, this creates an awesome combination of performance, customization, power and the most new features, brought directly to your Device

[font=Verdana, Arial, Helvetica, sans-serif]Many things that in previous versions were tweaked with mods, are now included by default in the ROM so, please enjoy Resurrection Remix![/font]

Special thanks to the LOS ,OMNI, DU, SLIMROMS teams and of course to all the supporters.[/center]
​

ALOT of work has gone into getting RR up to android 8.1. We really hope you guys enjoy what we have helped create for you!

​

Included Main Features

Based On Latest Google Android 8.1.0_r11 release

Resurrection Remix Crowdin : https://crowdin.com/project/resurrectionremix/

RR Customizations:-

-Enable/Disable Navbar

-Navbar Button Customization smartbar

-Navbar Pulse

-Navbar Fling

-Double Tap To sleep navbar

-Statusbar

-Brightness Slider

-Enable/Disable Show Notification Count

-SuperUser Indicator Switch

-Double Tap To sleep Statusbar

-Carrier Label

-Carrier Label Switch

-Carrier label Color

-Carrier Label Size

-Clock Customizations

-Time & date

-Day & date Toogle

-Center/Right/Left Clock Choice

-Date Format

-Clock Font Styles

-Battery

-Battery Bar customization

-Battery Icon Customization(circle/landscape/Potrait and more)

-Battery % Text

-Network Traffic Indicator

-Network Traffic Arrows Switch

-Incoming/OutGoing Traffic

-Network traffic Color

-Statusbar RR Logo

-RR logo Color

-Position

-Custom Logos

-logo Color

-Position

-Style

-StatusBar Weather

-Weather Font Style

-Weather Size

-StatusBar Ticker

-Ticker Text color

-Ticker Icon Color

-Animations

-Toast Animations

-ListView Animations

-System Animations

-Power Menu Animations

-Misc Animations

-Gestures

-Gestures Anywhere Feature

-3 Finger Swipe Screenshot Gesture

-App Circle Bar

-Choose apps in AppSidebar

-Trigger Width

-Trigger Hieght

-Trigger Position

-App Sidebar

-Choose apps in App circle

-Trigger Width

-Trigger Hieght

-Trigger Position

-Pie

-Pie Trigger(left ,Right ,Bottom)

-Pie Theme (light or dark)

-Recents Panel

-Clear All button Switch

-Clear All Tasks Switch

-Clear All Button Location(Top right,Top Left,Top Center,Bottom Left,Bottom Right,Bottom Center)

-Full Screen Recents

-Recents Styles

-Cclock Widget

-CLock And Alarm Customizations

-Weather Panel Customizations

-Calender Events

-LockScreen

-Lockscreen Bottom Shortcuts

-Lockscreen General Shorcuts

-100+ Icons for Shortcuts

-Double Tap to Sleep Lockscreen

-Lockscreen Media Art/Enable Disable

-Quick PIN/Patter Unlock

-LockScreen Wallpaper

-Lockscreen Weather Widget

-Lockscreen Icons Color

-Quick Settings Draggable Tiles

-Customizable Tiles

-Dyanamic Tiles Adjustment

-Number of columns/rows

-Tile Animations

-Notification Drawer

-LongPress Toogles to Enter Settings

-Disable Immersive Mode Messages

-Force Expand Notification

-Quick PullDown

-Smart Pulldown

-Notification Panel Transperency

-Volume Dialog Transperency

-Notification Panel Stroke

-Volume Dialog Stroke

-Buttons

-Backlight Timer

-Backlight Strength

-Advanced Reboot Menu

-Power Menu Customizations

-Power Off

-Reboot(Recovery, Bootloader, Hot Reboot)

-ScreenShot

-Power Menu End Calls Switch

-Restart SystemUI

-Airplane Mode

-ScreenRecord

-On the Go Mode

-Sound Panel

-Home Button(For devices with HW keys Only)

-Home Button answer call

-Long Press Actions

-Double Tap Actions

-Menu Button(For devices with HW keys Only)

-Short Press Actions

-Long Press Actions

-Search Button(If Device Supports)

-Short Press Action

-Long Press Action

-Volume Buttons

-Wake Up Device

-Playback Control

-Ringtone Volume Control

-Keyboard Cursor Control

-Swap Buttons on Landscape mode

-Volume Key Answer

-Miscellaneous

-Selinux Switch (Switch Between Permissive and Enforcing Selinux if Device has Selinux Enabled)

-Disable Battery Saver Warning Color

-Cammera Shutter Sound Enable/Disable

-SystemUI Tuner

-Enabled By default

-Removed Demo mode and Tweaked SystemUI Tuner As compared To AOSP

-StatusBar Icons Cuzomizations

-Quick Settings Customizations

-Other Features

-Perfomance Profiles

-LCD Density

-Expanded Desktop Mode

-Heads Up Switch and customizations

-Live Display

-Configurable 0,90,180,270 Degree Rotation

-Lock Screen Autorotate Switch

-Native Tap to Wake From Marshmallow

-Double Tap Power Button To enable Camera gesture

-Prevent Accidental Wakeup

-Wake Phone on Charging Plug

-Battery Light Customizations

-Notification Light Customizations

-Font Size

-CM privacy guard

-Performance Tweaks(Kernel Aduitor Inbuilt)

-A Whole new RR Configurations

-OverAll Smoothness Improvements

-Optimizations to Improve Battery

-Includes All Android Nougat Features

-Includes ALL CM15.1 Features

-AND MUCH MUCH MORE

Not Working :

Engineering Build - you will get a strict mode red-rectangle flash.

no moto onenav gestuers (settings -> system -> customize-> buttons -> on screen navbar)

You tell me

How to Boot into fastboot/bootloader mode

1. Reboot phone, and keep volume down pressed while device is rebooting until you see bootloader mode screen.

2. While phone is off, press volume down and then press power button. Keep holding both until you see bootloader mode screen.

How to Install

Video is for LineageOS, but process is same for RR ROM as well.

Video

[YOUTUBE]2-Kcwjyk_Ls[/YOUTUBE]

Moto X4 A/B Slots Explained

[youtube]zVwYxp30dps[/youtube]

Steps

1. Download the ROM, TWRP (zip and Image), Gapps (optional) from Downloads section. Place TWRP image zip in same folder as where you have fastboot.

2. Prepare your phone for AOSP style ROMs. (download one of the firmwares depending on your model). Boot into bootloader mode.

Flash the firmware with the flash_all.bat (Windows) file or the flash_all.sh (Linux & Mac) (See links on Post #2).

Windows

flash_all.bat

Mac/Linux

./flash_all.sh

Tested only on XT1900-1 on Android 8.0 model for now. Feel free to try on other models. Check for any errors in the process, DO NOT proceed if you have any errors. Once flashed successfully, reboot into Android to make sure all is well.

Windows

fastboot reboot

Mac/Linux

./fastboot reboot

3. Wipe internal data. Reboot back into bootloader mode and run the command "fastboot -w" (this will erase EVERYTHING from your phone, even internal SD, but is needed to have these ROMs work). Make sure to remove your external sdcard before doing this. Once done, REBOOT into Android to make sure all is well. Skip all the setups.

Windows

fastboot -w

Mac/Linux

./fastboot -w

4. Transfer ROM zip and TWRP zip to internal memory of device. Reboot device into bootloader mode.

5. Boot to TWRP using fastboot. Using command prompt/terminal navigate to folder where fastboot is.

Windows

fastboot boot twrp-3.2.1-1-payton.img

Mac/Linux

./fastboot boot twrp-3.2.1-1-payton.img

5. Once booted into TWRP, click on Install - and select TWRP zip transferred in Step 1. Once done, Reboot back into system to check all is well.

6. Boot into TWRP again (reboot device, keep volume down pressed while device is rebooting. When you see bootloader mode, let go of volume down. Press volume up until you see recovery mode, press power button to select. Now you will boot into TWRP recovery).

8. Once in TWRP. Go to Wipe and swipe to factory reset. Go back, select Install and select Linage OS Rom zip, also add the TWRP zip file and click on install. Once done, wipe cache/dalvik.

Do note, recovery is built into kernel with our device so flashing any rom or kernel will result in TWRP being overwritten. DO NOT flash Magisk (any root package) or Gapps. Once ROM (and optional TWRP) have flash successfully, go to main menu :-

Now you have two options. If you WANT gapps do step 9. else go to 10. If you install gapps after booting into rom, gapps will crash. So, make your choice now.

9. Go back to TWRP main menu. Click on reboot, note down the slot you are on and select recovery.

You will now boot back into TWRP recovery. Click on reboot, and you should be on the other slot. Go back to main menu, transfer the gapps package to internal memory and install gapps.

10. Go back to TWRP main menu. click on reboot and select bootloader.

11. Once in bootloader mode. issue below command.

Windows

fastboot -w

Mac/Linux

./fastboot -w

Once done, reboot.

Windows

fastboot reboot

Mac/Linux

./fastboot reboot

11. To ROOT, booting into Android once is necessary whether you want gapps or not. After booting into Android once reboot back into TWRP, and then flash your root package zip, reboot and enjoy.

How to Update

Transfer rom, gapps and twrp zip to internal storage.

Boot to TWRP.

flash Rom + TWRP zip

Boot back to TWRP recovery

Flash GApps

Wipe Cache + Dalvik

Reboot to System

Coming from Another custom ROM, have already flashed firmware zip

Transfer rom, gapps and twrp zip to internal storage.

Boot to TWRP.

Wipe -> Swipe to factory reset

flash Rom + TWRP zip

Boot back to TWRP recovery

Flash GApps

Wipe Cache + Dalvik

Reboot to System

Support :

1) Search. Search, search, search. If you make the effort of reading atleast 5 pages back, most if not all your questions will be answered. I personally, will ignore any questions, if I know they have been answered in the last 5 pages. Not being rude, but please read.

2) If you can't find answers in last 5 pages, ask here, be respectful and have a good time.

Downloads :

TWRP (Zip + Image, Download 3.2.1-1): TWRP for Payton

ROM : Unofficial Resurrection Remix ROM (payton)

Gapps : OpenGapps

Magisk : Stable Magisk

ROMs Folder: Unofficial Resurrection Remix ROM Folder with Builds (payton)

Notes :

Only Clean Installation Please

Bug Report Without logs means nothing

3rd PARTY ADDONS/MODS :

While we have no issues with people using supersu/magisk/xposed/custom kernels/etc, we can't provide support for users who have them installed.

This thread is not the right place to discuss about mods/addons.

Reporting Bugs :

DO NOT Report bugs if you installed Xposed.

DO NOT Report bugs about Magisk Modules.

Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)

If it is a random reboot, grab /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)

Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

Sources :

Resurrection Remix ROM

Device tree :

moto-sdm660-common

payton

Kernel :

moto-msm8998

Vendor tree :

moto-sdm660-common

payton

XDA:DevDB Information

Unofficial RR ROM for Payton, ROM for the Moto X4

Contributors

erfanoabdi, mightysween, gee one, Lineage Team, Resurrection Remix Team

Donations

Donate to Resurrection Remix

ROM OS Version: 8.1.x Oreo

ROM Kernel: Linux 4.x

ROM Firmware Required: No Requirements

Based On: AOSP

Version Information

Status: Testing

Created 2018-06-13

Last Updated 2018-06-30