[EVO 4G Android Development] Tilde88:
So, I've noticed a few of you are still having some ghost bugs... A ghost bug is something particular to the user's scenario... Something in which no one [or few] is[are] able to replicate the error. For example, the biggest of them all MMS issues, and wake lock issues (where you press the power button and the whole screen stays lit black...if you touch the screen it wakes). Sometimes also SMS. As well as 4G/WiFi/Launcher lag. There is also GPS issue but that is a bit more complex, because some people get it successfully fixed, and some [like myself] can't get it to work right EVER. I've written responses individualized to certain posts, but I thought I'd make a generalized one.

Wake Lock

So yea, I was suffering for a while with this. I could not figure it out. Fresh install everything was perfect. Reboot = wake lock. So I thought, it's me screwing around with SetCPU and/or governors or some other heavy app as such. Maybe it was cause I was restoring Spare Parts (I like the added functions with the ad-enabled one). So I only restored games and apps and such (no system apps), also I made sure to turn off the Screen On/Off animations (doing an animation should cause some sort of lag @ 245MHz). Pfft still wake locking.

So I backtracked further. No restoration.

Solution. Long story short, the problem starts within the 'Advanced Settings' in the Settings menu. If you disable the Screen Off animation, you WILL get a wake lock. Oddly enough, Screen ON animation has no caliber on the issue. If, like me, you do not want wake lock and do not want Screen Animation when you sleep your phone, then you have to leave the Screen Off animation enabled (with a check-mark). Then open up Spare Parts. Change your Window and Transition animation speeds to fast. This will render the animation useless as the system just overlooks it [so to speak]. Nothing else works.

MMS issues. This also covers MANY issues (not all) with 4G/WiFi/GPS.

When you restore your apps with titanium backup, you need to NOT restore neither the app NOR the data for the following services/programs:

*[CM Settings]Advanced settings 2.3.4(or any version)

*[Bookmarks] Browser 2.3.4(or any version) However, if you are CERTAIN that the backup you have is from an AOSP ROM, feel free to restore it. DO NOT restore from a sense backup.

*[Contacts/Calls]Contacts Storage 2.3.4(or any version) Remember you're contacts are automatically synchronized when you login to Google. And do you really need an everlong list of previous calls?

*[Voicemail] Dialer 2.3.4(or any version)

*[Market] 2.3.6 (or any version)

[SMS/MMS/APN] Dialer Storage 2.3.4(or any version). This is the big daddy Kahuna on MMS problems. Almost every ROM has small differentiations within their MMS.db/SMS.db which if restored onto another ROM (even if it's for example 1.2i to 1.2j) will break certain things within the modules. Only way to fix would be a format + reflash. Alternatively, you can delete the .db files [and others] within /data/data/com.android.providers.telephony/databases. However this will NOT restore the true values intended to go for that ROM in particular. Also, note that Deck has fixed a CDMA mounting problem as of 1.2m [i think that version]. By restoring this, you are restoring a slightly corrupt APNL (access point name list). Ergo, undoing the fix.

*[SMS/MMS Prefs] Messaging 2.3.4(or any version). Same as above.

*Network Location 1.0.0 (or any version). This goes alongside with the CDMA mount notes above. Bad APNs = wrong tower triangulation = not so steady GPS. Also, note how this one is red... Lol. Do not ever backup or restore any reds.

*[Wimax Settings] ORLY@!!? Seriously... Don't.

Also, remember that some themes can break certain things... I always just uninstall anything that says "theme", and just use Launcher Pro Plus to theme my phone within itself. It's safer, and 100% more customizable.

Bad/No GPS

A lot of you may not realize it even, but you're GPS is not working. I always go into Location settings and disable the 'Use wireless networks' [for GPS]. Note, that you still need some sort of data enabled (to fetch the actual maps. Otherwise, you will see a blank page with your position lol.

I won't tell you to use Faster Fix from the market, nor shall I tell you to go download GPS Status and run all the diags [though they certainly do help if you lock but the lock is slow]. I also won't tell you to flash to sense and do ##GPSCLRX#. Because I did all this in CM7 and nothing worked. I tried any and all combos imaginable. And I'm sure if you're GPS isn't working you've already tried that. What I will tell you is about toaschf's GoDm0dE kernel. As of now it's at ver. 8. Here's the thread with all the info and links. Until this kernel, all the coding for GPS was hacked into the kernel since HTC coders are -well let's say they have their own category. Only HTC could've understood what the hell all their little tidbits and crap was in their source. Well, toastchf gave us a little gift with his latest kernel. All the sensors fixed (light, proximity, GPS). Do it, it'll work.

If you are coming from CM7 or MIUI (or anything based on them[yea i know MIUI not open sourced])... You MUST format all! Point period! No explanation given because that is the absolute MUST-DO thing.

Also, please listen to Deck when he asks us to use the issue tracker. It really is for us, not him. He can't replicate all the things that may or may not happen to our individualized ROM. And he can't read through every post searching for errors.

It is found here : http://issues.dev-host.org/. Remember to pay special attention to what he says there: "When posting any issues you may find in gingerbread-deck, please include the Rom version, version of Gapps used, and possibly a logcat. Thanks!"

For those having 4G issues even after doing the things above, only a logcat can tell him exactly why/where the problem is.

Honestly, this goes for all ROMs, but Decks' own all so I only contribute here.

I highly recommend you check out this thread. It's a thread I opened showing the work of another developer for the Droid (milestone). It's a script to boost your whole system, and it rocks!