[Temp] How-To Fix Audio distorted on P GSIs

SH1M4BD3

Senior Member
Apr 10, 2014
1,879
387
113
Kuningan
Hello everyone,here you go this is temporary fix for audio distorted on android P gsis. Im running on stable miui global ( so the vendor of mine was)
Needed Rooted devices and running AndroidP GSIs (mine tested on Pexelxperience P)
STOCK Vendor file latest Miui Global Stable
https://drive.google.com/file/d/1pZ9uraiebO3HM2mQcmdjavz99xOqukNT/view?usp=drivesdk

- Boot to TWRP and mount the Vendor partitions
Use root explorer , suggested amaze filemanager download it for free on on Playstore activate the root filemanager (amaze as it set default to off)
- go to root tab, /Vendor/lib/soundfx/ now you need to rename whole files ( i don't suggested to dellete/removes whole files .so)
Just rename it extension (.so) to .bak
After that reboot.
Credit to mi8 user,seems on poco we have to change it on Lib not the lib64..
Hit thanks if i helped.
*If its don't work please do the same things on vendor/lib64/soundfx.
*Important.
This the one-time and universal fix, so you don't need to editing the vendor files everytime you changing the rom gsis, as its on vendor side modifications, it will keep the mod survived everytime you changing the gsis as long you didn't re-flash the stock vendor.img/flashing the stock Miui roms.
Keep an eyes to Phhs Aosp P build when he succesfully fixing the distortion bugs on xiaomi devices, its mean you'll need the stock vendor.img (un-modified) to be flashed.

Update : pre- modified vendor use only adbfastboot tool
Put the modified vendor inside adbtool and putyour device in fastboot mode
Flash this via fastboot :
"fastboot erase vendor" <enter>
"fastboot flash vendor.img" <enter>
Before flashing this i suggest you do backup your original vendor partition.
https://drivegoogle.com/file/d/1EFKDZqo7JdKmECkZ8RIWZ1pwyQMkJzmI/view?usp=drivesdk
 
Last edited:

bassbounce

Senior Member
Feb 14, 2011
546
369
93
Betuwe
I removed the files previous week but the sound was not fixed, mainly the system sounds where disorted everything else was working.
Only the Google setup didn't work
 

napes22

Senior Member
May 16, 2008
529
99
0
Hello everyone,here you go this is temporary fix for audio distorted on android P gsis. Im running on stable miui global ( so the vendor of mine was)
Needed Rooted devices and running AndroidP GSIs (mine tested on Pexelxperience P)
- Boot to TWRP and mount the Vendor partitions
Use root explorer , suggested amaze filemanager download it for free on on Playstore activate the root filemanager (amaze as it set default to off)
- go to root tab, /Vendor/lib/soundfx/ now you need to rename whole files ( i don't suggested to dellete/removes whole files .so)
Just rename it extention (.so) to .bak
After that reboot.
Credit to mi8 user,seems on poco we have to change it on Lib not the lib64..
Hit thanks if i helped.
*If its don't work please do the same things on vendor/lib64/soundfx.
Thank you so much for this! The audio was driving me crazy and now it's normal again.
 

BUTHEDOS

Member
Oct 30, 2016
42
4
0
Hello everyone,here you go this is temporary fix for audio distorted on android P gsis. Im running on stable miui global ( so the vendor of mine was)
Needed Rooted devices and running AndroidP GSIs (mine tested on Pexelxperience P)
- Boot to TWRP and mount the Vendor partitions
Use root explorer , suggested amaze filemanager download it for free on on Playstore activate the root filemanager (amaze as it set default to off)
- go to root tab, /Vendor/lib/soundfx/ now you need to rename whole files ( i don't suggested to dellete/removes whole files .so)
Just rename it extention (.so) to .bak
After that reboot.
Credit to mi8 user,seems on poco we have to change it on Lib not the lib64..
Hit thanks if i helped.
*If its don't work please do the same things on vendor/lib64/soundfx.
I thought Mix 2S also could make it. But I can't change any things on verdor:crying:
 

sankhauaa

Senior Member
May 13, 2010
394
146
0
kolkata
Hello everyone,here you go this is temporary fix for audio distorted on android P gsis. Im running on stable miui global ( so the vendor of mine was)
Needed Rooted devices and running AndroidP GSIs (mine tested on Pexelxperience P)
- Boot to TWRP and mount the Vendor partitions
Use root explorer , suggested amaze filemanager download it for free on on Playstore activate the root filemanager (amaze as it set default to off)
- go to root tab, /Vendor/lib/soundfx/ now you need to rename whole files ( i don't suggested to dellete/removes whole files .so)
Just rename it extention (.so) to .bak
After that reboot.
Credit to mi8 user,seems on poco we have to change it on Lib not the lib64..
Hit thanks if i helped.
*If its don't work please do the same things on vendor/lib64/soundfx.
Where is the camera lib bro ? i cant found in miui 10 mi8 rom
my camera from mi8 system poco f1 vendor combined rom is not working
 

SH1M4BD3

Senior Member
Apr 10, 2014
1,879
387
113
Kuningan
Where is the camera lib bro ? i cant found in miui 10 mi8 rom
my camera from mi8 system poco f1 vendor combined.... I'll madethe vendor.img modified will you test it on your mi8 port??
These is modified files pulled out from latest stable mi8 global firmware
https://drive.google.com/folderview?id=1bZDYENZoINykxhGgU1hSnk0mjvCQwCrT
Note contains 2 files : vendor.img (unmodified)
vendors.img modified camera libs one.
 
Last edited:

SH1M4BD3

Senior Member
Apr 10, 2014
1,879
387
113
Kuningan
Can you please share the link to the P GSI you use? Any thread with instructions?
Its simple i mean don't make it complicated,the gsi img itself was the single img file which created /developed to replacing the stock system partition, in our case is Miui. Needed files :

1.Gsi files,you choose your own fav gsi, i'm using Pixelxperience head there and download the zip..and extractsthe img file inside (the img file insidewas the system img to replace miui on our system prtition).
https://forum.xda-developers.com/pr...lopment/9-0-pixelexperience-p-t3833294/page47
2.TWRP, get it here https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-2-3-x-t3836241/page12. we need this to format data after flashing the gsi.
Steps :
Put the img and TWRP files inside Adb,fastboot directory, rename the Gsi img file with simple name so you won't be typo or type wrong name of img file.
1.Reboot your device into fastboot mode (backup your important files as it would be formating your data)
Confirm your device was detected in fastboot mode (fastboot devices)
2. Type "fastboot erase system"
Wail till complete and said done.
3. Fastboot "flash system name_of_extracted_img_file.img"
*I've changed the file to system.img so i type fastboot flash system system.img
Be patient in this step,as you'll see more than 1 process shown on cmd. Wait till it done.
4. Don't boot to system directly, now type "fastboot boot twrp_name.img" if you don't want to flash / replacing stock miui recovery.
Or "fastboot flash recovery twrp_name.img"
wait till it boot, ignore the password pop up choose cancell,now wipe, and choose format data, wait till done.
*Optional if you need to root do it, i suggested magisk latest stable build.
Back to main menu TWRP and choose mount the vendor , we need to modify the libs file to make the distorted audio gone.
Or you can flash my modified vendor.img with command "fastboot flash vendor.img" if you're lazy enough to rename the lib files one-by-one manually using root explorer.
Reboot to system and you're now running pie gsi.
 
Last edited:

philipped346

Senior Member
Jun 25, 2010
1,246
962
143
In the mountain
Hello everyone,here you go this is temporary fix for audio distorted on android P gsis. Im running on stable miui global ( so the vendor of mine was)
Needed Rooted devices and running AndroidP GSIs (mine tested on Pexelxperience P)
- Boot to TWRP and mount the Vendor partitions
Use root explorer , suggested amaze filemanager download it for free on on Playstore activate the root filemanager (amaze as it set default to off)
- go to root tab, /Vendor/lib/soundfx/ now you need to rename whole files ( i don't suggested to dellete/removes whole files .so)
Just rename it extention (.so) to .bak
After that reboot.
Credit to mi8 user,seems on poco we have to change it on Lib not the lib64..
Hit thanks if i helped.
*If its don't work please do the same things on vendor/lib64/soundfx.

Update : pre- modified vendor
Flash this via fastboot : fastboot erase vendor
Fastboot flash vendor.img
Before doing tahis i suggest you do backup your original vendor partition.
https://drive.google.com/file/d/1EFKDZqo7JdKmECkZ8RIWZ1pwyQMkJzmI/view?usp=drivesdk
hello , is there vendor modified of stock rom ?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone