[guide][root] Tweaks Redmi 4x stock ROM

wenna.speedy

Senior Member
May 14, 2007
545
129
63
@wenna.speedy yep, still on default kernel with RR 5.8.4!
Custom (and newer) kernels will have other options. I feel no need to upgrade my daily phone yet. Maybe if perfect Oreo ROM will come...
I enabled g2 api and stock camera doesnt work. any sugestion? I cant find /etc/default_features folder. I am on miui.
 

snkmv

Senior Member
Nov 30, 2014
161
52
0
Switched to Luis kernel for RR 5.8.4
Cheers
Which RR are you using? Doesn't Luis' RR comes with Luis kernel?:highfive:

Also I noticed your audio tweaks, do you have any idea how to reverse right and left audio channel? If there is such a line that governs that? Thanks in advance
 

tweakradje

Senior Member
Mar 18, 2005
1,047
532
133
Android
sites.google.com
@snkmv Still RR 5.8.4 Firmware 35 and Luis kernel :)

I assume you want headphone L/R channel switch?


You can try this in /etc/mixer_paths_sku1.xml

<path name="headphones">
<ctl name="MI2S_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX1" />
<ctl name="RX2 MIX1 INP1" value="RX2" />



<path name="headphones">
<ctl name="MI2S_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX2" />
<ctl name="RX2 MIX1 INP1" value="RX1" />

Maybe?

Cheers
 
  • Like
Reactions: snkmv

snkmv

Senior Member
Nov 30, 2014
161
52
0
@snkmv
<path name="headphones">
<ctl name="MI2S_RX Channels" value="Two" />
<ctl name="RX1 MIX1 INP1" value="RX2" />
<ctl name="RX2 MIX1 INP1" value="RX1" />

Maybe?

Cheers
That works, thank you, somehow the audio feels off though compared to when I just switched L/R earphones, so hard to explain, but thank you still

Figured maybe just my ear, understandable when I was wearing the earphones the wrong way
 
Last edited:

tweakradje

Senior Member
Mar 18, 2005
1,047
532
133
Android
sites.google.com
@snkmv
Then maybe try switching like this:

<path name="headphones">
<ctl name="MI2S_RX Channels" value="Two" />
<ctl name="RX2 MIX1 INP1" value="RX1" />
<ctl name="RX1 MIX1 INP1" value="RX2" />

Or even <ctl name="RDAC2 MUX" value="RX2" />
into <ctl name="RDAC2 MUX" value="RX1" />

Just play a little with these values. Keep an original copy of the xml file in case you mess up. Nothing can go wrong. Just try :)
 
  • Like
Reactions: snkmv

snkmv

Senior Member
Nov 30, 2014
161
52
0
@snkmv Just play a little with these values. Keep an original copy of the xml file in case you mess up. Nothing can go wrong. Just try :)
Thank you again, I tried the switching the two lines instead of the parameters, it sounds the same but I believe it's actually just my ear that's a little asymmetrical haha, I'll keep testing for a few days
 

Ghd182

Senior Member
Aug 14, 2018
101
21
11
rootless camera features tweaks

MIUI Camera mod (features unlock)

This is how you unlock those high end features you find on higher end models. To enable the features you need to edit the /etc/device_features/santoni.xml (or /sdcard/device_features/santoni.xml) file. Mostly change false into true to enable them.
Some are also added from other Xiaomi devices.
Download from below.

Camera parameters found:
Code:
support_camera_4k_quality
support_camera_age_detection
support_camera_aohdr
support_camera_audio_focus
support_camera_boost_brightness
support_camera_burst_shoot
support_camera_gradienter
support_camera_hfr
support_camera_manual_function
support_camera_movie_solid
support_camera_peaking_mf
!support_camera_press_down_capture
support_camera_quick_snap
support_camera_record_location
support_camera_shader_effect
support_camera_skin_beauty
support_camera_tilt_shift
support_camera_torch_capture
support_camera_ubifocus
support_camera_video_pause
support_camera_water_mark
Hi,do you know if there is any way to edit santoni.xml with adb fastboot without enabling root permissions?

From phone in recovery it does not find /etc/device_features/santoni.xml, while with phone turned on i can copy and edit it on my pc... Is there a rootless solution? For camera2 api someone managed how to copy, edit on pc and save build.prop through adb and it worked for me also, but this time i can't reach santoni.xml (in mycase is whyred.xml) in recovery mode
 
Last edited:

Ghd182

Senior Member
Aug 14, 2018
101
21
11
Thx very much for replying! actually I have Redmi note 5 and instead of santoni.xml i have /system/etc/device_features/whyred.xml
There is no /sdcars/device_features/ path in /system/ or parent folder... I'm able to modify the file through adb pull, notepad++ and then adb push (followed by adb shell chmod 644 /system/etc/device_features/whyred.xml)... The editing is confirmed as if i newlly pull the file on my pc, i can recognize the added lines (and also comments i added)
But the edited version doesn't exist while the phone is turned on (if i use adb pull it returns the original file and i receive a permission denied message)
If i newly turn off the phone, the edited version appears again... Can you find an effective way to edit permanently the whyred.xml file (your santoni.xml)

I would like to not enable root access with magisk as i said before

Thank you very much for help!
 

sam_auditore

Member
Dec 12, 2014
16
2
23
Reversing Stereo output on earphones

guys i need help regarding reversing stereo output on my earphones, i.e. left sound to right and right sound to left.
My Device : Redmi Note 4X (mido) (rooted with Magisk)
ROM - MIUI 9.1.3 by Xiaomi.eu on Android v7.0
i attached the screenshot of mixer_paths_qrd_....xml files for more info of files on my system.
i tried altering values as told by @tweakradje in ___qrdhf.xml , ___qrdh.xml , ___qrdm.xml and rebooted still doesn't worked out.
the below method doesn't work for me as my device don't have this file -> /system/etc/mixer_paths_qrd_sku1.xml
@snkmv
Then maybe try switching like this:

<path name="headphones">
<ctl name="MI2S_RX Channels" value="Two" />
<ctl name="RX2 MIX1 INP1" value="RX1" />
<ctl name="RX1 MIX1 INP1" value="RX2" />

Or even <ctl name="RDAC2 MUX" value="RX2" />
into <ctl name="RDAC2 MUX" value="RX1" />

Just play a little with these values. Keep an original copy of the xml file in case you mess up. Nothing can go wrong. Just try :)
 

Attachments

Last edited:

sam_auditore

Member
Dec 12, 2014
16
2
23
Very bad idea

After modifying that mixer_paths_mtp.xml file , no sound is played by my device now and even after restoring original file the sound cannot be played by system
I just changed rx1 to RX2 and vise vesa as you originally told in the previous post which i quoted.
Error generated by Poweramp player when trying to play music is shown in the attachment.
@sam_auditore Did you search with Google? I did a search and found that Note 4X uses
/system/etc/mixer_paths_mtp.xml
Could also be in /vendor/etc!
Good luck.
 

Attachments