yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] beagz:
Just a note album art for m4a files do not work either using music player. But mp4 movies not encrypted work in stock video player as a bonus.
[Nexus One Android Development] staulkor:
I havent done any pandora streaming since before froyo, I used pandora a lot during the last semester. I never noticed bad audio. So I decided to try it again with froyo hooked up to my home theater and it sounded great...until the bass came in...it sounded like straight ass. Ran the command and WOW, much better. Strange bug for sure.
[Nexus One Android Development] nyijedi:
OP - you are my HERO! The Sirius/XM app is now working properly in Froyo. Thank you so much.
[Nexus One Android Development] ianken:
Now we just need a fix for the car dock.

Does google test this stuff? I mean this renders some popular apps useless.
[Nexus One Android Development] GldRush98:
Wow, makes quite a difference. Wtf is wrong with stagefright, and why did they change to it when it is obviously broken?
[Nexus One Android Development] bmj1086:
If anybody is interested, I spoke with one of the Pandora developers today and he told me that they are working directly with some Android developers to get this problem solved. I also suggested a few improvements to the application itself that he seemed pretty interested in.

One of my suggestions was to have a permanent Play/Pause button on the widget so that when the application isn't playing music simply pushing the play button will start your last played station (like the Last.fm widget has).
[Nexus One Android Development] dt_:
^ Thanks for the update! :)

I'm glad they are aware of this. Hopefully we won't have to use this workaround for very long!

I'm just worried that since supposedly HTC is pushing out Froyo for its other phones, what if any fixes Google may make are not included in these Froyo builds? Same for other phones i.e. Droid 1 that have yet to receive the official Froyo but are due to quite soon? :/

Will most users suddenly get downgraded audio quality because they weren't lucky enough to get a new version of Froyo?
[Nexus One Android Development] dt_:
Does this actually reduce performance of the phone, like speed and such? Or does it just artificially reduce the number produced by the benchmark? :rolleyes: :p
[Nexus One Android Development] acroanidd:
All of my rooted Bugless v.4 + Sirius issues have gone away (been listening for 30+ minutes in my office, i used to get 5 minutes before repeated loops) I'd gladly take lower benchmarks for the ability to stream my Opie and Anthony. You sir are the MAN!!!

Just used root explorer, mounted system as r/w, edited the line 'media.stagefright.enable-player' line to be false instead of true

reboot phone... profit.
[Nexus One Android Development] beagz:
I haven't noticed any drop in overall performance. But the benchmark does have some video components that seem to be affected. Haven't noticed any real world issues with this other than the Album art on the aac files.
[Nexus One Android Development] Chopes:
Does this affect flash video streams?
[Nexus One Android Development] gat1234:
temporary fix for unrooted phones?

Is there any way to apply this fix to an unrooted phone, even if it only takes effect until the next reboot?

I tried running "setprop media.stagefright.enable-player false" in an Android Scripting Environment shell but a subsequent "getprop media.stagefright.enable-player" returned true so it seems it didn't take effect. Also, Pandora sound quality wasn't improved afterwards.
[Nexus One Android Development] Vlad83:
I think only video decoding does, not overall phone performance. But I have yet to notice any real world video degradation so far. Someone should test all video formats in rock player... I am too lazy :) In any event, I use pandora a lot more than I watch movies on my phone and wouldn't mind video taking a hit...
[Nexus One Android Development] RogerPodacter:
i like turtles. yimmmieeee
[Nexus One Android Development] cmart4:
is there a way to do this using root explorer only and not adb? I can see the line I need to edit, but can't make the changesin root explorer. I am mounted as rw. any help appreciated!

ps:

figured it out...yes, I'm a nitwit ;) Thank you for finding this fix!
[Nexus One Android Development] bdelbenes:
This definitely fixed the SiriusXM app!
[Nexus One Android Development] mightybrick:
Tried this on my Droid running CM6-RC2 and it didn't seem to make a difference. I wonder if something else in CM6 has been changed not allowing this fix to work?
[Nexus One Android Development] cmart4:
since its a registry edit, u need to reboot to make it work.
[Nexus One Android Development] mightybrick:
I rebooted after I made the change, and checked the build.prop after the reboot to make sure the change persisted. Still didn't seem to make a difference. I saw a few pages earlier, that another user on CM6 didn't seem to notice a difference either. This makes me wonder if there's something else in CM6.
[Nexus One Android Development] cmart4:
Thats odd, I'm using the 7/29 nightly and the fix worked. In fact, the reason I left CM6 was because of the poor audio in 2.2, went to Baked Snacks 9.6 and the audio was fantastic (altho it's 2.1).

I saw the posted fix and went back CM6 and the fix really worked. Just ran our to my car during lunch to test and Pandora sounds great once again .
[Nexus One Android Development] ManticoreX:
I'm on a Nexus One running CM6-RC2 and it made a huge difference. Thank you. I also checked on quadrant, and it does decrease the score due to the ACC and H.264 decoding tests. Phone has no slowdown though and runs great!
[Nexus One Android Development] norazi:
do i have to run the command from a computer through hboot? or can i run it on the terminal in the phone?
[Nexus One Android Development] cmart4:
if u use root explorer, u can just edit the file and save right on the phone; reboot and your good to go.
[Nexus One Android Development] mightybrick:
I may jump to the latest nightly and see what happens. I'm on a customized RC2 build, and who knows. Maybe its affecting it somehow.
[Nexus One Android Development] sprocket87:
Awesome, thanks for the tip!!

I used SUFBS (superuser file browser) from the Market to do this fix...

Open SUFBS, browse to \system, click menu > mount system as RW, long click on build.prop and click chmod, then enter 666 for RW

Then click on build.prop and choose either File Editor or SUFBS, then edit the file as instructed in the first post and Save it

After it's saved long click on build.prop again and chmod to 644 to go back to RO

Then menu > mount system as RO

Yaay!
[Nexus One Android Development] neilkarunatilaka:
Thanks for the fix, much appreciated.

After the fix, it did the following :

Increased performance of my Linpack score to 39-41 MFLOPS

Lowered performance on my Quadrant benchmark to 800-850 from 1300-1400 pre-fix

FPS remained the same

But I'd much rather have higher streaming audio personally. :-)
[Nexus One Android Development] hydralisk:
My linpack scores seem to have gone down by about 1 MFLOP average... but neocore (intense 3d benchmark) stayed the same at 30.5 FPS.
[Nexus One Android Development] D200P13:
noob question but anyway to temp disable it via terminal?
[Nexus One Android Development] beagz:
Disabled:

setprop media.stagefright.enable-player false

Enabled:

setprop media.stagefright.enable-player true

I saved in gscript so that I can change on demand
[Nexus One Android Development] mightybrick:
I flashed the 7/29 nightly, and it still sounds the same after making the change. Hmmm. I'm stumped.
[Nexus One Android Development] grim281:
Pandora still sounds pretty crappy for most songs, but some have improved with the fix.
[Nexus One Android Development] bmj1086:
Have you changed the Pandora settings for "High Quality" audio? Do you have Pandora One? If you don't have Pandora One then you stream 128Kbps which is decent but it's not necessarily "High Quality". Pandora One is 192Kbps which is a lot better.
[Nexus One Android Development] dogbone414:
When you copied the file what did you change I can't. Get it to work.
[Nexus One Android Development] Vlad83:
Change the line "media.stagefright.enable-player=true" to "media.stagefright.enable-player=false"
[Nexus One Android Development] grim281:
Yup, I have pandora one and its on high quality like usual. Its strange, some songs sound like they used to on 2.1, but others are still extremely tinny.
[Nexus One Android Development] ibegary:
++++++++++++++++++++++++++++++++++++++++++++++1!!!!!
[Nexus One Android Development] inneyeseakay:
Thanks so much for this!!! :D
[Nexus One Android Development] D200P13:
all i did was used Root Explorer app and went all the way back then scrolled down to the folder System.

inside that folder i click the Mount R/W button located on the top right.

then i located the build.prob file and pressed and hold so the popup menu came up.

i then scrolled down and selected Open in text editor.

did the changes then saved and exit.

clicked the Mount on the top right to put again.

rebooted and stayed.
[Nexus One Android Development] inneyeseakay:
That's what I did as well... :D
[Nexus One Android Development] whoisthedrizzle:
Can anyone comment as to whether or not this will only affect network streaming audio?

Is there any impact (improvement) at all on the local playback?
[Nexus One Android Development] liquidtenmillion:
What about these options?

media.stagefright.enable-meta=true

media.stagefright.enable-scan=true

media.stagefright.enable-http=true

Should they be set to false as well in the build.prop?
[Nexus One Android Development] mempf:
I believe it does affect local playback as well.

My guess is that media.stagefright.enable-player=false will result in the other stagefright parameters not being used so it shouldn't matter what they are set to.
[Nexus One Android Development] jeffokada81:
Copy paste this batch commands in your ADB directory in a batch file like 'streamspeed.bat' and use it everytime you upgrade your ROM....

----------------------------------------------------------------------------------

@echo off

cls

echo+

echo+

echo+

echo+

echo Make sure your phone is plugged in and set to debugging mode....

echo+

echo+

echo+

echo+

adb remount

adb shell setprop media.stagefright.enable-player false

echo Done...

echo+

echo+

echo+

echo After a few scrolls, you will see the following:

echo [media.stagefright.enable-player]: [false]

echo+

echo+

echo+

pause

adb shell getprop

echo+

echo+

echo+

echo Scroll up to see if it's disabled...

pause

----------------------------------------------------------------------------------

Sorry I didn't know where to host my batch file and link it.... I figure everyone should know how to create a batch file...

Thank you very much for posting your finings on sound quality. Sound like it used to in 2.1. I stream Pandora through the bluetooth in my car so this was a big deal for me....
[Nexus One Android Development] zeeyo987:
how do you create a batch file from scratch and to use disable stagefright, ive been trying to fix this forever but cant remount and push back the fixed build.prop and when i use root explorer to copy and paste it works but when i do adb shell getprop it still shows true next to player, so weird
[Nexus One Android Development] AtoZ0to9:
create a txt file in notepad, copy his batch commands into, save with a .bat extension not .txt or .bat.txt as notepad will try, place in your adb dir, and execute from command prompt by calling on it by name
[Nexus One Android Development] whoisthedrizzle:
Has anyone noticed a big temp jump after setting to false?

My temps got up to almost 38C yesterday after about 30 minutes. All wireless was off (I was in the subway) and I wasn't really doing anything but listening to music, except adding a few folders to my desktop. Is anyone else seeing high temps after 30-60 mins of playback also?
[Nexus One Android Development] Reanimatedshad0w:
I did this but nothing came after this. Is that normal?
[Nexus One Android Development] D200P13:
open notepad

copy/paste in notepad the code

go to file - save as

click on the drop down menu below the field that allows you to name the file and select all files.

name it as whatever and add .bat at the end of the filename.
[Nexus One Android Development] nyijedi:
The fix has absolutely worked for me. I'm on CM6 RC2.
[Nexus One Android Development] nyijedi:
O&A Party Rock.
[Nexus One Android Development] kerms:
YES! finally! i can use pandora in my car again! i thought it was just sprint sucking
[Nexus One Android Development] beagz:
Those are 2 different scripts. You will not really see anything happen it will just run it and then close. I tested to verify by using an mp4 movie (itunes) that does not normally work with the default video player.

stagefright on:

setprop media.stagefright.enable-player true

stagefright off:

setprop media.stagefright.enable-player false

I saved each script in gscript to the sdcard and I can place a shortcut on the homescreen for each for quick access.

It only opens gscript runs then closes. I then verified by trying to run my itunes video in the system player. If stagefright is disabled it works. If stagefright is enabled it doesn't.

Hope that answers your question.
[Nexus One Android Development] jasonleb1:
....O.O..... What? I'm usually OK with adb stuff but this is confusing. What do you mean by "pull build.prop", what do you change the value to, and what do you mean by adb getpro?

I'm sorry for the noobiness but wcan anyone help me please?
[Nexus One Android Development] diomark:
Would love for someone to make a toggle widget for this!

-mark
[Nexus One Android Development] ianken:
Alas it seems that with this XiiaLive is still borked.

Having The Rage for Google at the moment. :mad:
[Nexus One Android Development] bmj1086:
It has been brought to my attention by Enomther that this causes the random music bug. A few days ago my cousin and myself disabled StageFright because we wanted the better quality Pandora audio. Without thinking about it we both complained to eachother how our music was randomly starting when we disconnected headphones or bluetooth. I posted the problem in Emoms thread and he told me that this "fix" is the culprit.

I don't know if this is already posted anywhere but I just performed a search and nothing came up. After I re-enabled StageFright the Random Music But disappeared for good on both of our phones (with two different ROMs).

Has anybody else experienced this?
[Nexus One Android Development] whoisthedrizzle:
I have not had this since disabling it, but I'm also not on his build at the moment. Did you try to just disable the hp control setting from the player? This used to happen to me quite often on 2.1, usually using a cable without the 3rd ring (remote control). I'm not seeing any weirdness from the bluetooth dock either... Do your headphone inputs have 2 rings or 3 rings?
[Nexus One Android Development] daveczrn:
Let me first start by saying i am a noob so bare with me as i try to explain what i did to fix this. I was definatly having the poor sound quality problem and wanted to do the fix. My problem i ended up with was i did not know how to flash a new boot.img file to get my ro.secure=0 ... So this is what i did to get it to work.

I started with my Rom that i installed into my phone. I then unziped the file on my computer and found the build.prop file and opened that file and edited the line to [media.stagefright.enable-player]: [false] . then i saved the build.prop file, Zipped the entire Rom back up with the new build.prop file in place. Reloaded the Rom and the fix was in place. i did not clear any cache or anything else i just loaded the Rom. You will need to reload any themes and kernals that you loaded but worked for me.
[Nexus One Android Development] AtoZ0to9:
thanks for rephrasing what i posted... maybe with 2 responses he'll figure it out...
[Nexus One Android Development] wuli:
I've been having this bug without using this fix, so I don't think it is related.
[Nexus One Android Development] mightybrick:
Use root explorer.
[Nexus One Android Development] whoisthedrizzle:
mount /system in r/w

long press build.prop and open in text editor

scroll down to the appropriate line

edit text

settings>save and exit (it will now save, and create a backup of the original build.prop)

reboot and profit.
[Nexus One Android Development] tropmonky:
WOWIE WOWIE, what a difference... Low quality sounds better than High quality did! High quality is back to the way I remember it, THANKS!

I hope Pandora and the like can find a way around this... They better or else all the non rooted phones will sound like crap...

Thanks again!
[Nexus One Android Development] swatspyder:
This will possibly break your camera and video recording!!!

Just to let you guys know, changing the string to false to disable stagefright, will possibly break your camera/video recording.

If you disable it and attempt to record a video at 720p, it will not work. Confirmed on Fresh EVO 3.0.0.4...

:mad::mad::mad:
[Nexus One Android Development] bmj1086:
I haven't had the issue once since the first Froyo version leaked. My cousin hasn't either and we both had it with BT and 3.5mm on 2.1. He was on a stock FRF91 ROM, I'm on Enomthers ROM. Neither of us had the issue with these ROMs now either. Once we disabled StageFright we started having the issue several times a day. I don't think the headphones I use at work have the remote ring but it happened with the Dock too. I put my phone on the Dock at about 11pm one evening and it woke me up at about 11:15PM blasting. Also during the day, I would take my phone on and off the dock at work and it would start blasting music. I just re-enabled stagefright when I posted the first time and I haven't had the issue once since then.

So for me and my cousin, this is the culprit. I can't say it is for anybody else though so idk.
[Nexus One Android Development] beagz:
Hrmm, wish I knew how to make a toggle widget. So easy to write a script for this to turn on and off.

Guys try getting gscript. Then you can just make a shortcut.
[Nexus One Android Development] MSmith1:
Care to share those gscript files?
[Nexus One Android Development] daemondemise:
Kensington LiquidAUX Bluetooth Car Kit with Remote

disabling stagefright player messes up my Kensington LiquidAUX Bluetooth Car Kit with Remote. The music player starts playing as soon as Bluetooth disconnects. Any ideas why this is ?
[Nexus One Android Development] bmj1086:
I literally just posted this about 5 posts above you.
[Nexus One Android Development] apexi350z:
Using Fresh 3.1.0 rom, when I applied this fix, SiriusXM won't connect. It says:

Data Connection Lost

Trying To Reacquire Connection

Anyone got this error?
[Nexus One Android Development] MSmith1:
Having the gscripts would help so this can be "toggled" on/off. Hoping that dude can share them.
[Nexus One Android Development] aduljr:
You're not fully rooted. How did you update?
[Nexus One Android Development] daemondemise:
Sorry man. But yeah, I'm having the same bug as you. And I came to the same conclusion that disabling stagefright player causes the music player to resume playing when it's disconnected from bluetooth devices or headphones.
[Nexus One Android Development] dwntwnall4u:
How to apply fix without NAND unlock?
[Nexus One Android Development] glitzbd:
Awesome

I just did this on MCR21 (FRF91) and what a difference! Here is what I did!

I downloaded GScript Light (buying the pay version ASAP haha)

Opened the program and ran the CPU script to give it SU

In the program hit the menu button and then add script

I put the following in:

Name: Enable

Needs SU?: Check

setprop media.stagefright.enable-player true

Save

Name: Disable

Needs SU?: Check

setprop media.stagefright.enable-player false

Save

Now go to your launcher and long press to add a shortcut, and then scroll down the GScript and it will bring up a list of all of your scripts, put both of those on the homescreen!

For convenience I will attach the scripts just in case you don't want to bother with it haha

I am not positive on how to add them, but I think you can just unzip them, and place them on your SD card and when you go to add script then hit Load File

Enjoy!
[Nexus One Android Development] beagz:
Thanks for posting those. I was just about to do that myself. Great job.

Make sure you place them in the gscript folder on the sdcard.

Also long press on homescreen --> shortcuts --> gscript

then select which script you want to have a link to. Then you can just press the icon for enable or disable.
[Nexus One Android Development] bmj1086:
Yeah I have two different devices on two different ROMs doing it here. I guess we just wait on Pandora to update because I'm not having any audio quality issues with last.fm. Mainly because their devs actually update often. Pandora hasn't updated in a very long time. (even though I don't care much for last.fm vs Pandora, I'd rather have last.fm with no random music than have Pandora with good audio and random music).I find it very weird that people don't experience it though. I don't know if anybody unplugs and plugs in their headphones or connects and disconnects their BT as much as me.
[Nexus One Android Development] sfcbr:
Big thanks to the OP for this jewel.......been wondering why my Pandora was sounding like AM radio after switching to CM/Froyo on my Hero, this absolutely fixed it.

Thanks!!!!!!!!!!
[Nexus One Android Development] myteematt:
Multiple Fixes

Thanks for this one. Not only did it fix my audio quality problem, but I can also natively play videos again. I needed a separate player once I switched to Froyo to watch .mp4 videos so this fix has multiple uses. Outstanding work!!!
[Nexus One Android Development] bmj1086:
I'm playing a .mp4 on my phone right now (using Froyo's StageFright). mp4 is just a container, what's the codec used to encode the video? As long as it's H.264 you should be fine. I use HandBrake CLI in Ubuntu to encode my videos for my phone. Works great.
[Nexus One Android Development] Vincent Law:
I wish this actually worked without causing other issues.

On the EVO with Froyo, applying this fix causes the Camera app to fail to record video, and seems to cause issue with playback of some video content as well.

Is there perhaps a way to make only Pandora use the old AAC decoder?
[Nexus One Android Development] Muerte_X:
Leave this line

media.stagefright.enable-player

set to true and change this line

media.stagefright.enable-http=true

to

media.stagefright.enable-http=false

That will only affect http streaming, like Pandora. You shouldn't have any problems with the camera. It won't affect files on the phone/sdcard, so those will still sound crappy. I only have mp3's, so I dont care. A nice side effect of this is that the quadrant scores go back up to normal...
[Nexus One Android Development] Vincent Law:
Going to test this now. If this works I will love you more than 2 men ever should. :p

Edit: from what I can tell, it's definitely working as intended! Thanks a ton! Now all I need to do is figure out how to get Google Nav and Pandora to play nicely like they did on 2.1 (where Pandora won't pause when Google Nav talks).
[Nexus One Android Development] dascreed:
Ok time to ask the noob question where do I get a new boot.Img from that will let me write the new file. And oncde I gat it how do I apply it
[Nexus One Android Development] r546:
EVO user but actively watching this thread as well. Can't believe Google let something like this slip through.
[Nexus One Android Development] dt_:
Everyone suffering from this bug should definitely STAR the issue on the Android Google Code page so it gets Google's attention!

That page is here: code.google.com/p/android/issues/detail?id=9308 (can't post direct links since i'm still 'new' :( )

Hopefully they'll fix it soon! :)