[Xiaomi Mi 8 Guides, News, & Discussion] afah_me:
Hi everyone, i'll share a little trick to enable viper on android 10 especially SAR device with A only partition without getting stuck bootlogo or stuck FASTBOOT. Btw I will not share any trick before tested by my self. Viper work for me doesn't mean it will work for you all, that's why I made many guides so you can choose the method that suits you.

DOWNLOAD LINK

1. SELinux Mode Changer

2. Viper Rootless Installer

3. Viper4Android v2.7.1.0

1st METHOD via ROOTLESS INSTALLER (NON ROOT)

How to:

1. install viper rootless installer via recovery then reboot

2. install viper 2.7.1.0.apk then open it,

>>>see driver status if NEON enabled YES and status NORMAL you're ready to go

if not, check your SELinux, viper mostly work in permissive mode

If already permissive but still have some problem, so this method not for you

2nd METHOD via MAGISK MODULE (ROOT)

How to:

1. install latest viper 2.7.1.0, open it and grant ROOT access

2. it will reboot automatically but DON'T FORGET TO PRESS VOLUME UP UNTIL DEVICE GO TO RECOVERY !!!!

3. go to data/adb/modules/Viper4AndroidFX

4. rename "post-fs-data.sh" to "post-fs-data.sh.bak" or you can simply remove it

5. reboot ENJOY

3rd METHOD via MODIFY POST-FS-DATA.SH (ROOT)

How to:

1. download post-fs-data.sh.txt in my attachment

2. rename it to post-fs-data.sh

3. install viper 2.7.1.0 and grant ROOT access, it will reboot automatically but DON'T FORGET TO PRESS VOLUME UP UNTIL DEVICE GO TO RECOVERY !!!!

4. copy downloaded "post-fs-data.sh" to data/adb/modules/Viper4AndroidFX

6. set permission to rw-r-r

7. reboot

4th METHOD via MAGISK MODULE + SeLinux Mode Changer [MIUI 11 A10] (ROOT)

How to:

1. Install SElinux Mode Changer.apk

2. Open app, grant root access then change to permissive

3. You must ENABLE AUTOSTART for SELinux Mode Changer and VIPER, Go to Settings>Apps>Permission>AUTOSTART

4. Open viper 2.7.1.0 bla bla bla bla >>>follow 1st method or 3rd method (recommended) bcz sometimes 2nd method still not work

5. Reboot

6. Enjoy

***Viper driver gone/missing after several rebooting system?? just open SELinux app then change again to permissive>reboot>solved

QUESTIONS+ANSWER+NOTES

Q>> sometimes viper not processing?

A>>>force stop viper+music then re-open

Q>> why not use "kernel SEPolicy patcher.zip" and flash via twrp?

A>>>because it doesn't work for me, flashed many times SELinux still enforcing but if you successful, you can skip SELinux Mode Changer and direct install viper

{N} maybe viper sometimes crash with musicfx on some roms, so i suggest you to disable musicfx instead delete it, disable via settings>apps>show all apps>show system or you can disable/freeze musicfx via titanium backup

{N} if you use SELinux Mode Changer app, make sure you turned off google play protect to avoid SELinux back to default

{N} if you have sound issue after installing viper, rename libvolumelistener.so to libvolumelistener.so.bak via twrp recovery (mount vendor first)

directory >> vendor/lib/soundfx and vendor/lib64/soundfx

{N} Some users report not work on wireless earbud, idk why,,, i always use wired headset..lol

tested on almost aosp/miui rom for dipper

PE A10

PR A10

MehuiEU/Mehroom/Mix Beta A10

Havoc 3.0

Superior

Evo 4.0

Crd 6.0

LOS 17

Revenge OS

credit :

[MENTION=4470081]topjohnwu[/MENTION] for bringing support magisk to sar a-only device

[MENTION=9073985]Team_DeWitt[/MENTION] for best enhancement viper4android

All Dev for bringing up Android 10 for dipper

Me for the guide + tester

Some users who help me to fix the errors

EDIT : Added new method for MIUI user