[Module][v4.1] ViPER-FX **Discontinue**

Search This thread

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
COLOR="Red"]This thread will discontinue, Now I'm published my new mod's thread under Magisk, that mod includes Whole new ViPERFX app and many other mods and upcomings so From now everybody please follow this thread below:

[Module] ViPERFX
https://forum.xda-developers.com/apps/magisk/viperfx-t3667145[/COLOR][/SIZE][/B]


Introduction:
ViPER4Android is very popular audio mod around the world of Android and probably the best audio mod ever made. But there is so many complexity ViPER4Android couldn't go further through, so I wish "ViPER-FX" could be a project to let our beloved ViPER4Android step in advance. Original V4A details at ViPER4Android Official forum.

Modifications:
+ Based on ViPER4Android v2.5.0.5
+ New Material UI and Icon
+ App rotation enabled.
+ Default install as system app to prevent task kill.
in MIUI or some rom could be installed as user-app
for IRS compatibility [Experimental]
+ The zip edition includes apk.

Recommendation:
* Magisk Manager, Framework installed.
* Android 5.0+
* To update from ViPER-FX v4.0 (v4.0 only) first remove it.

How to install?
* Flash the zip using Magisk Manager or Custome recovery.

# Track this thread using the URL below.
URL: [url]http://forum.xda-developers.com/showthread.php?t=3535401[/URL]

Thanks To:
Code:
[user=4470081]@topjohnwu[/user] for Magisk Framework.
[user=3901724]@zhuhang[/user] and ViPER520 (Founders of ViPER4Android).
[user=4445176]@guitardedhero[/user] | [user=5704037]@repey6[/user] | [user=5210243]@exodius48[/user] | [user=6118476]@#mrk[/user]
for helping/support/testing.

...and those I forgot to mention.

I spend dedicated time, made pressure on brain and did hard work to make this perfect :eek:
If you like my post please hit Thanks and give a rate....
~~ Feel The power of ViPER-FX ~~
:p:D:eek::cowboy:


Contributors
metaspook

Version Information
Status: Stable
Current Stable Version: 4.1
Stable Release Date: 2017-01-13
 
Last edited:

crusader727

Senior Member
Feb 9, 2014
172
47
the title is a bit misleading:
-this is not [Magisk], this is a [Module]
-it's not 100% clear if you packed the Magisk module or if you also offer a modded App (in thread description)
-it also has the same id as @topjohnwu 's module...

id=v4a
name=ViPER-FX
version=Base v2.5.0.5 | MKM v4.0
versionCode=3
author=ViPER’s Audio | Mod by Metaspook
description=ViPER-FX is a system wide audio enhancing software, modified edition of ViPER4Android.
support=https://www.androidfilehost.com/?w=files&flid=143525
donate=http://vipersaudio.com/blog/?page_id=95
 
Last edited:

exodius48

Senior Member
Apr 7, 2013
3,555
674
Yori's Heart
@metaspook
Can you delete V4A app inside "\system\priv-app\ViPERFX" in next release? Because if V4A app installed inside /system/ there will be no sound improvement by IRS. Tested on my device running MIUI rom, dunno on other rom. :confused:
I use sepaker & many times change the IRS, but no sound improvement.
 

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
the title is a bit misleading:
-this is not [Magisk], this is a [Module]
-it's not 100% clear if you packed the Magisk module or if you also offer a modded App (in thread description)
-it also has the same id as @topjohnwu 's module...

Got it... actually I had to make this thread in short time making this of thread n sort it as well as possible is a bit hard something could be missing, but this thread will be more informative, well sorted soon...
Thank you.
 
  • Like
Reactions: killerBRs

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
@metaspook
Can you delete V4A app inside "\system\priv-app\ViPERFX" in next release? Because if V4A app installed inside /system/ there will be no sound improvement by IRS. Tested on my device running MIUI rom, dunno on other rom. :confused:
I use sepaker & many times change the IRS, but no sound improvement.

Do u'v installed Magisk n flash the zip through it?
B'cz this is a whole new way to dealing with system.
If u did but after that also don't work let me know.
 

exodius48

Senior Member
Apr 7, 2013
3,555
674
Yori's Heart
Do u'v installed Magisk n flash the zip through it?
B'cz this is a whole new way to dealing with system.
If u did but after that also don't work let me know.

Yes bro, i already used magisk long time ago.
Recently compared with V4A original (installed as user app /data/app/) & V4A module by topjohnwu, my device can read IRS and has sound improvement.
I don't know this issue is MIUI related or not, but I always get that issue if V4A app installed as system app (/system/app or /system/priv-app). :confused:
 

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
Yes bro, i already used magisk long time ago.
Recently compared with V4A original (installed as user app /data/app/) & V4A module by topjohnwu, my device can read IRS and has sound improvement.
I don't know this issue is MIUI related or not, but I always get that issue if V4A app installed as system app (/system/app or /system/priv-app). :confused:

OK I'll release next update separately..
 
  • Like
Reactions: exodius48

oreo27

Senior Member
Sep 24, 2012
649
142
Cool. I'd like to try this out. I just had some questions:

1. What do these commands do:

Code:
/data/magisk/sepolicy-inject --live -s mediaserver -t mediaserver_tmpfs -c file -p read,write,execute
/data/magisk/sepolicy-inject --live -s audioserver -t audioserver_tmpfs -c file -p read,write,execute

2. Why are the following folders blank?

Code:
system/etc
system/lib/soundfx
system/vendor/etc
 

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
Cool. I'd like to try this out. I just had some questions:

1. What do these commands do:



2. Why are the following folders blank?



1. It helps to keep Viper FX alive in SELinux enforcement.

2. Into these directories necessary files will be extracted or pulled from original /system.

Thanks to wanna know. :good:
 
Last edited:
  • Like
Reactions: oreo27

oreo27

Senior Member
Sep 24, 2012
649
142
1. It helps to keep Viper FX alive in SELinux enforcement.

2. Into these directories necessary files will be extracted or pulled from original /system.

Thanks to wanna know. :good:

Oh. I didn't think to check in the update-binary. It feels like this is a complicated script for sure:

Code:
# Push files
unzip -oq $ZIP "system/*" -d $MODPATH
unzip -pq $MODPATH/system/priv-app/ViPERFX/ViPERFX.apk assets/libv4a_fx_jb_$DRVARCH.so > $MODPATH/system/lib/soundfx/libv4a_fx_ics.so
ui_print "[OK] Pushing files."

# Config files modification.
for X in /system/etc/audio_effects.conf /system/etc/htc_audio_effects.conf /system/vendor/etc/audio_effects.conf; do
cp -af $X $MODPATH$X
sed -i '/v4a_fx {/,/}/d' $MODPATH$X
sed -i '/v4a_standard_fx {/,/}/d' $MODPATH$X
sed -i 's/^libraries {/libraries {\n  v4a_fx {\n    path \/system\/lib\/soundfx\/libv4a_fx_ics.so\n  }/g' $MODPATH$X
sed -i 's/^effects {/effects {\n  v4a_standard_fx {\n    library v4a_fx\n    uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b\n  }/g' $MODPATH$X
done; ui_print "[OK] Config modification."

Does this mean that if I uninstall this mod, Viper is completely uninstalled without any changes present in my entire device? If so, it's a pretty good implementation.
 

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
Oh. I didn't think to check in the update-binary. It feels like this is a complicated script for sure:

Code:
# Push files
unzip -oq $ZIP "system/*" -d $MODPATH
unzip -pq $MODPATH/system/priv-app/ViPERFX/ViPERFX.apk assets/libv4a_fx_jb_$DRVARCH.so > $MODPATH/system/lib/soundfx/libv4a_fx_ics.so
ui_print "[OK] Pushing files."

# Config files modification.
for X in /system/etc/audio_effects.conf /system/etc/htc_audio_effects.conf /system/vendor/etc/audio_effects.conf; do
cp -af $X $MODPATH$X
sed -i '/v4a_fx {/,/}/d' $MODPATH$X
sed -i '/v4a_standard_fx {/,/}/d' $MODPATH$X
sed -i 's/^libraries {/libraries {\n  v4a_fx {\n    path \/system\/lib\/soundfx\/libv4a_fx_ics.so\n  }/g' $MODPATH$X
sed -i 's/^effects {/effects {\n  v4a_standard_fx {\n    library v4a_fx\n    uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b\n  }/g' $MODPATH$X
done; ui_print "[OK] Config modification."

Does this mean that if I uninstall this mod, Viper is completely uninstalled without any changes present in my entire device? If so, it's a pretty good implementation.

1. The code I wrote looks a bit complicated but its for to reduce the size of the module (you can see I didn't packed the driver separately, codes are extracts those from the apk) and for more task will be done in less lines.

2. Yes.. obviously that's why using Magisk framework is so useful. It wont change anything in /system while installing nor in uninstalling your /system would be intact.
:D:D
 
  • Like
Reactions: oreo27

metaspook

Recognized Developer
Sep 12, 2014
328
581
Dhaka
Yes bro, i already used magisk long time ago.
Recently compared with V4A original (installed as user app /data/app/) & V4A module by topjohnwu, my device can read IRS and has sound improvement.
I don't know this issue is MIUI related or not, but I always get that issue if V4A app installed as system app (/system/app or /system/priv-app). :confused:

Actually I pushing the apk into the system cause if Viper install as user app in data, 3rd party or internal app killer kill it and Viper looses to output the effect even also when remove from recent list. but I have an idea if its just happens with your MIUI rom... can you give me your ROM's 'build.prop" file ???
 
  • Like
Reactions: killerBRs

killerBRs

Senior Member
Nov 1, 2011
417
78
24
São Paulo, SP
Is not working for me, IS activated on Magisk Modules Install,
But V4A say "Install/Update now?", Samsung S5 G900m, Is rooted using SuperSU 2.79, Latest Magisk Manager/Installer,
I Installed this V4A why magisk "Refuses" to open Modules download page "No Modules Found", And i have to download manually from internet. (SafetyNet says RED, Root and Magisk is green in Magisk Manager)
V4A is installed as System App, And SELINUX is Permissive,
I Try to change V4A to user APP, But not working;
 
Last edited:

exodius48

Senior Member
Apr 7, 2013
3,555
674
Yori's Heart
Actually I pushing the apk into the system cause if Viper install as user app in data, 3rd party or internal app killer kill it and Viper looses to output the effect even also when remove from recent list. but I have an idea if its just happens with your MIUI rom... can you give me your ROM's 'build.prop" file ???

Yes you're right. But on MIUI (especially MIUI 8 on my device) i can control it. We can lock app into taskbar and turn off MIUI optimization for selected app by turn off background restriction. Those will prevent MIUI kill running app. :D
build.prop file attached. :good:
 

Attachments

  • build.prop.zip
    4.3 KB · Views: 33

oreo27

Senior Member
Sep 24, 2012
649
142
1. The code I wrote looks a bit complicated but its for to reduce the size of the module (you can see I didn't packed the driver separately, codes are extracts those from the apk) and for more task will be done in less lines.

2. Yes.. obviously that's why using Magisk framework is so useful. It wont change anything in /system while installing nor in uninstalling your /system would be intact.
:D:D

This is pretty good. I installed this and it's working great. Just a quick question, I don't suppose it can work on phone calls as well? I was looking to get my bluetooth volume increased.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    COLOR="Red"]This thread will discontinue, Now I'm published my new mod's thread under Magisk, that mod includes Whole new ViPERFX app and many other mods and upcomings so From now everybody please follow this thread below:

    [Module] ViPERFX
    https://forum.xda-developers.com/apps/magisk/viperfx-t3667145[/COLOR][/SIZE][/B]


    Introduction:
    ViPER4Android is very popular audio mod around the world of Android and probably the best audio mod ever made. But there is so many complexity ViPER4Android couldn't go further through, so I wish "ViPER-FX" could be a project to let our beloved ViPER4Android step in advance. Original V4A details at ViPER4Android Official forum.

    Modifications:
    + Based on ViPER4Android v2.5.0.5
    + New Material UI and Icon
    + App rotation enabled.
    + Default install as system app to prevent task kill.
    in MIUI or some rom could be installed as user-app
    for IRS compatibility [Experimental]
    + The zip edition includes apk.

    Recommendation:
    * Magisk Manager, Framework installed.
    * Android 5.0+
    * To update from ViPER-FX v4.0 (v4.0 only) first remove it.

    How to install?
    * Flash the zip using Magisk Manager or Custome recovery.

    # Track this thread using the URL below.
    URL: [url]http://forum.xda-developers.com/showthread.php?t=3535401[/URL]

    Thanks To:
    Code:
    [user=4470081]@topjohnwu[/user] for Magisk Framework.
    [user=3901724]@zhuhang[/user] and ViPER520 (Founders of ViPER4Android).
    [user=4445176]@guitardedhero[/user] | [user=5704037]@repey6[/user] | [user=5210243]@exodius48[/user] | [user=6118476]@#mrk[/user]
    for helping/support/testing.
    
    ...and those I forgot to mention.

    I spend dedicated time, made pressure on brain and did hard work to make this perfect :eek:
    If you like my post please hit Thanks and give a rate....
    ~~ Feel The power of ViPER-FX ~~
    :p:D:eek::cowboy:


    Contributors
    metaspook

    Version Information
    Status: Stable
    Current Stable Version: 4.1
    Stable Release Date: 2017-01-13
    13
    A new era to come...

    Hello guyz... May I won't fix these and continue this thread b'cuz now I'm working on a big framework like mod which will included with this ViPER mod probably so PLEASE WAIT for the mod to come, after finishing several testing I'll bring it to you all, it will be awesome... Thank you... :good::good:
    9
    I have fixed this module to work with magisk v11.0,
    I replaced these lines in post-fs-data.sh

    Code:
    /data/magisk/sepolicy-inject --live -s mediaserver -t mediaserver_tmpfs -c file -p read,write,execute
    /data/magisk/sepolicy-inject --live -s audioserver -t audioserver_tmpfs -c file -p read,write,execute

    With these

    Code:
    /data/magisk/sepolicy-inject --live "allow mediaserver mediaserver_tmpfs file { read write execute }"
    /data/magisk/sepolicy-inject --live "allow audioserver audioserver_tmpfs file { read write execute }"

    To support the new format for injecting selinux policies.
    Here is the zip for anyone who wants it.
    This is only necessary if you are using selinux enforcing
    4
    Spoiling...

    Guyz plz don't get angry with me... I'm working on the new Mod of mine so today I'm going bring u some thing, a test prototype of the new mod... you guyz try it with Magisk for now and let me know about ur experience...
    I'm going to open a thread for it so I'm asking thread maintainer for some suggestions after that I will open the thread and start giving u the test, Releases builds

    Keep It a secret :cowboy: for now DO NOT tell anybody :D:D:D
    3
    ViPER-FX MKM is a modified edition of 'ViPER4Android FX' . MKM is referred any modified edition by me. Please see this thread's Modification/Features I've posted in the main page and also go to the changelog all you'll know what need to know, and as you can see that this is a very new thread I'll make it more sorted in times. :good:

    Call me slow, but after reading the first post as well as the changelog of 4.x from your blog I still do not understand the difference between this and the original port V4A by topjohnwu
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