• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

Duality ROM/Patcher, Legendary Battery Life! [V4.0][Oreo]

_LLJY

Elite Member
Jun 28, 2015
2,448
3,035
0
Singapore
Duality ROM


"It's a blade with two edges, so how good the blade is dependent on how the way you manage it"

Features(mostly jokes):
-Odexed
-Advanced init.d support(runs much more reliably than normal implementation)
-Magisk included(better than SuperSU)
-Magisk modules support
-Incredible Performance, 30% increase in app opening speeds!
-Supports Dual Sim( Look at post 3)
-Supports X Performance?(Needs evaluation)
-8hours Screen on time(tested by me)
-0% idle drain over 10hours
-New fingerprint fw from XZS(faster and more reliable)
-New Adreno Driver from XZS(Improved power management)
-New display calibration from XZS
-New XZS WiFi driver
-Governor Tweaks
-Stable
-Better thermal engine
-Massively improved battery life
-Audio Enhancements
-Debloated extensively
-Better memory management
-Higher Performance
-And Did I Mention Fantastic Battery Life?




PLEASE READ INSTALLATION INSTRUCTIONS (POST 3)

Please read the 3rd post as it contains the installation procedure


XDA:DevDB Information
Duality ROM, ROM for the Sony Xperia XZ

Contributors
_LLJY, PDesire, Blacksoulxxx, auras76, Androplus, Nimadroid, Asiier, dontbelive
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.18.35
ROM Firmware Required: Nougat
Based On: Stock

Version Information
Status: Beta

Created 2017-03-17
Last Updated 2017-03-16
 
Last edited:

_LLJY

Elite Member
Jun 28, 2015
2,448
3,035
0
Singapore
CHANGELOGS

LATEST:

Update V4.3
no ROM changes

kernel changes
-merged latest CAF tag
-upstreamed to latest linux version
-a few performance optimizations
-FIXED SDCARD and not booting for some devices

link: https://drive.google.com/file/d/1GDwLpPZC5kD01HTiT9M49uTsf6AbsyxB/view?usp=sharing

IMPORTANT:
PLEASE DO NOT USE ANY MODS LIKE LXT OR DZ, SOME VALUES MAY CONFLICT AND RUIN THE USER EXPERIENCE.

Installation Procedure:
Patcher(RECOMMENDED METHOD):
1. CLEAN flash FTF
2. Immediately boot into recovery and flash patcher
3. boot up the device.

Patcher + system(For people who for some reason, can't use flashtool):
1. CLEAN flash the zip
2. boot up device.
YOU HAVE TO BE ON STOCK OREO FOR BOTH METHODS

Possible Problems and Solutions (PLEASE READ):
1. Apps randomly crash
2. Phone does not boot up
3. No sim detected
Solutions:
1:
for substratum users, disable the theme for the app crashing
if apps are just randomly crashing out of nowhere and substratum isn't the cause, please clean install the patcher.

2: Clean install ftf and patcher

3: Install the MODEM and AMSS files from flashtool.

PLEASE READ INSTALLATION INSTRUCTIONS (POST 3)

OLD:
v1: RELEASE
https://drive.google.com/open?id=0ByXth_QA4mLkY1NmYXJTdTNCU28
V1.2:deprecated
V1.3: Official Release
https://drive.google.com/open?id=0ByXth_QA4mLkM3hYSXRGU00tUkE
- Improved cpu behaviour
- Massive performance increase
- Substantial Battery Improvements
- Better memory management
- Decreased ram consumption by ~500mb
- IMPROVED CAMERA (xnext mod) special thanks, @[email protected]
V1.4
https://drive.google.com/file/d/0ByXth_QA4mLkZmpudXhsTzZIbDQ/view?usp=drivesdk
DUAL AND SINGLE SIM CONVERTER UPDATED, DOWNLOAD FROM 3RD POST (SAME LINK)
- Improved smoothness
- Should bring better battery life
- Partially added smart ssd manager
- Added Auto trim every 12hours
- Better app launching time
- RAPTOR PERFORMANCE ENGINE
- Better I/O performance
- MUCH BETTER SOUND
- ROM reduced in size by 100mb
https://drive.google.com/file/d/0B1GT7O5RajNnWHJYUk0yNXU3NUE/view?usp=sharing
-Added Google messages
-AROMA installer
-Removed Sony Messages
-Performance improvements
-XZS Camera
-XZS WiFi driver
-XZS fingerprint firmware
-XZP display calibration
-Improved viewing under sunlight
-XZP audio processing
-New Adreno Drivers
-MagiskSU
-Magisk Manager
-Precise Volume Control

V1.6
https://drive.google.com/file/d/0ByXth_QA4mLkOGo1endtQWR4ZlE/view?usp=drivesdk
PLEASE READ INSTALLATION INSTRUCTIONS (POST 3)
-Added preliminary XP support
-Added Xperia XZS improved front camera drivers(backport)
-Added XZS camera drivers
-Improved sound from XZS
-Improved raptor performance engine
-FIXED CAMERA

V2.0.1
-Backported XZS drivers and firmware
Better GPU power usage
Better Fingerprint recognition
Smoother ui?

-Updated CPU behaviour for Raptor performance engine
More efficient CPU
Now is much more responsive to load changes
Now using load from scheduler instead of interactive algorithm
Overall, Significantly less power usage for MORE performance
- Added Google Play Drain Fix
Credit @Rtester
-Latest 7.1.1 version 41.2.A.2.223
-Fixed Keyboard
-Fixed Modem
https://drive.google.com/open?id=0ByXXSmB9BrXyM0V3QWk0MFpyazA

Duality ROM V2.1 .1
https://drive.google.com/open?id=0ByXXSmB9BrXyQjFzaXRDV0dWRU0
-Added Call Recording by @serajr
-Added newest drivers from XZS
-Added command to switch governor profiles
-Fixed youtube lag
-Enabled 4k playback in youtube
-Improved audio
-Enabled AC3 audio codec
-Fixed bug with screen mirroring
-Better Overall Performance
-Enabled cpu boost on big cores

Duality ROM V3.0
-The biggest update yet!!
-Added Low level soundmod (SoX), sounds much better than before
-Newest Adreno drivers with newest openCL and Vulkan API from Qualcomm
-Better GPU power management
-reverted to stock thermals(cooler but less performance)
-XZS systemui
-Xperia Loops Theme
-Google Play Services can now be optimized by doze
-Xperia Loops Wallpaper
-Magisk 13.3
-Improved Battery life from new cpu configs
-Duality Kernel V14(Biggest update to Duality kernel)

-New powersaving mode(modified deeznuts governor profile)
-type 'su', then 'powersave' into terminal window to activate, reboot to reset to default

https://drive.google.com/open?id=0ByXth_QA4mLkUXhhRzl3UGI2a3M

Duality ROM V3.5
V3.5 changelog -Most optimized update to date!
https://drive.google.com/file/d/0B_Y9xOV9PpkbdWhQcTRwMlpXZFE/view?usp=sharing
-Sony screenrecorder thanks @serajr for discovering that its possible!!
-Fixed VOLTE
-ART tweaked for kryo
-Improved thermal engine
-cleaned up init.d
-Improved Battery life
-Enabled AC3 audio codec again
-Fixed screenmirroring bug
-Loops theme + wallapaper
-Debloated extensively
-Xperia Actions
-somemore i forgot
kernel:
-completely new kernel(DK14)
-zero crashes
-more aggresive optimization flags

Duality Patcher(V4)
Duality Patcher
(changes from normal Duality ROM)
- We are now using a different system for releases, a patcher instead of a full rom
- There will be a second patcher with the latest system.ext4 for those without ftf.
- Settings> info now displays selinux status
- Revamped soundmods
- Revamped way of adding build.prop values
- Now using blob drm fix
- Busybox is now installed to /system
- Updated Gboard
- Updated cpu parameters for much better efficiency

Duality V4.2!
Kernel changes:

-Upstreamed to latest Linux Stable tag
-Upstreamed to latest CAF tag(possible performance and battery improvements here)
-Fixed some issues with GPU performance
-cpusets and schedboost has been enabled.
-A whole lotta security patches
-New properly patched ramdisk
-Fixed a lot of issues with the previous kernel.

ROM changes:

-Huge cleanup, with many things being removed and replaced
-Systemui.apk is now replaced with an overlay with its changes
-Apps have been updated
-CPU parameters adjusted to improve performance.
-Updated Thermal Engine

Planned for the next few days:
-App to switch between cpu profiles
-Kernel to be upstreamed again
-A hotplug if battery life seems to improve
 
Last edited:

_LLJY

Elite Member
Jun 28, 2015
2,448
3,035
0
Singapore
IMPORTANT
Installation Procedure:
Patcher(RECOMMENDED METHOD):
1. CLEAN flash FTF
2. Immediately boot into recovery and flash patcher
3. boot up the device.

Patcher + system(For people who for some reason, can't use flashtool):
1. CLEAN flash the zip
2. boot up device.

DO NOT FLASH ANY OTHER KERNEL EXCEPT DUALITY KERNEL
 
Last edited:

_LLJY

Elite Member
Jun 28, 2015
2,448
3,035
0
Singapore
The changes that make this ROM tick:
This ROM was built for stability and efficiency from the ground up, there are little added features or customization features like in existenZ, I'm leaving the feature packed ROM for AOSP

1. the interactive governor is heavily modded with the best possible efficient values and it is designed to ramp down into lower efficient frequencies when under sustained load. This is what makes the ROM efficient as it reduces heat and power consumption when doing intensive tasks.

2. Scheduling changes, the big cores have been tweaked to handle more tasks as they were under utilized. This improves efficiency and performance.

3. Debloating, Sony apps have been replaced by their google counterparts in order to function properly in the Google ecosystem. Not to mention this too saves battery. Not only that but useless sony apps have also been removed

4. Storage management(coming soon) in the future, a smart SSD manager will be added to the ROM. Its job is to optimize and manage the storage to work as optimally as possible. It will work in tandem with smart cleaner to provide a fast and efficient storage subsystem.



Lastly,
Addressing concerns about odex vs deodex

On LP and MM, there is no significant difference between the two in terms of speed and functionality
On Nougat, there is a significant difference,
On MM and LP, ART compiles the apps ahead of time on first boot, therefore apps are theoretically odexed once the ROM has booted

On Nougat/Oreo, Android boots without compiling the apps and instead compiles apps in the background during times of low load/idle. THIS SIGNIFICANTLY AFFECTS PERFORMANCE AND BATTERY LIFE*

Therefore, deodexing is generally not recommended on Nougat
 
Last edited:

karrouma

Elite Member
Jun 27, 2013
1,976
641
113
417, there is no 442 custom kernel(also because im waiting for androplus to merge my pull request for overclocking)
Yes it is stock rom.
Working nice with some modifications and some tweeks.
My stock xz rooted have 90% same modifications.
Thank you @_LLJY

I updated my stock xz to .442 but using v21 kernel and working fine with twrp3-1-0
 

pk-air

Senior Member
Jan 22, 2012
554
150
0
Denver, CO
It is based on 417 but which region? I know it isn't matter much but good to know.
It based on 417 single or dual version? Yes you have converters to flash along but what if we dont flash it?
Thank you for your hard work!
 

_LLJY

Elite Member
Jun 28, 2015
2,448
3,035
0
Singapore
It is based on 417 but which region? I know it isn't matter much but good to know.
It based on 417 single or dual version? Yes you have converters to flash along but what if we dont flash it?
Thank you for your hard work!
if you do not flash them, mobile data will not work
 
  • Like
Reactions: pk-air

karrouma

Elite Member
Jun 27, 2013
1,976
641
113
So are you on this ROM or 442?
I have three sony xz dual
One with your rom Duality ROM replaced RomAur
One with eXistenZ N | v5.6.0
And one with stock rom .442

Seems like your rom have same battery life than stock but little faster
The stock one is with my wife
And i have the two others
 

_LLJY

Elite Member
Jun 28, 2015
2,448
3,035
0
Singapore
I have three sony xz dual
One with your rom Duality ROM replaced RomAur
One with eXistenZ N | v5.6.0
And one with stock rom .442

Seems like your rom have better battery life than stock
And faster
The stock one is with my wife
And i have the two others
It's not even done yet haha
Internal testing shows that next version might have at least a 25% increase in battery life