[Q] MIUI 8 Mods Help (Audio, Navbar)

ROMs, Mods, Discussion and all other Topics about the Xiaomi Mi Max (hydrogen) and Mi Max Pro (helium).

Moderator: dr4kendroid

Post Reply
User avatar
oreo27
New Member
New Member
Posts: 2
Joined: 24 Dec 2016, 05:25
Has thanked: 0
Been thanked: 0

[Q] MIUI 8 Mods Help (Audio, Navbar)

Post by oreo27 » 24 Dec 2016, 05:33

Hi All. I'm planning to make a general Magisk mod for MIUI I thought you guys might be able to help me.

I've posted a similar thread in XDA but I haven't gotten that much help. I'm guesssing the number of MIUI modders there aren't plenty. Plus it seems like folk here have a more wide array of knowledge when it comes to MIUI.

Audio

First off is the sound increase mod. I've done this on multiple Android devices successfully but I've failed miserably on my Mi Max. However, I did get one thing working, the ability to increase the in-call volume by editing mixer_paths_wcd9326.xml found in system/etc:

Code: Select all

    <path name="handset">
        <ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
        <ctl name="SLIM_0_RX Channels" value="One" />
        <ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
        <ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
        <ctl name="EAR PA Gain" value="G_6_DB" />
	<ctl name="RX0 Digital Volume" value="93" />
    </path>
Adding that line to that particular path increased the volume of calls which is great but adding something similar to headphones:

Code: Select all

<path name="headphones">
        <ctl name="SLIM RX0 MUX" value="AIF_MIX1_PB" />
        <ctl name="SLIM RX1 MUX" value="AIF_MIX1_PB" />
        <ctl name="SLIM_0_RX Channels" value="Two" />
        <ctl name="RX INT1_2 MUX" value="RX0" />
        <ctl name="RX INT2_2 MUX" value="RX1" />
        <ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
        <ctl name="RX INT2 DEM MUX" value="CLSH_DSM_OUT" />
        <ctl name="RX HPH Mode" value="CLS_H_HIFI" />
	<ctl name="RX0 Digital Volume" value="93" />
	<ctl name="RX1 Digital Volume" value="93" />
    </path>
does not change anything.

Please note that the way I test this is pretty simple. I set the value to 0 which in theory will eliminate all sound; which it did for the in call volume but not the headphones volume. Perhaps someone here has a similar experience?

Navbar

Also, I'd like to enable the software navbar. It's a personal thing but honestly I find the capacitive buttons quite unresponsive. A lot of forums and threads suggest editing the build.prop directly:

Code: Select all

qemu.hw.mainkeys=0
However, editing that file or even using Magisk's resetprop command line does not seem to affect it at all. If I had to take a guess, I'll wager that this particular prop is being read from somewhere else?

The testing for this is done through Terminal Emulator. Upon entering the command:

Code: Select all

getprop qemu.hw.mainkeys
,in returns with the value:

Code: Select all

1
which means the above attempts to edit the value is not working.

Hoping you folks can point me in the right direction.

Currently my Magisk Mod offers systemless iOS emojis and a (real)10% increase in in-call volume.

User avatar
dr4kendroid
Developer / Admin
Developer / Admin
Posts: 1303
Joined: 21 Nov 2016, 09:20
Phone Model: Mi 5 , Mi 6
Has thanked: 113 times
Been thanked: 506 times
Contact:

Re: [Q] MIUI 8 Mods Help (Audio, Navbar)

Post by dr4kendroid » 25 Dec 2016, 14:22

Moved to Mi Max section.

Software Keys should be the same per Android version, but sound improvements are very specific for each device. So I moved this to Mi Max section.
About the sound improvement, I cannot help you here sorry. We have no experience in that.
I used to enable the softkeys the same way you tried some years ago. That worked perfectly and should be possible for all Android phones.

Maybe you did not set your partition RW before changing the build prop ?
Image
Find us on Facebook

User avatar
oreo27
New Member
New Member
Posts: 2
Joined: 24 Dec 2016, 05:25
Has thanked: 0
Been thanked: 0

Re: [Q] MIUI 8 Mods Help (Audio, Navbar)

Post by oreo27 » 25 Dec 2016, 15:18

dr4kendroid wrote:Moved to Mi Max section.

Software Keys should be the same per Android version, but sound improvements are very specific for each device. So I moved this to Mi Max section.
About the sound improvement, I cannot help you here sorry. We have no experience in that.
I used to enable the softkeys the same way you tried some years ago. That worked perfectly and should be possible for all Android phones.

Maybe you did not set your partition RW before changing the build prop ?
Hi there!

Thanks for the response. Thanks for moving the thread.

No worries. Perhaps some other folks have experience on this.

Mounted as R/W through root FX File Explorer. File is showing this when opened:

Code: Select all

qemu.hw.mainkeys=0
but entering:

Code: Select all

getprop qemu.hw.mainkeys
returns with:

Code: Select all

1
Perhaps it's reading from somewhere else?

I even tried editing framework-res.apk > res> values > bools.xml:

Code: Select all

<bool name="config_showNavigationBar">true</bool>
as suggested in some other forum but it didn't work either.

Post Reply