[HTC Wildfire S] benjamingwynn:
Caffeine + Reading through logcat =

solution?

(if you are using your phone to read this, it looks better in browser)

Mastering the power of all the caffeine in my body and focusing it to my brain is very difficult, however, using this I have uncovered whats causing failures...

Now, if we look at logcat we see

D/dalvikvm( 80): DexOpt: --- BEGIN 'filterfw.jar' (bootstrap=1) ---

D/dalvikvm( 140): DexOpt: load 39ms, verify+opt 268ms

D/dalvikvm( 80): DexOpt: --- END 'filterfw.jar' (success) ---

D/dalvikvm( 80): DEX prep '/system/framework/filterfw.jar': unzip in 64ms, rewrite 478ms

W/dalvikvm( 80): No implementation found for native Landroid/content/res/AssetManager;.setConfigurationForHtc (IILjava/lang/String;IIIIIIIIIIIIIII)V

W/dalvikvm( 80): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/database/sqlite/SQLiteDatabase;

E/SqliteDatabaseCpp( 80): Can't find SQLiteDatabase.mNativeHandle

E/AndroidRuntime( 80): Unable to register all android natives

I/ServiceManager( 74): service 'media.audio_flinger' died

I/ServiceManager( 74): service 'media.player' died

I/ServiceManager( 74): service 'media.camera' died

I/ServiceManager( 74): service 'media.audio_policy' died

If we brake this down we can see that

DexOpt: --- BEGIN 'filterfw.jar' (bootstrap=1) ---

D/dalvikvm( 140): DexOpt: load 39ms, verify+opt 268ms

D/dalvikvm( 80): DexOpt: --- END 'filterfw.jar' (success) ---

D/dalvikvm( 80): DEX prep '/system/framework/filterfw.jar': unzip in 64ms, rewrite 478ms

is not important, because it simply tells us something started and finished. Now if we look at:

W/dalvikvm( 80): No implementation found for native Landroid/content/res/AssetManager;.setConfigurationForHtc (IILjava/lang/String;IIIIIIIIIIIIIII)V

W/dalvikvm( 80): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/database/sqlite/SQLiteDatabase;

E/SqliteDatabaseCpp( 80): Can't find SQLiteDatabase.mNativeHandle

E/AndroidRuntime( 80): Unable to register all android natives

we see that this is some stuff failing - if we expand this we can see that what its saying is that it cant find something needed - now if we look at what a certain line says it becomes a lot more clear

W/dalvikvm( 80): No implementation found for native Landroid/content/res/AssetManager;.setConfigurationForHtc (IILjava/lang/String;IIIIIIIIIIIIIII)V

although most (including myself) will be like wtf when they see this, a dev will notice what it is actually saying

W/..........dalvikvm..................( 80):.............. No implementation found for native Landroid/content/res/AssetManager....

roughly translates as

Warning/ Dalvik Virtual Machine (not important): A native file, AssertManager isn't being handled correctly. It's a smali file located in "Landroid/content/res/" of some framework

Now, if we look at the the next line:

W/dalvikvm( 80): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/database/sqlite/SQLiteDatabase;

We can see that SQLiteDatabase is the thing trying to handle it.

Now, Here's where both Google and what fails comes in handy, the line explained before isn't so important.... If we Google what AssetManager is we find that it is an

Audio file

This also links in with what fails to cause the bootloop:

I/ServiceManager( 74): service 'media.audio_flinger' died
I/ServiceManager( 74): service 'media.player' died
I/ServiceManager( 74): service 'media.camera' died
I/ServiceManager( 74): service 'media.audio_policy' died

as you can see many

audio and media

related things fail - now - if we look into earlier lines in the logcat we can see what could actually case this:

I/HTC Acoustic( 81): acoustic table version: MAL_WB_20110217

I/HTC Acoustic( 81): read_audio_para_from_file success.

E/HTC Acoustic( 81): Fail to open /system/etc/AudioPara_VODA-Spain.csv -1.

I/HTC Acoustic( 81): open /system/etc/AudioPara4.csv success.

I/HTC Acoustic( 81): acoustic table version: MAL_Gerenic_20110509

I/HTC Acoustic( 81): read_audio_para_from_file success.

I/HTC Acoustic( 81): get_audpp_filter

I/HTC Acoustic( 81): open /system/etc/AudioFilter.csv success.

I/HTC Acoustic( 81): MBADRC Filter MBADRC FLAG = ffff.

E/HTC Acoustic( 81): set mbadrc filter error.

I/HTC Acoustic( 81): failed to set audpp parameters, exiting.

I/HTC Acoustic( 81): get_audpre_filter

I/HTC Acoustic( 81): open /system/etc/AudioPreProcess.csv success

...

E/HAL ( 81): load: module=/system/lib/hw/camera.marvel.so

E/HAL ( 81): Cannot load library: link_image[1965]: 81 could not load needed library 'libcamera.so' for 'camera.marvel.so' (reloc_library[1314]: 81 cannot locate '_debug_pthread_create'...

E/HAL ( 81): )

E/CameraService( 81): Could not load camera HAL module

I/AudioFlinger( 81): AudioFlinger's thread 0x16fe0 ready to run

W/AudioFlinger( 81): Thread AudioOut_1 cannot connect to the power manager service

V/AudioHardwareMSM72XX( 81): AudioStreamOutMSM72xx::setParameters() routing=2

V/AudioHardwareMSM72XX( 81): set output routing 2

I/AudioHardwareMSM72XX( 81): Routing audio to Speakerphone

V/AudioHardwareMSM72XX( 81): doAudioRouteOrMute() device 1, mMode 0, mMicMute 1

D/AudioHardwareMSM72XX( 81): setVoiceVolume(1.000000)

I/AudioHardwareMSM72XX( 81): Setting in-call volume to 5 (available range is 0 to 5)

I/AudioPolicyService( 81): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)

And later even re-bootloops directly after audio failure

I/AudioPolicyService( 146): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)

W/dalvikvm( 144): No implementation found for native Landroid/content/res/AssetManager;.setConfigurationForHtc (IILjava/lang/String;IIIIIIIIIIIIIII)V

W/dalvikvm( 144): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/database/sqlite/SQLiteDatabase;

E/SqliteDatabaseCpp( 144): Can't find SQLiteDatabase.mNativeHandle

E/AndroidRuntime( 144): Unable to register all android natives

I/ServiceManager( 74): service 'media.audio_flinger' died

I/ServiceManager( 74): service 'media.player' died

I/ServiceManager( 74): service 'media.camera' died

I/ServiceManager( 74): service 'media.audio_policy' died