[ROM][7.1.2][E6533/53] Resurrection Remix N 5.8.4 for Xperia Z4 (ivy) [UNOFFICIAL]

Search This thread

sabri dolah

Mar 2, 2015
Looking great...


  • Screenshot_20190221-095811.png
    94.9 KB · Views: 483


Mar 25, 2017
I am trying to build ressurection remix rom from the sources but getting this error!
What to do now?

[email protected]:/rr# . build/envsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/sony/ivy/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash

▼ Which build-type do you want to choose?

〉 1- Official ︱ Only for the official builds by the maintainers

〉 2- Unofficial ︱ For the unofficial builds

〉 3- Nightly ︱ Only for the official daily builds by the maintainers

〉 4- Weekly ︱ Only for the official weekly builds by the maintainers

〉 5- Release ︱ Only for the official releases by the RR-Team

〉 6- Milestone ︱ Only for the milestone releases by the RR-Team

〉 7- Experimental ︱ Only for the experimental releases by the RR-Team

〉 8- Final ︱ Only for the final releases by the RR-Team

〉 30/sec Time-out ︱ Default option

▼ Pick a number


Building unofficial variant

▼ Which root method do you want to use?

〉 0- Magisk ︱ Magisk Root Method

〉 1 or any other input- Rootless ︱ Unrooted builds [default]

〉 30/sec Time-out ︱ Default option

▼ Pick a number


Using magisk root!

▼ For how many days changelog do you want to generate?

〉 30/sec Time-out ︱ 7 Days by default

▼ Type a number


〉 Generating day number 1 08/01/2019..

√ Changelog successfully generated.

[email protected]:/rr# lunch

You're building on Linux

Lunch menu... pick a combo:
1. aosp_arm64-eng 4. aosp_mips-eng 7. lineage_ivy-userdebug 10. mini_emulator_x86_64-userdebug
2. aosp_arm-eng 5. aosp_x86_64-eng 8. m_e_arm-userdebug 11. mini_emulator_x86-userdebug
3. aosp_mips64-eng 6. aosp_x86-eng 9. mini_emulator_arm64-userdebug

Which would you like? [aosp_arm-eng] 7
Looking for dependencies in device/sony/ivy
Looking for dependencies in device/sony/kitakami-common
Looking for dependencies in device/sony/common
Dependencies file not found, bailing out.
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.

[email protected]:/rr# brunch ivy
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/sony/ivy
Looking for dependencies in device/sony/kitakami-common
Looking for dependencies in device/sony/common
Dependencies file not found, bailing out.
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.

make: Entering directory '/rr'
Running kati to generate build-lineage_ivy.ninja...
vendor/sony/kitakami-common/BoardConfigVendor.mk was modified, regenerating...
find: ‘/rr/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
cp: cannot stat '/rr/ota_conf': No such file or directory
PRODUCT_COPY_FILES vendor/sony/ivy/proprietary/vendor/lib/libmmcamera_chromaflash_lib.so:system/vendor/lib/libmmcamera_chromaflash_lib.so ignored.
PRODUCT_COPY_FILES vendor/sony/ivy/proprietary/vendor/lib/libmmcamera_optizoom_lib.so:system/vendor/lib/libmmcamera_optizoom_lib.so ignored.
PRODUCT_COPY_FILES vendor/sony/ivy/proprietary/vendor/lib/libmmcamera_ubifocus_lib.so:system/vendor/lib/libmmcamera_ubifocus_lib.so ignored.
Starting build with ninja
ninja: Entering directory `.'
[ 0% 6/48517] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/rr/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[ 0% 6/48517] host C++: aprotoc <= external/protobuf/src/google/protobuf/message.cc
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/rr'

#### make failed to build some targets (23 seconds) ####

No Jack server running. Try 'jack-admin start-server'


Senior Member
Jul 6, 2015
Samsung Galaxy S9
Xiaomi Mi A2
I am trying to build ressurection remix rom from the sources but getting this error!
What to do now?

hello, i really hope you can make it happend... i also have that error when i try to build unofficial lineage... i google it and found this solution:

This will do the trick:

export LC_ALL=C
Add it to your bashrc file or equivalent.

also find this "trick" on a web site calle Hacks&Geeks...

Just type the below command in the terminal and the error will be fixed

export USE_NINJA=false

i hope this help you and really really really hope you can make it...
thank you for your hard work!
p.d. i'm also a noob
Last edited:


Recognized Developer


Recognized Developer
a more detailed listing - from what I could reconstruct from the google drive contents:

I don't plan to leave those kernels up forever (Google Drive is 75% full with kernel and ROM stuff) - so get them if you need and while they are still available !

Z5 / Z4|Z3+ (ivy) (asian variant) [+/- single SIM | DSDS - specific versions mentioned]::

ROM + Kernels available:


Z5 / Z4|Z3+ (ivy) various kernels (stock ROM ? | different Android versions)


Z5 / Z4|Z3+ RR (Resurrection Remix) ROM - Android 7.1.2 (RR 5.8.5) (Kernels + separate ROM available):


Z5 / Z4|Z3+ RR (Resurrection Remix) ROM - Android 7.1.2 (RR 5.8.4) (Kernels + separate ROM available):


Top Liked Posts

  • There are no posts matching your filters.
  • 20
    September 2021 update:

    Since I've been getting requests lately due to Google's updated Google Drive policy - here's the updated share link for the Z4/Z3+ kernels

    Z4_Z3Plus_Resurrection-Remix_5.8.4_Android-7.1.2 (including NovaCore in the Folder):



    Resurrection Remix Nougat

    Resurrection Remix the ROM has been based on LineageOS (formerly CM) ,slim, omni and original Remix ROM builds, this creates an awesome combination of performance, customization, power and the most new features, brought directly to your Device

    Special thanks to, the LineageOS (CM) team, OMNI team, SLIMROMS , @quarkx & @Olivier for the main work on ivy


    Based On Latest Google Android 7.1.2 release

    RR Customizations:-
    -Enable/Disable Navbar
    -Navbar Button Customization smartbar
    -Navbar Pulse
    -Navbar Fling
    -Double Tap To sleep navbar

    -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 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
    -Custom Logos
    -Logo Color
    -StatusBar Weather
    -Weather Color
    -Weather Position(left/right)
    -Weather Font Style
    -Weather Size
    -StatusBar Ticker
    -Ticker Text color
    -Ticker Icon Color

    -Toast Animations
    -ListView Animations
    -System Animations
    -Power Menu Animations
    -Misc Animations

    -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 Trigger(left ,Right ,Bottom)
    -Pie Targets
    -Pie Colors
    -More Pie Features

    -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 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

    -Backlight Timer
    -Backlight Strength

    -Advanced Reboot Menu
    -Power Menu Customizations
    -Power Off
    -Reboot(Recovery, Bootloader, Hot Reboot)
    -Power Menu End Calls Switch
    -Restart SystemUI
    -Airplane Mode
    -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

    -Selinux Switch (Switch Between Permissive and Enforcing Selinux if Device has Selinux Enabled)
    -cLock Shortcut
    -Disable Battery Saver Warning Color
    -OTA U
    -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)

    -Magisk root inbuilt

    -RR OTA

    -A Whole new RR Configurations
    -OverAll Smoothness Improvements
    -Optimizations to Improve Battery
    -Includes All Android Nougat Features
    -Includes ALL CM14.1 Features

    Installation Instructions



    same as LineageOS

    Source Code:




    XDA:DevDB Information
    Resurrection Remix 5.8.4 / Android 7.1.2 for Xperia Z4, ROM for the Sony Xperia Z4

    zacharias.maladroit, Quarx, Olivier, cdesai, Myself5, kali-, banmeifyouwant
    Source Code: https://github.com/ResurrectionRemix

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.10.x
    Based On: LineageOS

    Version Information

    Created 2017-08-29
    Last Updated 2017-10-28
    You want cool ? You get cool !
    (testing kernel, might be somewhat more unstable)


    changes include

    • PDesire Auralia v11.0
    • improved IRQ handling
    • (already mentioned)
    • .
    • WiFi PowerManagement is back ! (consumption is too high for my taste) - please report for idle WiFi drain
    • big-core off value has been lowered from 74°C to 68°C which should be way more friendly :eek:
    • switched to 7.2.1 Linaro Toolchain [testing]
    • several stability-fixes
    • optimized compiler flags
    • [BACKPORTS] several bluetooth stability-fixes, this should make reliability much better (?)
    • underclock of the BIG core to 1536 MHz, underclock of the little core to 1344 (best efficiency)
    • fixed additional Hz references in drivers to prepare for higher timer rate
    • sched: prefer awake CPUs over idle [might save more energy]
    • core_ctl: online delay - keep cores offline for 0.5s (500 ms) once unplugged (cooler, makes more sense)
    • a few other things not mentioned

    kudos to @frap129 for part of the changes :)
    There seems to be access issues to Google Drive for some of you from Japan or specifically educational background (university access),

    I've uploaded the ROM to Downloads section on XDA, checksums:

    md5sum RR-N-v5.8.5-20171023-ivy-Unofficial_zach.zip
    97f7f1810003eda6ad721cfed4a49d08 RR-N-v5.8.5-20171023-ivy-Unofficial_zach.zip

    0936e4349c345464b76a207032924e09 scripts_for_HMP-kernel.zip

    md5sum Z4_Z3P_SK_ENF_vN_RR_Facula_I.2.41_ivy.zip
    a32f56da5fd67140b1f9f6b6b5c415cf Z4_Z3P_SK_ENF_vN_RR_Facula_I.2.41_ivy.zip

    md5sum Z4_Z3P-DSDS_SK_ENF_vN_RR_Facula_I.2.41_ivy_dual.zip
    d29ad35450aec8df949bb5db110c2ffd Z4_Z3P-DSDS_SK_ENF_vN_RR_Facula_I.2.41_ivy_dual.zip

    The newest Facula I.2.41 kernel has several smoothness , security and battery runtime improvements
    Respected xda member.... I was referring to heating issue relatively found in stock/lineage/m rom/Kryptonian rom.RR is way hotter than any of the roms mentioned above..... Its just my opinion /observation based on after usage of all the above mentioned roms.
    I know it's qualcomm 810...the main culprit.But still RR has something in it, which is making it relatively hotter than other roms.

    M not complaining about it.... Just appreciating the hard work of the developer and writing my observations for the betterment of this rom.btw thnx everyone

    There's several factors: kernel (BCL, thermal, hotplug, and several other subsystems), ROM / thermal manager / "thermal engine", thermal config

    Please give @korom42 's Thermal mod a try:


    New "Facula" (Sun-)kernel Release [1_2_29_2_2]

    Explanation of the name:


    (lol - everytime I read the name I think "Dracula" :silly: )


    Resurrection Remix:

    changes include

    • based on the new patched up LineageOS Kernel base ( kudos to @Olivier )
    • bleeding edge Linaro 7.2.1 Toolchain
    • enhanced optimizations
    • bleeding edge binder 4.9
    • bleeding edge F2FS (currently NOT built into the kernel, WIP - so do NOT attempt to convert any partitions to it :p )
    • vibration enhancements to make it work more reliably
    • BCL (battery current limit) rework
    • msm-core fixes & improvements
    • several charger fixes,
    • fix for overflow during charging fully
    • ARP spoofing protection (thanks to @jollaman999 )
    • zram fixes & improvements
    • lz4 fixes
    • camera speedups & enhancements
    • ASoC: CPE enhancements & reliability improvements, stability improvements
    • stability & reliability improvements
    • writeback: speedups
    • Fauxsound
    • exfat in-built kernel driver + fixes & speed-ups
    • load average reductions to keep CPU load low
    • a few scheduler power consumption reductions
    • fixed/improved battery state calculation (the old one could overflow once the battery was full)
    • other things I forgot to mention

    Additional changes (for 1_2_4)
    • F2FS enabled
    • mm: per-thread vma caching added (reduction of the needed cycles for expensive rbtree walk of find_vma() by up to 250%, hit-rate improvement of 25-9431% [ebizzy] [cached] )
    • re-enabled msm-core polling, decreased the polling rate

    More changes (for 1_2_16)
    • added dynamic wakelock blocker from @PDesire (kudos !)
    • added a few serial fixes
    • do hotplug with SCHED_FIFO priority to make hotplugging more reliable under heavy load (re-added, seemed to have worked well in NovaCore)
    • revamped alarm driver to make setting an alarm time (even when the device is OFF (?) (sic!)) work as expected, so that it boots up 2 minutes before [needs testing]
    • add several timer fixes
    • several WiFi driver tweaks to (potentially) reduce power consumption
    • stability fixes against WiFi driver to avoid crashes / panics
    • add state_notifier
    • add PowerSuspend [seemed to be "at fault" for better power savings (?!) :cowboy: ]
    • add Adreno Idler to cut down power consumption of GPU
    • a few fixes to the adreno_tz driver
    • rework of the net/bluetooth subsystem with several reliability and stability fixes
    • rework of the drivers/bluetooth subsystem with latest bluetooth driver, power savings and stability fixes [FM/GPS/BT/ANT]
    • rework of the dwc3 ( "SuperSpeed (SS) USB 3.0 Dual-Role-Device (DRD) from Synopsys" ), to increase stability, reliability and cut down CPU load during e.g. charging, potentially also increasing performance
    • fingerprint driver stability / reliability improvement
    • touchscreen stability / reliability improvement
    • clk: add fixes to allow devices with broken cluster to boot (similar to Nexus 5X, Nexus 6P)
    • raise performance of mmc a bit
    • power button: increase the debounce delay a bit to make sure that Power Button work reliably (potentially fixed an screen stay black issue on Z5 compact)
    • raised mitigation frequency to 960 MHz, disabling hotplugging of BIG cluster upon BCL event [would lead to massive lagging] [eval]
    • enhanced optimized compiler flags
    • revert to 6.3.1 Linaro Toolchain (7.2.1 would throw internal compiler error), yep, I tend to stress things to the max and track down errors :D
    • other changes I forgot

    Additional changes (for 1_2_29_2_2)
    • vidc improvement
    • fix to power-button operation/handling (fixes ghost button touches, not waking up from sleep, etc.)
    • force cores 0 (little cluster) + 4 (big cluster) online
    • slub improvements
    • mm subsystem rework, allocation fixes (vmalloc), fragmentation reduction, compact memory while screen is off
    • tmpfs fixes
    • readahead improvements
    • bcmdhd (wifi) driver refinement, this should fix the high battery/energy usage during use
    • wifi: reduce wakelocks
    • cpuidle: rework
    • lpm (low power modes): rework
    • cpu-boost: rework, improvements, raise priority to SCHED_FIFO [smoother operation]
    • raise priority of kgsl [smoother operation]
    • kgsl: several improvements related to smoothness, latency, reliability
    • others I forgot

    (this is a joke, right ? "The message you have entered is too short. Please lengthen your message to at least 2 characters.")