32

General - [Bounty] Viper4android fix | Page 2 | XDA Forums

 1 year ago
source link: https://forum.xda-developers.com/t/bounty-viper4android-fix.4452235/page-2#post-86976891
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[Bounty] Viper4android fix

ecera

Senior Member
Jun 11, 2013
Regarding the lib vs lib64:

Check in the patched audio_effects.conf file

There should be a number of libraries listed as:
path /vendor/lib/soundfx/*.so

Are they really listed with /vendor/lib/

or with
vendor/lib64/

---

Disable the V4A module (through Magisk app or by placing an empty file named disable into /data/adb/modules/ViPER4AndroidFX - Magisk app by itself disables a particular module that way) and REBOOT and then check the original, not-patched conf file in those 'real' folders and check if it refers to lib or lib64

PS: Check those not-patched conf files in all four locations you said you had them in the post #9

Also, with the disabled V4A module, run su and then your dumpsys command directly from Terminal app and look does it list /vendor/lib/soundfx/ or /vendor/lib64/soundfx/ libraries

Here is a screenshot of one of the patched .conf files. I also attached the /data/adb/modules/Viper4AndroidFX folder with all the patched .xml's &.conf's.

Attachments

  • Screenshot_2022-05-31-17-51-50-83_e49d45507bc181c986c3a6e97c85ef40.jpg

    Screenshot_2022-05-31-17-51-50-83_e49d45507bc181c986c3a6e97c85ef40.jpg
    409.5 KB · Views: 9
  • ViPER4AndroidFX.zip
    820.1 KB · Views: 3

ecera

Senior Member
Jun 11, 2013
@zgfg after disabling Viper, the untouched .conf files all show lib not lib64. Here are results of dumpsys media.audio_flinger with viper disabled.

Attachments

  • Screenshot_2022-05-31-18-09-13-73_84d3000e3f4017145260f7618db1d683.jpg

    Screenshot_2022-05-31-18-09-13-73_84d3000e3f4017145260f7618db1d683.jpg
    602.1 KB · Views: 21

zgfg

Senior Member
Oct 10, 2016 7,216 4,658
@zgfg after disabling Viper, the untouched .conf files all show lib not lib64. Here are results of dumpsys media.audio_flinger with viper disabled.

Strange that your not-patched conf files refer to lib/soundfx while dumpsys list lib64/soundfx libraries

Sorry, I can not help you further, don't know is it about lib64 or something else

Btw, all 'normal' modules 'manipulate' with system files through the customize.sh, post-fs-data.sh or service sh scripts - and one could then see their logic (to debug and fix/adapt something if needed) only the V4A has its 'driver installation' hidden in the apk (one would need to study the Java source and rebuild to adapt for new devices like yours)

I'll send you later today through the private conversation, the module zip 'installation' that you can flash to easily return to this point with the patched XML and conf files

IMO, it's of general interest, if you experiment further and specially if you find how to fix V4A on your device, please post your results - good luck

Reactions: galaxys and ecera

ecera

Senior Member
Jun 11, 2013
Strange that your not-patched conf files refer to lib/soundfx while dumpsys list lib64/soundfx

Sorry, I can not help you further, don't know is it about lib64 or something else

Btw, all 'normal' modules 'manipulate' with system files through the customize.sh, post-fs-data.sh or service sh scripts - and one could then see their logic (to debug and fix/adapt something if needed) only the V4A has its 'driver installation' hidden in the apk (one would need to study the Java source and rebuild to adapt for new devices like yours)

I'll send you later today through the private conversation, module zip 'installation' that you can easily return to this point with the patched XML and conf files

IMO, it's of general interest, if you experiment further and specially if you find how to fix V4A on your device, please post your results - good luck

I can't thank you enough for taking time from your day to help out with this! I'm not sure what else to try. Hopefully others start digging around too.

i'm also trying to get viper4android working on a Poco F4 gt

driver will install but viper never finds it

also tried the steps mentioned here, same conclusion

in audio_effects.config
points to
path /vendor/lib/soundfx/*.so

in dumpsys
path /vendor/lib64/soundfx/*.so

hope someone with more knowledge can help us out?

hahimot483

New member
Jan 1, 2021
I was able to get JamesDSP working on the 10 pro by selecting "Is this a Huawei device?" = yes during the install. Maybe someone can compare the install script of JamesDSP.
I was able to get JamesDSP working on the 10 pro by selecting "Is this a Huawei device?" = yes during the install. Maybe someone can compare the install script of JamesDSP.

wow! thank u, this worked for me to enable James DSP on Poco f4 gt

zgfg

Senior Member
Oct 10, 2016 7,216 4,658
wow! thank u, this worked for me to enable James DSP on Poco f4 gt

Also for @hahimot483

Please use a root explorer like MiXPlorer and go to /data/adb/modules/ainur_jamesdsp/system
Inspect all subfolders (and their subfolders, etc) - don't worry, there are only a few

1) Do you find there lib and/or lib64 folders and at what location (like in vendor subfolder)?

2) Find audio_effects.conf file (probably you have a couple of them in different subfolders, but identical).
Open (as a text file), does it show (see my screenshot) for jdsp:
path /vendor/lib/soundfx/libjamesdsp.so
or:
path /vendor/lib64/soundfx/libjamesdsp.so

Attachments

  • IMG_20220603_064901.jpg

    IMG_20220603_064901.jpg
    376.6 KB · Views: 0

Top Liked Posts

  • So I'm not sure if I'm doing this the right way, but I think in an effort to get experienced devs to take a look into our viper4android driver loop issue a bounty is in order.

    I have tried every method I could find to get viper4android to work on our OnePlus 10 pro with no success.

    Below I'll start a list of pledgers who are willing to pay the bounty when/if a fix is found. I'll add to the list as other pledgers come forward. Any pledge amount helps.

    •ecera -$50
    •Aldonski - $10

    On a side note, I'll be willing to test any fixes that are thrown my way. I'm also ready to provide any files or logs that are requested. Also, if you guys/gals want to tag some members that may be willing to take on this task please do so. Thanks.
    Strange that your not-patched conf files refer to lib/soundfx while dumpsys list lib64/soundfx

    Sorry, I can not help you further, don't know is it about lib64 or something else

    Btw, all 'normal' modules 'manipulate' with system files through the customize.sh, post-fs-data.sh or service sh scripts - and one could then see their logic (to debug and fix/adapt something if needed) only the V4A has its 'driver installation' hidden in the apk (one would need to study the Java source and rebuild to adapt for new devices like yours)

    I'll send you later today through the private conversation, module zip 'installation' that you can easily return to this point with the patched XML and conf files

    IMO, it's of general interest, if you experiment further and specially if you find how to fix V4A on your device, please post your results - good luck

    I can't thank you enough for taking time from your day to help out with this! I'm not sure what else to try. Hopefully others start digging around too.

    @zgfg after disabling Viper, the untouched .conf files all show lib not lib64. Here are results of dumpsys media.audio_flinger with viper disabled.

    Strange that your not-patched conf files refer to lib/soundfx while dumpsys list lib64/soundfx libraries

    Sorry, I can not help you further, don't know is it about lib64 or something else

    Btw, all 'normal' modules 'manipulate' with system files through the customize.sh, post-fs-data.sh or service sh scripts - and one could then see their logic (to debug and fix/adapt something if needed) only the V4A has its 'driver installation' hidden in the apk (one would need to study the Java source and rebuild to adapt for new devices like yours)

    I'll send you later today through the private conversation, the module zip 'installation' that you can flash to easily return to this point with the patched XML and conf files

    IMO, it's of general interest, if you experiment further and specially if you find how to fix V4A on your device, please post your results - good luck

    try this:
    remove all sound mods you have added, including the module from magisk and the viper app!
    reboot!

    Install attached Audio-Modification-Library_v4_0-OS12-op10
    reboot!
    install com.pittvandewitt.viperfx_2.7.2.1-2721.apk
    open the viper app, and click install drivers.
    phone auto reboot.

    copy attached post-fs-data.sh to /data/adb/modules/ViPER4AndroidFX/ (use adb or rooted file manager)

    REBOOT, do not open the app!!!!

    now if we hit the FIX, if you will open the app it's should not ask to install drivers.

    if it's stop asking, check the state, if it's not NORMAL then tick the Legacy Mode, and check state.
    should be Status Normal.

    I hope this will work for you.

    Thank you for responding! I'm going to test out your methods first, I will report back.

    Edit: so I tried the method you suggested and unfortunately driver loop persists. So what I noticed is that audio_effects.xml in all directories on this phone remain untouched. They remain "stock". Also, under /data/adb/modules/aml or /Viper4Androidfx in the system folder in both directories subfolders were created, but remain empty. Not sure if there's any info you would like to take from the phone that I could get for you? I took a few screenshots, not sure if that'll help. I started clean with no mods and I took these after attempting the fix.

    try this:
    remove all sound mods you have added, including the module from magisk and the viper app!
    reboot!

    Install attached Audio-Modification-Library_v4_0-OS12-op10
    reboot!
    install com.pittvandewitt.viperfx_2.7.2.1-2721.apk
    open the viper app, and click install drivers.
    phone auto reboot.

    copy attached post-fs-data.sh to /data/adb/modules/ViPER4AndroidFX/ (use adb or rooted file manager)

    REBOOT, do not open the app!!!!

    now if we hit the FIX, if you will open the app it's should not ask to install drivers.

    if it's stop asking, check the state, if it's not NORMAL then tick the Legacy Mode, and check state.
    should be Status Normal.

    I hope this will work for you.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK