[Hero CDMA General] qqaapppp:
Hi all,

I've also posted this on the CyanogenMod forums (can't post the link because I'm a new user), but I think a lot more people read this xda forum than the CM forum.

I'm trying to see if there's a pattern among people who have this problem with CM6 or other Froyo ROMs on Heroc. If you have this problem, it would be great if you could post the following info...

** Edit: 9/21: Information on diagnosing the problem and a temporary workaround **

I've found that this problem can have multiple causes. You can diagnose between them by looking at the log with "adb logcat" after you get the "can't establish a reliable data connection" error. Search for "Checkin failed" and then look at the following line which gives an indication why it failed to connect. I've seen two types of problems, but there may be more.

The first type, indicated by lines like those below, mean that your phone really can't establish a reliable connection to the Google servers. Either you have an intermittent wifi or data connection, there's a problem with your internet connection, or Google is being blocked somehow. In some cases, connections to Google servers have been temporarily blocked in certain countries. These problems will typically fix themselves after some time or if you go somewhere with better a wifi or data signal, etc.

E/CheckinTask( 247): Checkin failed: https://android.clients.google.com/checkin (request #0)
E/CheckinTask( 247): java.net.SocketTimeoutException: Read timed out

E/CheckinTask( 182): Checkin failed: https://android.clients.google.com/checkin (request #0)
E/CheckinTask( 182): java.net.SocketTimeoutException: SSL handshake timed out

E/CheckinTask( 298): Checkin failed: https://android.clients.google.com/checkin (request #0)
E/CheckinTask( 298): java.io.IOException: Rejected response from server: HTTP/1.1 401 bad security token

The second type of error message indicates that there's a problem with your phone's MEID (CDMA) or IMEI (GSM). More than likely, your phone has had its ID number changed to use it on another network in place of an older phone (don't ask about this because it's illegal and against the forum rules). With Android 2.2, it appears that Google are checking for a valid MEID/IMEI before allowing access to some of the Google apps.

E/CheckinTask( 332): Checkin failed: https://android.clients.google.com/checkin (request #0)
E/CheckinTask( 332): java.io.IOException: Rejected response from server: HTTP/1.1 400 invalid hardware identifier: "00000000000000" is not a valid MEID (expect 14 hex digits)

ERROR/CheckinTask(355): Checkin failed: https://android.clients.google.com/checkin (request #0)
ERROR/CheckinTask(355): java.io.IOException: Rejected response from server: HTTP/1.1 400 invalid hardware identifier: invalid IMEI (expect 15 decimal digits)

There is a temporary workaround for this, courtesy of gedster314 on these forums, via tigerbalm on the mobile-files.us forum.

This is to put the phone into airplane mode, reboot, stay in airplane mode but turn on wifi (so that the cellular radio doesn't get turned on), and then login to the Market.

It appears that the MEID/IMEI can only be read when the cellular radio is turned on, so if it's turned off from boot up, the Google apps can't send anything to the servers to be checked.

This fix is not permanent, however, as this checkin and validation happens periodically (I'm guessing every few weeks), and according to reports, it sounds like the Market and some other Google Apps will disappear at this time. To fix this, you will need to have a backup from which you can restore. Reflashing the Google Apps may also work.

******************************

1. Network

2. When did you first install CM6?

3. When did you first experience this problem?

4. Does it happen when you connect over wifi?

5. Does it happen when you connect over 3G?

6. Has the problem gone away, and if so, did it fix itself or how did you fix it?

7. If you're comfortable mentioning it, was your phone was originally on this network, or flashed over from another carrier (e.g. a Sprint phone flashed to work on Alltel)

If you've come to this thread looking for a solution, I don't have one for the Market problem, but it's possible to get GMail, Calendar, Contacts and Picasa to sync by launching the Youtube app and logging in, making sure you enter at gmail.com after your email address. Then go to Settings->Accounts&Sync, select your GMail account, and enable all the items you want to sync.

I'll start

1. STi Mobile

2. 9/19/2010

3. 9/19/2010

4. Yes

5. Don't have data on STi

6. No

7. Originally a Sprint phone, flashed for STi