V4A presets - OnePlus 7T Questions & Answers

I have been trying to install v4a presets on my Oneplus but I cant seem to get them to work. I tried a method from another post on here which said to just make a presets folder (/internalstorage/viper4android/presets) and to copy the xml files into there, but then v4a didn't recognize them.
I also installed a folder of like 1600 presets from here too and looking through them I noticed they all have similar names like "headset.xml" or "bt_a2dp.xml" so I was wondering if that has a meaning or if I can change them since I want multiple files from the collection.
I am running lineage o and I am rooted on my oneplus 7t.

Needs to be selinux permissive for V4A to work

HueyT said:
Needs to be selinux permissive for V4A to work
Click to expand...
Click to collapse
Uhm can you elaborate

Use selinuxchanger.apk to switch to permissive and then V4A will work

Releases · MrBIMC/SELinuxModeChanger
Simple android app that sets SELinux into desired mode on each boot. I opensourced it because google banned such apps from Google Play. Licence is GPLv3. Enjoy! - MrBIMC/SELinuxModeChanger
github.com

HueyT said:
Use selinuxchanger.apk to switch to permissive and then V4A will work
Click to expand...
Click to collapse
Thanks for the suggestion, but I looked into it and apparently the version I'm using works with enforcing mode on. Also my problem was just with the presets which I managed to fix by just reinstalling the magisk module while keeping my presets folder in the v4a folder.
I still have not figured out what the filenames mean but I think it's just the type of output device while the folder gives it the name.
Still don't really know what SELinux is so I'm going to keep that on default for now. Seems to be a security protocol so I don't know if I want to turn that of.
Anyway thanks again for your help

Hey man maybe you can help me
I need a magisk flashable batch script for changing / replacing a value in many xml files per batch i wont to help the guys from viper4android maybe you know the tool following operations : open file - jump to row / string - read value - calculate new value - write value - save file - jump to next xml and so on.
Description : The values for surround section changed from 120 - 0 130 - 1 140 - 2 150 -3 160 - 4 170 -5 and so on until 8 old values : 120- 200 new values 0- 8
Maybe you can help me with this many people would be happy to solve the wrong conversion issue of viper4 Android presets or maybevyou know somebody

Related

[Q] Mod for increasing maximum sound

Hi,
Is there any mod for increasing maximum sound volume?
Im looking for the exact same thing. Have tried suggestions of using Viper but to be fair I dont find it does alot. Need a proper solution like they had on the S4 and on my HTC One.
viperFX 10.1(2014) working solution KK 4.4.3
Viper is amazing. I've been using it for about 1 year under 4.3 .. i consider it one of the essential apps for my 10.1 (2014).. But when i upgraded to 4.4.2 I could not install.. I tried all the basic comobinatios (install busy-box first..then SU, flash SU then install buxybox install driver, ok install SU then flash viper, then blah blah ) the error message was always the same.. "you don't have a full-root, or your busy-box is not correct/complete" or some such.... I'm sure the developer is not trying to be deceptive, but these error messages were not that helpful, indeed this is just a symptom of many possible issues. SO I decided to dig in and sort it, took awhile , but I'm posting my very long winded howto..In case others might have this specific issuue you will know if ou read this..and (hopefully) you can fix your viper too.
(0) My kit: samsung/lt033g:4.4.2/KOT49H/P601XXUCNJ5:hanspampel Linux version 3.4.39-3098518 xkat-3.0 ROOTED . Cool ROM, but I at first since I had no cluse, I wondered if this inability to install V was due to this R..I tried antoher hydronium-ROM same prob, scratch that.Next I started reading, and I discovered to my horror this symptom has been reported many places, I found countless solutions in various posts not very helpful but entertaining something like "flash this file, then flash this, then dude enable this and then DUDE ITs AWESOME sounds KILLER BRO.." .. The rpint is that this one symptom has many different underlying causes, no one has explained (or I have not seen a post) yet that does that. so that is what you are geting here.
(1) installing viper (standard way the way you have done it) app store, or click on apk never worked..What is partial root anyway? doesn't matter.. So my stragety here is , when I"m lost in this situation, I have two things to look at..
debug (logcat -vv time ) or
specifc level of debug logitE='logcat -v time process tag *:E' (i put this under /system/etc/mksh after remountin /system RW so I can have a decent working environment.. And or figure out what the apk was having trouble with..So get a copy of the apk . first you might see a zip file ViPER4Android_FX_v2340.zip. this contains two files
ViPER4Android_FX_A2.3.apk (XHiFi)
ViPER4Android_FX_A4.x.apk (effects)
I've always used the FX_A4 version before, I don't really know what the A2.3 is.. anad have a look.
(2) Looking at the APK. Apk's are just zip files. change the .apk extension to .zip and unzip it on your PC (by the way it helps to have adb working, but it is not required).. In the apk for viper I saw directories.. an assets, lib and res dir to be exact I haven't developed anythig on android yet mostly xcoder person. so I was clueless.. but you can work out by the directory's what its trying to do..The top level dirs were res, lib, assets and META-INF, I don't care about the UI stuff in META or res, that was working, in otherwords when we installed the apk, you see the VIPER user interface installs and launches..Its at that point you are asked to install the drivers to get viper to work, so we know the UI is OK and the SU thing make me suspect permissons.. BY the way there was conversation about SE_Linux regarding this install..(permissive / enforcing). I tried that too, so since KK 4.4.3 , SE_Linux was made to be in enforcing mode, before it was just permissive (sending warnings but did not deny any thing)..Now SE_Linux is for real,, If you look at the app-permissions, not file permissions but app permission of VIper there was one funny permissions issue.. "PERMISSION_ACCESS_SUPERUSER" " was unknown. I thoguht maybe this was it! I got "SELiuxModeChanger" (this needs root but apparently can change SE_LIN back to permissive.. its not clear if it really wokred) but I tried it..switched my phone back to permissive mode but i still got the same error.Even after rebooting.. and I set the notificagion "You are In PERMISSSIVE mode" but you open the app and it's in enforcing.. (smell some cheese here..?) .
Sorry for the side traack.. back to the APK, So the apk had a lib directory, an assett directory, are what we are intereseted in.. also I saw on the web there were two system files that needed modifying:
/system/etc/audio_policy.conf /vendor/etc/audio_effects.conf
So know I knew I have to manually place some lib (librarys) and modify some system files.. After rebooting at this point (with this totally broken install) "logcat -v time | grep -i viper
4111): Jni library status = false..
if you look on the apk:
lib/armeabi/libV4AJniUtils.so*
so the system is complaiing about a JNL lib is missing, which means the system files or a system file was modified so the sysem knows to look for the jnl file, and this jnl file is pert of the install which failed..... So plop libV4AJniUtils.so* /system/lib. (via any means you choose) FiLE permissions to 644 "chmod 644 libV4AJniUtils.so* reboot and clean cleared cache(s) in recovery , then rebooted and volla one small step:
I/ViPER4Android( 4111): Jni library status = true
So YOU must see the message as part of the criterial for successful install.
but I still had probelms..
0I/ViPER4Android( 4111): Starting service, reason
I/ViPER4Android( 4111): Check driver
I/ViPER4Android( 4111): Found 13 effects
I/ViPER4Android( 3744): ViPER4Android engine not found, create empty service
04-12 19:57:55.374 I/ViPER4Android( 3744): Service:nStartCommand [Begin check driver]
04-12 19:57:55.374 E/ViPER4Android( 3744): Service:nStartCommand [V4A Engine not found]
I/ViPER4Android( 4111): could not find ViPER4Android engine at 13..
So we are still missing a lib, the viperEngine.. that probably one of the files located in the assets dir..
[email protected] 10 mikel staff - 340B 11 Apr 06:42 ../
[email protected] 1 mikel staff - 926K 12 Feb 11:15 libv4a_fx_ics_X86.so*
[email protected] 1 mikel staff - 810K 12 Feb 11:15 libv4a_fx_jb_NEON.so*
[email protected] 1 mikel staff - 814K 12 Feb 11:15 libv4a_fx_jb_NEON_HQ.so*
[email protected] 1 mikel staff - 810K 12 Feb 11:15 libv4a_fx_jb_NEON_SQ.so*
[email protected] 1 mikel staff - 554K 12 Feb 11:15 libv4a_fx_jb_NOVFP.so*
[email protected] 1 mikel staff - 818K 12 Feb 11:15 libv4a_fx_jb_VFP.so*
[email protected] 1 mikel staff - 926K 12 Feb 11:15 libv4a_fx_jb_X86.so*
[email protected] 1 mikel staff - 923K 12 Feb 11:15 ViPERDDC.db*
[email protected] 1 mikel staff - 810K 12 Feb 11:15 libv4a_fx_ics_NEON.so*
[email protected] 1 mikel staff - 814K 12 Feb 11:15 libv4a_fx_ics_NEON_HQ.so*
[email protected] 1 mikel staff - 810K 12 Feb 11:15 libv4a_fx_ics_NEON_SQ.so*
[email protected] 1 mikel staff - 554K 12 Feb 11:15 libv4a_fx_ics_NOVFP.so*
[email protected] 1 mikel staff - 818K 12 Feb 11:15 libv4a_fx_ics_VFP.so*
[email protected] 1 mikel staff - 16B 10 Feb 15:37 ver.txt*
(3) finish intsall
I don't know what to do with any of those files.. and I don't know what chanegs need gto be made to the .conf files.. this version of the driver I can't find anything that looks like a script.. it must be hidden in the install stuff somewhreer.. stuck..so where do you go when you are stuck?
xda-developers of course..and usually someone will have said something..Many people had alot of posts (because viperFX is so kick ass everyone wanted to get it to work). Yes all the posts about my problem were so last year.. well what I say I'm slow.. and none of them could explain to me exactly how to get it to work... I saw one post that had some zip files:
http://forum.xda-developers.com/google-nexus-5/themes-apps/discussion-viper4android-t2543796
This is the lollipop viper for nexus.. not my phone, but it had lots of conversation. Remember I am on Kit Kat so my story differs, regardless I read along and found 3 zip files:
Viper4A-_Build.Prop-Tweaks_-CWM.zip
Viper4A-_Soundfix-LibFiles_-CWM.zip
viper_v2.3.3.0.zip
I did not put a link to the files because you don't need these files, I just used them to understand how to get 2.3.4.0 to work. So if you want to down load these files, you have to find them, because if you install them on anytying but the proper device it will bric your phone (hang it..)
However they were useful, because they showed me:
audio_effects.conf.txt*
audio_policy.conf.txt*
/system/lib/soundfx/libv4a_fx_ics.so*
how the install was supposed to look like.
The fact that I had files designed for CM mod, means I am at rrisk for BRIC-OLA.. but I had no intention of using any of the binaries, I just used the conf files to modify my sysem comf files.. If you do a diff you can see the changes..the big for me was the engine location:
/system/vendor/etc/audio_effects.conf
ibraries {
v4a_fx {
path /system/lib/soundfx/libv4a_fx_ics.so
}
bundle {
path /system/lib/soundfx/libbundlewrapper.so
}
...
I knew where to put the enginelib. However none of my lib in the apk/asset dir were of the name libv4a_fx_ics.so Well looking back at the logs I saw an message (I did not save it) that said from the viper install something like "CPU IS NEON xxx, CHoosing Driver libxxx" so I was able to see what lib the viper install would have chosen.. what about HQ/SQ naming? I remembered that we have 3 choices to install the driver, basic or low battery drain, high, and super..we have 3 ibs nohting HQ (highQuality) andSQ (SuperDuperQuality).. so thats how that works..I went ahead and pushed the ibv4a_fx_jb_NEON_HQ.so* /system/lib/soundfx dir..renamed the lib to libv4A_fx_ics.so changed file permissions to 644.. and rebooted. It worked sorta..
I saw this:
Check driver
04-11 10:31:09.970 I/ViPER4Android( 4111): Main activity onResume()
04-11 10:31:09.970 I/ViPER4Android( 4111): onResume(), Binding service ...
04-11 10:31:10.005 I/ViPER4Android( 4111): Query ViPER4Android engine ...
04-11 10:31:10.010 I/ViPER4Android( 4111): Found 13 effects
04-11 10:31:10.010 I/ViPER4Android( 4111): [1], SoundAlive, Samsung
....
04-11 10:31:10.015 I/ViPER4Android( 4111): Android System this driver not supported
found ViPER4Android engine at 13
Service:nStartCommand [V4A Engine not found]
I/ViPER4Android( 4111): could not find ViPER4Android engine at 13..
So.. viper driver was being rejected? I tried a few others.. same message.. then I rememberd that I was not clearing the cache .. so I tried again after claering the cache and I got this:
I/ViPER4Android( 4111): Perfect, found ViPER4Android engine at 13
I/ViPER4Android( 4111): The version of ViPER4Android engine is 2.3.4.0
I/ViPER4Android_v2( 2291): Welcome to ViPER4Android driver [Happy new year!]
I/ViPER4Android_v2( 2291): ViPER4Android is normal audio quality mode
I/ViPER4Android_v2( 2291): Use 24bit fixed point calculating arch, round res
THis is the second message YOU must have for VIPER to work on your phone.
OK everything is great! I rebooted turned on my favorite music (RUSH 2112) and what do you know.. it didn't work. Opening Viper and checking the driver status, it said "not enabled" but it was installed.. WTF.?.It did have power, but still nothing..So I remembered reading that someone their bluetooth worked, but going through speaker mode did not. I switched to a bluetooth speaker.. and this time I had:
NEON enabled: yes
enabled: yes
process NO
Process NO? but eerything else yes.. How hard are we today..man.. I knew I was close, so i looked in the logs..
AudioPolicyManagerBase( 2291): selectOutputForEffects outputOffloaded 0 outputDeepBuffer 0
04-12 14:33:00.784 V/AudioPolicyManagerBase( 2291): selectOutputForEffects outputOffloaded 0 outputDeepBuffer 0
W/BufferQueue( 2285).ViPER4Android] cancelBuffer: BufferQueue has been abandoned!
Seems like somehow a buffer is not happening.. this is getting alittle deep for me, but there are many different combinations to try (turn on viper first, then music, then bluethooth.. or BT first, music viper..etc) Also happily I have a "music effects" in my settings where I can choose MUSICFX (samsun's binary) or Viper. SO I found that did not do much, but if I killed Viper, then started it (go to the UI) and powered it up) it had processing set to yes) at that point viper works perfectly. I'm not exaclty sure what the buffer issue is, and I have not made changes to my audio_policy file.. I want understand that first.. but good enoght for now.. Finally Hats off to VIperDevelopers.. its hands one of the most amazing music enhancements I have ever heard.. Don't quite know why its such a pill to install.. sorta feels like no one is taking care of the baby.. well this baby rocks.. someone aught to.. (I'll do it!) anyway all I can say is you are genius and Brilliant software / hareware developers.. when i grow up I wanna be just like you guys.. thanks again hope this post help.. Hope I am not posting anything I shouldn't I have never posted to xda before..

[MOD][8.0.0] Aldeon Surround Sound Mod Oreo Edition

It's me again with the Oreo Edition of Aldeon Surround Sound Mod
Download the attachment, go to /system/etc and rename the existing mixer_paths_0.xml to mixer_paths_0.xml.bak then copy the new mixer_paths_0.xml and change the permissions to rw-r--r-- or 0644.
It won't damage your earpiece so keep calm
Features:
- louder than stock
- left and right channels
- better for utilisation in landscape
- now clicks will work in "surround mode"
To download on mobile just use Chrome, long press on attachment and click "Download link".
To adjust the volumes:
- open /system/etc/mixer_paths_0.xml
- search for "Output volume stage" then look at the "gain-media-speaker" path
- decrease or increase by 2 or more (not recommended) the "46" and "36" values (2 values for HPOUT3 and 2 for AIF4TX) to the values you want
Don't ask me "Does this mod work on XYZ ROM?". The answer is "I don't know, test and report!".
It should be compatible with all models.
Compatible with all 8.0.0 ROMs.
Possibly compatible with S7
If you want to use this in your ROM, give me the proper credits and you are done.
Credits to @AlexisXDA for his original work on the 7.0 Surround Sound. After converting his changes to a "patch" I was able to apply that "patch" to our mixer_paths_0.xml. It needed a lot of testing.
Nice work. Will be useful in the near future
rifek4 said:
Nice work. Will be useful in the near future
Click to expand...
Click to collapse
minealex2244 said:
It's me again with the Oreo Edition of Aldeon Surround Sound Mod
Download the attachment, go to /system/etc and rename the existing mixer_paths_0.xml to mixer_paths_0.xml.bak then copy the new mixer_paths_0.xml and change the permissions to rw-r--r-- or 0644.
It won't damage your earpiece so keep calm
Features:
- louder than stock
- left and right channels
- better for utilisation in landscape
- now clicks will work in "surround mode"
To download on mobile just use Chrome, long press on attachment and click "Download link".
To adjust the volumes:
- open /system/etc/mixer_paths_0.xml
- search for "Output volume stage" then look at the "gain-media-speaker" path
- decrease or increase by 2 or more (not recommended) the "46" and "36" values (2 values for HPOUT3 and 2 for AIF4TX) to the values you want
Don't ask me "Does this mod work on XYZ ROM?". The answer is "I don't know, test and report!".
It should be compatible with all models.
Compatible with all 8.0.0 ROMs.
Possibly compatible with S7
If you want to use this in your ROM, give me the proper credits and you are done.
Credits to @AlexisXDA for his original work on the 7.0 Surround Sound. After converting his changes to a "patch" I was able to apply that "patch" to our mixer_paths_0.xml. It needed a lot of testing.
Click to expand...
Click to collapse
it worked correctly, but when it increases to the maximum, the music just pauses, and the volume goes down, what can it be?
LuizHBr said:
it worked correctly, but when it increases to the maximum, the music just pauses, and the volume goes down, what can it be?
Click to expand...
Click to collapse
I didn't have that issue but it could happen because of a "safety decrease" of volume so it won't damage your speakers.
Thanks you ???
On 8.1 no file found. Why
zeuszos said:
On 8.1 no file found. Why
Click to expand...
Click to collapse
There is.
minealex2244 said:
There is.
Click to expand...
Click to collapse
No
zeuszos said:
No
Click to expand...
Click to collapse
Then I have no idea.
Works on Lineage os 15! Thank you! Sound from earpiace at Max volume is a bit dissorted but not much
will try near future
zeuszos said:
No
Click to expand...
Click to collapse
Try in /system/vendor/etc
That's where it was for me (RR 8.1).
It works, but I don't know, sounds wrong in a weird way.
Thanks for your work anyway!

[CLOSED][Overlay] Dil3mm4's Overlays for Prague Series devices (all variants)

This overlay APK it's "born" because of the necessity to overcome missing overlays (thanks Huawei, love ya xoxo) under /vendor/overlay .
What it does exactly?
Nothing more than adding AOSP overlay matching our device capabilities and also, inherits Prague power profile.
Do I need it?
Well, better having than don't.
This will conisderably enhance your experience on every GSI ROM giving better functionality overall.
Why you did that?
Because I'm sick of inheriting stuff that belongs to /vendor, in system.
Project Treble it's all about separating vendor implementation from system.
So why we should keep adding OEM stuff in there, if it doesn't belong no more in /system?
I have XYZ device with ZYX firmware can I use it?
As long as you're on a PRA-*** device (with a non-EMUI firmware), you're good to go.
Otherwise DO NOT USE IT FOR THE LOVE OF MANKIND.
I don't have PRA, but I want it on my Huawei device !
Well, that's fine, join the Telegram group @GSI_HI6250, so that you could help me with stock files grabbing to make an overlay for your device.
Overlay configs (aka "what does dis do, ser tell pl0x"):
Allows all rotations;
Configs autobrightness levels;
Configs autobrightness Lcd values;
Configs BLE;
Sets Doze Component;
Sets Doze After screen off;
Configs autopowermodes (doze related);
Configs power management on:
screen off due to proximity sensor interaction;
decouple on suspend state;​
Configs brightness doze value;
Configs Intrusive led;
Configs dual band wifi support (where available);
Configs hotswap (where available);
Configs Color Transform on HWC;
Configs VoLTE available (even tho it needs support on GSI side);
Configs WFC over IMS;
Configs wifi background scanning support.
Installation Instructions
Download the overlay from the Downloads session.
With root, push the overlay to /vendor/overlay. Create the folder if it doesn't exist.
Run the following command in a rooted terminal or ADB shell:
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/dil3mm4-overlay-PRA.apk
XDA:DevDB Information
[Overlay] Dil3mm4's Overlays for Prague Series devices (all variants), Device Specific App for the Huawei P8lite/P8 Lite
Contributors
Dil3mm4
Version Information
Status: Stable
Created 2018-06-26
Last Updated 2018-06-26
Definitely will be useful. Thanks a lot, Dil3mm4!
Hi Dil3mm4,
Thanks for your work, but I'm not sure what this app does exactly, will it help me for example with substratum themes? Thanks
Hi @Dil3mm4 let me understand correctly:
- i'm under LineageOS 14.1 (Haky86 version). Am i concerned with your fixes ?
- i plan to go to LOS 15.1. Should i flash LOS 15.1 before, then install your fixes ?
- if i can go to LOS15.1 from Prject Treble, what device should i choose ? A or A/B ? I assume this is ARM64.
Thank you VM back in the ROM selection after 1 year, and i have things to understand
Graveen said:
Hi @Dil3mm4 let me understand correctly:
- i'm under LineageOS 14.1 (Haky86 version). Am i concerned with your fixes ?
- i plan to go to LOS 15.1. Should i flash LOS 15.1 before, then install your fixes ?
- if i can go to LOS15.1 from Prject Treble, what device should i choose ? A or A/B ? I assume this is ARM64.
Thank you VM back in the ROM selection after 1 year, and i have things to understand
Click to expand...
Click to collapse
Our device is arm64 A only (PRA-LX1 is my device)
If the APK is included in the rom u want to flash just run the command below, if not, after flashing just install the overlay according to the instructions. Have a nice day!
I will probably make a question that doesn't make sense since it's probably hardware related. But will this overlay add 5ghz support to our devices?
mannas said:
I will probably make a question that doesn't make sense since it's probably hardware related. But will this overlay add 5ghz support to our devices?
Click to expand...
Click to collapse
Nope
UPDATE
-P compatibility
-Improved brightness levels
DOWNLOAD
Hey Dilemma! I have an issue with all the Treble Roms. After listening to music for a while, the playback stops and I have to restart it, or when I plug a headphone in and then out, sound usually doesnt come out of the speaker. Will this overlay fix the issues I have with treble Roms? Thanks in advance
Please help with a little overlay
Dil3mm4 said:
This overlay APK it's "born" because of the necessity to overcome missing overlays (thanks Huawei, love ya xoxo) under /vendor/overlay .
I don't have PRA, but I want it on my Huawei device !
Well, that's fine, join the Telegram group @GSI_HI6250, so that you could help me with stock files grabbing to make an overlay for your device.
Click to expand...
Click to collapse
Hello Dil3mm4.
Sorry to send you PM, i see after sending that's not ok. I really want to solve Overlay issue for my Huawei Fig-LX1.
I try to join Telegram group indicated by you but could not find it. Maybe is not existing anymore. So - my last chance is you to respond here.
I just want you to make an overlay for my phone to work better with Phusson Treble 8.1. Just tell me what files do you need and i will do it.
Maybe you answer me.
Thanks!
Hi, by fixing BLE, you mean bluetooth low energy, like huawei band, fossil Q ?
thanks
Thanks! U did great!
Hi
I've tried to install this file but after I've enter the code, it says system is readable only.
I've tried with adb shell and terminal(booth of them rooted) and it didn't work
I've even tried to mount system as rewritable but it didn't work.
I'm on Aex 6.6 latest version(and I was on PRA-LA1 8.0.0.370 C185 before i flashed this custom rom)
What should I do to fix this error?
Traceur017 said:
Hi
I've tried to install this file but after I've enter the code, it says system is readable only.
I've tried with adb shell and terminal(booth of them rooted) and it didn't work
I've even tried to mount system as rewritable but it didn't work.
I'm on Aex 6.6 latest version(and I was on PRA-LA1 8.0.0.370 C185 before i flashed this custom rom)
What should I do to fix this error?
Click to expand...
Click to collapse
install terminal emulator , put the .APK (be sure to rename the last build taking the -P ) in the mencioned directory but first run the following command:
su
mount -o remount,rw /vendor
after this you can run the command for the apk.
It worked for me. or at least.. didnt gave an error... so.. lolol
I think I've installed it correctly but How can I see changes? Nothing added!
Hello, I have a PAR-AL00 device. Can you make an overlay for me.and Telegram group @GSI_HI6250, I can't find it.Thank you verymuch.
I don't understand, where is the overlay link?
Edit : Sorry, I didn't know it was in the download tab.
I can't find it where is it?
artus777 said:
I don't understand, where is the overlay link?
Edit : Sorry, I didn't know it was in the download tab.
Click to expand...
Click to collapse
Is this overlay necessary under Lineage 18.1 (PRAGUE device and EMUI 8.0.0.390)?
@Dil3mm4 Thread closed! Please advise the moderators team (best via the report function) to re-open the thread when ready to provide a download link for this former DevDB thread.
Regards
Oswald Boelcke
Senior Moderator

[mod] cpu_tuning

Hello xda ppl!
may be it will be useful for you.
many time was spent trying to do something good with this cpu,
to make it not so hot but fast and efficient.
so, here cooling is priority.
1. global configs
memory, cpu, gpu, thermal, doze ...
for android 6-7-8
files "thermal-engine.conf", "init.qcom.post_boot.sh"
paths detecting via existing thermal config
existing files backup ("~" suffix)
installation output, at the end there should be listing of 2 new and 2 backuped files
to revert just rename backuped files (root/twrp file manager)
2. profiles switch from status bar
its simplification of this one https://forum.xda-developers.com/android/apps-games/app-spectrum-kernel-manager-users-t3601542
for android 6-7-8 (but only if your OS has support of initialization from "/system/etc/init" (its standard))
files "/system/app/Spectrum/Spectrum.apk", "/system/etc/init/init.spectrum.rc", "/system/etc/init/init.spectrum.sh"
installation output, at the end there should be listing of 3 new files
to revert just install "SimpleSpectrum-uninstall.zip"
global configs + performance profile should be good for games.
and cool. like COOL1 should be
XDA:DevDB Information
cpu_tuning-difrED, Tool/Utility for the Coolpad Cool1
Contributors
difr
Version Information
Status: Beta
Created 2018-08-29
Last Updated 2018-08-29
1. configs script didnt work and didnt make error in case of absent thermal config in system (i didnt expect such case). so, i've made small update.
2. spectrum app no need root so often. also updated.
3. i also recommend to disable standard power control, just rename "/system[/vendor]/lib64/hw/power.qcom.so" to "power.qcom.so~". attached zip is for this purpose.
4. i see some donwloads and no one review it. it's bad. bad community, sorry
I will try now on los 15.1 beta
Edit : Im Already flash on los 15.1 and installed but can't open spectrum app, in playstore say installed but cant open ? And in launcher not see icon spectrum, i replace with 1.5 version work nice
Fauzi Hamzah said:
I will try now on los 15.1 beta
Edit : Im Already flash on los 15.1 and installed but can't open spectrum app, in playstore say installed but cant open ? And in launcher not see icon spectrum, i replace with 1.5 version work nice
Click to expand...
Click to collapse
its hidden in launcher. its available in status bar as tile
difr said:
its hidden in launcher. its available in status bar as tile
Click to expand...
Click to collapse
Ok i will try replace again with your app
Edit : it work but not see gaming profile
Bro since leeco los have smanager maybe you can add mod for this https://4pda.ru/forum/index.php?s=&showtopic=911910&view=findpost&p=75788964 , i think it will be conflict
Edit again ?, not will conflict just delete profile in smanager if use this
@Fauzi Hamzah
3 modes.
difr said:
@Fauzi Hamzah
3 modes.
Click to expand...
Click to collapse
Ok thanks bro for now just test battery mode, because not have heavy game , lazy to download ?, waiting black desert mobile global need long time
Btw thermal config in oreo just in vendor/etc ?, not see in /etc
Fauzi Hamzah said:
Ok thanks bro for now just test battery mode, because not have heavy game , lazy to download ?, waiting black desert mobile global need long time
Btw thermal config in oreo just in vendor/etc ?, not see in /etc
Click to expand...
Click to collapse
right. means oreo also is without thermal config. didnt know it
seems like all le2 ports are without thermal config
did you see patch output?
it should show error, unable to find thermal config
means patch doesnt do his work
need to rewrite it again for oreo
please, confirm that you dont see /vendor/etc/thermal-engine.conf
difr said:
right. means oreo also is without thermal config. didnt know it
seems like all le2 ports are without thermal config
did you see patch output?
it should show error, unable to find thermal config
means patch doesnt do his work
need to rewrite it again for oreo
please, confirm that you dont see /vendor/etc/thermal-engine.conf
Click to expand...
Click to collapse
https://drive.google.com/folderview?id=1LRcwuqfzXldGofnPdxiH5_DaZxwIDuiY&usp=sharing , you mean logcat ? and i cant upload on attach xda ?
Edit : Oh i see already edit v6 on /vendor/etx
Btw is possible to add fast charge like another phone ?
difr said:
Hello xda ppl!
may be it will be useful for you.
many time was spent trying to do something good with this cpu,
to make it not so hot but fast and efficient.
so, here cooling is priority.
1. global configs
memory, cpu, gpu, thermal, doze ...
for android 6-7-8
files "thermal-engine.conf", "init.qcom.post_boot.sh"
paths detecting via existing thermal config
existing files backup ("~" suffix)
installation output, at the end there should be listing of 2 new and 2 backuped files
to revert just rename backuped files (root/twrp file manager)
2. profiles switch from status bar
its simplification of this one https://forum.xda-developers.com/android/apps-games/app-spectrum-kernel-manager-users-t3601542
for android 6-7-8 (but only if your OS has support of initialization from "/system/etc/init" (its standard))
files "/system/app/Spectrum/Spectrum.apk", "/system/etc/init/init.spectrum.rc", "/system/etc/init/init.spectrum.sh"
installation output, at the end there should be listing of 3 new files
to revert just install "SimpleSpectrum-uninstall.zip"
global configs + performance profile should be good for games.
and cool. like COOL1 should be
XDA:DevDB Information
cpu_tuning-difrED, Tool/Utility for the Coolpad Cool1
Contributors
difr
Version Information
Status: Beta
Created 2018-08-29
Last Updated 2018-08-29
Click to expand...
Click to collapse
seems to work in lineage 15.1! thank you very much, it's very convenient and useful! (on v6 version)
cant understand. does it work in oreo?
do you see /vendor/etc/thermal-config.conf (with my sign inside).
@Fauzi Hamzah, no i dont mean logcat. i mean installation output in twrp. there must be detailed listing of processed files or error message
i use it in jui7. didnt test it in other roms
difr said:
cant understand. does it work in oreo?
do you see /vendor/etc/thermal-config.conf (with my sign inside).
@Fauzi Hamzah, no i dont mean logcat. i mean installation output in twrp. there must be detailed listing of processed files or error message
i use it in jui7. didnt test it in other roms
Click to expand...
Click to collapse
Ok i will reflash again, but in vendor/etc already with you mod thermal v6 but not see init.qcom
Fauzi Hamzah said:
Ok i will reflash again, but in vendor/etc already with you mod thermal v6 but not see init.qcom
Click to expand...
Click to collapse
it must be in /vendor/bin in oreo
difr said:
it must be in /vendor/bin in oreo
Click to expand...
Click to collapse
Yeah you're right and already mod v6 :good:
This first time i use oreo so dont know at all
I think it work like a charm
Can you add fast charging like this https://forum.xda-developers.com/ne...d-xthermal-mod-fast-charging-cpu-gpu-t3477639
Fauzi Hamzah said:
Can you add fast charging like this https://forum.xda-developers.com/ne...d-xthermal-mod-fast-charging-cpu-gpu-t3477639
Click to expand...
Click to collapse
no, its enough hot without fast charging
wtf,
more than 50 downloads
noone reviewed.
difr said:
wtf,
more than 50 downloads
noone reviewed.
Click to expand...
Click to collapse
maybe you can create for universal not just this phone: D
I test pubg not heating like before (nougat without config) and now use this config with gpu turbo boost v2, I can get HDR 60fps in 960p resolution use gfx tool with some fps drop but still playable :good:
C107-9
Can all this tweak work for cool pad c106-9
---------- Post added at 05:42 AM ---------- Previous post was at 05:39 AM ----------
Can I install 7.0 ROM on my Cool pad cool changer 1c
difr said:
Hello xda ppl!
may be it will be useful for you.
many time was spent trying to do something good with this cpu,
to make it not so hot but fast and efficient.
so, here cooling is priority.
1. global configs
memory, cpu, gpu, thermal, doze ...
for android 6-7-8
files "thermal-engine.conf", "init.qcom.post_boot.sh"
paths detecting via existing thermal config
existing files backup ("~" suffix)
installation output, at the end there should be listing of 2 new and 2 backuped files
to revert just rename backuped files (root/twrp file manager)
2. profiles switch from status bar
its simplification of this one https://forum.xda-developers.com/android/apps-games/app-spectrum-kernel-manager-users-t3601542
for android 6-7-8 (but only if your OS has support of initialization from "/system/etc/init" (its standard))
files "/system/app/Spectrum/Spectrum.apk", "/system/etc/init/init.spectrum.rc", "/system/etc/init/init.spectrum.sh"
installation output, at the end there should be listing of 3 new files
to revert just install "SimpleSpectrum-uninstall.zip"
global configs + performance profile should be good for games.
and cool. like COOL1 should be
XDA:DevDB Information
cpu_tuning-difrED, Tool/Utility for the Coolpad Cool1
Contributors
difr
Version Information
Status: Beta
Created 2018-08-29
Last Updated 2018-08-29
Click to expand...
Click to collapse
Thanks man, this works great. Why do u want us to disable standard battery options?? Is that bound to create problems or conflict?
Thanks again

[Guide][Magisk][A10 - 13] Guide to install Viper4Android for Oneplus 8 Pro

This is a guide to install mods for OP8 Pro that improves the stereo speaker setup. I have helped many OP8 Pro users to achieve this. Some other OP users as well.
Custom ROMs that work with this mod (TESTED):
Stock Oxygen OS 11 (not 12/13)
CrDroid
Evolution X
*I am not responsible for bricked devices, damage to your device*
I am here to post my method for anyone who is interested. I have tested this myself and helped others to do this.
Issues:
IMPORTANT:
Setting SElinux can have security issues noted by @topjohnwu.
Viper4Android can be installed with SElinux Enforcing and Permissive. Choose SElinux Enforcing not Permissive
Installation Method:
With new Viper4Android Repackaged module
If you have other audio mods
Download Audio Modification Library from the links section
Install Audio Modification Library, reboot and disable it
Otherwise, skip to the next step
Download the latest Viper4Android Repackaged module from the links section
If you want to use the extra V4A features...
Download and extract all the guide setup or the other .zip file I attached below on your device. You need the DDC, Kernel and Preset folders.
If you downloaded and extracted on a separate device: Connect your device, copy and paste the folders into your internal storage.
Otherwise, skip to the next step
Install the Viper4Android Repackaged module.
Reboot.
Open the app and grant root
DISCLAIMER: On custom ROMs or certain devices, the drivers are installed, but NOT working properly after reboot. Just continue the method and comment if there are issues once u have finished the method.
If you have Audio Modification Library installed
Now go into magisk manager, go into modules and enable AML.
Reboot
Otherwise, skip to the next step
If u used the guide setup.zip file: in V4A app just press the file icon for presets and choose the preset.
Now make sure V4A driver is running (read Notes) and go into convolver -> impulse response. Choose any kernel, and done. OR choose the preset for that and done. If you have issues, make sure legacy mode is on but it is on by default.
Choose to your heart's desire if you downloaded all the V4A DDC and kernel files.
I personally use Dolby Digital Plus - Centre kernel
Done, also post the settings or kernels and your thoughts.
I also attached a screenshot of my configuration
Also, for new users if u connect your earphones like via headphone jack, USB-C or Bluetooth. You can tweak those as well. Not just your SPEAKERS! BUT some earphones can be damaged as well, so tweak them at your own risk.
After much tweaking myself. I think I have made my speakers much better on my 8 Pro.
I have attached a screenshot to the thread at the bottom. I have attached a screenshot for my headphones too!
I have added the individual settings as well. If u want to tweak them just press the text and it should expand.
The toggles I have on are for my speakers:
Master Limiter
Playback gain Control: Strength: 2, Maximum gain: 3X, Output threshold: -1.9dB
Convolver: Dolby Digital Plus - Centre, Cross Channel 100%
Speaker optimization
I have also tweaked my Bluetooth earphones as well with a DDC and the screenshot is attached below. I recommend Dolby headphone Live, but that's up to you.
U can add files in the DDC folders in the Android folder, but reboot and then tweak to see the difference. U CAN RISK DAMAGE IF U TWEAK TOO MUCH
You have completed the guide and can now experience dual/stereo-like speakers on your OP6/6T.
Enjoy
If anyone has any issues with this guide. Post a message and I'll get back to you
Notes:
Viper4Android sometimes doesn't turn on properly. So, play music and open the app to check the driver. The Driver status if it's working (NEON enable: yes, Enabled: yes, Status: Normal) and turn on the master limiter to see if there's an effect. This should give you an indication if V4A is working or not
I have attached DDC files below and you do the same thing with kernel files, but they are used for headphones.
You can try and use the preset (profiles). You don't have to use the preset files, they are there to make the setup easier for those who don't want to tweak too much.
If u want to add the custom presets:
Choose the specific presets u want
Transfer them into Android -> data -> com.pittvandewitt.viperfx -> files -> presets
Transfer the V4A.zip in internal storage
Reflash the V4A.zip again and reboot
Install the V4A driver again and reboot
V4A driver should be working, check the presets and it should be there
Enjoy having your presets
Fix for V4A:
There has been noted issues during the installation with V4A. If you experienced a bootloop after installing V4A in magisk...
Boot into OrangeFox, -> advanced -> file manager -> data/abd/magisk/modules and delete the V4A folder.
Reboot to system, install the module in magisk again and reboot. It should install.
Another issue was that V4A driver is installed properly, but there are no enhancements to the sound. To fix this, go into settings -> turn on and off the legacy mode toggle. This should restart the effect and make it stay on.
Links:
Modules required
Audio Modification Library Link
Download Viper4Android and one of the preset files if u want Viper4Android installed
Viper4Android Module Link
Viper4Android Repackaged Module Link
All Viper4Android preset files Link
Viper4Android files for this guide is attached below
All DDC, Kernel, and Presets in one zip is attached below
Threads where the modules are from
Audio Modification Library Thread Here
Credits:
@Zackptg5 for his Audio Modification Library and Viper4Android module
@Vimal Vinz for the V4A DDC + Kernel + profiles
Reserved
Updates
10/9/22 - Removed step for the option to choose Enforcing or Permissive for SElinux during Viper4Android module install. It has been removed
15/1/22 - Released the XDA thread that is a guide to install Viper4Android for the OP8 Pro
Not sure about the OP8 sadly as I don't own one and this guide could be used for other android devices too
This guide is a duplicate from my previous dual speaker guide for the OnePlus 6/6T. But this guide can be used for other android devices or users who just want to install Viper4Android
2/11/22 - Updated the Installation method as I found a new updated version of Viper4Android (Repackaged)
Tested the module and it works on Android 12 and Android 13
AML does work on Android 13 as well
3/2/23 - Updated the method Viper4Android method as repackaged installs the DDC, Kernel and preset files during installation.
So, u can just download and extract the compressed .zip file into internal storage and V4A will install the files for you during installation.
Extreme_Ninja2099 said:
Issues:
IMPORTANT:
Setting SElinux can have security issues noted by @topjohnwu.
Viper4Android can be installed with SElinux Enforcing and Permissive. Choose SElinux Enforcing not Permissive
Installation Method:
Install Audio Modification Library, reboot and disable it
Install the viper4Android module.
Choose the option to install with SElinux Enforcing not SElinux Permissive
If a new version of viper4Android module is available, install that
Reboot.
Open the app and grant root
Install drivers in the app and it will reboot automatically
Click to expand...
Click to collapse
Hello! Can't install on OnePlus Nord 2. SElinux Enforcing.
You are describing a method here with 'not SElinux Permissive'
Help me please.
2. Choose the option to install with SElinux Enforcing. When installing the module, there is no such preset. Basically, I've tried everything. It doesn't work... you need to somehow change SElinux
DeMiane said:
Hello! Can't install on OnePlus Nord 2. SElinux Enforcing.
You are describing a method here with 'not SElinux Permissive'
Help me please.
2. Choose the option to install with SElinux Enforcing. When installing the module, there is no such preset. Basically, I've tried everything. It doesn't work... you need to somehow change SElinux
Click to expand...
Click to collapse
U could just uninstall the v4A module in magisk manager. Then try again and choose SElinux enforcing. Also, this guide is for the 8 pro not nord 2. I don't own a nord 2 and only tested on the 8 pro
Extreme_Ninja2099 said:
U could just uninstall the v4A module in magisk manager. Then try again and choose SElinux enforcing. Also, this guide is for the 8 pro not nord 2. I don't own a nord 2 and only tested on the 8 pro
Click to expand...
Click to collapse
oxygen is the same. And when does he suggest choosing SELinux? It installs automatically and that's it.
Works great on the OP8 (crDroid). Thanks a lot for the guide!
DeMiane said:
oxygen is the same. And when does he suggest choosing SELinux? It installs automatically and that's it.
Click to expand...
Click to collapse
First of, what version of magisk are u using? I only use stable (V23), where are u getting the viper4android .zip file/module? I have added the download link in the thread. If ur getting it from magisk manager, the one to use is the viper4android FX (Not legacy and not XHiFi)
laurentlbm said:
Works great on the OP8 (crDroid). Thanks a lot for the guide!
Click to expand...
Click to collapse
That's great. I don't own an OP8 so idk if it works. Hopefully, u used the kernel and DDC files too as they make a difference in my experience. Thanks for your feedback
Extreme_Ninja2099 said:
That's great. I don't own an OP8 so idk if it works. Hopefully, u used the kernel and DDC files too as they make a difference in my experience. Thanks for your feedback
Click to expand...
Click to collapse
Yes, I'm using the file and the difference is quite impressive!
Extreme_Ninja2099 said:
First of, what version of magisk are u using? I only use stable (V23), where are u getting the viper4android .zip file/module? I have added the download link in the thread. If ur getting it from magisk manager, the one to use is the viper4android FX (Not legacy and not XHiFi)
Click to expand...
Click to collapse
Yes, I'm using version 23 of Magisk. I tried to install viper4android FX (Not legacy and not XHiFi) from the Magisk repository, as well as separately downloaded zip viper4android FX v2,7,2,1. But it doesn’t give a choice in which mode to put it, it just puts it all. Android 11. My English is bad, maybe I'm not expressing myself accurately, sorry. Also install the AML library. I saw how they put it on Pixel 3 / 4a, but the version of magisk is exactly 21.1. I can't downgrade.
DeMiane said:
Yes, I'm using version 23 of Magisk. I tried to install viper4android FX (Not legacy and not XHiFi) from the Magisk repository, as well as separately downloaded zip viper4android FX v2,7,2,1. But it doesn’t give a choice in which mode to put it, it just puts it all. Android 11. My English is bad, maybe I'm not expressing myself accurately, sorry. Also install the AML library. I saw how they put it on Pixel 3 / 4a, but the version of magisk is exactly 21.1. I can't downgrade.
Click to expand...
Click to collapse
Do u install it in magisk manager? if u installed it properly (without the magisk manager crashing) and leave it to install... The install terminal should show a question + options for u to choose if u want SElinux enforcing or permissive. U choose by pressing volum up or down. Up for enforcing and down for permissive. The the reboot button should show up. Maybe take a screen shot and show it here
( Нет выбора и app faled
Extreme_Ninja2099 said:
Do u install it in magisk manager? if u installed it properly (without the magisk manager crashing) and leave it to install... The install terminal should show a question + options for u to choose if u want SElinux enforcing or permissive. U choose by pressing volum up or down. Up for enforcing and down for permissive. The the reboot button should show up. Maybe take a screen shot and show it here
Click to expand...
Click to collapse
(No choice and app failed
DeMiane said:
(No choice and app failed
Click to expand...
Click to collapse
Then idk. This guide is for the 8 Pro not Nord 2...
Extreme_Ninja2099 said:
Then idk. This guide is for the 8 Pro not Nord 2...
Click to expand...
Click to collapse
Unfortunately... but https://forum.xda-developers.com/t/app-all-root-solutions-6-0-viper4android-fx-2-7.3774651/page-275
they even launched it on pixel 6. and it didn’t work for me either. I will look into it, thanks
Nice guide.
DeMiane said:
(No choice and app failed
Click to expand...
Click to collapse
I previously checked my comments and found that V4A can cause SElinux to be permissive on some OSs. There's a magisk module that will set your SElinux back to Enforcing with no app needed and it's a just a command that will set your SELinux back to enforcing during every boot. https://forum.xda-developers.com/t/...b-root-selinux-permissive-enable-eng.4050041/
Extreme_Ninja2099 said:
I previously checked my comments and found that V4A can cause SElinux to be permissive on some OSs. There's a magisk module that will set your SElinux back to Enforcing with no app needed and it's a just a command that will set your SELinux back to enforcing during every boot. https://forum.xda-developers.com/t/...b-root-selinux-permissive-enable-eng.4050041/
Click to expand...
Click to collapse
I'll test ... this post also interested me, by the way, changing boot.img did not help, is the phone bootlop. This is what I experimented with.
ps000000 said:
May I add Android 12 instruction to this thread.
(Only custom 12 ROMs since ColorOS12 I cant enable permissive.)
You should goto app settings Unrestrict battery usage for both SELinux and Viper.
1. Install SELinux apk enable permissive on boot.
2. Magisk install Viper 12 Fix module no reboot
3. Magisk install Viper
4. Open Viper grant root and then press ok phone will auto reboot.
5. After rebooot pen Viper setting enable Lagacy mode .... done.
Click to expand...
Click to collapse
on 11 did not roll ... (

Categories

Resources