FORUMS
Remove All Ads from XDA
H10 Turbo

ViPER4Android FX/XHiFI [Unity]

3,086 posts
Thanks Meter: 4,838
 
By ahrion, Retired Forum Moderator / Recognized Developer on 22nd March 2017, 02:10 AM
Post Reply Email Thread
This is essentially ViPER4Android for Magisk.

These installers utilize my Unified installer that can install on Magisk OR System if Magisk is not detected (with Pixel support).

Credits of Originality:
- @zhuhang (Official Thread)
- @Osm0sis
- Viper's Audio (Official blog)
- @ViPER520
- @Team_DeWitt

Special Instructions:
If you already know which original v4a you want to use, just add 'old' for 2.3.4.0, 'mid' for 2.4.0.1, 'new' for 2.5.0.5, or 'mat' for material to the zipname prior to flashing
Make sure there are no spaces in the zipname

Troubleshooting:

This is actually the first rule of xda forums: SEARCH THE THREAD BEFORE POSTING - There's just too many of the exact same thing being repeated. You'll save everyone (including yourself) a lot of time by doing this

LOGS, LOGS, LOGS!!!!
  • If you make a post stating a problem without any logs, we can't help you and will likely just ignore it (we're not wizards)
  • Get a full logcat. If using adb, use
    Code:
    adb logcat -d > log.txt
  • If using magisk, get the magisk log from magisk manager
  • Get a TWRP recovery log immediately after flashing: Boot into twrp, install mod, navigate to Advanced -> Copy log, recovery.log will be on root of sdcard

On stock EMUI 8? No audio mods currently work with it. See this post for details

Most Common Issues:
  • LDAC Issues? See this post for fix
  • App not showing up in app drawer?
    • This is typically a magisk only issue and means that it isn't getting mounted by magisk.
    • Root cause could be lots of things. Good place to check is the magisk log. See what the last thing run was -> it's likely the culprit. Typical order of loading is: post-fs-data scripts run, system.props are loaded, mods are mounted, service.sh scripts are run
    • Typical causes of this are post-fs-data scripts and/or other magisk mods such as ART optimization mod. If you modify ART to more of a speed setting, this kind of issue is more likely to occur (this isn't an issue with the ART mod, it's just the nature of ART itself - more speed = less accuracy)
  • Crackling Sound while booting?
    • This can be caused by v4a starting and being force closed during boot as a workaround for some problem devices (like OP5).
    • Just delete the last 3 lines from the service.sh script (the "am start" line on)
    • Alternatively, if you are on a devices that needs those lines, you could add "sleep 5" just before the am start line. Note that since this greatly lengthens the time the script runs, it could prevent other service scripts from running in time and so break other mods
    • Another alternative is to remove the boot up sound: /system/media/audio/ui/PowerOn.ogg
  • I/O error or driver install prompt or crashing app?
    • This is typically caused by one of four things: another audio mod is installed (magisk only issue), magisk mounting issues, installer patching error (these have been pretty much worked out so unlikely), sepolicy issues
    • Remove any other audio mods or install Audio Modification Library, check magisk log to ensure everything mounted, recovery log will reveal most install errors (also, check system and vendor audio_effects.cfg and ensure v4a entries are there with the right paths to libs set)
    • Sepolicy is more complicated. Read through section 5.5 here for a quick background on it. Bascially, you need to take a full logcat, and search through it for any audit statements that may be related to audio and/or this app and make an allow statement in the service script of the mod. Just make a post with that info and once confirmed, we'll add it the next version of the mod
    • If above doesn't fix it and you're using the material app, try using the original
  • No sound processing?
    • For as long as I can remember, after you first boot, you need to toggle the master power button in v4a for sound to being processing. This isn't for all devices of course but for a lot. It's just the nature of v4a.
    • If the toggle trick doesn't work, see the last section on sepolicy troubleshooting
  • Still no sound processing or no sound processing on some apps like youtube or other streaming apps?
    • Remove any stock audio apps (like AudioFX), disable any eqs in music players
    • Disable any kind of "direct volume" option in your audio app (like poweramp), this may called other things like "Volume boost / Voices sound lounder" (like in pocket casts)
    • Open you vendor audio_effects.conf file and make note of anything under output_session_processing -> music -> then go under the effects section and comment out each effect section you have listed (music_helper is already done by aml)
    • Try Audio Compatibility Patch

New ViPER4Android Materialized:
GO TO THE THREAD LINKED ABOVE. You don't need to flash any zips. Just install it as a regular apk, allow it to install the drivers, and you're good to go. For magisk users - it'll install it all to the magisk img so it'll pass safetynet - BACKUP YOUR PROFILES. For rootless users (or others who just want to flash it and forget it), go the thread above for the zip. DO NOT POST PROBLEMS WITH THIS APK HERE! Post it at the app thread (like above)

Download
V4A XHiFI Download

XDA:DevDB Information
ViPER4Android FX, App for all devices (see above for details)

Contributors
ahrion, zackptg5, ViPER's Audio, zhuhang, ViPER520, Team_DeWitt
Source Code: https://github.com/therealahrion/ViPER4Android-FX


Version Information
Status: Stable
Current Stable Version: v1.7
Stable Release Date: 2018-07-17

Created 2017-03-22
Last Updated 2018-07-17
The Following 314 Users Say Thank You to ahrion For This Useful Post: [ View ]
 
 
22nd March 2017, 03:53 AM |#2  
Senior Member
Flag Taopei
Thanks Meter: 17
 
More
great!
The Following 3 Users Say Thank You to huaiyue For This Useful Post: [ View ] Gift huaiyue Ad-Free
23rd March 2017, 12:23 AM |#3  
Senior Member
Flag Auckland
Thanks Meter: 37
 
Donate to Me
More
Hi, tried your two modules you've posted on my Nexus 6P stock ROM. March update. Both causing bootloop and using the uninstaller provided doesn't help. Have to use mount Magisk then go to file explorer in TWRP recovery and delete the modules from Magisk folder.
23rd March 2017, 02:56 AM |#4  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 4,838
 
More
Quote:
Originally Posted by kartikb

Hi, tried your two modules you've posted on my Nexus 6P stock ROM. March update. Both causing bootloop and using the uninstaller provided doesn't help. Have to use mount Magisk then go to file explorer in TWRP recovery and delete the modules from Magisk folder.

Hmm. This is probably a kernel or magisk limitation with your rom. Are you running 11.6? Try to run it without the deep_buffer Remover because this is probably what bootloops your phone. It's only necessary when you've NEED it, otherwise it may cause adverse effects. Just install V4A and see if it works.

Currently magisk still has limited boot.img compatibility which causes so.e mods to not work properly or bootloops when it's not the mod itself.
The Following 6 Users Say Thank You to ahrion For This Useful Post: [ View ]
23rd March 2017, 05:12 AM |#5  
Senior Member
Flag Auckland
Thanks Meter: 37
 
Donate to Me
More
Quote:
Originally Posted by ahrion

Hmm. This is probably a kernel or magisk limitation with your rom. Are you running 11.6? Try to run it without the deep_buffer Remover because this is probably what bootloops your phone. It's only necessary when you've NEED it, otherwise it may cause adverse effects. Just install V4A and see if it works.

Currently magisk still has limited boot.img compatibility which causes so.e mods to not work properly or bootloops when it's not the mod itself.

Hi, I'm on 11.6. I've tried both modules on their own and they both have caused boot loops unfortunately.

Thanks anyway..
23rd March 2017, 05:14 AM |#6  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 4,838
 
More
Quote:
Originally Posted by kartikb

Hi, I'm on 11.6. I've tried both modules on their own and they both have caused boot loops unfortunately.

Thanks anyway..

Magisk limitation. @topjohnwu is always improving magisk. I do recommend may e trying another kernel for your device which may help compatibility.
The Following User Says Thank You to ahrion For This Useful Post: [ View ]
23rd March 2017, 09:35 AM |#7  
Didgeridoohan's Avatar
Recognized Contributor
Flag Gothenburg
Thanks Meter: 4,720
 
Donate to Me
More
Gave this module a go, and: it's a no go... Will not boot on my Nexus 6 running Vanilla ROM 7.1.1_r26, Franco Kernel r65 and Magisk v.11.6 - MagiskSU.

After flashing uninstaller the device still doesn't boot. Had to manually remove audmodlib from /magisk in TWRP to make it boot again. And it's in audmodlib the problem is. I did a quick test where I removed audmodlib after installation (kept v4afx in place) and it booted right up (with a non-functioning module, obviously).

Attaching installation and uninstallation recovery logs. Unfortunately I'm not at a computer with ADB, otherwise I would have captured a logcat of boot for you. Maybe later...
Attached Files
File Type: log recovery-install.log - [Click for QR Code] (27.2 KB, 438 views)
File Type: log recovery-uninstall.log - [Click for QR Code] (26.2 KB, 228 views)
23rd March 2017, 12:26 PM |#8  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 4,838
 
More
Quote:
Originally Posted by Didgeridoohan

Gave this module a go, and: it's a no go... Will not boot on my Nexus 6 running Vanilla ROM 7.1.1_r26, Franco Kernel r65 and Magisk v.11.6 - MagiskSU.

After flashing uninstaller the device still doesn't boot. Had to manually remove audmodlib from /magisk in TWRP to make it boot again. And it's in audmodlib the problem is. I did a quick test where I removed audmodlib after installation (kept v4afx in place) and it booted right up (with a non-functioning module, obviously).

Attaching installation and uninstallation recovery logs. Unfortunately I'm not at a computer with ADB, otherwise I would have captured a logcat of boot for you. Maybe later...

The only real thing in audmodlib is could be is service.sh or system.prop otherwise it would be the vendor file, which would mean that for some reason 11.6 is bugged for vendor file mounting. Try installing and remove those ONLY and and see if it fixes it.

If that fixes it then it's one of those two. And if you're cool can you see which one it is exactly.
The Following User Says Thank You to ahrion For This Useful Post: [ View ]
23rd March 2017, 01:25 PM |#9  
Didgeridoohan's Avatar
Recognized Contributor
Flag Gothenburg
Thanks Meter: 4,720
 
Donate to Me
More
Quote:
Originally Posted by ahrion

The only real thing in audmodlib is could be is service.sh or system.prop otherwise it would be the vendor file, which would mean that for some reason 11.6 is bugged for vendor file mounting. Try installing and remove those ONLY and and see if it fixes it.

If that fixes it then it's one of those two. And if you're cool can you see which one it is exactly.

There has been an issue with vendor mounting in Magisk, but I believe that was for devices with separate vendor partitions (Nexus 6P, Nexus 5X, etc). I haven't seen any commits on GitHub about it though (although I haven't been keeping that close attention), so I don't know if it's been fixed.

I did find the culprit though: it's system.prop. With that file removed from /magisk/audmodlib my device booted up just fine.
23rd March 2017, 01:49 PM |#10  
Seyaru's Avatar
Senior Member
Flag Bogota
Thanks Meter: 454
 
Donate to Me
More
Quote:
Originally Posted by kartikb

Hi, I'm on 11.6. I've tried both modules on their own and they both have caused boot loops unfortunately.

Thanks anyway..

If you wanna try this is my module for Nexus phones. I use this in my Nexus 5X Stock and PureNexus

https://www.androidfilehost.com/?fid=529152257862713260

Sry ahrion for use your thread
The Following User Says Thank You to Seyaru For This Useful Post: [ View ] Gift Seyaru Ad-Free
23rd March 2017, 02:32 PM |#11  
ahrion's Avatar
OP Retired Forum Moderator / Recognized Developer
Thanks Meter: 4,838
 
More
Quote:
Originally Posted by Seyaru

If you wanna try this is my module for Nexus phones. I use this in my Nexus 5X Stock and PureNexus

https://www.androidfilehost.com/?fid=529152257862713260

Sry ahrion for use your thread

You are literally advertising your mods in everyone's threads. Stop this and make your own thread.

This is a magisk forum, not a system mod forum.
The Following 2 Users Say Thank You to ahrion For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes