[FIX] Audiofix. Update as promised - Hero CDMA Android Development

THE FOUR (4) UPDATE.ZIPS BELOW CAN BE FLASHED IN AN ORDER, ON ANY ROM. IF ONE DOES NOT WORK TRY ANOTHER. IT CANT HURT YOU. APPLY THESE AS UPDATE.ZIPS IN NANDROID
ANY OF THESE FIXES WILL WORK WITH ALL 2.1 ROMS********
Ok so after 2 weeks of testing and thanks to everyone who helped in the testing. we now have a FINAL Fix for the Audio loss problem.
Im going to make this simple.
Update------------------------
This is the OC kernel #89. it may or may not work for you but the way toast compiled it, it DOES NOT have audio loss. it is a guarantee fix but it may not work you. i reccomend using set cpu and min 245 max 729. this allows the best stepping of the processor. idk what roms this will and wont work with. im just throwing this out to help some people until EVERYONE WITH THE ISSUE CALLS SPRINT AND TELLS THEM.
PICK ONE
ToastOC kernel #89 audio fix.
Here is the second update. it is the kernel pulled straight from the RUU. some people say this works. it is completely untouched. i had certain files included that fixed audio loss but i had to remove them due to some complications. so try this if the other 3 dont work, or you dont want OC.
PICK ONE
2.1RUU kernel audio fix
Disclaimer, i have not tested either one. NANDROID BACK UP. im not responsible for data loss. although this has never happened i need to tell everyone. hope one of these 4 work.
End Update-------------------------------
PICK ONE
AudiofixRC
PICK ONE
AudiofixERIS
IF ONE DIDNT WORK. TRY THE OTHER. IF YOU EXPERIENCE A HANG AT BOOT, PULL THE BATTERY AND POWER IT BACK ON. GIVE IT 15 MIN TO BOOT. NOTHING IN THE PATCHES WILL LOCK UP THE PHONE.
********IF YOU APPLY THIS TO ANY FRESH TOAST ROM YOU WILL LOSE OVERCLOCKING ABILITY AND IT WILL BECOME FRESH 2.0D. IF YOU FLASH THIS OVER DC 2.08 AND UP THEN YOU WILL LOSE DC CONFIG. AND PLEASE UNDERSTAND IF YOU APPLY THESE FIXES TO A PORTED ROM OR ANY ROM THAT HAS MODIFIED RAMDISKS THEN IT WILL BE REPLACED WITH A NORMAL BOOT.IMG.
IF anyone has a speakerphone issue or something weird just post a comment and i know the fix. but i have tried to generalize the zips for everyone.
Thanks to everyone who tested and beared threw the 7+ updates
special thanks to,Zenulator(er) Gbhil, BeyondInferno, Treve, Flipz, Damageless, Darchstar. for their contributions. All these Devs are incredible and they all helped to solve this issue when it only effected a few people. they deserve alot of respect for doing so.
The issue is caused by audio drivers in the kernel not resetting. we do not have the source for .29 kernel so there is no fix. we dont know why this effects some people and not others. cyanogen has worked on the issue and he does not have fix. many other forums have reported this issue with no fix. i chatted with a google engineer and he does not have fix. there is no fix that we know of except replacing the kernel with an older version that works. in this case i have used the ones from the ALPHA RUU from sprint and the eris kernel that was made by flipz. Since the audio drivers do not reset it does not allow anything to read them. so it continues resetting and resetting and this causes the cpu to be pegged by the constant retry and retry.

Thanks for the cred! lol
i'll keep you posted, and thanks a ton man.
Edit: some people (including me) have had this problem since the first 100% (not just the current) 2.1 roms, so if this works it'll be pretty big.

I have a quick question. I removed those 2 files after my flash as I use a 3rd party music player. Is this the reason I have not had this issue? If so, do I need to still download and install these 2 files?

ElAguila said:
I have a quick question. I removed those 2 files after my flash as I use a 3rd party music player. Is this the reason I have not had this issue? If so, do I need to still download and install these 2 files?
Click to expand...
Click to collapse
try it and see what happens. like i said this had minimal testing and everyone has different circumstances.

Wasn't aware of this problem, only had fresh2.0d for a little, guess I'll go ahead and save these just incase another occurs...

I go to install both files and in says uninstall?
So both are on my phone as is, and I have been unable to uninstall them?

chaos67731 said:
I go to install both files and in says uninstall?
So both are on my phone as is, and I have been unable to uninstall them?
Click to expand...
Click to collapse
you have to remove the apk's first. Then back out shell and then adb install both packages.
C:\AndroidSDK\tools>adb shell
# su
su
# cd /system/app
cd /system/app
# rm HtcMusic.apk
rm HtcMusic.apk
# rm com.htc.MusicWidget.apk
rm com.htc.MusicWidget.apk
# exit
exit
# exit
exit
C:\AndroidSDK\tools>adb install HtcMusic.apk
1032 KB/s (652781 bytes in 0.617s)
pkg: /data/local/tmp/HtcMusic.apk
Success
C:\AndroidSDK\tools>adb install com.htc.MusicWidget.apk
865 KB/s (259656 bytes in 0.292s)
pkg: /data/local/tmp/com.htc.MusicWidget.apk
Success
Click to expand...
Click to collapse

Tipharet said:
you have to remove the apk's first. Then back out shell and then adb install both packages.
Click to expand...
Click to collapse
I kept getting error about file not found, i did the following and it worked..
: cd C:\android-sdk-windows\tools
: adb remount
: adb devices *if everything is set up right this should output a serial number*
: adb push HtcMusic.apk /system/app
: adb push com.htc.MusicWidget.apk /system/app
...then followed
C:\AndroidSDK\tools>adb shell
# su
su
# cd /system/app
cd /system/app
# rm HtcMusic.apk
rm HtcMusic.apk
# rm com.htc.MusicWidget.apk
rm com.htc.MusicWidget.apk
# exit
exit
# exit
exit
C:\AndroidSDK\tools>adb install HtcMusic.apk
1032 KB/s (652781 bytes in 0.617s)
pkg: /data/local/tmp/HtcMusic.apk
Success
C:\AndroidSDK\tools>adb install com.htc.MusicWidget.apk
865 KB/s (259656 bytes in 0.292s)
pkg: /data/local/tmp/com.htc.MusicWidget.apk
Success

Any chance of gettin this as a flshable zip?..sorry for the bug.im just not too good with adb and wouldnt like to **** the phone up lol...thanks and sorry

Effing right avalanch! I am installing now!. Thanks very much for the fix. This was the only thing holding me back. I'll report back tonight on whether it works

I just installed these files, will try over the weekend.. I noticed yesterday that a couple calls were experiencing this issue so I'll see what happens now..
Thanks for the work to fix this!!

Thank you, everyone involved, for your testing and to Avalaunch for identifying and posting this possible fix!
Just applied the test-fix, and will report back later in the day. Question: It looks like you had us remove the versions of these files that were distributed with the recent 2.1 leak, and replace them with another (presumably older) version -- is this correct?
For what it's worth, I do listen to music through the HTC app/widget almost every day, including yesterday when I had the trouble. It had crossed my mind that the changing audio profiles/conditions such as to/away from BT, or perhaps to/away from Headphones to listen to music might somehow be related, and I feel encouraged seeing that your 'fix' has focused on one of those.

Thanks for your work avalaunch and beyondinferno!
I created an update.zip with this fix. Please report back and let everyone know if this fix does work for you. This update.zip should work on any roms that are mentioned in the topic. It wipes your dalvik-cache so expect the boot up to take a long time (just like first boot).
http://link.geekfor.me/fresh20daud

flipzmode said:
Thanks for your work avalaunch and beyondinferno!
I created an update.zip with this fix. Please report back and let everyone know if this fix does work for you. This update.zip should work on any roms that are mentioned in the topic. It wipes your dalvik-cache so expect the boot up to take a long time (just like first boot).
http://link.geekfor.me/fresh20daud
Click to expand...
Click to collapse
I tried the method in the 1st post and also flashed this zip by Flipz...So I will post my results..I'm hoping that this works..

flipzmode said:
Thanks for your work avalaunch and beyondinferno!
I created an update.zip with this fix. Please report back and let everyone know if this fix does work for you. This update.zip should work on any roms that are mentioned in the topic. It wipes your dalvik-cache so expect the boot up to take a long time (just like first boot).
http://link.geekfor.me/fresh20daud
Click to expand...
Click to collapse
Thanks Avalaunch and Beyond, awesome work! Thanks Flipz for the flashable, just made the required flash hopefully all will be well.

flipzmode said:
Thanks for your work avalaunch and beyondinferno!
I created an update.zip with this fix. Please report back and let everyone know if this fix does work for you. This update.zip should work on any roms that are mentioned in the topic. It wipes your dalvik-cache so expect the boot up to take a long time (just like first boot).
http://link.geekfor.me/fresh20daud
Click to expand...
Click to collapse
Flipz, how important to the fix do you think the Dalvik wipe is?
I have manually replaced the files, but not wiped Dalvik or flashed your update which does that. Unless you feel strongly against it, I will just run all day as is, without the Dalvik wipe, and report back if it makes any difference.

askwhy said:
Thank you, everyone involved, for your testing and to Avalaunch for identifying and posting this possible fix!
Just applied the test-fix, and will report back later in the day. Question: It looks like you had us remove the versions of these files that were distributed with the recent 2.1 leak, and replace them with another (presumably older) version -- is this correct?
For what it's worth, I do listen to music through the HTC app/widget almost every day, including yesterday when I had the trouble. It had crossed my mind that the changing audio profiles/conditions such as to/away from BT, or perhaps to/away from Headphones to listen to music might somehow be related, and I feel encouraged seeing that your 'fix' has focused on one of those.
Click to expand...
Click to collapse
yes these are older apk's from the first leak. i believe the issue is when you receive a call, the music player "played" a file that did not exist. this pegged the cpu and it continued trieng to play it. but that is the simplest way i know how to put it.
anyways hope that helps. now im off to a second interview for bestbuy mobile. wish me luck

Avalaunchmods said:
yes these are older apk's from the first leak. i believe the issue is when you receive a call, the music player "played" a file that did not exist. this pegged the cpu and it continued trieng to play it. but that is the simplest way i know how to put it.
anyways hope that helps. now im off to a second interview for bestbuy mobile. wish me luck
Click to expand...
Click to collapse
Good luck Avalaunch! I might come to KY to buy my next new phone lol!

thanks guys for the fix

I tested once so far by playing music through the music player, calling my phone, had audio, and after hanging up the music started playing again. Everything seemed to work fine. Is that the right way to test?

Related

Never wipe again after an upgrade!

It seems that quite often after an upgrade (especially when using Apps2SD), Android rebuilds the /data/system/packages.xml file because it thinks you have reinstalled all of your apps. This results in missing apps, force closes, etc, because UIDs have changed and they don't match whats in your /data/data directory. It's almost always fixed by a wipe, but screw that
Download this file: http://n0rp.chemlab.org/android/fix_permissions.sh
Push it to your sdcard, su, and run "sh /sdcard/fix_permissions.sh" and reboot. You should be good to go with NO WIPE!
Credit goes to this guy, I simply ported it to shell code: http://blog.elsdoerfer.name/2009/05/25/android-fix-package-uid-mismatches/
UPDATED: Now works with protected apps.
anddep said:
so when installed.. i dont have to wipe for a new build?
Click to expand...
Click to collapse
Well, there are some other factors, like app data that is stored in the same place but in a different format. You'd likely run into this going back and forth from an HTC based build like Hero or Sapphire and an Android based build like mine, Dude's, or JF's. I can't fix that situation, YMMV.
Except for that special case, this should do the trick.
I hope I don't sound like a complete idiot. Do you do this before or after the update and will this work with any update (like moving from ION to Rogers?
al74 said:
I hope I don't sound like a complete idiot. Do you do this before or after the update and will this work with any update (like moving from ION to Rogers?
Click to expand...
Click to collapse
second that about will it work on any update?
Powermaniac said:
You don't sound like an idiot. That's actually a good question. I'd say before, but I'm curious as well.
Click to expand...
Click to collapse
You would have to do it after the update, and reboot.
Bravo!!!
@Cyanogen: YOU **ARE** THE MAN! Woot!
Now I'm not so hesitant to test out new roms! Thanks cyan
so when installed.. i dont have to wipe for a new build?
damn your good..
Thank you very much
Out of curiousity, is it even possible to implement this into ROM Builds? it would seem simple enough. however I haven't built my own ROM so I'm going off of what I know from programming. ask the guy who created it if you can use his work. lol you're the man, as always.
ok i may of did something wrong but i couldnt get it to work. i used the terminal emulator on the phone and typed the command and it says
mount: permission denied (are you root?)
it continued to do the script but said not permitted for each app.
i definately have root as i just installed your latest rom so what am i doing wrong?
Did you SU first?
Woodard2589 said:
ok i may of did something wrong but i couldnt get it to work. i used the terminal emulator on the phone and typed the command and it says
mount: permission denied (are you root?)
it continued to do the script but said not permitted for each app.
i definately have root as i just installed your latest rom so what am i doing wrong?
Click to expand...
Click to collapse
Denkai said:
Out of curiousity, is it even possible to implement this into ROM Builds? it would seem simple enough. however I haven't built my own ROM so I'm going off of what I know from programming. ask the guy who created it if you can use his work. lol you're the man, as always.
Click to expand...
Click to collapse
Yeah, it should be possible. The script is a little slow, though, so it would need a way of detecting an upgrade in the first place, and it would have to run after all the apks are processed.
g2crx said:
Did you SU first?
Click to expand...
Click to collapse
sure didnt. thanks.
so may I ask... if I wanna go from Haykuro's Hero to JAC's 1.4... all I would have to do is... flash the new ROM and then run your script and I'm done?
That is the idea, yes.
Ran script and flashed from dude's to your build without wipe. I'm getting force closes on
android.process.acore
klaxon
weather widget free
I'm using marcus apps2sd.
Edit nevermind I'm a retard. Figured it out.
amazing, doing this after upgrading from 3.3.6 to 3.3.8 fixed all my issues so far! thank you sir!!
Ryanmo5 said:
Ran script and flashed from dude's to your build without wipe. I'm getting force closes on
android.process.acore
klaxon
weather widget free
I'm using marcus apps2sd.
Click to expand...
Click to collapse
You ran the script first, before the flash? I believe the script is to be run after the flash. Try that and see what happens.

[ROM - 32B] ZeroXd 5.2r4 / JACHeroSki-v2.0 [09/11/2009 - 11:47AM EST]

I will be accepting donations if you like my work. After contacting HTC, they informed me that my device is not under warranty, as a technician determined it to be "user related" damage and that all repairs will be at owner expense.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8141983
If you follow my twitter, you know I bricked my G1. I am trying to get it repaired, but due to the long response time I had to buy a mytouch (no point having two G1s IF the other one gets repaired). Using this bad luck to my advantage, I scripted a way for hero to run on both with two simple commands.
How I rooted a brand new "perfected SPL" MT3G and installed Hero in 15 min:
http://forum.xda-developers.com/show...&postcount=154
Link to original thread: http://forum.xda-developers.com/showthread.php?p=4365404#post4365404
Updated, but still feeling slow? Back up. Try rm system/sd/app_s then reboot to recovery and wipe data. then install fresh. Before restoring your data, open the backup folder on your sd card and remove the subfolders for programs you no longer have or need to have backed up.
I noticed a 10% increase in speed and my phone was far from lagging to begin with.
Losing messages? Make sure that system/sd/app/com.android.mms.apk does NOT exist, as this was an old release. Go into settings for messaging (from the conversation list panel) and set priority to "High"
Most Recent:
G1 / MT3G: http://twistedumbrella.slackdev.com/ZeroXd-6.0.zip
Now includes dynamic swap. Rewrote the method of apps to sd for myTouch.
Build will move system apps, user apps, and dalvik to sd on a g1 device.
Build will ONLY move user apps to the sd when using a myTouch.
This will allow the system apps and dalvik to remain on internal device.
This is a completely new method of doing a merge build so bear with me.
I am going to be rewriting things for users without a lot of user apps, like myself.
This will allow the entire build to be placed onto internal for mytouch users.
Once you have updated and are ready to use the phone, execute Terminal and enter the following commands:
su
magic
This configures the system to the specific device. This is until I finish automation.
LEDs have been restored to 93%
Bluetooth restored in MT3G
Porting my own boots for MT3G
Based on the System Image from Haykuro
Using the Kernel and Boot.img from JAC
Extensive system script edits were done
SwitchROM installs itself to system/sd/
LEDs are at about 90-100% brightness
CPU Optimization turned off by default
Enhanced Terminal included
Fixed My Account included
G1 / MT3G: http://twistedumbrella.slackdev.com/ZeroXd-5.2r5.zip
http://twistedumbrella.slackdev.com/Resources.zip
twistedumbrella said:
MultiTouch for MT3G being patched NOW
Click to expand...
Click to collapse
Does that mean multitouch doesn't work and one more unanswered questio IS it from the latest release that modaco did, i asked it since 5.0 so please answer
White Rosie doesn't work i tried it but i doesn't show up and it doesn't even install shows parse error, can you do something about that. Really appreciate your work. Will donate as soon i finish with my exams, I came to US for a holiday for 3 months and as i came back i have exams, only 3 left, have to finish 6 books per subject (thats f*****ng 3 months syllabus) and i have exams after 2 day holidays , thats why i have been a bit inactive in the community, will be active on 24 and will provide a special version of HERO based on my favourite ZEROXD.
Installed JACHeroSki 2.0 and i get stuck on a boot loop. i've tried wiping and re-flashing and same thing.
mgorman said:
Installed JACHeroSki 2.0 and i get stuck on a boot loop. i've tried wiping and re-flashing and same thing.
Click to expand...
Click to collapse
For me 2.0 working fine,but cannot install ZeroXd-5.2r4-installation aborted:/
In v2.0 cannot run wifi:/somebody else?
Had to fix scripts. Check the link on original thread for download. They are the same files. The verification fail happens when your downloading as I upload. It was a last minute fix on the way to work. Sorry for the issues.
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
tq745 said:
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
Click to expand...
Click to collapse
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
tq745 said:
hey twisted...great work on the roms...
couple issues with me...
auto-rotate doesn't work...
auto correct and dictionary doesn't work also...
is there any way we can correct this?
Click to expand...
Click to collapse
Thank you... h.nocturna for the fix, and nacron for the heads up...
Here is the fix for auto-complete... Worked for me on 5.1r2
Everything in
open dos prompt.
adb remount
(***back up the original***)
adb pull /system/sd/app_s/HTC_IME.apk c:\(*your directory*)\HTC_IME.apk
(***install the new one***)
adb push c:\(*your directory*)\HTC_IME.apk /system/sd/app_s/HTC_IME.apk
start your Messaging it will crash the first time you want to use the keyboard... restart Messaging and it should work...
HTC_IME.apk here: http://www.mediafire.com/?te0symyx4yz
Mms auto-rotate works for me in 5.1r2 so I dont know. But possibly you still have the old Mms.apk. Try pushing the new one from 5.0 or later rom...
Twisted are you using BFS in your new builds??? Post 5.1 that is....
twistedumbrella said:
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
Click to expand...
Click to collapse
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambesey's way
twistedumbrella said:
What device are you using? MyTouch? Did you run the terminal command?
BTW, for everyone else: http://twistedumbrella.slackdev.com/user.conf
Did some testing, seems to run a little smoother
Click to expand...
Click to collapse
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambezy's way
same issue as above :-(
1.8 is running pretty awesome.
i guess its safe to assume that i shouldn't try 2.0 yet? lol
zeroxd 5.2r4 seems to be faster than jacs 2.0 but i cant get auto rotate to work or multitouch and when i try the commands in first post i get "/system/xbin/su: not found''
did you try running the commands via adb ?
im not familiar with doing it that way i dnt even know wat adb is
just connect your phone to the pc
install the drivers from android SDK
start > run > cmd
cd to the android tools directory
and adb shell
that's how i did with my phone and works perfectly
im not gona risk any damage ill deal without the rotate for a day till its fixed
tq745 said:
so i opened up better terminal and when i entered su it says
/system/xbin/su: not found
help?
in the meantime i'll try zambezy's way
Click to expand...
Click to collapse
should be under /system/bin not xbin

Got Gapps working on 2.0, but I need some guidance from experienced devs..

I've been trying to get a build going from aosp-master for the past week and I think I've finally cracked it.. As far as I can tell I've got all the google apps working, everything syncs up properly including contacts.. but I need some help setting up what have become the standard features of a custom rom. I asked some of this in Q&A the other day but I don't think any devs go in there any more, and I don't blame you. These questions probably belong here anyway..
1) Whats the proper process for rooting a self-built rom? I managed to hack something together by changing the permissions on sh and su, but it won't work on my current build and it probably opened up security holes everywhere. How do you lot do it?
2) What's the correct way to set up a2sd? I've put cyanogen's script in my init script (launched as a one shot service from init.rc) but I'm not sure if it's working properly, or if that's the accepted way of doing things.
3) Where should I set up the links for busybox, in my init script or somewhere else? It doesn't seem to be working from there..
4) The initial boot of my current build is a bit messy.. I get a selection box asking me to choose from 2 setup apps (google or the default), but I don't know how to remove the default one. I'm not using the SdkSetup package or anything..
Any help would be very much appreciated.
1) Make sure adb runs as root (init.rc), and add the modified su binary and Superuser.apk's from one of the other builds.
2) Usually, A2SD scripts are launched as one-shot services via init.rc.
3) Not in the init script... Not sure where, exactly, as the shell doesn't bother to read any "on-launch" scripts
4) To remove that, i'm pretty sure you have remove one of them completely, by deleting the APK.
Hope that helps...
Oh, and POST IT NAUW!
I didn't think there were any eclair video drivers available yet for the G1?
goldenarmZ said:
I've been trying to get a build going from aosp-master for the past week and I think I've finally cracked it.. As far as I can tell I've got all the google apps working, everything syncs up properly including contacts.. but I need some help setting up what have become the standard features of a custom rom. I asked some of this in Q&A the other day but I don't think any devs go in there any more, and I don't blame you. These questions probably belong here anyway..
1) Whats the proper process for rooting a self-built rom? I managed to hack something together by changing the permissions on sh and su, but it won't work on my current build and it probably opened up security holes everywhere. How do you lot do it?
2) What's the correct way to set up a2sd? I've put cyanogen's script in my init script (launched as a one shot service from init.rc) but I'm not sure if it's working properly, or if that's the accepted way of doing things.
3) Where should I set up the links for busybox, in my init script or somewhere else? It doesn't seem to be working from there..
4) The initial boot of my current build is a bit messy.. I get a selection box asking me to choose from 2 setup apps (google or the default), but I don't know how to remove the default one. I'm not using the SdkSetup package or anything..
Any help would be very much appreciated.
Click to expand...
Click to collapse
If you still need help, hit me up somewhere other than here where we can have more than a post-to-post convo. I can help ya sort it out.
bkmo said:
I didn't think there were any eclair video drivers available yet for the G1?
Click to expand...
Click to collapse
There aren't. That just means no HW acceleration. I think barak got them working though.
Got them working too, tried the one from the Milestone GSM dump and it worked.
But they won't sync, they won't find the server, any idea?
Got them working too, tried the one from the Milestone GSM dump and it worked.
But they won't sync, they won't find the server, any idea?
I got Calendar working on Twisted's mod of the x3 rom. I pulled and pushed a whole bunch of apk's dealing with Google and Google Service Providers, but I didn't note which wound up working. Couldn't get any of the other GApps working though and I continually get gapps and acore FCs. I'll poke around and see if I can remember how I got Calendar up and working so I can actually contribute to this conversation next time
I can't get the su binary to work.. i just get permission denied, it doesn't even try to call the superuser app.
My sync is definitely working, but it seems slow.. It just took me 5 minutes to get an email on the device.. I'm not sure what's happening there, I'll look into it tomorrow.. at which point I'll also try to remember how I got the damn thing working in the first place so I can maybe help others out.
Right now I'm so tired my eyes are bleeding... I think I'll go to bed.
goldenarmZ said:
I can't get the su binary to work.. i just get permission denied, it doesn't even try to call the superuser app.
My sync is definitely working, but it seems slow.. It just took me 5 minutes to get an email on the device.. I'm not sure what's happening there, I'll look into it tomorrow.. at which point I'll also try to remember how I got the damn thing working in the first place so I can maybe help others out.
Right now I'm so tired my eyes are bleeding... I think I'll go to bed.
Click to expand...
Click to collapse
adb remount
adb shell
cd /system/bin
cat sh > su
chmod 04755 su
Should work now.
Hey, SUID'd sh is cheat! It's not real su!
Joushou said:
Hey, SUID'd sh is cheat! It's not real su!
Click to expand...
Click to collapse
Its a step forward
if you don't mind my asking, how did you get the google apps to sync up?

[WIP-Tutorial] Installing AOSP apps in your favorite ROM

Myself and apparently many others like the AOSP apps better than the sense apps. I find the interface for the AOSP messaging, calendar, browser, calculator, and dialer/contacts applications to be more attractive and in some cases more usable. I really liked Bugless Beast 0.4 since it featured these applications, but I have had a hard time with the bug that keeps disk drive from working, and there are various reports of some syncing and battery issues. The EVO-NonSense series has been great too, but I use HDMI out sometimes and like having some of the sense stuff installed. Big thanks to both BuglessPete and tjohnsonjr for their AOSP work.
(7/18/2010) I have attached some of the files I have been using, see descriptions at the bottom of the post.
So since it took a little digging for me to figure out how to do this (even though to advanced users this is easy) I thought it might come in handy for other new users. Additionally I'm hoping by posting this someone can help me figure out how to get the dialer/contacts stuff working, I have the others working fine.
I've done the below on DamageControl, and I think another (baked snack maybe, can't remember). I'll probably throw together an update.zip that can patch these in place later, but I'd rather get the dialer/contacts part figure out first.
Setup:
1. You will need a fully rooted (toast root part 2, NAND unlocked) phone, and adb up and running. There are several explanations for both parts, but the ones listed in the "useful threads" sticky are joeykrim's for adb and toast's part 1 and part 2 for root.
2. I have been using the apk's from BuglessPete's bugless beast 0.4 ROM. The thread for it is available here.
Once you unzip the file, you will find the needed apks in the /system/app folder.
Note: Please donate to pete, he doesn't even have an EVO yet and is doing some great work. Hopefully if he has a phone to work on he can get some of these small bugs squashed and keep the development for BB going.
3. Backup your phone. If you don't know how to reboot into recovery and restore from a nandroid backup, you do not want to do this yet, especially if you want to try help me figure out how to get the dialer running. The idea with the dialer is to try different things until something works. In all likelihood you will hit a point where things are FCing so much you can't do anything. You will almost certainly need to restore from a Nandroid backup at some point.
Important: More than likely anything I list here can't break a phone in a way that a nandroid restore won't fix, but I can not and will not be accountable for any problems with your phone.
Which files:
One nice thing about adding files this way is you can pick and choose what to use. If you like the stock messaging but want the AOSP calendar, you can do just that.
Calculator: Calculator.apk
Calendar: CalendarProvider.apk and Calendar.apk
Default "Navigator" application: CarDock.apk <- you can keep both
Internet: Browser.apk and HTMLViewer.apk <- doesn't show previews of each tab, but allows up to 8 instead of 4. There may be other functionality gained or lost, I dunno.
Clock: DeskClock.apk (can exist beside HTC clock, and can be installed without this procedure)
Messaging (SMS, Text): Mms.apk <- Many people have trouble with this one.
####### Not Working! See post #2 ########
# Phone: Phone.apk, ContactsProvider.apk, Contacts.apk
###################################
To install:
I think you can use adb to do this install with the files still on the computer, but I go ahead and throw all the needed apks onto my sdcard, typically in a folder. Also, if you need to be in the Android SDK's /tools directory to use adb (this depends on your configuration) do that. Connect your phone, and make sure it is in "Charge Only" so the sdcard stays mounted. To make sure adb sees the phone properly issue:
Code:
adb devices
and you should get a return listing the device ID. If so we will mount the /system partition as read-write:
Code:
adb remount
Log into the phones local shell:
Code:
adb shell
you are now on the phones command line and file system, not on your local machine. Now we can start installing files. I'll use Calculator in this example, and I have the apk in a folder on the sdcard called AOSP_apks:
Code:
install /sdcard/AOSP_apks/Calculator.apk /system/app
You can do a couple at a time, and you must do more than one at a time when installing a provider like CalendarProvider.apk and Calendar.apk.
Once you are done, exit the phone's shell, and reboot the phone:
Code:
exit
adb reboot
The change may show up immediately, but the phone and applications aren't designed to change these core functions on the fly, so make sure to reboot the phone. Once it reboots you will probably notice the AOSP icon has replaced the former, and you have the AOSP skin and/or functionality.
Post #2 will deal with progress so far on the dialer/contacts.
(added 7/17) Notes on different apks: The BB Launcher2.apk has his skin on the google search widget, or grab the apk from something else like DC for stock. Launcher.apk from BB is the one with the wide drawer and (I think) 9 screens.
Music.apk from DC is the modded music app from Cyanogen. It has some very nice UI tweaks.
Attached:
- Music.apk used in Cyanogenmod from DC
- Calendar, CalendarProvider, Browser and HTMLViewer from BB 0.4
- CarDock, Calculator, and MMS from AOSP EVO-NonSense
Contacts/Dialer Progress: I'm sure some of the more advanced developers know the answer to this, so ideally someone can fill me in. In the meantime I'll report my findings here, and if others can add feedback to the thread on what they have done, I'll update this post. Hopefully in the long run there will be a straightforward explanation for this I can add to the above post.
I have installed the three files listed above (ContactsProvider.apk, Contacts.apk, and Phone.apk) which seems to install the right bits, but I get FCs.
Later on I added Telephony.apk and FutureDialService.apk, which didn't improve anything. Finally I noticed that Bugless Beast didn't have HTCDialer.apk, so I removed that as well. I think this was the point things went from the dialer and contacts applications FCing to non-stop FCs that kept me from doing anything on the phone.
Attached are the three apps I'm sure are involved for the Contacts/Dialer, pulled from tjohnsonjr's AOSP EVO. More files may be needed, but I'm still trying to figure out which.
The Dialer/Contacts apk used to work, I believe on ROMs that are not based off the newest OTA. Since it worked for me, but stopped once I started using ROMs based of the newest OTA. Anyways great post.
I installed the files and I cant see them. They're in the folders but its like they're hidden from the OS.
I tried to do this before since I love BB but the wake bug in v4 was killing me. I always got install errors. Did you delete the Mms.apk first.. THEN install Mms.apk and reboot? Or did you just install over it? I got errors either way. Also it totally disabled texting on my phone even after reinstalling the HTC Mms.apk.
I had to clean cache/reset then reflash my Nand backup and even then my texting was still broken until I sent one to my wife and then magically I got the 10-15 test "texts" I had sent.
RikusHaven said:
The Dialer/Contacts apk used to work, I believe on ROMs that are not based off the newest OTA. Since it worked for me, but stopped once I started using ROMs based of the newest OTA. Anyways great post.
Click to expand...
Click to collapse
Thanks and thanks. This is interesting. Of course BB is based on the older ROM, so maybe that is why BB works but this doesn't. I'll have to grab an older ROM and try that. It may be an issue of grabbing a newer build of the dialer or something.
warmachine69 said:
I installed the files and I cant see them. They're in the folders but its like they're hidden from the OS.
Click to expand...
Click to collapse
Did it overwrite the existing files? Or do you totally not have whatever you installed, AOSP or sense? Which ROM and version?
MikeBrWade said:
I tried to do this before since I love BB but the wake bug in v4 was killing me. I always got install errors. Did you delete the Mms.apk first.. THEN install Mms.apk and reboot? Or did you just install over it? I got errors either way. Also it totally disabled texting on my phone even after reinstalling the HTC Mms.apk.
I had to clean cache/reset then reflash my Nand backup and even then my texting was still broken until I sent one to my wife and then magically I got the 10-15 test "texts" I had sent.
Click to expand...
Click to collapse
Were you able to successfully do the adb remount first? The way I did it just overwrote the existing Mms.apk.
Also what ROM and version are you running?
laydros said:
Thanks and thanks. This is interesting. Of course BB is based on the older ROM, so maybe that is why BB works but this doesn't. I'll have to grab an older ROM and try that. It may be an issue of grabbing a newer build of the dialer or something.
Did it overwrite the existing files? Or do you totally not have whatever you installed, AOSP or sense? Which ROM and version?
Were you able to successfully do the adb remount first? The way I did it just overwrote the existing Mms.apk.
Also what ROM and version are you running?
Click to expand...
Click to collapse
BBv3 and yes the remount worked.. I am currently in my 84th hour of a long battery duration test so I can't plug it in and try it right now since it will wipe my stats. However it would give some "parse" error and then fail to install. If I forced it by just cp'ing the apk and chmod'ing the exec permissions it would fail horribly.
84th hour of a battery duration test? details please?
MikeBrWade said:
BBv3 and yes the remount worked.. I am currently in my 84th hour of a long battery duration test so I can't plug it in and try it right now since it will wipe my stats. However it would give some "parse" error and then fail to install. If I forced it by just cp'ing the apk and chmod'ing the exec permissions it would fail horribly.
Click to expand...
Click to collapse
Was it something like
Code:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
If so, I had the same error when I didn't have the /system partition fully mounted as read-write. Did you get any errors from the "adb remount" command?
davebu said:
84th hour of a battery duration test? details please?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=7154719&postcount=993
This is my post talking about it.. I am on hour ~91 of the test.. still running with 8% battery left... BBv3 rocks!
laydros said:
Was it something like
Code:
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
If so, I had the same error when I didn't have the /system partition fully mounted as read-write. Did you get any errors from the "adb remount" command?
Click to expand...
Click to collapse
Hmmm maybe I did and didn't notice it.. I am down to 8% right now so by mid day my battery will probably die. I am hoping to make the 100Hr on one charge mark, after that I will try again and note any errors.
MikeBrWade said:
Hmmm maybe I did and didn't notice it.. I am down to 8% right now so by mid day my battery will probably die. I am hoping to make the 100Hr on one charge mark, after that I will try again and note any errors.
Click to expand...
Click to collapse
ok so I just redid your steps and I didn't get the error code this time (maybe my remount didn't work the last time I tried it). But now I get FC everytime I try and launch the text app. I installed over the Htc mms.apk =(
Anyone got an HTC Mms.apk handy they can post so I don't have to restore nand?
If you have the AOSP apps available, could you please post them all in .zip folder in the OP?
MikeBrWade said:
ok so I just redid your steps and I didn't get the error code this time (maybe my remount didn't work the last time I tried it). But now I get FC everytime I try and launch the text app. I installed over the Htc mms.apk =(
Anyone got an HTC Mms.apk handy they can post so I don't have to restore nand?
Click to expand...
Click to collapse
NVM I extracted it from an old nand backup. So, for me at least the Mms.apk from AOSP causes FCs and won't run at all . Put the HTC Mms.apk back and it works fine. =( Urgh any hints?
edited to add the HTC Mms.apk incase someone does what I did and kills it, so they dont' have to go through the process of trying to extract it.
MikeBrWade said:
NVM I extracted it from an old nand backup. So, for me at least the Mms.apk from AOSP causes FCs and won't. Put the HTC Mms.apk back and it works fine. =( Urgh any hints?
edited to add the HTC Mms.apk incase someone does what I did and kills it, so they dont' have to go through the process of trying to extract it.
Click to expand...
Click to collapse
The only issues I've had with the AOSP Mms.apk was the lack of actual mms functionality.
thanks for the apk so I could go back
I[E said:
The only issues I've had with the AOSP Mms.apk was the lack of actual mms functionality.
thanks for the apk so I could go back
Click to expand...
Click to collapse
Interesting that you say that, since I had some MMS texts in my cache. Wondering if when the AOSP version couldn't deal with them so it just FC'ed instead.
So I tried that, deleting ALL my texts so it wouldn't have some MMS collision or something. But that didn't work either, HTC Mms.apk works fine.. the AOSP.apk FC's. Could the OP or something with a working AOSP Mms.apk post it maybe it's my copy. Mine has an MD5 of : 441e3b8863bc3ab88ce6ad9bc1671f22
I have mms messages in my cache too. The AOSP apk shows them fine, just can't send new mms messages. Maybe your file is corrupt?
Sent from my PC36100 using XDA App
I going to upload all the AOSP apks that I include in my ROMs when I get home tonight.
Can you tell us how you got contacts.apk to work? I'm trying with FreshRom and I pulled the Contacts.apk from your Rom and it won't recognize the file when I push it using adbshell. The file is in the app folder but android ignores it.
I[E said:
I have mms messages in my cache too. The AOSP apk shows them fine, just can't send new mms messages. Maybe your file is corrupt?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Does does your md5 match mine?

[FIX][CURE] Stagefright work around. Cures Hulu demon voices! Now with working zip!!!

THERE IS A NEW FLASH PLAYER ON THE MARKET I WOULD RECOMMEND NOT UPDATING UNLESS YOU REALLY WANNA RISK LOSING HULU
-----------------------------------------------------------------------------------------------------------------------------------------------
These fixes are no the actual hulu app or even a change to the hulu app at all. It is a fix which roles back the version of stagefright which just so happens to be the fix for the demon voices.
This may negativity effect Youtube, Pandora, and xm radio.
I MADE AN UPDATE ZIP THAT
I HAVE CONFIRMED WORKING BY donnyevo4g and several others
I have tested it myself
So try it out I need feedback!!
Make a Backup first just flash and your done. (The zip is called Hulufix.zip)
This zip roles back stagefright and fixes demon voices.
****IF THIS WORKS DISREGARD ALL BELOW****
*****MAKE A NANDROID BACK UP BEFORE ANY OF THIS*****
Here are basic instructions for using adb. Thank you rutter9 for the files and how he did it.
1. Unzip the contents into your android-sdk tools folder
2. adb reboot recovery
3. In recovery go to partitions and select mount\system
4. adb remount
5. Than use these adb commands
Code:
adb push libstagefrighthw.so /system/lib/libstagefrighthw.so
adb push libstagefright_omx.so /system/lib/libstagefright_omx.so
adb push libstagefright_color_conversion.so /system/lib/libstagefright_color_conversion.so
adb push libstagefright_avc_common.so /system/lib/libstagefright_avc_common.so
adb push libstagefright_amrnb_common.so /system/lib/libstagefright_amrnb_common.so
adb push libstagefright.so /system/lib/libstagefright.so
6. In partitions menu unmount/system
7. adb reboot
------------------------------------------------------------------------------------------------
The other way for those who don't like or use clockwork recovery. This time i'm giving thanks to JTNiggle (who has done a lot on this thread thanks )
Okay, i'll give this my best shot here, not my fault if your phone burns down your house. As always, nandroid before, during, after and in between.
First, download the attachments from this post. Unzip Hulu Working Stagefright.zip and place it's contents in your sdk tools folder. Also place Hulu.apk and flash-fixed.apk in the sdk tools folder.
Part 1 (If you don't already have hulu app with flash fix)
On ur phone, open Root Explorer, (or whatever file manager you use but Root Explorer is the best) and navigate to /system/app, make sure you have full permissions set and mounted as r/w. Find all the flash apk's, some ROM's have two, some have one. Their actual names vary, so look thoroughly. Just rename them to something like flash.apk.old, this way you can rename them back if something goes wrong.
Now, still in Root Explorer, navigate to /system/lib, make sure you have full permissions set and mounted as r/w. After that, close the explorer and plug your phone into your pc.
Open up a command promt and navigate to your sdk tools folder where you placed the downloaded files.
Run these commands, one at a time, tapping enter after each one.
Code:
adb push flash-fixed.apk /system/app/
adb push Hulu.apk /system/app/
Now, on your phone, go back into Root Explorer, and navigate to /system/app, find the apk's you just pushed. Tap each one and pick install, follow prompts from there to finish the install. Close the explorer when finished.
If you want, at this point, you can try and open up Hulu on your phone, and see how it's running. The video should start playing fine, but you'll have the demon voices, no biggie, we'll fix that in a minute. If the video wont play at all, and you get a message like, not optimized for your device, or not supported on your platform, then Flash did not install properly. Check everything and re-do the above steps until you get video playback on Hulu. I've had to run through it twice to get it to work sometimes.
Part 2 Once you have hulu and you want to fix demon voices
Now, back to the command promt from your sdk tools folder. Run these commands one at a time, tapping enter after each one.
Code:
adb push libstagefright.so /system/lib/
adb push libstagefright_amrnb_common.so /system/lib/
adb push libstagefright_avc_common.so /system/lib/
adb push libstagefright_color_conversion.so /system/lib/
adb push libstagefright_omx.so /system/lib/
adb push libstagefrighthw.so /system/lib/
Now that all the files are in the proper places, you can reboot, so run
Code:
adb reboot
once your phone boots up, it should be good to go. If not,
This may provide mix results. This is a temporary fix
Good Luck
Confirmed working or not working
****THIS IS WITHOUT ANY MODIFICATIONS TO Stagefrght****
Fresh 3.2 NOT WORKING
AVA'S V7 NOT WORKING
CM 6 Final NOT WORKING
Stock pre 3.28 WORKING (only with stock kernel)
Evio 1.2 NOT WORKING
Evio 1.2beta WORKING
Evio 1.1 WORKING
Burnt droid 1.1 WORKING (with 4.1.9.1 netarchy kernel)
Confirmed working after JTNiggle fix
AVA's V7 (with stock kernel and KiNgxKernel #8 #9)
Burnt Droid 1.1
OMJ 3.1
Fresh 3.2
Confirmed working with My fix .zip
Ava's V7
to help/add to list:
fresh 3.2 and final_flash.apk NOT WORKING properly. (audio studder)
Cm6 final + hulu doesn't work either...it has the demon voice and audio is out of sync
Sent from my Htc Evo 4g
I think its more of a kernel issue than a Rom issue. I know it worked on the stock pre 3.28 ota Rom. No luck with the updated stock kernel.....
Now that I find interesting.
Could I see your build props from before and after flashing a custom kernel
Sent from Evo via mysterious entity
Stalte said:
Now that I find interesting.
Could I see your build props from before and after flashing a custom kernel
Sent from Evo via mysterious entity
Click to expand...
Click to collapse
I don't have the before. Deleted. I know it also worked with the stock Rom running kings #6 BFS318-2.6.32.15. I think you'll find all the new roms people are reporting it not working with are using the updated kernel.
Evio 1.2 not working
Working fine with evio 1.2 with bfs #8. Voices fine. Video smooth at 1228mhz.
Edit: that was 1.2beta before the build was changed. Also had it working no problem on evio 1.1.
Sent from my PC36100 using XDA App
burnt droid 1.1
4.1.9.1 netarchy kernel
runs smooth no problems
Also, I believe the actual hulu app has nothing to do with this. Isn't is just a glorified browser to the hulu mobile widget?
I read on flipz site that he attributes it to the new stagefright .....
GadgetMonger said:
I read on flipz site that he attributes it to the new stagefright included in the new kernel.....
Click to expand...
Click to collapse
That's exactly what it is. The problem was already solved by downgrading it. Not really sure what there is to fix in the hulu "app"
rutter9 said:
That's exactly what it is. The problem was already solved by downgrading it. Not really sure what there is to fix in the hulu "app"
Click to expand...
Click to collapse
Question. Can you rollback stagefright without downgrading the kernel? Or is stagefright a component of the new kernel? Hulu working on the new kernel is what I was hoping for....
GadgetMonger said:
Question. Can you rollback stagefright without downgrading the kernel? Or is stagefright a component of the new kernel?
Click to expand...
Click to collapse
Well you can try this. Here are my library files for stagefright. Mount system/lib as r/w through adb. Pull your stagefright lib files (as a backup) then overwrite with the working ones. Then reboot in adb. Worth a shot.
GadgetMonger said:
Question. Can you rollback stagefright without downgrading the kernel? Or is stagefright a component of the new kernel? Hulu working on the new kernel is what I was hoping for....
Click to expand...
Click to collapse
Thats what im trying to fix or at least disable parts of stagefright to make it work
rutter9 said:
Well you can try this. Here are my library files for stagefright. Mount system/lib as r/w through adb. Pull your stagefright lib files (as a backup) then overwrite with the working ones. Then reboot in adb. Worth a shot.
Click to expand...
Click to collapse
I'm in class right now but could someone try this and let me know if it works?
Stalte said:
Thats what im trying to fix or at least disable parts of stagefright to make it work
I'm in class right now but could someone try this and let me know if it works?
Click to expand...
Click to collapse
Right but it has nothing to do with the hulu app. You just need to patch stagefright.
rutter9 said:
Right but it has nothing to do with the hulu app. You just need to patch stagefright.
Click to expand...
Click to collapse
I agree now if I knew how to change the title of the post I would change it to "working on a way to fix stagefright in new kernels and roms"
Stalte said:
Thats what im trying to fix or at least disable parts of stagefright to make it work
I'm in class right now but could someone try this and let me know if it works?
Click to expand...
Click to collapse
Give me a minute... I'll see what I can do.
Stalte said:
Thats what im trying to fix or at least disable parts of stagefright to make it work
I'm in class right now but could someone try this and let me know if it works?
Click to expand...
Click to collapse
I tried to roll back stagefright last night, wouldn't boot up, frozen then looped. But that was flashing the update patch zip. I'll try it manually later today.
This is on Ava v7 with the new HTC kernel.
rutter9 said:
Well you can try this. Here are my library files for stagefright. Mount system/lib as r/w through adb. Pull your stagefright lib files (as a backup) then overwrite with the working ones. Then reboot in adb. Worth a shot.
Click to expand...
Click to collapse
Nope. Froze up at the white HTC screen on boot.

Categories

Resources