FORUMS
Remove All Ads from XDA

[PATCH][9.0][ZE60xKL] Speaker patch is available

35 posts
Thanks Meter: 64
 
By zekken1977, Member on 5th May 2019, 11:01 AM
Post Reply Email Thread
Here are patch sets for speaker working on ze60xkl pie ROMs

<Link>
ZE600KL : http://www.mediafire.com/folder/5l0hwa9n7aice/ze600kl
ZE601KL : http://www.mediafire.com/folder/r8wbjbqjjh46j/ze601kl

<Notice>
These patch sets are only for ZE60xKL model on pie custom rom users.
DO NOT apply these for other models or Andoroid versions.

<Patch Files>
1) Kernel Packages (be careful for mistaking model).
γ€€- ze600kl-spk-pie-kernel-v1.zip (for ZE600KL(Z00L))
γ€€- ze601kl-spk-pie-kernel-v1.zip (for ZE601KL(Z00T))
2) ze60xkl-spk-pie-libs-v1-01.zip (for both ZE600KL and ZE601KL)

<Install Instructions>
1. Download 2 patches (#1 and #2) to any folder
2. Reboot recovery (TWRP)
3. Flash 2 files
4. Reboot system and you can fun sound from device

<Tested Roms>
- Lineage OS
- CrDroid
- AEX

<Features>
- Add speaker sound stream to your rom
- Stereo mic support

<Known Issue>
- Noisy sound with bluetooth and enabling reverb

<Source Code>
https://github.com/zekken1977?tab=repositories

<Change log>
[2019-05-05: v1.0]
- Add tfa9887 driver

[2019-05-26: v1.01]
- Rebased on firekernel r2.10

Finally thank you for helping to test my patch
@Rayonecma, @celtic1453, @fabricio6791 and @ndrancs

First Release On : 2019-05-05
Last Update On : 2019-05-26
The Following 15 Users Say Thank You to zekken1977 For This Useful Post: [ View ] Gift zekken1977 Ad-Free
5th May 2019, 11:15 AM |#2  
Senior Member
Thanks Meter: 15
 
More
Ξ€hanks

Works ok for the ZE600KL

Sent from my MI PAD 4 using Tapatalk
The Following User Says Thank You to celtic1453 For This Useful Post: [ View ] Gift celtic1453 Ad-Free
5th May 2019, 01:14 PM |#3  
Senior Member
Thanks Meter: 12
 
More
test on ze601kl... working friend
5th May 2019, 10:46 PM |#5  
Senior Member
Thanks Meter: 12
 
More
can i test the patch on other pie custom rom ?? RR, Cdroid...??
right now i have lineage pie
5th May 2019, 10:57 PM |#6  
OP Member
Thanks Meter: 64
 
Donate to Me
More
Quote:
Originally Posted by fabricio6791

can i test the patch on other pie custom rom ?? RR, Cdroid...??
right now i have lineage pie

Please
I think this patch will be available for other pie roms unless modified audio HAL or enforced SElinux.
The Following 2 Users Say Thank You to zekken1977 For This Useful Post: [ View ] Gift zekken1977 Ad-Free
6th May 2019, 08:41 AM |#7  
Member
Flag paris
Thanks Meter: 35
 
More
Ze60xkl sound patch
Thx a lot, i've made patch for oreo, but i didn't find any time to work on the pie version .
Great job !!!
The Following 3 Users Say Thank You to Superbezo For This Useful Post: [ View ] Gift Superbezo Ad-Free
6th May 2019, 03:51 PM |#8  
Member
Thanks Meter: 14
 
More
You are awesome! Thank you for this work ^-^
8th May 2019, 05:34 AM |#9  
Senior Member
Flag Mumbai
Thanks Meter: 58
 
More
Quote:
Originally Posted by zekken1977

Please
I think this patch will be available for other pie roms unless modified audio HAL or enforced SElinux.

You are doing Gods work bro!
Hats off to you.

One question.
What about enforced SELinux? LOS will eventually get SELinux to enforcing. What after that? This won't work?
8th May 2019, 08:40 AM |#10  
OP Member
Thanks Meter: 64
 
Donate to Me
More
Quote:
Originally Posted by [email protected]

You are doing Gods work bro!
Hats off to you.

One question.
What about enforced SELinux? LOS will eventually get SELinux to enforcing. What after that? This won't work?

Enforcing SELinux is enabled in stock rom from Oreo (maybe... ) but most custom roms are disabled (permissive) like attached.
Exactly after enabled SELinux, this patch will not work because of enforcing SELinux.
If so, my ideas which we can choose are :
1. Add sepolicy file into patch to access driver
-> It seems to be good but we need to be aware differences of sepolicy between custom roms
2. Change patch design for hold all amp device (tfa9887) controls in userspace (this means kernel patch will be disappeared)
-> It also seems to be good but we need a new designed libs, and making completely independent module from SELinux is difficult, I think.

To be honest, I have no ieda for the best solution
Attached Thumbnails
Click image for larger version

Name:	CollageMaker_20190508_154645639.jpg
Views:	140
Size:	61.5 KB
ID:	4755327  
The Following 2 Users Say Thank You to zekken1977 For This Useful Post: [ View ] Gift zekken1977 Ad-Free
9th May 2019, 05:15 AM |#11  
Senior Member
Flag Mumbai
Thanks Meter: 58
 
More
Quote:
Originally Posted by zekken1977

Enforcing SELinux is enabled in stock rom from Oreo (maybe... ) but most custom roms are disabled (permissive) like attached.
Exactly after enabled SELinux, this patch will not work because of enforcing SELinux.
If so, my ideas which we can choose are :
1. Add sepolicy file into patch to access driver
-> It seems to be good but we need to be aware differences of sepolicy between custom roms
2. Change patch design for hold all amp device (tfa9887) controls in userspace (this means kernel patch will be disappeared)
-> It also seems to be good but we need a new designed libs, and making completely independent module from SELinux is difficult, I think.

To be honest, I have no ieda for the best solution

We did not have Stock Oreo i guess (Only Custom).
I personally was checking things and found the kernel zip different. That was great thinking on your part though. I tried building this a long ago, but failed (I never thought about patching the kernel).

Hey @Superbezo, can you give some insights in this? What could be possible when we have SELinux as Enforcing on pie?
The LOS 16 has SELinux in bugs, The dev will eventually fix it and turn it to Enforcing.
The Following User Says Thank You to [email protected] For This Useful Post: [ View ] Gift [email protected] Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes