yashsingh1/xdaforums huggingface dataset:
[Android General] rpangelov:
Nice you have managed to get it work!

PS: Only asking... you just copied the files inside the zip, to your internal memory or? Via ADB? And you use CM13?!
[Android General] Marcuss4:
Yes, i unpacked the audiophile zip pack and copied over the files to emulated/0/viper4android

Then i made a save file in viper4android called Stock, after this i first copied the profile folder and then the kernel folder from emulated/0/viper4android to the legacy folder (i had to create myself).

This seemed to work, instead of copying the folders together.

I am using cm13 snapshot.
[Android General] DKnightX91:
Anything you need to be special for this to work? I'm running cm-13.0-20160919-NIGHTLY-oneplus2 with the stock root that came with it in the dev setting and xposed framework.

Also would I need to reflash this with OTAs?
[Android General] paed808:
I got this working on CM14 (unofficial early build for Moto G 2014) and it works, but I have to set SELinux to permissive with SELinuxModeChanger.
[Android General] rpangelov:
No, you don't. You need to gain Init.d root rights and reboot your device. Then you have init.d enabled and viper4linux can be runned on enforced selinux.

PS: You run viper4android without any of these techniques in permissive mode.
[Android General] paed808:
I tried that, universal Init.d never asks for root access. I once got it to request root with CM14, but it still showed abnormal in viper.

I'm going to try again. But I doubt it will work.

It worked in CM13.

I use PHH superuser btw

---------- Post added at 09:59 AM ---------- Previous post was at 09:07 AM ----------

Update: I just got done copying a YouTube apk to the system partition of my phone, and after rebooting, Universal Init.d requested root access, and Viper4android seems to be working with selinux set to enforcing now!

EDIT: Nope, still shows "Abnormal". False alarm. Needs selinux set to permissive. Sigh.. :rolleyes:
[Android General] rpangelov:
I've not tested it with PHH's super user, but I believe there is the problem. Cyanogenmod's superuser handle's it good. You can try to do that:

1. Flash the opensource script

2. Boot cyanogenmod and go to Developer Options - allow root access on apps only.

3. Open up Init.d Universal and move Off to On. After that scroll to the bottom and click on "Test" - Privacy Guard will ask you if you want to gain Universal Init.d root access. Do that... and check the box to always grant it root permissions.

4. Reboot your phone and look again at what Viper4Android says.

Let me know what is the result... maybe I will make another script tested with PHH's superuser.
[Android General] paed808:
Some of my apps only work with CM14 privacy guard root, like AdAway and Titanium Backup. All my other apps work with PHH. Universal Init.d's root request only triggers PHH (BTW its PHH using PunchUp's material superuser apk) . I need PHH for various reasons. So unfortunately, I can't test that right now. Also, maybe CM14 is the issue? Its an unofficial build for Moto G 2014 (titan) by LuK1337 (the official maintainer of CM13, 12.1 and 11 for titan)
[Android General] rpangelov:
As all CM14/AOSP7 builds for my device (MotoE 2015 surnia) are with selinux set to permissive by defaults I cannot give you adequate answer at this moment. I have to try it also with enforced selinux. Also I didn't made any tests with Phh's su, so this could be issue also. If you unpack the opensource script you will see that there are 2 more tools - opensource alternatives to supolicy - setools, so you can manager selinux policy's without using parts of SuperSu or any other non-opensource sh**. If they are not executed, Viper4Android won't run in enforced selinux, as mediaserver gets blocked... so you need ti change Selinux policy's in order to v4a running with enforced selinux.
[Android General] BootloopedMillennials:
Semiworked. Viper4Android driver status was fine. Convolver and other settings aren't working.

My device is extremely picky with Viper4android. Using it with SELinux set to permissive, Viper4android had to be installed as user app and audio_effects.conf (vendor/etc) removed for it to work properly.

Is there a way to utilize your scripts but manually install Busybox, Viper4Android (and driver)
[Android General] rpangelov:
Well....there is a way, but the opensource script does that + it installs Universal init.d app. Please, follow my advice and don't use permissive selinux . When u set setlinux in permissive mode it won't block attacks like the one's performed exploiting "dirty cow" - bug founded 2 weeks ago which is affecting all android versions. Maybe it is fixed in the last nightly cyanogenmod builds or something. Anyway... Selinux blocks lots of attacks so... please don't set it to permissive because you compromise your security.

What device do you own? Which mod are you running?
[Android General] rohanmane3:
Will open source zip work on stock mm 6.0.1 ?
[Android General] rpangelov:
Yup... if it's rooted. Otherwise - the legacy script.
[Android General] BootloopedMillennials:
Moto X 2014. CM13 Nightly. ViPER4Android (OpenSource) mod.
[Android General] voshchronos:
Nothing works

OpenSource not working on my Galaxy A510M with Kyubi Rom V2. Everytime I open V4A, it asks to install the drivers. I do, reboot, then it asks again and again and again. If I check its status, I get "Abnormal". I tried opening the init.d app and testing it, granting it root than turning it on and rebooting to no avail. Did I do anything wrong?

-------

Edit: Just tried out the Legacy version and it messed up my rom, wtf? Now I don't even have root access at all :/

Edit²: After that, I re-rooted my android and still the same thing happens. Eternally being asked to isntall V4A drivers. Always "Abnormal".

Edit³: Just tried everything I described on a stock rom and still the same problem, always. I'm getting hopeless.
[Android General] rpangelov:
That sounds weird. I have tested it on different rom's for two different devices - Moto G (thea); Moto E (surnia). ROM's I have tested it with: Cyanogenmod, AOSP, AOSCP, ResurrectionRemix, AOSP-CAF. I will try to explain it once more:

If you use legacy script:

Legacy script will ROOT your phone with SuperSU. SuperSU contains more tools than rootmanager - tools to change your selinux policy's in order to grant mediaserver more access. Anyway... I don't know why it messed up your phone... what you mean by that? Was your ROM unable to boot? Which root manager are you using?

If you use opensource script:

It must work at all times at it installs apps which support Android M AND Android N.... so you have to be good anyway - IF YOU ARE ALREADY ROOTED! Opensource script will NOT ROOT your phone.

Once you installed the script through recovery WITHOUT errors:

1. Open Init.d and scroll to the bottom of the page. Do NOT turn it ON!

2. Click on TEST - it will ask you to grant root access - ACCEPT IT (If possible CHECK "NEVER ASK AGAIN" so init.d will have root access all the time in order to execute the scripts).

3. Go to the TOP of the app and TURN IT NOW ON!

4. Reboot your phone and check if Viper4Android works.

If you still experience issues, please let me know what is happening a little bit more detailed. What is your phone doing? What do you mean by "messed up my rom"? Can you provide logs?

Edit1: Can you provide me link to this ROM? I've searched on XDA but I can't find it... on google also nothing official... ?

Greetz,

Angelov
[Android General] voshchronos:
Thanks for the reply! So the legacy version already roots my phone? I was trying using it after rooting it :P

Anyway, I tried all of these on the Kyubi Rom V2 (from here) AND on the stock rom (6.0.1) from here.

1. Wipe everything, install rom (TWRP for custom or Odin for stock).

2. Setup my google and samsung accounts, retrieve my apps and let all of them install.

3. Disable the FRP Lock, then, if I installed the stock rom, install TWRP custom recovery through Odin.

4. Root the phone by flashing this zip from here. (Tried doing this step AND skipping it when using the legacy method. All yield the same results: failure).

5. Install Xposed from here. (Tried skipping this too, with no success).

7. Install busybox (tried it with three different apps too).

8. Install V4A normally, or moving it to priv-app, or by flashing both legacy and opensource methods.

9. If I did it through the opensource zip, I follow all those instructions on Init.d perfectly (check, grant root, then turn on, then reboot).

After all these, both on stock and Kyubi, the results are the same: I open up V4A, it asks me to install the drivers, I tap yes, then reboot. When I open it again, it asks me again to do this, and it just happens over and over and over. Never do the drivers get successefully installed at all. When I tried the legacy method after my phone was already rooted, I lost the root access completly and that's what I meant by it messing up my rom. That's it, I think. Nothing I do ever works.
[Android General] rpangelov:
Okay... I understand - when you use the legacy script your phone gets confusing by SuperSu probably as it is already present... and maybe the version you flashed is newer than the one this script contains. Anyway... if you use the stock firmware I believe you will get different issues as Samsung doesn't like it's users to play with the system... I don't own Samsung so I can try to help you providing you some suggestions...

I've saw the ROM you use... it contains busybox already... but the whole thread is in... Spanish? I don't know but I don't understand the language so I am not sure where exactly is the issue... but I believe it is in this ROM. When you want to flash ROM's on your phone do it from this forum, as you will get the best community support. Try to use this ROM. It is rooted with SuperSu so I believe that Opensource script will do the job!

Edit: If this solution doesn't satisfy you I can try to translate the page and provide you another script which will MAYBE do the job.
[Android General] voshchronos:
Oh, didn't see that rom here at all. Thanks! Will try it right now. Some people on the thread are saying one should change the boot.img to make it work with the A510M version, though. How do I do that?
[Android General] rpangelov:
Your samsung is A510F or A510M ?

Oops...sorry you have A510M, right?

You have to:

1. Download the ROM I gave you - it is a zip file. Unzip it in folder named "A510M-AOSP". Browse this folder and delete the file named "boot.img".

2. Go to this ROM and download the A510M version. Unzip it in another folder named "temporary". When you unzip it you will find there file named "boot.img" Copy it to the folder "A510M-AOSP".

3. Now you are ready... make the folder "A510M-AOSP" .zip file and flash it on your phone.

Let me know if there are issues.
[Android General] voshchronos:
The rom installed fine after changing the boot.img. Tried the opensource method and... same thing happens. It always asks for me to install the drivers again and again.
[Android General] rpangelov:
Eventually you can try to: make clean install. Download this app - in the section tools you will find - init.d. Turn it on!

After that - flash one of these scripts, provided here.

Let me know if it works... sorry for maybe waisting your time, but for me is that shot in the dark :(
[Android General] bilalrajput:
Please help me

i am running resurction remix rom android 6.0 on motorola droid rom but i am unable to use viper4droid.i installed driver but nothing works.it is in selinux permissive mode.viper4droid doesnot make any difference when i turn it off or on on my device.help
[Android General] rpangelov:
Well... I used ResurrectionRemix also - I also provided updated build for Moto E 5 days ago and opensource script works for sure as I've tested it by my own 5 days ago.

As you said "selinux permissive"... why? Your device is vulnerable for lots of attacks/spoofs etc. ? I assume you are using Nougat build? If well... and your selinux is permissive PLEASE TURN BACK TO LAST BUILD WITH SELINUX ENFORCED! It's just advice... it's your device so do whatever you want... but anyway. The reason you need all this scripts, as I WROTE IT IN MY FIRST POST - is to run Viper4Android in SELINUX ENFORCED without compromising the security of your system. You don't need this scripts to run Viper4android... just a regular install of the app will be enough. At this moment you have init.d active and everytime you boot your phone, a script is runned trying to set selinux policy's which are probably not accepted, because your selinux is permissive...

PS: Pleas read THE FULL POST before you install any kind of scripts on your phone.
[Android General] bilalrajput:
sir resurrection remix rom at default is in permissive mode.It has init.d support enabled with supported kernel.Viper4droid status says abnormal status.

Can u please tell me what should i do.Busy box is also installed and have given full root rights.
[Android General] rpangelov:
Sir, resurrection remix is not in permissive mode by defaults as this is considered as security issue. Maybe in the latest builds based on Nougat 7.1 but this doesn't mean it is good.

Busybox is needed in order to push the apk to the right place, with the right access. As you run on permissive selinux - there is nothing what block viper4android to run. When make just a regular install through Play store you will install the app as well as the drivers. Just reboot your phone and you are good to go.
[Android General] voshchronos:
Finally got it to work perfectly!

I finally got it to work, but didn't try this last suggestion of yours. What I did was:

1. Wiped everything, fresh MM stock rom install

2. Rooted, installed busybox

3. Installed V4A as system app (apk on priv-app), then deleted SoundAlive folder from priv-app.

4. Added this to build.prop (if I didn't, I'd get "Processing: No" after plugging and unplugging headphones):

## ViPER4Android Build.prop Tweaks
lpa.decode=false
lpa.releaselock=false
lpa.use-stagefright=false
tunnel.decode=false

5. Flashed this zip from recovery.

6. Ta-dah!

Thanks for all the help anyway. Just thought I might share what I did to help others in my situation.
[Android General] rpangelov:
If I may, I can copy this post (with the provided link from you) to my first post, so more people can try it? May I do that?
[Android General] voshchronos:
Yes, of course! Just to be thorough, I found the zip in this thread and it was uploaded by this user ;)
[Android General] rpangelov:
Thx! Will mention it.
[Android General] bilalrajput:
but its not working status seems to abnormal in viper and procesing no.

It dont work every time i open this app it say to install driver and just says to reboot.after reboot it repeats again
[Android General] zilan:
I also have problem.. Ive flashed open source but driver status say abnormal. I hv supersu 2.78 sr5.

Iam on cm14.1..

How to fix it?
[Android General] Soapy!:
Storage permissions enabled, having trouble getting convolvers to work.
[Android General] rpangelov:
Where did you placed your .irs files? Internal Memory/ViPER4Android/Kernel/Your.irs ?

If storage permissions are enabled, check your path twice.
[Android General] rpangelov:
Why do you use supersu when you have CM14.1? CM 14.1 is prerooted... you can enable the root from Developer Options -> Root Access -> Apps Only

OpenSource will not work for you because you use SuperSu. Please read the instructions before you flash next time. Install Legacy script.
[Android General] Soapy!:
Same path.
[Android General] rpangelov:
Okay... can you exaplain what do you mean by "problems getting to work"? What goes wrong? Which .irs package are you using?
[Android General] Soapy!:
I'm using Wavves Max IRS and it just has no effect.
[Android General] PhonePhapperBYAAAHH:
I can't for the life of me get the open source script working on RR 5.8 Nougat 7.1.1 for vs985 (vzw LG G3). It was working perfectly on RR 5.7.4 (CM13 based). I believe I'm following all the instructions:

-Busybox (open source by meefik) installed.

-flash zip

-init.d tested and root perms set

I see the zip provided has some replacement values for audio_effects.config and busy box is provided for the V4A driver installation. V4A is showing abnormal status. Has anyone else got this working on RR 5.8 (any phone)? Any help would be greatly appreciated.
[Android General] rpangelov:
I also noticed that - I am reworking the script for Android N, as Universal Init.d can't get root permissions in the nougat based rom's. Other app's are also unable to provide init.d emulation... I am working on it! Will keep you in touch!

I think the whole issue is the location of the app... I am going to compile the last universal init.d and will install it appart to get some more info about the issue. Fix is coming soon!
[Android General] PhonePhapperBYAAAHH:
Thank you! Forgot to mention that I also tried using kernel auditor instead of universal init.d with no luck. The folder structure/placement seems to be the same for system apps in nougat, but there are definitely some changes with the security implementation. Apps are needing to rerequest root and these unofficial CM builds for my phone that RR is using have system apps that aren't fully ready for the new changes (ex: CM file manager can't access external or perform root operations). I'll be sure to show you support for helping us with nougat. Thanks again!
[Android General] rpangelov:
No problem! I think the su pad is changed... so I will check the log's and maybe create a link to the old location...

Anyway... this affect almost all root apps i've tried at the moment... will keep you in touch.
[Android General] S2_fa_007:
Hi there

First: Thank you for your work you have done here!

Today i updated to the new AOKP (CM14.1) and couldn't install SuperSu, because it gaves me a bootloop (I just need it for supolicy anyway).

So I was searching for a solution and came across this thread.

Since the Boeffla Kernel I use is able to load init.d scripts, I patched out the "Univarsal init.d" part in the zip and flashed it.

Now I'm facing the problem that the 50viper script in init.d isn't working, below the ouput:

klte:/system/etc/init.d # ./50viper
libsepol.avtab_read_item: more than one specifier
libsepol.avtab_read: failed on entry 890 of 13957
error(s) encountered while parsing configuration
Could not load policy
libsepol.avtab_read_item: more than one specifier
libsepol.avtab_read: failed on entry 890 of 13957
error(s) encountered while parsing configuration
Could not load policy
libsepol.avtab_read_item: more than one specifier
libsepol.avtab_read: failed on entry 890 of 13957
error(s) encountered while parsing configuration
Could not load policy

If I set SELinux to permissive, V4A shows "supported" and works flawlessly.

Maybe the delivered sepolicy-inject isn't working with 7.1.1 SELinux? :)

Best regards
[Android General] rpangelov:
I am stuck also that far... I also think the the delivered sepolicy-inject is not working correct on Nougat. I have compiled a new version from the last source's and I will test it today. I am just back from 5 day's vacation :) so excuse me for the delay! Will keep you in touch!
[Android General] kalexel:
every time i install V4A i cant change any ringtone or notification via other apps (im using ZEDGE) any solution?
[Android General] mangkon:
[MENTION=7024534]rpangelov[/MENTION]

I have have been looking for an open source alternative to SuperSU's selinux-patch. Magisk is one of them but then, I'm trying app-less method by diy when possible and ended up here.

Thanks for your guidance, I can now run Viper4Android in enforcing mode on 2-devices running CM13/variant roms. I did not flash the provided zip but diy (for proof of concept) by manually pushing the necessary files and 50viper script to the respective directories and set permissions according to your installation script and it worked!

Fyi and just in case if you are unaware, init.d in CM13 can be activated (boot.img modification required) by just adding "selinux compliant script = seclabel" in /ramdisk/init.cm.rc (thanks to Magisk).

# sysinit (/system/etc/init.d)
service sysinit /system/bin/sysinit
user root
seclabel u:r:sudaemon:s0 # selinux compliant
oneshot
disabled

Again, above is another diy (app-less method) where customary init.d is alive and independant of su.d, service.d, whatever.d!
[Android General] rpangelov:
Thank you for your advice. I will rework it maybe, but this scripts aren't needed anymore actually. Back in the time, there was no Magisk or at least... it wasn't that popular, so that scripts were easy solutions to run Viper on Android without chaning Selinux to permissive and compromising your security. But now... Magisk does it job very very good :) I am using Magisk + Magisk SU + Viper4Android module of Magisk and everything works fine. It's easy to manage and also open source. This is better solution than the scripts!
[Android General] levi555:
Thanks for the script, it's working well now. My drivers hadn't wanted to install, but I installed the OpenSource script and now, it's working. I had been searching for the solution for aong l time. Big thanks!
[Android General] xents:
Nice...work on xiaomi redmi 4A android 6.0
[Android General] Donz7733:
Legacy version worked for me on CM12 Lollipop. Thanks a lot
[Galaxy Tab 2 Q&A, Help & Troubleshooting] Zte blade l:
Hey Guys,

I actually want to port some ROM's for this device.

The reason I started this thread is for 2 things.

1. How to port p3100 ROMS's to p3110 and vice versa?

2.Can we port different resolution ROM's to this device?And also I need list of some devices running on 600 x 1024 resolution with armv7 or armv6.

Thanks,

Zte blade l

Any help will be appreciated.

I would like the dev's to help me.
[Android Apps and Games] kryzas:
While rushing to Dallas for the weekend, you go astray.

You ask locals for help and get into the biggest scrape ever.

You confront a maniac with a chainsaw, so agility and smarts are the key advantages to help you survive.

[IMG="tm1"]https://lh3.googleusercontent.com/9deVOqdZ1vDrzVjYqWa5ySmpuUMx1HOWI4RVM45DegYOUoTdT7Jp-UBzDVaCRrwMEw=h300[/IMG]

[IMG="tm2"]https://lh3.googleusercontent.com/f81jJV5Ne0bDWzz5y4sQqHqE1DJn0NTx51WXsaC0-VnTl7yyc3RJBC4kzFqfF0t7RyQ=h300[/IMG]

[IMG="tm3"]https://lh3.googleusercontent.com/hDkI3VEjdXjm27q6wFLKXpizf28y3kymtZ7ADJXutZd2J6JQX9gCncELewMMHh37raM=h300[/IMG]

[IMG="tm4"]https://lh3.googleusercontent.com/6jp-0Z6xqC_00-TVqMqSJD0J0D8heiLaV2pwDWHBXMJCgZd1z29TOD6jy0DPEd3fsA=h300[/IMG]

Google Play: https://play.google.com/store/apps/details?id=com.blackside.texasmaniac
[One (M8) Q&A, Help & Troubleshooting] shansmith:
Hi guys

my HTC one m8 is stuck in setup mode, it lets me select a WiFi network then wehn i proceed to set the phone up it says google play service has stopped and takes me back to the start, spoke to guy in shop and he says its a fault during factory reset so needs a complete software reinstall, has anybody had this problem and fixed it or know how to fix it? would be greatly appreciated :)

i can only access software menu by holding power and down button
[One (M8) Q&A, Help & Troubleshooting] ckpv5:
Post your fastboot getvar all result without serial & imei no.
[Galaxy S6 Edge+ Q&A, Help & Troubleshooting] ThePidge123:
so was installing a custom rom and i accidental hit the wrong button now my phone want boot and need to put it back to stock but i get this message when i try to flash it with odin can someon help me please

<OSM> Enter CS for MD5..

<OSM> Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> G925FXXU1AOCZ_G925FVFG1AOC4_G925FXXU1AOCW_HOME.tar.md5 is valid.

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/005> Removed!!

<ID:0/003> Added!!

<ID:0/003> Odin engine v(ID:3.1005)..

<ID:0/003> File analysis..

<ID:0/003> SetupConnection..

<ID:0/003> Initialzation..

<ID:0/003> Get PIT for mapping..

<ID:0/003> Firmware update start..

<ID:0/003> SingleDownload.

<ID:0/003> sboot.bin

<ID:0/003> NAND Write Start!!

<ID:0/003> cm.bin

<ID:0/003> FAIL!

<ID:0/003>

<ID:0/003> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)
[Galaxy S6 Edge+ Q&A, Help & Troubleshooting] ThePidge123:
CAN any one help!!!!!!!!!!!!!

CAN any one help!!!!!!!!!!!!!