[MOD] Lenovo ZUK Z2 Pro - SoundMod DualSpeaker - (05/03/2018)- (MAGISK+TWRP)

Dante63

Senior Member
Nov 1, 2015
1,183
1,110
143
27
On the Cloud
Hello Everyone,
I hope you all are great...

I have received a post on my thread requesting a soundmod for Lenovo ZUK Z2 Pro - from user dimitar.petrunov
BIG Thanks to him for providing me the files and for his time in testing...
And Thanks to Co.okie4u for testing the MOD on AEX 5.1 Android Oreo 8.1...

PLEASE GIVE ME YOUR FEEDBACKS IN ORDER TO IMPROVE THE MOD...

!!! ALWAYS MAKE BACKUP OF YOUR FILES BEFORE REPLACING THEM !!!
No worries if you forgot to backup, I have uploaded the backup just in case...
Just extract the "Lenovo_ZUK_Z2_Pro_DualSpeaker.zip" and get the mixers and place them in your (system/etc) &
IMPORTANTLY set mixer permissions to 644 (rw-r--r--) ...
then reboot...
or
Flash "TWRP_Lenovo_ZUK_Z2_Pro_DualSpeaker.zip", it will place backup of original mixers and replace current mixers with Modded mixers...
(need Testers)
or
Use the Magisk Module "MAGISK_Lenovo_ZUK_Z2_Pro_DualSpeaker.zip"
(need Testers)

Let me know if you face any issues...
Google Drive: Lenovo Zuk Z2 Pro - SoundMod - DualSpeaker

IMPORTANT NOTICE:
This MOD can be used with Equalizers, even though this mod sets the phone to the loudest balanced volume gain...
Using Equalizers might cause crackles and noise which damage your earpiece if you don't fix it, to fix it either you adjust the other MOD settings by reducing the boost
or Adjusting my MOD by Opening mixer_paths_tasha.xml (Nougat) / mixer_paths.xml (Oreo)
and edit value 84 to 80 or less for earpiece and value 89 to 85 for speaker, change at your own risk...
Each Device and brand have different SAFE LEVELS however things to Consider AVOID NOISE and CRACKLES:
--- for earpiece: upto 10 value increase is safe (value 84 to 94 or 95 is Safe)
--- for Speaker: upto 10-20 value increase is safe (value 89 to 99-109 Approxed 100-110)
Keep in mind increasing the volume will cause you issues when using it with other sound mods such as Viper, Dolby, etc...


Code:
    <path name="speaker">
...........................................
        <ctl name="RX1 Digital Volume" value="89" /> <!--speaker-->
...........................................
        <ctl name="RX0 Digital Volume" value="84" /> <!--earpiece-->
............................................
    </path>
Don't Forget to say :good: THANKS :good: ...

And Please, your Feedbacks are important for futuristic updates to improve the MOD...
 
Last edited:

Dante63

Senior Member
Nov 1, 2015
1,183
1,110
143
27
On the Cloud
Changelog

(05/03/2018)
--- TWRP has been updated, it will backup your current Mixers in the same path with file name as "mixername.xml.bak0", if you flash TWRP file twice you'll lose your Original...
(28/02/2018)
--- Updated MOD to Full DualSpeaker (Both Speakers are not Active Always)...
(15/02/2018)
--- Magisk Module updated to support V15 and above...
(11/02/2018)
--- Fixed Sound issues in some application, It's kernel related as it's unable to utilize both speakers, (You now have Partial DualSpeaker, any application requesting ultra-low-latency will use Speaker only) wait till I release a fix ¯\_(ツ)_/¯...
(07/02/2018)
--- Mod for Android Oreo 8.1 Released, Credits go to XDA member Co.okie4u for testing & providing the new name and path of the mixer as well Original Mixers of Oreo to compare with the Nougat Mixers to verify MOD Compatibility...
(30/01/2018)
--- Mod Released...
(29/01/2018)
--- Started thread upon request from dimitar.petrunov...
 
Last edited:

Dante63

Senior Member
Nov 1, 2015
1,183
1,110
143
27
On the Cloud
Current Complaints:
--- None...

Current Requests:
--- None...

Currently Doing:
--- None....

Done:
--- Full DualSpeaker is possible now (Both Speakers are not Active Always)...
--- UPDATED MAGISK to V15 and above...
--- Fixed Sound issue, related to Kernel...
--- Mod Released...

Confirmed & Conclusions:
--- None...
 
Last edited:

Co.okie4u

Senior Member
Feb 23, 2017
92
39
0
Doesn't work on AEX 5.1

I have modded the Magisk File and it's now working on AEX 5.1

I've uploaded it to my gdrive but cannot post the link because of required posts ??

*Edit2* -> goo.gl / dUuuZw
 
Last edited:

Dante63

Senior Member
Nov 1, 2015
1,183
1,110
143
27
On the Cloud
Yes sir and filename.
AEX 5.1 is Oreo?
Also, are the contents of the old original mixer same as the AEX 5.1 original mixers... You may find few additional lines, if you're unsure, please post your original mixers...
I'll be adding the fix in the drive in order to maintain any updates...
I'll add credits to you for the feedback...

As for the volume, I already mentioned which lines increases the volume...
 
Last edited:

Co.okie4u

Senior Member
Feb 23, 2017
92
39
0
Yes, It's Oreo. 8.1

For earpiece i think 87 is better but this can be set by everyone individually. :)

Nice mod. Thank you for your initial work Dante ??

*Edit*

The only difference is that the default value for RX0 Digital Volume in the AEX configfile is 89 in yours it's 84.
 
Last edited:

Dante63

Senior Member
Nov 1, 2015
1,183
1,110
143
27
On the Cloud
Yes, It's Oreo. 8.1

For earpiece i think 87 is better but this can be set by everyone individually. :)

Nice mod. Thank you for your initial work Dante ?

*Edit*

The only difference is that the default value for RX0 Digital Volume in the AEX configfile is 89 in yours it's 84.
you're talking about the default values defined at the top...?
 

Co.okie4u

Senior Member
Feb 23, 2017
92
39
0
Nope,

I really mean the speaker level you mentioned.
It's set to 89 in the default AEX config.


<path name="speaker">
...........................................
<ctl name="RX1 Digital Volume" value="89" /> <!--speaker-->
...........................................
<ctl name="RX0 Digital Volume" value="89" /> <!--earpiece-->
............................................
</path>
 

Co.okie4u

Senior Member
Feb 23, 2017
92
39
0
89 for the earpiece distorts the audio while playing music(voice only output is fine). I believe a more valid reference for the value is the ZUI mixers file which I believe is not 89 but lower.
I've said use 86/87.
I'm using 86 for the earpiece speaker and it's all fine.
In the AEX original file the value is set to 89! I've send the file to him to proof it.
 

dimitar.petrunov

Senior Member
May 9, 2016
64
17
0
I've said use 86/87.
I'm using 86 for the earpiece speaker and it's all fine.
In the AEX original file the value is set to 89! I've send the file to him to proof it.
Using AEX for reference is not a good indication for the correct volume level but I guess it all depends on your individual hearing loss. Pro tip: https://www.youtube.com/watch?v=qNf9nzvnd1k
 
Last edited:

mindkiller_18

Senior Member
Jan 3, 2011
146
40
0
Munich
Nope,

I really mean the speaker level you mentioned.
It's set to 89 in the default AEX config.


<path name="speaker">
...........................................
<ctl name="RX1 Digital Volume" value="89" /> <!--speaker-->
...........................................
<ctl name="RX0 Digital Volume" value="89" /> <!--earpiece-->
............................................
</path>
Hi, in which file I can change these values after installing it via Magisk?
 

Co.okie4u

Senior Member
Feb 23, 2017
92
39
0
With this mod installed (Magisk one) on AEX 5.1 the game Gods of Rome have no audio output.

Disabled the mod and the audio is back to normal.
There is also a bug in WhatsApp. You can record audio messages but you can't play them. Mod disabled and it works. It's the only bug i've found so far.
 

Dante63

Senior Member
Nov 1, 2015
1,183
1,110
143
27
On the Cloud
With this mod installed (Magisk one) on AEX 5.1 the game Gods of Rome have no audio output.
Disabled the mod and the audio is back to normal.
There is also a bug in WhatsApp. You can record audio messages but you can't play them. Mod disabled and it works. It's the only bug i've found so far.
My best guess it Kernel related,
I'll release the fix to the MOD by tomorrow...
Dual speaker will operate partially...
Any application requests audio policy the kernel unable to utilize both speakers will use one speaker...
Happened in Xiaomi devices...

UPDATE: forgive me all for not releasing it as a mentioned... I took a break and spent my time with my family... I'll release it Sunday...
 
Last edited: