[Upgrading, Modifying and Unlocking] gelim:
Hi,

I have got an HTC Legend rooted to 2.1 with HBOOT 1.00 (when I first got it I upgraded to the OTA 2.2 that upgraded HBOOT to 1.00).

Now I would like to uprade to a rooted 2.2 or 2.3 (e.g modaco r4 based on FroYo).

When I do so (clockworkmod + clean data+cache + update modaco.zip) it will loop boot during the boot process on the bootanimation.

I can hook up with adb on it and see via logcat that WindowManager is crashing.

Here is the interesting part I guess :

I/SystemServer( 484): Lights Service
I/SystemServer( 484): Vibrator Service
I/SystemServer( 484): Hardware Service
W/System.err( 484): java.lang.NullPointerException
E/ActivityThread( 484): Failed to find provider info for settings
E/PowerManagerService( 484): failed to query setting db.
E/ActivityThread( 484): Failed to find provider info for settings
W/System.err( 484):	at android.provider.Settings$NameValueCache.getString(Settings.java:648)
W/System.err( 484):	at android.provider.Settings$Secure.getString(Settings.java:2423)
W/System.err( 484):	at android.provider.Settings$Secure.getInt(Settings.java:2463)
W/System.err( 484):	at com.android.server.PowerManagerService.updateSettingsValues(PowerManagerService.java:2707)
W/System.err( 484):	at com.android.server.PowerManagerService.initInThread(PowerManagerService.java:619)
W/System.err( 484):	at com.android.server.PowerManagerService$1.onLooperPrepared(PowerManagerService.java:496)
W/System.err( 484):	at android.os.HandlerThread.run(HandlerThread.java:59)
I/SystemServer( 484): Alarm Manager
I/pthread ( 484): ## thread 495 is creating thread @dalvik/vm/Thread.c:1443
I/pthread ( 484): ## thread 513 is created success
I/SystemServer( 484): Init Watchdog
I/SystemServer( 484): Sensor Service
I/SystemServer( 484): Window Manager
I/pthread ( 484): ## thread 495 is creating thread @dalvik/vm/Thread.c:1443
I/pthread ( 484): ## thread 514 is created success
W/dalvikvm( 484): threadid=17: thread exiting with uncaught exception (group=0x40028a00)
I/Process ( 484): Sending signal. PID: 484 SIG: 9
E/ActivityThread( 484): Failed to find provider info for settings
E/AndroidRuntime( 484): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManager
E/AndroidRuntime( 484): java.lang.NullPointerException
E/AndroidRuntime( 484):	at android.provider.Settings$NameValueCache.getString(Settings.java:648)
E/AndroidRuntime( 484):	at android.provider.Settings$System.getString(Settings.java:777)
E/AndroidRuntime( 484):	at android.provider.Settings$System.getFloat(Settings.java:963)
E/AndroidRuntime( 484):	at com.android.server.WindowManagerService.<init>(WindowManagerService.java:668)
E/AndroidRuntime( 484):	at com.android.server.WindowManagerService.<init>(WindowManagerService.java:143)
E/AndroidRuntime( 484):	at com.android.server.WindowManagerService$WMThread.run(WindowManagerService.java:596)
E/ActivityThread( 484): Failed to find provider info for settings
E/AndroidRuntime( 484): Error reporting crash
E/AndroidRuntime( 484): java.lang.NullPointerException
E/AndroidRuntime( 484):	at android.provider.Settings$NameValueCache.getString(Settings.java:648)
E/AndroidRuntime( 484):	at android.provider.Settings$Secure.getString(Settings.java:2423)
E/AndroidRuntime( 484):	at android.provider.Settings$Secure.getInt(Settings.java:2463)
E/AndroidRuntime( 484):	at com.android.server.am.ActivityManagerService.isEnableHTCErrorReport(ActivityManagerService.java:9672)
E/AndroidRuntime( 484):	at com.android.server.am.ActivityManagerService.addErrorToDropBox(ActivityManagerService.java:9722)
E/AndroidRuntime( 484):	at com.android.server.am.ActivityManagerService.handleApplicationCrash(ActivityManagerService.java:9548)
E/AndroidRuntime( 484):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 484):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
E/AndroidRuntime( 484):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
I/ServiceManager( 61): service 'usagestats' died
I/ServiceManager( 61): service 'telephony.registry' died
I/ServiceManager( 61): service 'batteryinfo' died
I/ServiceManager( 61): service 'SurfaceFlinger' died
I/ServiceManager( 61): service 'entropy' died
I/ServiceManager( 61): service 'power' died
I/ServiceManager( 61): service 'account' died
I/ServiceManager( 61): service 'package' died
I/ServiceManager( 61): service 'meminfo' died
I/ServiceManager( 61): service 'cpuinfo' died
I/ServiceManager( 61): service 'permission' died
I/ServiceManager( 61): service 'activity' died
I/ServiceManager( 61): service 'battery' died
I/ServiceManager( 61): service 'content' died
I/ServiceManager( 61): service 'hardware' died
I/ServiceManager( 61): service 'vibrator' died
I/ServiceManager( 61): service 'htchardware' died
I/ServiceManager( 61): service 'alarm' died
I/ServiceManager( 61): service 'sensor' died
D/HtcBootAnimation( 496): SurfaceFlinger died, exiting...
E/installd( 70): eof
E/installd( 70): failed to read size
I/installd( 70): closing connection
V/MediaPlayerService( 478): Client(1) destructor pid = 496
V/MediaPlayerService( 478): disconnect(1) from pid 496
D/AwesomePlayer( 478): [U5B] reset (382)
D/AwesomePlayer( 478): [U5B] reset_l (388)
V/AudioSink( 478): stop
V/AudioSink( 478): close

For information when rooting my OTA 2.2 I flashed a misc.img with CID=BM___001.

Yhinking it was the reason of the problem I changed it to CID=11111111 but it is still boot looping with the new firmwares.

I always can go back and re-flash the rooted 2.1 by placing it to sdcard and renaming it to LEGEIMG.zip.

Another clues : it is PVT SHIP S-OFF.

Baseband is 47.26.35.04U_7.05.35.26L

ROM is 1.31.405.4

Thanks for anybody that can shed a light on that !