yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 Themes, Apps, and Mods] FunkyRasta:
I like my have my mods not touch the system partition , so SafetyNet and stuff is sound :D So I made quick magisk zip -> it will install system-less when Magisk is present or normally without it.

DISCLAIMER: I did not test it yet, as I don't have device yet. Nothing should break but I take no liabilty over anything. It does the same thing as original zip, but without touching system partition. Test at your own risk. And please report results.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Not really needed if you ask me

I have the original one installed

(there should be a screenie in there - won't appear in XDA Labs for some reason
[ZTE Axon 7 Themes, Apps, and Mods] FunkyRasta:
Image could not be loaded :( what was on it?

Another reason for Magisk install would be ability to easily enable/disable it in Magisk Manager -> you can check the difference without dual booting or restoring backups. And you can switch between Ainur's betas and this patch for whatever you prefer.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Well that's true

It was a screenshot of safetynet check returning that it passed.
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
OP update. Add Magisk version. Special thanks to FunkyRasta
[ZTE Axon 7 Themes, Apps, and Mods] aLexzkter:
Failed!

Installation error!
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
Try via recovery
[ZTE Axon 7 Themes, Apps, and Mods] aLexzkter:
I was referring to the magisk module, of course the flasheable zip is going to work ;D
[ZTE Axon 7 Themes, Apps, and Mods] FunkyRasta:
Yeah, but even if you flash it in recovery it should flash as a Magisk Module! It will flash normally when there is no Magisk detected, I think. Could you try that? Never made Magisk modules before :P My package is stuck at DPD international hub, dunno when my Axon will arrive :( But when it does I will properly test it and make it flashable from Magisk Manager
[ZTE Axon 7 Themes, Apps, and Mods] Dodgexander:
[MENTION=7799420]Choose an username...[/MENTION]

How do you know atmos doesn't use the dac? For me the toggle doesn't work on stock with it enabled but it doesn't get stuck on standard.

To my ears Atmos sounds more like it's using the dac.

If the magisk module did indeed disable and enable on the fly it would good to test.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Because it sounds to me like the SD DAC, and because the speakers are always driven with the SD DAC, and Atmos is primarily for the speakers.

Disabling every option and keeping the equalizer flat definitely gave me the impression that the SD DAC was used
[ZTE Axon 7 Themes, Apps, and Mods] Kingo64:
The Magisk module did not successfully install for me either
[ZTE Axon 7 Themes, Apps, and Mods] pinkywinky:
So unfortunately if you want to get the best audio experience, you have to stay with stock. So the stock audio app sucks, but it's the only thing that uses the full hardware
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
I believe that ZTE had already confirmed on their forums that the DAC is always used (at least on Stock), regardless of the app you use. Of course, the ability to play 192khz for example will be app dependent.

I have very good sound with PowerAmp 704 on stock. However, the high-res settings fail to work. It is not clear if this is a reporting issue from PowerAmp or not.

Neutron player can now however play high-res. I still prefer the sound from PowerAmp though.

The only issue is that it seems impossible to validate any of these claims (stock vs custom ROM). Is there really nothing is any of the logs that can be obtained on custom ROMs?
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Again, the UHQA hack enables hi-res playback on PA 704. From my testing I can say that on stock it enables 192KHz but only on the SD DAC, while on a custom ROM with this patch it stays on the AK4490 DAC, but the difference is too slight compared to the SD DAC.

The stock audio app is the only one that can run the AK4490 DAC at 192KHz, seemingly(without counting the UHQA hack). Any app can use that DAC but up to 48K or 44.1K. That's what he tried to say I guess.
[ZTE Axon 7 Themes, Apps, and Mods] SwivelyChin:
Where can I find the Samsung UHQA mod?
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
How did you test this? I mean how do you know the stock music app is playing at 192khz?

Am I correct that to play at 192khz, you need music files that are at 192khz?

I believe that Neutron with its last update plays at 192khz on stock, and hence uses the akm face.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Think about this: ZTE gives you a phone with a wonderful DAC. Now, the phone has no way to access that DAC. Does that make sense?

So, every OEM that sells a phone with a DAC actually adds a stock app that is capable of using that DAC. I think the V20 has this same thing going on.

You need 192KHz files of course

Neutron doesn't necessarily use the AKM DAC, the SD820 DAC is also capable of 192KHz
[ZTE Axon 7 Themes, Apps, and Mods] Dodgexander:
How about this theory? Most vendors couldn't care less about 192kHz support and don't bother to enable it in their drivers or software.

This includes dedicated android media streamers designed with audio in mind limited to only 48khz with flac files.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Then how do you explain the actual tests made that compared the LG V20 sound with the Axon 7's? Many pages did this and they recorded the sound output of both, then compared it.

We're sure that it works, these threads are mostly to discuss the possibility of Poweramp being able to utilize the DAC at 192KHz.
[ZTE Axon 7 Themes, Apps, and Mods] Dodgexander:
Links please? Tests done by ear I assume?
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Stop being so skeptical about everything. I'm dead serious, it just isn't possible that a phone with a non working advertised feature would just be reviewed as outstanding without anyone noticing that it doesn't go to specs. Let alone 3 phones, all of them praised by their DACs and audio capabilities

They even measured THD ffs

https://xdaforums.com/axon-7/how-to/comparison-audio-capabilities-lg-v20-t3457220

Basically you can't get those noise levels with 16bit media
[ZTE Axon 7 Themes, Apps, and Mods] chrisrodsa210:
I'm on Dark Rom, US variant. As a heads up this patch was causing all sorts of issues. Random reboots, bootloops, and freezing. I wiped my phone and redid everything without the patch and all is good. Is this happening to anyone else? And there was really no audio improvement that made any real difference.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
No, i had zero problems on Lineage, and there is a very noticeable difference in soundstage.
[ZTE Axon 7 Themes, Apps, and Mods] Infy_AsiX:
Thanks for this patch, I'll appreciate it when I start trying AOSP ROMs. Does it include the removal of deep_buffer for enabling all audio effects including the DAC system wide across all apps? Or does it just force the AKM DAC for apps that support native MusicFX such as Google Play Music and Poweramp.

Just wanted to check if it's known to prevent a conflict and save time. I'll find out if I have to when I try AOSP. By the way V4A is limited to 48kHz for those interested in that. Personally I'm ok without higher resolution for the convenience and benefits V4A can provide.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
You basically won't get higher resolution anyways, unless 1) you are on stock and 2) you use the stock music app, and it's still 16bit@96KHz anyways
[ZTE Axon 7 Themes, Apps, and Mods] BaamAlex:
Works this Patch with AICP 12.1? I used the Soundpatch from LOS 14.1
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
Just wanted to have someone check out my dumpsys attached. This is on aicp, without the patch, playing a 24 bit 192khz file. Looks like it is playing correctly at 192khz. I'm using neutron player which sports hi-res playback.

PS: sorry for the crappy screenshot - had issues getting it - the terminal is the inbuilt one that can be turned on through Developer Options.
[ZTE Axon 7 Themes, Apps, and Mods] Teet1:
What command did you use for that?
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
dumpsys media.audio_flinger
[ZTE Axon 7 Themes, Apps, and Mods] troy5890:
I'm getting a sampling rate of 48 hz on the new Oreo ROM with this patch installed
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
What player are you using and are you sure your file is a hi-res file?

In addition, this patch make not work on Oreo (not to mention that Oreo is really in very early beta, if not alpha stage).
[ZTE Axon 7 Themes, Apps, and Mods] troy5890:
I'm using the stock music player that came with the ROM. I'm not entirely sure if its hi-res or not. But you're right, knowing that Oreo is in beta stage it may not work
[ZTE Axon 7 Themes, Apps, and Mods] Teet1:
Maybe flashing doesn't work as the magisk module errors out too
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
of course your output will be 48 kHz if the file is 48 kHz...

Plus, you have to find the part that says standby=no.

---------- Post added at 08:17 PM ---------- Previous post was at 08:10 PM ----------

Hey, could you send us some screenies of Neutron's Audio Hardware section?
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
Here you go...
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Okay, I'm gonna try and replicate this with dualboot and aicp. I guess they might have integrated the patch just like LOS.

I have already tried with LOS and there's no way to make it work.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Okay, tests done. It works on stock and AICP, and I guess it would work on LOS too (haven't tried). Neutron is still unbearable crap though.

The only little problem that I have is that the volume is barely hearable on stock. And by turning the preamp on it gets all distorted as if it already was at full tilt

If Poweramp ever gets updated we could tell max to see how the fricc neutron does to get to the DAC. Neutron is capable of outputting 192 kHz/24 bit...

Next step is finding someone with a good soundcard and making them record the output. I think we can ask those guys that made the youtube review that said 'the phone that broke our audio test' cause they said that they found out it was limited at 24kHz. But only if we can get stock to play nice with neutron (okay volume levels)
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
That's strange. I've used neutron on stock before and didn't have any volume issues. Poweramp is a bit loader though, probably because of the DVC setting.

I'm not a huge fan of neutron's UI, but I'm getting used to it.
[ZTE Axon 7 Themes, Apps, and Mods] dantedakilla:
Get a portable amp, then you won't have to worry about messing with the preamp settings and distortion.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
You kidding? Then why did I buy a phone with an integrated DAC? I could just buy an external USB DAC and be done with it.

I'll keep using Poweramp. Even though it's 48/16 playback, Neutron's sound engine is just worse than Poweramp's.
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
Strange. I'm getting pretty good sound from neutron.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
Okay, it fixed itself automagically. A reboot might have fixed it.

Now that it works, I guess it's pretty okay! I'll play with it some more, but besides from the not-to-good bass playback (at least compared to pa's) I think I can put up with it
[ZTE Axon 7 Themes, Apps, and Mods] dalebaxter01:
I have tried installing the Magisk version although it won't let me (I am sort of new to modding and android)

I am trying to flash the zip to the latest version of Resurrection Remix and I think I should note I have a Dolby Atmos Port (Magisk) and James DSP (Magisk) also flashed to my device.

I don't understand the error as I tried flashing it to RR before adding any additional modules. and to no surprise, the error persists

I have attached a screenshot of the error I get and would appreciate any help in fixing it as one of the selling points for me was the DAC, but I couldn't stand the skin ZTE loaded on the phone

[IMG="Screenshot in TWRP"]https://i.imgur.com/FppzY02.png[/IMG]
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
I guess that you have Magisk 15, so it wont be flashed because template is old. I'll try to fix it
[ZTE Axon 7 Themes, Apps, and Mods] dalebaxter01:
Thanks, be sure to notify when you have made changes I'm new here so i just want to help with suggestions or anything I can. especially with troubleshooting

I have no idea how to do it but if you can Add the zip to the catalog available in the magick app known as "downloads" that can save a lot of Innoventions as I'm sure other phones would include the same DAC unless I am mistaken
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
No, only a couple other phones use the same DAC, and it will probably not work.

Also, you can use the flashable zip without any side effects... It won't break safetynet or whatever...
[ZTE Axon 7 Themes, Apps, and Mods] FunkyRasta:
Sorry guys, I still do not have my Axon... It is second month waiting LOL. First one was broken by shipping company and second one should be at my doorstep this/next week. Then I will do a proper Magisk zip and test in on actual device. I'm sorry that my magisk zip is not working properly :( If you want to make a new Magisk module I will be very thankfull. Kudos to you mate ;)
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
Updated Magisk version of mod. Template 1500

Check OP
[ZTE Axon 7 Themes, Apps, and Mods] Lycidias:
Thanks! Does this work on oreo?
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
Yep, i'm right now on oreo and it works good
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
Sorry, but how did you check? I tried it and it didn't. Sound is being processed at 48khz on only, regardless of source.
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
Deleted
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
Its ok, because if you check mixer and audio settings it would show that outputting 48000, and you can change it if you using some audio players that making their own "Output thread" . Also check kernel driver for ak4490. It even doesnt have 44100 mode, only 48000
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
You need to run dumpsys media.audio_flinger in terminal while playing a hi-res file in a player that supports hi-res (like neutron). You'll see that 96khz or 192khz files are downsampled. This is not the case in nougat.
[ZTE Axon 7 Themes, Apps, and Mods] canezila:
Is 96k the ceiling for our device? I have 192k and dsf files that are very hires but, at least what I can figure out, it resamples to 96k. Does this sound correct?
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
As i know, Neutron makes own "Output thread", so he send signal right to the DAC. So, if you check dumpsys, you can see " Output thread" that using right frequency. If Hi-res output enabled
[ZTE Axon 7 Themes, Apps, and Mods] joaste:
Exactly. On Oreo, it wasn't working for me, with or without the patch.

I don't think audio is correctly managed yet. I'm sure it will get sorted out.

To come back to the original question, the DAC is, in my opinion, not correctly used yet.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
you're just talking about hi-res. Try the soundstage test. Of course it can end up being placebo, but it's usually very clear.

Just get rid of the Magisk module and any sound effects (like, turn V4A off if you have it), wach a youtube video, then put the magisk module and reboot, watch the video again. If you notice the difference then the DAC is working.

It would be no wonder that Neutron can't output hi-res on Oreo yet. Remember that Poweramp had the hi-res feature broken for all phones until V704 came out. Still doesn't work for our specific device but I think it fixes hi-res for a number of phones.
[ZTE Axon 7 Themes, Apps, and Mods] paradix^:
Hi, I have installed this patch a couple of days ago.

Since than every time I listen to music the sound quality if good, but I get random interrupts in playback. It's like the music player would get a hiccup.

For now I haven't figure out any solution for getting rid of it. A phone restart usually helps for some time, but that's obviously not a solution.

Any help would be appreciated.
[ZTE Axon 7 Themes, Apps, and Mods] darth_antz:
Divine Beats worked for me, allowed me to get viper4android working, which toggles when you turn it on and off.

https://xdaforums.com/android/software/app-divinebeats-sound-master-phone-sony-t3274355

flashed from twrp. This has been the most successful method for the audio. im using black player as it recommends.
[ZTE Axon 7 Themes, Apps, and Mods] paradix^:
Looks like the issue was with the n7player. Problem solved.
[ZTE Axon 7 Themes, Apps, and Mods] atakan33:
[MENTION=6977124]Skrem339[/MENTION] are you change only

<!-- Hi-Fi Audio -->	<ctl name="AKM HIFI Switch Sel" value="ak4961" /> to <!-- Hi-Fi Audio -->	<ctl name="AKM HIFI Switch Sel" value="ak4490" /> ?
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
Yes, for now. Its just forcing AK4490 to be enabled all the time. I'm going to make it changing filter on headphones plug in. I've got some situations when after plugging headphone it didnt switched to ak4490, so i decided to force it. Not the best decision, but better than nothing.
[ZTE Axon 7 Themes, Apps, and Mods] .Ejekt:
Is there any way to use this in tandem with Viper4Android/Dolby Atmos? It appears that using this module deactivates the other two while outputting via aux.
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
It doesn't. I never used Atmos with this since it adds a boatload of noise, but V4A works really good
[ZTE Axon 7 Themes, Apps, and Mods] .Ejekt:
How are you using V4A? Which Magisk module or zip?
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
It depends on the system you're using. The Viper4ARISE flashable zip from the Guides section works on LOS and stock but it doesn't work alongside Atmos (it basically makes it force close) and it needs SELinux permissive. The Viper4Android magisk module by ShadySquirrel works without the need of permissive and also works alongside Atmos (At least in stock). And I don't remember if it worked in LOS, but I believe it had some kind of problem
[ZTE Axon 7 Themes, Apps, and Mods] .Ejekt:
I was using the other V4A module. Ended up having to uninstall all audio modules and start from scratch, but now it's all working.

Enable AK4490 > ShadySquirrel's V4A > Dolby Atmos (Axon 7)/AudModLib > Deep Buffer
[ZTE Axon 7 Themes, Apps, and Mods] Predatorhaze:
Do we need to flash both files? I use magisk
[ZTE Axon 7 Themes, Apps, and Mods] Oki:
It works in Resurrection Remix Oreo. I just flashed the mixer. A huge difference and fully compatible with the viper4Arise and Atmos patch.
[ZTE Axon 7 Themes, Apps, and Mods] jungle35:
So is this patch obsolete if using Ainur Sauron?
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
This patch has already been integrated into most (if not all) Nougat ROMs. Oreo ROMs have different patches. Sauron already has this mod integrated too, so on the off chance that a ROM isn't patched, it'll install the patch.

Note that this doesn't work in Oreo ROMS
[ZTE Axon 7 Themes, Apps, and Mods] jungle35:
So if you're running an OREO ROM that means you're just screwed?
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
No, that means you haven't taken any time to read the threads. Skrem332 made a driver kernel that was integrated long ago (which enabled the DAC and gave customization), and NFound made B32+B10 bootstack to enable the DAC too.

Not sure about Kranoner's ROMs but I think they also got it working. Hell, just try, you'll notice if it's working or not if you know the difference
[ZTE Axon 7 Themes, Apps, and Mods] jungle35:
Yeah I just flashed Skrem332s new beta kernel and it's working for sure. This is the best I've heard the sound stage and clarity, even above the stock ROM. Now I just need to figure out how to change the parameters of the DAC. When I change the system to R/W and edit the super slow parameter file from 0 to 1, it will save no problem but once I reset the phone to try it I find out that it's been reset to it's normal setting. Any chance you know what would be overwriting it at boot?

Thanks for the help :good:
[ZTE Axon 7 Themes, Apps, and Mods] Skrem339:
To apply your settings after reboot you just have to make init.d script.
[ZTE Axon 7 Themes, Apps, and Mods] Predatorhaze:
Im on oreo and have sauron installed,do i still need this ak patch? also swifty kernel installed
[ZTE Axon 7 Themes, Apps, and Mods] docentore:
Hi [MENTION=6977124]Skrem339[/MENTION], would you know if this patch will work with treble? the mixer file is located in /vendor/etc
[ZTE Axon 7 Themes, Apps, and Mods] Choose an username...:
this is a nougat era patch, won't work on P.
[ZTE Axon 7 Themes, Apps, and Mods] docentore:
I think we have this covered on TG ;)
[ZTE Axon 7 Themes, Apps, and Mods] Dead Short:
The swifty kernel has the CAD project build in, so I suppose not. You can definitly hear a difference when you play arround with what's supposed to be the AK4490's settings, so I'd say it works.
[ZTE Axon 7 Themes, Apps, and Mods] Voenix:
Works in Treble. I replaced the mixer file with the one in the vendor and ıt still works.
[ZTE Axon 7 Themes, Apps, and Mods] docentore:
possible, but it was tested and proved that it's not neccesary ie when using LOS15.1 vendor. tinymix reports that AKM4490 is being used when headphones are connected and playing.
[LeEco Le Max 2 Questions & Answers] tuzo1960:
Excuse me for my bad English. I am new on this Forum. Please help me, I have a big problem!

I can’t use Fastboot command, because ewery time I got the „Waiting for devices” error message 

1)	I have a Motorola Moto G4 phone (XT 1622, athene)

2)	This mobile are not rooted.

3)	I want to unlock my bootloader, after this I want to install TWRP, and after this I van root my mobile, for install the custom Lineage OS.

4)	On my phone I activated at the Developper Otions the USB debugging, and OEM Unlocking.

5)	I connected my phone to my PC, I used first time Windows 10. On this system my Moto G4 are identified: Motorola ADB interface. No problem with identification, no any yelow exclamation matrk, no unidentified device!

6)	I have installed the correct ADB and Fastboot driver v.1.4.3 (link is made from this site)

7)	I have installed the Motorola driver from the official Motorola site.

8)	All ADB command work fine, for example adb devices, adb reboot bootloader, etc.

9)	But no fastboot command work, when I tested the fastboot devices, I got the „Waiting for devices”. Of corse befor this, I rebooted my phone in fastboot mode! If I use any fastboot command, I got this error message.

10)	I try to use the excellent tools (thank you for this): Universal Fastboot & ADB tool, latest version, but the situation in this case is the same, „Waiting for devices”.

11)	Of corse I rebooted the PC after instalation of the drivers, the fastboot.exe is in the right paths, etc.

12)	I have installed the Universal USB Driver with the Universal Fastboot & ADB tool, Install drivers button, PC rebooted after this.

13)	I used Windows 10, Windows XP, and Ubuntu, and in all cases I got the „Waiting for devices”

14)	Under Ubuntu I got this message, despite that on Ubuntu the ADB and Fastboot driver installations are cleare.

15)	I tested all on many other PC.

16)	Every time I connected my phone to the PC only on USB 2.0 port, I changed the USB port, and I changed the USB cable too.

17)	I read hundred ot tutorilas on youtube, on differant Forums, but none of them helped.

18)	I uninstalled or reinstalled a many timet he ADB and fastboot drivers (I tested a lot of drives from the net), and I installet a many times the official Motorola driver, and the Google universal USB driver, but nothing

Please tell me what can I do for solve this devil situation, Please help me! Thank you again!