Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,489 Members 46,199 Now Online
XDA Developers Android and Mobile Development Forum

[DEV][PORT] ClearPhase & xLOUD Working without Speaker Volume Bug

Tip us?
 
zhuhang
Old
(Last edited by zhuhang; 5th March 2013 at 04:49 AM.)
#1  
zhuhang's Avatar
Recognized Contributor - OP
Thanks Meter 11345
Posts: 3,937
Join Date: Apr 2011
Location: Petaling Jaya

 
DONATE TO ME
Default [DEV][PORT] ClearPhase & xLOUD Working without Speaker Volume Bug

First, this is a dev topic, targeting advanced users and higher.
Dont post useless comments and off topics.
Let's go.

Everyone who tries and tried to port this knows that the clearphase & xloud feature will make speaker volume reduces after ~10 seconds playing through speaker.

To make it a success, let's share our ideas here so all porters will gain information and maybe found a way to port it.
- Share any information u think might help porters.
- Comment which system files you think are important to port this. Or even better if u confirmed its necessary.
- Files u have tested and the results.
- Suggestion & ideas

Start with mine,
Quote:
1) audioeffectservice.apk which got clearphase feature will cause speaker volume reduce bug.
- XV ICS (tested)
- XV JB (tested)
- XZ JB (tested)

2) Above devices don't use libxloudwrapper, libvptwrapper, libclearaudiowrapper
3) Above devices use libdownmix, libfnrwrapper, libposteffectwrapper, libpreeffectwrapper
4) Once you played music through headset, switch to speaker and volume will get revived for another 10 seconds.
5) Files to port (i only port this 2) - bootloop if this 2 files are not from same device)
- audioeffectservice.apk
- semc_audioeffectif.jar

6) Soundenhancement.apk depands on audioeffectservice for effects, nothing to do with porting, so just use the one from:
- My AIO Audio Mod v5
- ACID Audio Engine v7
because it has all toggles(clearphase,xloud,dynamic,clearstereo) and its scaled correctly unlike XV or XZ SE.apk

7) libaudcal.so will make speaker volume low (so use stock, dont replace)
8) libaudioflinger, libaudioeffect_ini will cause bootloop.
Unsolved:
What do u think about the file libaudioparsers.so? It Doesnt affect anything for me.
How about testing tablet S's audioeffecrservice? (Anyone has the file?)
Which files u think may prevent volume reduce bug?

PS: Currently using XV - ICS 9.0.1.D.0.10 to make success port.
The Following 2 Users Say Thank You to zhuhang For This Useful Post: [ Click to Expand ]
 
kin912
Old
#2  
Senior Member
Thanks Meter 276
Posts: 277
Join Date: Apr 2011
Location: Foshan
My point is that the SE code is defferent with Sony.You can compare.The best SE.apk is in XV.You can pick up all the audio files.And I suggest you compare the files in XS ICS with JB.Maybe you can find the .ko file to fix the speaker volume reduce bug.
 
zhuhang
Old
#3  
zhuhang's Avatar
Recognized Contributor - OP
Thanks Meter 11345
Posts: 3,937
Join Date: Apr 2011
Location: Petaling Jaya

 
DONATE TO ME
Default Re: [DEV][PORT] ClearPhase & xLOUD Working without Speaker Volume Bug

Now if we restart walkman, volume revive back for 10 seconds. So something must have run after 10 seconds of music.
But what could be the thing?

Sent from my LT26i using xda app-developers app
 
Rizal Lovins
Old
(Last edited by Rizal Lovins; 5th March 2013 at 06:04 AM.)
#4  
Rizal Lovins's Avatar
Recognized Developer / Recognized Themer / Recognized Contributor
Thanks Meter 14524
Posts: 1,441
Join Date: May 2012
Location: Bandung - Sauron The Great Eye
Default Re: [DEV][PORT] ClearPhase & xLOUD Working without Speaker Volume Bug

I have no idea, but this is little solution/trick, play walkman, open soundenhancement, after sound reduce, go to setting>app>running, stop soundenhancement, go to background cache, stop again soundenhancement, go to Walkman again open soundenhancement, now no sound reduce, but after reboot you should always use this trick

Maybe this problem from system framework

semc_audioeffectif.jar

But i'm not sure

Ash nazg durbatulūk, ash nazg gimbatul, ash nazg thrakatulūk agh burzum-ishi krimpatul.
One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them.

Closer to me? everything about me and my work!!!
DON'T PM me for any question regarding my work, please post in specific thread, anyone can help you, I WON'T respond
Lead Developer of LOVINS DEV : The 2 Brothers - Rizal Lovins & ibanez7
The Following User Says Thank You to Rizal Lovins For This Useful Post: [ Click to Expand ]
 
kin912
Old
#5  
Senior Member
Thanks Meter 276
Posts: 277
Join Date: Apr 2011
Location: Foshan
Quote:
Originally Posted by Rizal Lovins View Post
I have no idea, but this is little solution/trick, play walkman, open soundenhancement, after sound reduce, go to setting>app>running, stop soundenhancement, go to background cache, stop again soundenhancement, go to Walkman again open soundenhancement, now no sound reduce, but after reboot you should always use this trick

Maybe this problem from system framework

semc_audioeffectif.jar

But i'm not sure
I guess it from framework or lib,not audioeffect.apk and semc_audioeffectif.jar.
 
zhuhang
Old
#6  
zhuhang's Avatar
Recognized Contributor - OP
Thanks Meter 11345
Posts: 3,937
Join Date: Apr 2011
Location: Petaling Jaya

 
DONATE TO ME
Default Re: [DEV][PORT] ClearPhase & xLOUD Working without Speaker Volume Bug

Quote:
Originally Posted by kin912 View Post
I guess it from framework or lib,not audioeffect.apk and semc_audioeffectif.jar.
My guess is some audio libs needed to port over together.

So now who is trying to port too?

Sent from my LT26i using xda app-developers app
 
zhuhang
Old
#7  
zhuhang's Avatar
Recognized Contributor - OP
Thanks Meter 11345
Posts: 3,937
Join Date: Apr 2011
Location: Petaling Jaya

 
DONATE TO ME
Quote:
Originally Posted by Rizal Lovins View Post
I have no idea, but this is little solution/trick, play walkman, open soundenhancement, after sound reduce, go to setting>app>running, stop soundenhancement, go to background cache, stop again soundenhancement, go to Walkman again open soundenhancement, now no sound reduce, but after reboot you should always use this trick

Maybe this problem from system framework

semc_audioeffectif.jar

But i'm not sure
Found new stuffs.
Yes u're right, but using your method, we can only control xloud and clearphase
eq, clearaudio+ and vpt will not work because soundenhancement.apk is not running.

Conclusion:
Use xperia T audio effect service for clearaudio+ (eqs, vpt in cluded, clearphase excluded)
Then add clearphase toggle in sound settings, like stock xloud toggle (only here it will not conflcit with SE.apk)

Now working on it! Excited and seems promising.
 
zhuhang
Old
#8  
zhuhang's Avatar
Recognized Contributor - OP
Thanks Meter 11345
Posts: 3,937
Join Date: Apr 2011
Location: Petaling Jaya

 
DONATE TO ME
Anyone know how to add clearphase toggle in sound settings?
Just like this, im not good at smali editing
http://forum.xda-developers.com/show....php?t=2060416
 
kin912
Old
#9  
Senior Member
Thanks Meter 276
Posts: 277
Join Date: Apr 2011
Location: Foshan
The way is work and you can control in setting-sound.But clear phase and xloud is opened in walkman by default.
 
zhuhang
Old
#10  
zhuhang's Avatar
Recognized Contributor - OP
Thanks Meter 11345
Posts: 3,937
Join Date: Apr 2011
Location: Petaling Jaya

 
DONATE TO ME
Quote:
Originally Posted by kin912 View Post
The way is work and you can control in setting-sound.But clear phase and xloud is opened in walkman by default.
I dont think its opened, eventhough build prop lines added but i think effect not there.
Im trying to fix it now. Hope it went well.

Tags
clearphase, dev, idea, port, xloud
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes