[G1 Q&A, Help & Troubleshooting] halr9000:
I'm having this really weird issue with my G1. I had been using various versions of CyanogenMod, 4.1.x, and 4.2.x with no problems. Then, all of a sudden, I could no longer upgrade to new CM versions. End result was I got stuck at the TMO logo. Long long series of troubleshooting steps over weeks followed. I eventually realized that the problem wasn't CM at all. Before I even apply CM's stuff, I am applying the signed-dream-devphone ROM that is base 1.6 android. *That* is failing. The very short version is that I see an infinitely repeating crash in adb logcat. It looks like this:

E/System ( 336): Failure starting core service

E/System ( 336): java.lang.NullPointerException

E/System ( 336): at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:1764)

E/System ( 336): at com.android.server.PackageManagerService.<init>(PackageManagerService.java:492)

E/System ( 336): at com.android.server.PackageManagerService.main(PackageManagerService.java:266)

E/System ( 336): at com.android.server.ServerThread.run(SystemServer.java:112)

E/AndroidRuntime( 336): Crash logging skipped, no checkin service

I/SystemServer( 336): Starting Status Bar Service.

D/dalvikvm( 336): GC freed 6861 objects / 453352 bytes in 145ms

E/installd( 53): eof

E/installd( 53): failed to read size

I/installd( 53): closing connection

E/SystemServer( 336): Failure starting StatusBarService

E/SystemServer( 336): java.lang.NullPointerException

E/SystemServer( 336): at com.android.server.status.StatusBarIcon.getIcon(StatusBarIcon.java:143)

E/SystemServer( 336): at com.android.server.status.StatusBarIcon.<init>(StatusBarIcon.java:65)

E/SystemServer( 336): at com.android.server.status.StatusBarService.makeStatusBarView(StatusBarService.java:306)

E/SystemServer( 336): at com.android.server.status.StatusBarService.<init>(StatusBarService.java:237)

E/SystemServer( 336): at com.android.server.ServerThread.run(SystemServer.java:194)

E/AndroidRuntime( 336): Crash logging skipped, no checkin service

I/SystemServer( 336): Starting Clipboard Service.

I/SystemServer( 336): Starting Input Method Service.

E/SystemServer( 336): Failure starting Input Manager Service

E/SystemServer( 336): java.lang.NullPointerException

E/SystemServer( 336): at android.app.ApplicationContext.registerReceiverInternal(ApplicationContext.java:782)

E/SystemServer( 336): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:757)

E/SystemServer( 336): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:751)

E/SystemServer( 336): at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:437)

E/SystemServer( 336): at com.android.server.ServerThread.run(SystemServer.java:209)

E/AndroidRuntime( 336): Crash logging skipped, no checkin service

I/SystemServer( 336): Starting NetStat Service.

I/SystemServer( 336): Starting Connectivity Service.

W/dalvikvm( 336): threadid=27: thread exiting with uncaught exception (group=0x4001da28)

E/AndroidRuntime( 336): Uncaught handler: thread ConnectivityThread exiting due to uncaught exception

E/AndroidRuntime( 336): *** EXCEPTION IN SYSTEM PROCESS. System will crash.

E/AndroidRuntime( 336): java.lang.NullPointerException

E/AndroidRuntime( 336): at android.app.ActivityThread.getProvider(ActivityThread.java:3938)

E/AndroidRuntime( 336): at android.app.ActivityThread.acquireProvider(ActivityThread.java:3967)

E/AndroidRuntime( 336): at android.app.ApplicationContext$ApplicationContentResolver.acquireProvider(Applicati

onContext.java:1514)

E/AndroidRuntime( 336): at android.content.ContentResolver.acquireProvider(ContentResolver.java:579)

E/AndroidRuntime( 336): at android.content.ContentResolver.query(ContentResolver.java:147)

E/AndroidRuntime( 336): at android.provider.Settings$NameValueCache.getString(Settings.java:472)

E/AndroidRuntime( 336): at android.provider.Settings$Secure.getString(Settings.java:1649)

E/AndroidRuntime( 336): at android.provider.Settings$Secure.getInt(Settings.java:1689)

E/AndroidRuntime( 336): at com.android.server.ConnectivityService.getPersistedNetworkPreference(ConnectivitySe

rvice.java:182)

E/AndroidRuntime( 336): at com.android.server.ConnectivityService.<init>(ConnectivityService.java:123)

E/AndroidRuntime( 336): at com.android.server.ConnectivityService.<init>(ConnectivityService.java:47)

E/AndroidRuntime( 336): at com.android.server.ConnectivityService$ConnectivityThread.run(ConnectivityService.j

ava:87)

E/AndroidRuntime( 336): Crash logging skipped, no checkin service

I/Process ( 336): Sending signal. PID: 336 SIG: 9

I/ServiceManager( 45): service 'batteryinfo' died

I/ServiceManager( 45): service 'telephony.registry' died

I/ServiceManager( 45): service 'usagestats' died

I/ServiceManager( 45): service 'netstat' died

I/ServiceManager( 45): service 'SurfaceFlinger' died

I/ServiceManager( 45): service 'entropy' died

I/ServiceManager( 45): service 'power' died

I/ServiceManager( 45): service 'clipboard' died

I/Zygote ( 335): Exit zygote because system server (336) has terminated

D/AndroidRuntime( 351):

D/AndroidRuntime( 351): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<

And then it starts all over.

More interesting data:

- Here is a less abbreviated logcat trying to boot to CM 4.2.12.2 (spam blocker blocked the http portion): halr9000.pastebin.com/f38758ddd

- I can restore to a nandroid backup of CM 4.1.99, works fine.

- I can apply other ROMs just fine, such as:

- JFv1.51_CRB43-ADP

- haykuro_6.0r1-signed

- TheDudesCupcake1.1.full-signed

Anyone have some suggestions? I am pulling out my hair over here!

thanks