Question is it possible to enable dual audio mode? - Realme 8 Pro

e.g. magisk mod or something else

Related

Idea: MagiskHibernate

Hi,
I have this idea and I like to know your opinion:
- At time the MagiskHide is a good method for use some Apps (wallet?) when you run in Core mode. This is a great function and really works (I hope for a long time). However, when you aren't running in Core mode, for example when Xposed is enabled, if you run one of such Apps it detects the presence of the su/root. So my idea is adding to Magisk the option to "hibernate" the Apps inside the list of MagiskHide when is not running in Core mode. And when the Core mode is on, then automatically "re-enable" the App.
The objective is quite simple: Block the execution of any "sensible" Apps when the detection can be done.
What you think?
If MagiskHide doesn't work on your device unless you activate Core Only Mode there's something wrong. It might be that that's how your device works, or there might be something else...
MagiskHide works perfectly fine, when when not in Core Only Mode.
Xposed though, that's a whole different matter. There's currently no way to hide Xposed, so it is very likely that what happens when you enable Core Only Mode is that the Xposed module gets deactivated and whatever app was triggering no longer do so (since you've deactivated Xposed).
Didgeridoohan said:
If MagiskHide doesn't work on your device unless you activate Core Only Mode there's something wrong. It might be that that's how your device works, or there might be something else...
Xposed though, that's a whole different matter. There's currently no way to hide Xposed, so it is very likely that what happens when you enable Core Only Mode is that the Xposed module gets deactivated and whatever app was triggering no longer do so (since you've deactivated Xposed).
Click to expand...
Click to collapse
Hi @Didgeridoohan,
Thank you for your comment!
However, I feel you misunderstood my suggestion. Let me explain more:
In my phone (at time, with Stock ROM and a Custom kernel), I can run Magisk in both modes: CORE and FULL. Both work like a charm! However, the SafetyNET check only pass in CORE mode (with MagiskHide enabled), not in FULL mode. Obviously, this is because in the FULL mode I run Xposed and the MagiskHide doesn't work.
So, when I like to run some wallet or banking App, I need to boot in CORE mode. This is mandatory!
And when I don't like to use such Apps, then I can boot in FULL mode.
Where is the problem? When running in FULL mode all Apps that can detect su/root are "active". You can use some Xposed modules (like BootManager) for not launching them at boot. However, if the App isn't "hibernated" it can be executed at any moment. And when it's executed, at this moment it detects the root... and fails. Moreover, it not only fails, but it can send a message to the App's provider... and insert you in a blacklist. So a full blocking of the App when running in Magisk FULL mode is necessary.
My idea is a simple "auto-hibernating" of the Apps in the MagiskHide list when running in non CORE mode.
You understand now what, when and why?
manos78 said:
So, when I like to run some wallet or banking App, I need to boot in CORE mode. This is mandatory!
Click to expand...
Click to collapse
Well... Core mode isn't necessary. You should be able to simply deactivate the Xposed module.
But yeah, I get your idea. Can't say much about it though...
Didgeridoohan said:
Well... Core mode isn't necessary. You should be able to simply deactivate the Xposed module.
Click to expand...
Click to collapse
If you want to be completly sure that SafetyNET is OK, then you really need to boot in CORE mode.
So, my idea at time is:
- Include the function "reboot in Core mode" inside the Magisk Tool. The concept is simple: one flag (for example one file like /magisk/.boot_one_shot_in_core) that forces Magisk to boot in Core mode... but only one time (the file is automatically removed after the boot).
- Create a Magisk Module that "hides Apps in the MagiskHide list". This module is as well very simple: it replaces the apks of the Apps in the list by a dummy file. So, when Magisk boots in FULL (normal) mode then the module "hides" the Apps, and you can't use them. However, when Magisk boots in CORE mode, the module is overpassed and the Apps be there (not hidden).
So, the idea is quite simple: the regular boot is booting with Magisk enabled (FULL mode); and when you like to boot in CORE mode it's only one-time... so in the next reboot. And when reboot again you return to the FULL mode.
I found this is the best and simple solution to execute/hide sensible Apps that really need to have SafetyNET enabled.
What you think?
Hi,
Regarding this idea: Create a Magisk Module that "hides Apps in the MagiskHide list. Anyone interested on work on it?
The concept is quite simple: If the module is active, it hides (aka mount fake .apk) all Apps in the MagiskHide list (or in a internal list).
You like this idea?

What are capabilities of magisk modules? Similar to xposed? Can control LED?

Can magisk module control led and vibration like gravitybox for xposed?
For example in xposed i can change vibration pattern and led color for sms, is it possible in magisk?
Also is it possible to control hardware keys like xposed edge pro?
Magisk is not Xposed. They work very differently. The first adds/deletes/changes system files without (hopefully) triggering SafetyNet whilst the latter performs on the fly patching over almost any part of Android (but triggering SafetyNet)
If what you want to do can be done on system partition by adding/removing/changing files, then you can do it with Magisk.
Please refer to each official thread for more information

VIPER4ANDROID FX INSTALLATION_[ANDROID_10/11]_{Everything Works Flawlessly}_

All features are working. If you follow the process as described, viper4android works fine on YouTube and all platforms. Moreover, it eliminates the problem of voice reduction when forwarding videos.
Tested PE PLUS (A10) and PE (A11) OFFİCİAL
Before you start installing the Sound Mode, install the SELINUX PERMİSSİVE file with MAGİSK and restart the device.
FOLLOW THE PROCEDURES IN THE ORDER
1. Install the Viper4Android FX zip file with Magisk and
Open the Viper4Android FX application and install the driver and restart.
2a. Install the Audio Modification Library file with Magisk.
2b. Install the Audio Compatibility Patch file with Magisk. ---> Options will be as below.
Volume UP - Volume UP - Volume DOWN - Volume DOWN - Volume DOWN
Restart the device.
3. Open the Viper4Android FX application and activate LEGACY MOD in settings.
DONE.
(FOR SETTİNG FILES)
VIPER4ANDROID_DDC-KERNEL-PRESET FOLDER
---> Copy to folder Android / data / com.pittvandewitt.viperfx / files.
MY SETTİNG FOR HEADPHONES and SPEAKER ---> Viper4Android_DDC-KERNEL-PRESETS File
FİLES :
https://www.dosyaupload.com/ou0i
https://www.dosyaupload.com/ou0k
https://www.dosyaupload.com/ou0l
https://www.dosyaupload.com/ou0m
https://www.dosyaupload.com/sH1O
Update ---> DDC-KERNEL-PRESETS
First of all i want to thank you for the clear and detailed guide...
i have few questions tho, is there any way to install without switching SELINUX to permissive?? my concern here are the security issues
also can i add ainur narsil along with V4a, or is it even worth it?! if yes then what the installation process would be??
thank you in advance!
Obito_Sama said:
First of all i want to thank you for the clear and detailed guide...
i have few questions tho, is there any way to install without switching SELINUX to permissive?? my concern here are the security issues
also can i add ainur narsil along with V4a, or is it even worth it?! if yes then what the installation process would be??
thank you in advance!
Click to expand...
Click to collapse
Unfortunately viper doesn't work properly without selinux permissive.
You can try different sound modes. however, problems occurred when I tried it on pe +. Also I don't think an extra sound mod will be needed after making good adjustments with the viper.
ryukseloglu said:
Unfortunately viper doesn't work properly without selinux permissive.
You can try different sound modes. however, problems occurred when I tried it on pe +. Also I don't think an extra sound mod will be needed after making good adjustments with the viper.
Click to expand...
Click to collapse
Somehow v4a works fine with selinux enforcing on my xz premium, less headache for me

[Guide][Magisk][A10 - 13] Dual/Stereo like Speaker guide for Oneplus 6/6T using Dolby Atmos or Viper4Android

This is a guide to install mods for OP6/6T that achieve a dual speaker setup that's like the device has stereo-like speakers. I have helped many OP6 and 6T users to achieve this.
Custom ROMs that work with this mod (TESTED):
Stock Oxygen OS
AOSP Extended
ArrowOS (OP6 only)
CrDroid
Evolution X
KangOS
Pixel Experience
PixenOS (EOL)
SyberiaOS
Disclaimer:
*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:
There are issues with the SElinux manager installation and setting SElinux to permissive in my experience. There are alternatives and modules that can be trusted. I have provided links that I have tested and the best module that sets SElinux is the SElinux permissive module. There are SElinux manager modules, but they don't consistently work or install. Like V1.0 doesn't work, try V1.0.5 or vice versa.
IMPORTANT:
Old:
Setting SElinux can have security issues noted by @topjohnwu, so install this mod at your own risk.
Unfortunately, I have not found any method that installs Dolby atmos with SElinux Enforcing and all mods from reiryuki don't work on 6T (OOS 10.3.8). You can try yourself, but backup beforehand as it causes bootloop.
Any other method I found re-uses repey6 and installs it wrong (without setting SElinux)
The alternative module I have found is Viper4Android and can be installed with SElinux Enforcing
New:
Dolby Digital Plus now has released a new version that works with SElinux Enforcing.
Viper4Android is outdated sadly. But There' Viper4Android RePackaged
Methods:
The method works on OOS work on Custom ROMs as well
Download the files required from the links provided and choose Dolby or Viper
Install dual speaker mod and reboot
The OP6 will have many versions that don't install after rebooting so repeat this step until you've installed a version successfully V10 works in my experience. For the Oneplus 6T V3 works.
3. Test it to see if it works and check if it has installed in magisk modules
Dolby Digital Plus Method:
OLD:
Install Dolby digital plus and reboot.
Test it to see if it works and check if it has installed in magisk modules
Install SELinux permissive to set SELinux to permissive and reboot. You need to set SELinux to permissive to make the Dolby mod work properly.
Go into magisk modules to check if SELinux permissive module is installed. If it wasn't installed try another module like SElinux manager 1.0 or 1.0.5 if one of them didn't work, try 1.0 vice versa or the SElinux changer APK. Reboot and check in magisk modules again.
Install audio modification library, reboot, and done.
NEW:
Install Dolby digital plus and reboot.
Test it to see if it works and check if it has installed in magisk modules
Install audio modification library, reboot, and done.
Fix for Dolby:
The next issue is with Dolby digital plus. If the speakers sound quieter than normal and the app stopped working...
Go into settings, app settings, find Dolby app.
Go into permissions. Turn storage on and off.
Try it again and the issue should be fixed.
Enjoy
There is an alternative to Dolby atmos and it is Viper4Android where SElinux is enforcing as well
Viper4Android Method:
OLD:
With the old V4A module
Once you got dual speaker mod installed
Install Audio Modification Library, reboot and disable it
Install the viper4Android module.
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
If u want to have DDC, kernel and preset files look at the DDC, kernel and preset files manual method below
NEW:
With the new V4A Repackaged module
Once you got dual speaker mod installed
Install Audio Modification Library, reboot and disable it
Download and extract the guide setup or the other .zip file attached below on your device
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.
DDC, kernel and preset files manual method
Download and extract all the V4A files or just the file for this guide setup I attached below. You need the DDC, Kernel and Preset folders. Copy all the folders!
In Internal Storage: Copy and paste the folders into (Android -> data -> com.pittvandewitt.viperfx -> files), this would replace each folder.
Now go into magisk manager, go into modules and enable AML. Reboot
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 in settings but it is on by default.
Choose at your heart's desire if you downloaded all the V4A kernels.
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
Note: 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 add the preset (profiles). BUT U SHOULD HAVE ALL THE DDC AND KERNEL FILES FOR THE PRESETS TO WORK PROPERLY
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 TWRP, -> 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 and turn on legacy mode. This should make the effect stay on, even though this should be on anyways.
New Update V4A
Also, for new users if u connect your earphones like via headphone jack, USB-C or Bluetooth. You can tweak those as well than just your SPEAKERS! BUT some earphones can be damaged as well, so tweak at your own risk.
After much tweaking myself. I think I have made my speakers much better and achieved almost stereo speakers for my 6T.
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 DAMAGING 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
Links:
Modules required
Oneplus 6T dual speaker module Link
OnePlus 6 dual speaker module V10 Link
Download Dolby + SElinux files if u want Dolby Digital Plus installed
Dolby Digital Plus module Link
SElinux modules are no longer needed for Dolby Digital Plus
SElinux Permissive module Link
SElinux Manager V1.0 Link
SElinux Manager V1.0.5 Link
Audio Modification Library Link
Download Viper4Android and one of the preset files if u want Viper4Android installed
Viper4Android Module (OLD) Link
Viper4Android Repackaged Module (NEW) 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
OnePlus 6T dual speaker thread Here
Oneplus 6 dual speaker thread Here
Dolby Digital Plus thread Here
SELinux Manager thread Here
SELinux Permissive thread Here
Audio Modification Library Thread Here
Credits:
@voske15 for his Dolby Digital plus module
@repey6 for his thread and guide to install the Dolby Digital Plus module (9.0 - 11.0)
@acervenky for his module to allow dual speakers for the OnePlus 6 and OnePlus 6T
@evdenis for the SElinux permissive module
@Jman420 for his SElinux manager V1.0 and V1.0.5 module
@Zackptg5 for his Audio Modification Library and Viper4Android module
@Vimal Vinz for the V4A DDC + Kernel + profiles
First reply. I have used this method for years and honestly love it! My speakers sound amazing and I can't use my 6T without this installed
This works like a charm, everything you said if followed then you should have no issues at all. Its a great guide and very helpful. Thanks mate
Update Log:
5/06/2021 - I have attached the presets which I use for my speakers and earphones.
If u have already installed V4A without the presets follow this new method.
Download the .zip file of my attached presets or all the 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
2/11/2022 - Updated XDA thread as new Viper4Android Repackaged was found and supports Android 13
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.
I got this install failed during viper4android module installation. after reboot, it asked me to update and install the module, but after that i still don't see the app to grant permission. I'm using crDroid on a Samsung a22. audiofx is disabled
nptoonix said:
I got this install failed during viper4android module installation. after reboot, it asked me to update and install the module, but after that i still don't see the app to grant permission. I'm using crDroid on a Samsung a22. audiofx is disabled
Click to expand...
Click to collapse
Well your device is a Samsung which may act differently to the Viper4Android installation. This guide is for OnePlus 6/6t. The app should still work, but not sure for your device
I have installed the latest build 9.16, but it seems DASH charge and face unlock is not available, does anyone knows what's going on???
fengjc said:
I have installed the latest build 9.16, but it seems DASH charge and face unlock is not available, does anyone knows what's going on???
Click to expand...
Click to collapse
Wrong thread. Idk what you're going on about. What 9.16 build? You can't just go one any thread and post issues. Especially with no context
Love the presets! Mainly use the viper-DDC stuff I have had DDP &V4A installed for quite some time on a HD1925 OnePLus 7tpro McLaren with LOS17.1,
I am also going to try the Dolby fix, normally when I am using an app like tiktok or something like that & get a phone call it kills DDP 7.3 and I normally have just been rebooting. If the fix works ill create a tasker profile to automatically reset it!
Great tutorial! Thank you for the time
Dolby fix works perfectly! Thank you for that tip!
Bradford1040 said:
Love the presets! Mainly use the viper-DDC stuff I have had DDP &V4A installed for quite some time on a HD1925 OnePLus 7tpro McLaren with LOS17.1,
I am also going to try the Dolby fix, normally when I am using an app like tiktok or something like that & get a phone call it kills DDP 7.3 and I normally have just been rebooting. If the fix works ill create a tasker profile to automatically reset it!
Great tutorial! Thank you for the time
Dolby fix works perfectly! Thank you for that tip!
Click to expand...
Click to collapse
I wouldn't recommend using the dolby and I have said why. "Setting SElinux can have security issues noted by @topjohnwu, so install this mod at your own risk." Here's an article: https://www.techrepublic.com/article/why-its-time-to-stop-setting-selinux-to-permissive-or-disabled/
In the long term, V4A is the better choice especially when SElinux doesn't really affect it and it works on SElinux Enforcing. Dolby kinda works on SElinux Enforcing but enjoy dealing with multiple crashes
Extreme_Ninja2099 said:
I wouldn't recommend using the dolby and I have said why. "Setting SElinux can have security issues noted by @topjohnwu, so install this mod at your own risk." Here's an article: https://www.techrepublic.com/article/why-its-time-to-stop-setting-selinux-to-permissive-or-disabled/
In the long term, V4A is the better choice especially when SElinux doesn't really affect it and it works on SElinux Enforcing. Dolby kinda works on SElinux Enforcing but enjoy dealing with multiple crashes
Click to expand...
Click to collapse
Not sure why but I have never had to set Selinux to permissive but Dolby still works, thank you for the warning though, I would not have used if I had to
I do not deal with multiple crashes in fact, just when using tiktok and get a call I need to turn V4A off and on & Dolby I have to apply the above fix which I have set a Tasker autoinput profile now to do both automatically
Everything is okay with v4a but Second speaker turns off at max volume. Probably i should decrease default speaker gain(
GR4V17Y said:
Everything is okay with v4a but Second speaker turns off at max volume. Probably i should decrease default speaker gain(
Click to expand...
Click to collapse
Which device do u have? The 6T works flawlessly not sure for the OP6. Tbh I have attached profiles in the guide_setup .zip file and the profiles in there work fine
Followed this guide for my OP6 running LOS 19.1. I used v10 stereo mod with latest Dolby Digital Plus and AML modules. It works but it's not true stereo. When playing a stereo content, left channel is coming to both earpiece + loudspeaker and right channel is coming to ear piece alone. Tested using stereo test videos on YouTube. Is there anything I'm missing here? Probably due to LOS or Android 12. Left channel output seems to be a problem.
Nihal @A-JAX said:
Followed this guide for my OP6 running LOS 19.1. I used v10 stereo mod with latest Dolby Digital Plus and AML modules. It works but it's not true stereo. When playing a stereo content, left channel is coming to both earpiece + loudspeaker and right channel is coming to ear piece alone. Tested using stereo test videos on YouTube. Is there anything I'm missing here? Probably due to LOS or Android 12. Left channel output seems to be a problem.
Click to expand...
Click to collapse
Ofc it's not true stereo as the manufacturer will have to do that. But it's "stereo like" so u have 2 speakers instead of one like newer phones that have stereo speakers. But it's better than not having it
New Update
Guide has been updated for Android 13 and using the new Viper4Android Repackaged module

[ROOT] Making ViPER4Android work

Hey all,
some tips on getting ViPER4Android to work on your S21 / OneUI 3.1.
Disable Sound Alive via ADB or a root solution of your choice (not sure if this is actually needed, but I recommend to do so). You can use the Dolby Atmos Magisk module by repey6 if you still want Atmos.
Install the Audio Modification Library module from Magisk
Install the ViPER4Android module from Magisk
Go to /sdcard/ViPER4Android and install the apk that the Magisk module has put there
Open ViPER4Android, grant root access and let the driver install (your phone will reboot immediately)
After the reboot, go to Magisk and disable the Audio Modication Library and reboot again
After the reboot, open ViPER4Android and install the driver again
After the reboot, re-enable Audio Modification Library and once again... reboot.
Now go to ViPER4Android settings and enable Legacy mode (you will have an abnormal driver status otherwise).
You should be good now.
You do not need to set selinux to permissive. Yep, 4 reboots to make it work, but hey - good sound!
Works with Ainur and Dolby Atmos as long as you use AML. I recommend to do this installation procedure after you have installed the other sound mods.
Note: If you only want to use ViPER, no other sound mods, it might be possible to just perform step 1, 3, 4, 5 and 9 (not tested). If not, do all steps.
If it still does not work you can try to add the Audio Compatibility Patch module. There is also another thread here, providing useful information.
Best regards,
lartsch
Thanks for sharing
Thanks for that, I was having a tough time installing it on the tab s7+ maybe this will work...

Categories

Resources