Installing Viper4Android

chiiiiiiippppppp

Senior Member
Dec 14, 2013
69
32
38
After days of trying numerous different ways I've finally managed to get Viper to work my Oneplus 7T Pro

You will need to have a modded recovery with adb enabled:-

https://forum.xda-developers.com/7t-pro/development/recovery-oxygen-os-stock-recovery-adb-t3991865

First I removed the any previous Viper module in Magisk and rebooted.

I then uninstalled the Viper App and rebooted again.

So I then had a clean starting point.

I installed The SELinux Switch app from XDA to set SELinux mode to Permissive:-

https://forum.xda-developers.com/and...witch-t3656502

I turned off Google Play Protect.

I then installed the version 2.7.1.0 module in Magisk.

Installed driver and it rebooted.

Stuck at Fastboot screen.

Reboot to Recovery

I then did the following in adb to delete the post-fs-data.sh file which is the file that stops the phone booting.

1) adb shell
2)cd to /data/adb/modules/ViPER4AndroidFX
3)rm post-fs-data.sh
4)exit

reboot to Fastboot and then Start

Then it just worked.

Hopefully this method will work for others.
 

Attachments

Last edited:

Lossyx

Senior Member
Jan 14, 2014
1,320
492
103
Wouldn't it be easier to just make a viper zip without postfs data?
We don't have the source of the module, and you can't just take the installed module folder and zip it to a module so I don't think it's possible.

Might be wrong though.

Sent from my OnePlus7TPro using XDA Labs
 

f41lbl0g

Senior Member
Mar 15, 2014
296
422
93
Here try this zip I modified, it should work fine on the OP7T and OP7T Pro if this fix does indeed work. Shouldn't need any custom recovery or adb. Can someone report if my modified file works? If it doesn't just use the custom recovery with adb to remove the module.

Note: Selinux will need to be changed to permissive before installing the module using this:
https://forum.xda-developers.com/android/apps-games/app-selinux-switch-t3656502

All credits to:
- @ahrion
- @zhuhang
- @osm0sis
- Viper's Audio (Official blog)
- @viper520
- @Team_DeWitt
 

Attachments

Last edited:

Alexisd1

Member
Dec 30, 2014
18
17
0
Here try this zip I modified, it should work fine on the OP7T and OP7T Pro if this fix does indeed work. Shouldn't need any custom recovery or adb. Can someone report if my modified file works? If it doesn't just use the custom recovery with adb to remove the module.

Note: Selinux will need to be changed to permissive before installing the module using this:
https://forum.xda-developers.com/android/apps-games/app-selinux-switch-t3656502

All credits to:
- @ahrion
- @zhuhang
- @osm0sis
- Viper's Audio (Official blog)
- @viper520
- @Team_DeWitt
You will have to make this steps to make it work.These steps are from the original thread and for my situation the module It didnt worked properly.

I have flashed your zip with magisk manager,I havent rebooted,I have installed the drivers from Viper and then I rebooted. I got stucked in fastboot. I had to make rm post-fs-data.sh to force the phone get fixed from the loop.Then I have opened Viper and then asked me again to install the drivers.Then I got stucked again and I had to put the same command through adb shell rm post-fs-data.sh. After that It did worked but I dont know why its not working with your module.
 

f41lbl0g

Senior Member
Mar 15, 2014
296
422
93
You will have to make this steps to make it work.These steps are from the original thread and for my situation the module It didnt worked properly.

I have flashed your zip with magisk manager,I havent rebooted,I have installed the drivers from Viper and then I rebooted. I got stucked in fastboot. I had to make rm post-fs-data.sh to force the phone get fixed from the loop.Then I have opened Viper and then asked me again to install the drivers.Then I got stucked again and I had to put the same command through adb shell rm post-fs-data.sh. After that It did worked but I dont know why its not working with your module.
Did you make selinux permissive?
 

c0caine_train

Member
Jan 23, 2019
5
0
0
You will have to make this steps to make it work.These steps are from the original thread and for my situation the module It didnt worked properly.

I have flashed your zip with magisk manager,I havent rebooted,I have installed the drivers from Viper and then I rebooted. I got stucked in fastboot. I had to make rm post-fs-data.sh to force the phone get fixed from the loop.Then I have opened Viper and then asked me again to install the drivers.Then I got stucked again and I had to put the same command through adb shell rm post-fs-data.sh. After that It did worked but I dont know why its not working with your module.
I had the same. I had to install and delete the .sh twice until it worked. And it works fine.
 

f41lbl0g

Senior Member
Mar 15, 2014
296
422
93
You will have to make this steps to make it work.These steps are from the original thread and for my situation the module It didnt worked properly.

I have flashed your zip with magisk manager,I havent rebooted,I have installed the drivers from Viper and then I rebooted. I got stucked in fastboot. I had to make rm post-fs-data.sh to force the phone get fixed from the loop.Then I have opened Viper and then asked me again to install the drivers.Then I got stucked again and I had to put the same command through adb shell rm post-fs-data.sh. After that It did worked but I dont know why its not working with your module.
I had the same. I had to install and delete the .sh twice until it worked. And it works fine.
At this point just flash the zip from the original post, don't use my zip. I'll test it out more once my phone arrives.
 

slapman

Senior Member
Sep 20, 2011
296
47
48
Temple Terrace
Wow, this Viper4android seems to be a pain for our phones. I already tried it approximately 5 times and having to use the MSM tool to be able to boot up again from scratch I'm coming from a different flagship and I never had a problem rooting and installing apps like Viper4android before. I don't know if it would be too much to ask. that once someone has found a proven successful method to please share. I don't want to seem lazy I've been searching all over and so far the methods are not definite and very frustrating. Ive had my phone for a week still adjusting. Anyway any help would be appreciated and please no offensive comments. Thanks
 
  • Like
Reactions: jotha.dx

Lossyx

Senior Member
Jan 14, 2014
1,320
492
103
Wow, this Viper4android seems to be a pain for our phones. I already tried it approximately 5 times and having to use the MSM tool to be able to boot up again from scratch I'm coming from a different flagship and I never had a problem rooting and installing apps like Viper4android before. I don't know if it would be too much to ask. that once someone has found a proven successful method to please share. I don't want to seem lazy I've been searching all over and so far the methods are not definite and very frustrating. Ive had my phone for a week still adjusting. Anyway any help would be appreciated and please no offensive comments. Thanks
Yeah, read the first post...

Sent from my OnePlus7TPro using XDA Labs
 

Lossyx

Senior Member
Jan 14, 2014
1,320
492
103
Yes, I did read the post but I just don't want to mess up the phone again. Maybe Ill try again when my mind is fresh had to many mishaps but thanks.
Which version do you have? EU or international?

This recovery works fine in EU version, if there's is anything that messes up it's likely a module, which can easily be removed with the modded recovery.

Sent from my OnePlus7TPro using XDA Labs