[v4a] Install Viper4Android on Pixel 3a Android Pie

Search This thread

marstonpear

Senior Member
May 15, 2016
493
190
This guide is about installing v4a on factory ROM viper4Android. Your mileage may vary with other versions of Android/OSs. I'm not responsible if your device bricks. I'm only writing this guide because I miss the golden days of using V4A on my personal device to enhance audio quality.

1. Get the earliest version of Android from Google's website. Make sure you have fastboot and adb installed on your system.
https://developers.google.com/android/images#sargo > get Android 9 from here

2. Enable Developer options. Go to developer options and enable bootloader unlocking.

3. Reboot the phone by holding down Power + Vol Down button to boot into fastboot.
4. With the phone in fastboot mode, connect it to your PC and execute the following. WARNING: This will wipe all data on the phone, I mean ALL.
Code:
fastboot flashing unlock
Then confirm on the phone that you want to unlock the bootloader.

5. Go into the zip file you've downloaded from Google and find the other zip file from within it. Extract the boot.img from that second zip.
6. Boot the phone into Android 9 but DO NOT connect it to any network.
7. Enable developer options again and disable automatic system updates from developer options.
8. Download Magisk from Github (from the releases) https://github.com/topjohnwu/Magisk
9. Clone the v4a repo from https://github.com/Magisk-Modules-Repo/ViPER4Android-FX and put the contents in a zip file. The top folder should contain the repo's folders, so when you open the zip file it should be exactly the same as the repo. On Linux you can use the following commands to do the job:

Code:
git clone https://github.com/Magisk-Modules-Repo/ViPER4Android-FX.git v4a
zip -r viper.zip v4a

Do the same thing with this repo to download Audio Modification Library : https://github.com/Zackptg5/Audio-Modification-Library

10. Transfer the boot.img, magisk apk and the compiled zips to the phone storage. Install Magisk.apk
11. Open Magisk and select install from top and select and patch a file. Choose the boot.img. This will give you another file called magisk_boot_random.img. Transfer this file to your desktop.
12. Boot the phone in fastboot mode and flash this magisk patched boot image onto the boot partition with the following:
Code:
fastboot flash boot magisk_patched_random.img

13. Boot the phone and open Magisk. Choose Modules> install from storage and install viper.zip and then AML's zip files. DO NOT REBOOT.
14. Open the v4a application and allow it to install the drivers. This will reboot the phone automatically.
15. Install a file explorer that allows root access to the system, add the following code to the /data/adb/modules/ViPER4AndroidFX/post-fs-data.sh

Code:
magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow audioserver system_file file { execmod }'
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow mediaserver system_file file { execmod }'
magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'

16. Reboot and open v4a app, if it's not working, in the settings toggle the Legacy option on & off. This should be working now.
 
  • Like
Reactions: BuffMcBigHuge

BuffMcBigHuge

Senior Member
May 31, 2012
593
293
Canada
Thank you, confirmed working on a Pixel 3a XL.

Screenshot_20220802-101658_ViPER4Android FX.png
 
This guide is about installing v4a on factory ROM viper4Android. Your mileage may vary with other versions of Android/OSs. I'm not responsible if your device bricks. I'm only writing this guide because I miss the golden days of using V4A on my personal device to enhance audio quality.

1. Get the earliest version of Android from Google's website. Make sure you have fastboot and adb installed on your system.
https://developers.google.com/android/images#sargo > get Android 9 from here

2. Enable Developer options. Go to developer options and enable bootloader unlocking.

3. Reboot the phone by holding down Power + Vol Down button to boot into fastboot.
4. With the phone in fastboot mode, connect it to your PC and execute the following. WARNING: This will wipe all data on the phone, I mean ALL.
Code:
fastboot flashing unlock
Then confirm on the phone that you want to unlock the bootloader.

5. Go into the zip file you've downloaded from Google and find the other zip file from within it. Extract the boot.img from that second zip.
6. Boot the phone into Android 9 but DO NOT connect it to any network.
7. Enable developer options again and disable automatic system updates from developer options.
8. Download Magisk from Github (from the releases) https://github.com/topjohnwu/Magisk
9. Clone the v4a repo from https://github.com/Magisk-Modules-Repo/ViPER4Android-FX and put the contents in a zip file. The top folder should contain the repo's folders, so when you open the zip file it should be exactly the same as the repo. On Linux you can use the following commands to do the job:

Code:
git clone https://github.com/Magisk-Modules-Repo/ViPER4Android-FX.git v4a
zip -r viper.zip v4a

Do the same thing with this repo to download Audio Modification Library : https://github.com/Zackptg5/Audio-Modification-Library

10. Transfer the boot.img, magisk apk and the compiled zips to the phone storage. Install Magisk.apk
11. Open Magisk and select install from top and select and patch a file. Choose the boot.img. This will give you another file called magisk_boot_random.img. Transfer this file to your desktop.
12. Boot the phone in fastboot mode and flash this magisk patched boot image onto the boot partition with the following:
Code:
fastboot flash boot magisk_patched_random.img

13. Boot the phone and open Magisk. Choose Modules> install from storage and install viper.zip and then AML's zip files. DO NOT REBOOT.
14. Open the v4a application and allow it to install the drivers. This will reboot the phone automatically.
15. Install a file explorer that allows root access to the system, add the following code to the /data/adb/modules/ViPER4AndroidFX/post-fs-data.sh

Code:
magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow audioserver system_file file { execmod }'
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow mediaserver system_file file { execmod }'
magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'

16. Reboot and open v4a app, if it's not working, in the settings toggle the Legacy option on & off. This should be working now.
I am on android 11, unlocked bootloader, rooted with Magisk (patched boot.img). I want to roll back to Android 9. I'm not concerned about losing data as this is not my daily driver. Do I need to relock the bootloader before attempting this downgrade? I am doing this is to successfully install Viper4Android, so I figured this question might belong in this thread. Thank you in advance!
 

marstonpear

Senior Member
May 15, 2016
493
190
I am on android 11, unlocked bootloader, rooted with Magisk (patched boot.img). I want to roll back to Android 9. I'm not concerned about losing data as this is not my daily driver. Do I need to relock the bootloader before attempting this downgrade? I am doing this is to successfully install Viper4Android, so I figured this question might belong in this thread. Thank you in advance!
Hi, no. You don't need to relock your bootloader to downgrade your OS.
 
This guide is about installing v4a on factory ROM viper4Android. Your mileage may vary with other versions of Android/OSs. I'm not responsible if your device bricks. I'm only writing this guide because I miss the golden days of using V4A on my personal device to enhance audio quality.

1. Get the earliest version of Android from Google's website. Make sure you have fastboot and adb installed on your system.
https://developers.google.com/android/images#sargo > get Android 9 from here

2. Enable Developer options. Go to developer options and enable bootloader unlocking.

3. Reboot the phone by holding down Power + Vol Down button to boot into fastboot.
4. With the phone in fastboot mode, connect it to your PC and execute the following. WARNING: This will wipe all data on the phone, I mean ALL.
Code:
fastboot flashing unlock
Then confirm on the phone that you want to unlock the bootloader.

5. Go into the zip file you've downloaded from Google and find the other zip file from within it. Extract the boot.img from that second zip.
6. Boot the phone into Android 9 but DO NOT connect it to any network.
7. Enable developer options again and disable automatic system updates from developer options.
8. Download Magisk from Github (from the releases) https://github.com/topjohnwu/Magisk
9. Clone the v4a repo from https://github.com/Magisk-Modules-Repo/ViPER4Android-FX and put the contents in a zip file. The top folder should contain the repo's folders, so when you open the zip file it should be exactly the same as the repo. On Linux you can use the following commands to do the job:

Code:
git clone https://github.com/Magisk-Modules-Repo/ViPER4Android-FX.git v4a
zip -r viper.zip v4a

Do the same thing with this repo to download Audio Modification Library : https://github.com/Zackptg5/Audio-Modification-Library

10. Transfer the boot.img, magisk apk and the compiled zips to the phone storage. Install Magisk.apk
11. Open Magisk and select install from top and select and patch a file. Choose the boot.img. This will give you another file called magisk_boot_random.img. Transfer this file to your desktop.
12. Boot the phone in fastboot mode and flash this magisk patched boot image onto the boot partition with the following:
Code:
fastboot flash boot magisk_patched_random.img

13. Boot the phone and open Magisk. Choose Modules> install from storage and install viper.zip and then AML's zip files. DO NOT REBOOT.
14. Open the v4a application and allow it to install the drivers. This will reboot the phone automatically.
15. Install a file explorer that allows root access to the system, add the following code to the /data/adb/modules/ViPER4AndroidFX/post-fs-data.sh

Code:
magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow audioserver system_file file { execmod }'
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
magiskpolicy --live 'allow mediaserver system_file file { execmod }'
magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'

16. Reboot and open v4a app, if it's not working, in the settings toggle the Legacy option on & off. This should be working now.
I've flashed Android 9, Rooted successfully (Magisk v25.2 boot.img patch), when I try to install the v4a/modules zips I made, the terminal outputs an error:

- Copying zip to temp directory
! Unzip error

Do these files need to be compressed in a certain way to be able to flash them correctly? I cloned both repo's and just compressed them into .zip files. Am I doing this correctly?
 

marstonpear

Senior Member
May 15, 2016
493
190
I've flashed Android 9, Rooted successfully (Magisk v25.2 boot.img patch), when I try to install the v4a/modules zips I made, the terminal outputs an error:

- Copying zip to temp directory
! Unzip error

Do these files need to be compressed in a certain way to be able to flash them correctly? I cloned both repo's and just compressed them into .zip files. Am I doing this correctly?
I encountered the same issue when I zipped the repos wrongly. Just ensure all the files in the repo are in the top directory of the zip. So basically META-INF directory needs to be there when you open the zip on desktop.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    This guide is about installing v4a on factory ROM viper4Android. Your mileage may vary with other versions of Android/OSs. I'm not responsible if your device bricks. I'm only writing this guide because I miss the golden days of using V4A on my personal device to enhance audio quality.

    1. Get the earliest version of Android from Google's website. Make sure you have fastboot and adb installed on your system.
    https://developers.google.com/android/images#sargo > get Android 9 from here

    2. Enable Developer options. Go to developer options and enable bootloader unlocking.

    3. Reboot the phone by holding down Power + Vol Down button to boot into fastboot.
    4. With the phone in fastboot mode, connect it to your PC and execute the following. WARNING: This will wipe all data on the phone, I mean ALL.
    Code:
    fastboot flashing unlock
    Then confirm on the phone that you want to unlock the bootloader.

    5. Go into the zip file you've downloaded from Google and find the other zip file from within it. Extract the boot.img from that second zip.
    6. Boot the phone into Android 9 but DO NOT connect it to any network.
    7. Enable developer options again and disable automatic system updates from developer options.
    8. Download Magisk from Github (from the releases) https://github.com/topjohnwu/Magisk
    9. Clone the v4a repo from https://github.com/Magisk-Modules-Repo/ViPER4Android-FX and put the contents in a zip file. The top folder should contain the repo's folders, so when you open the zip file it should be exactly the same as the repo. On Linux you can use the following commands to do the job:

    Code:
    git clone https://github.com/Magisk-Modules-Repo/ViPER4Android-FX.git v4a
    zip -r viper.zip v4a

    Do the same thing with this repo to download Audio Modification Library : https://github.com/Zackptg5/Audio-Modification-Library

    10. Transfer the boot.img, magisk apk and the compiled zips to the phone storage. Install Magisk.apk
    11. Open Magisk and select install from top and select and patch a file. Choose the boot.img. This will give you another file called magisk_boot_random.img. Transfer this file to your desktop.
    12. Boot the phone in fastboot mode and flash this magisk patched boot image onto the boot partition with the following:
    Code:
    fastboot flash boot magisk_patched_random.img

    13. Boot the phone and open Magisk. Choose Modules> install from storage and install viper.zip and then AML's zip files. DO NOT REBOOT.
    14. Open the v4a application and allow it to install the drivers. This will reboot the phone automatically.
    15. Install a file explorer that allows root access to the system, add the following code to the /data/adb/modules/ViPER4AndroidFX/post-fs-data.sh

    Code:
    magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }'
    magiskpolicy --live 'allow audioserver system_file file { execmod }'
    magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }'
    magiskpolicy --live 'allow mediaserver system_file file { execmod }'
    magiskpolicy --live 'allow audioserver unlabeled file { read write execute open getattr }'
    magiskpolicy --live 'allow hal_audio_default hal_audio_default process { execmem }'
    magiskpolicy --live 'allow hal_audio_default hal_audio_default_tmpfs file { execute }'
    magiskpolicy --live 'allow hal_audio_default audio_data_file dir { search }'
    magiskpolicy --live 'allow app app_data_file file { execute_no_trans }'
    magiskpolicy --live 'allow mtk_hal_audio mtk_hal_audio_tmpfs file { execute }'

    16. Reboot and open v4a app, if it's not working, in the settings toggle the Legacy option on & off. This should be working now.