[One (M7) Android Development] Chezbel:
[MENTION=1184673]LorD ClockaN[/MENTION] I just built, but the UI crashes. It's not a bootloop, the screen is just black.

I cherry-picked these 3 changes

4209, 4211, 4212

I didn't do a clean build so I will try that next, but because I still haven't bought an SSD it will take a while. I may not be able to report back tonight... we'll see.

Here's a logcat, just for the record

I/SystemServer( 8991): Entropy Mixer

I/EntropyMixer( 8991): Writing entropy...

I/SystemServer( 8991): User Service

I/SystemServer( 8991): Account Manager

I/SystemServer( 8991): Content Manager

I/SystemServer( 8991): System Content Providers

E/System ( 8991): ******************************************

E/System ( 8991): ************ Failure starting core service

E/System ( 8991): java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: android.database.sqlite.SQLiteException: Can't downgrade database from version 99 to 98

E/System ( 8991):	at android.app.ActivityThread.installProvider(ActivityThread.java:4864)

E/System ( 8991):	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4456)

E/System ( 8991):	at android.app.ActivityThread.installSystemProviders(ActivityThread.java:5016)

E/System ( 8991):	at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:8138)

E/System ( 8991):	at com.android.server.ServerThread.initAndLoop(SystemServer.java:293)

E/System ( 8991):	at com.android.server.SystemServer.main(SystemServer.java:1250)

E/System ( 8991):	at java.lang.reflect.Method.invokeNative(Native Method)

E/System ( 8991):	at java.lang.reflect.Method.invoke(Method.java:515)

E/System ( 8991):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

E/System ( 8991):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)

E/System ( 8991):	at dalvik.system.NativeStart.main(Native Method)

E/System ( 8991): Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 99 to 98

E/System ( 8991):	at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)

E/System ( 8991):	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)

E/System ( 8991):	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)

E/System ( 8991):	at com.android.providers.settings.SettingsProvider.establishDbTracking(SettingsProvider.java:405)

E/System ( 8991):	at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:343)

E/System ( 8991):	at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)

E/System ( 8991):	at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)

E/System ( 8991):	at android.app.ActivityThread.installProvider(ActivityThread.java:4861)

E/System ( 8991):	... 10 more

I/SystemServer( 8991): Input Method Service

W/InputMethodManagerService( 8991): Couldn't create dir.: /data/system/inputmethod

D/ActivityThread( 8991): Loading provider settings: com.android.providers.settings.SettingsProvider

W/SystemServer( 8991): ***********************************************

F/SystemServer( 8991): BOOT FAILURE starting Input Manager Service

F/SystemServer( 8991): java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: android.database.sqlite.SQLiteException: Can't downgrade database from version 99 to 98

F/SystemServer( 8991):	at android.app.ActivityThread.installProvider(ActivityThread.java:4864)

F/SystemServer( 8991):	at android.app.ActivityThread.acquireProvider(ActivityThread.java:4497)

F/SystemServer( 8991):	at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:2219)

F/SystemServer( 8991):	at android.content.ContentResolver.acquireProvider(ContentResolver.java:1409)

F/SystemServer( 8991):	at android.provider.Settings$NameValueCache.lazyGetProvider(Settings.java:900)

F/SystemServer( 8991):	at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:947)

F/SystemServer( 8991):	at android.provider.Settings$Secure.getStringForUser(Settings.java:4381)

F/SystemServer( 8991):	at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getSelectedInputMethod(InputMethodUtils.java:922)

F/SystemServer( 8991):	at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:692)

F/SystemServer( 8991):	at com.android.server.ServerThread.initAndLoop(SystemServer.java:388)

F/SystemServer( 8991):	at com.android.server.SystemServer.main(SystemServer.java:1250)

F/SystemServer( 8991):	at java.lang.reflect.Method.invokeNative(Native Method)

F/SystemServer( 8991):	at java.lang.reflect.Method.invoke(Method.java:515)

F/SystemServer( 8991):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

F/SystemServer( 8991):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)

F/SystemServer( 8991):	at dalvik.system.NativeStart.main(Native Method)

F/SystemServer( 8991): Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 99 to 98

F/SystemServer( 8991):	at android.database.sqlite.SQLiteOpenHelper.onDowngrade(SQLiteOpenHelper.java:361)

F/SystemServer( 8991):	at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:255)

F/SystemServer( 8991):	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)

F/SystemServer( 8991):	at com.android.providers.settings.SettingsProvider.establishDbTracking(SettingsProvider.java:405)

F/SystemServer( 8991):	at com.android.providers.settings.SettingsProvider.onCreate(SettingsProvider.java:343)

F/SystemServer( 8991):	at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)

F/SystemServer( 8991):	at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)

F/SystemServer( 8991):	at android.app.ActivityThread.installProvider(ActivityThread.java:4861)

F/SystemServer( 8991):	... 15 more

I/SystemServer( 8991): Accessibility Manager

F/SystemServer( 8991): BOOT FAILURE making display ready

F/SystemServer( 8991): java.lang.NullPointerException

F/SystemServer( 8991):	at com.android.server.ServerThread.initAndLoop(SystemServer.java:405)

F/SystemServer( 8991):	at com.android.server.SystemServer.main(SystemServer.java:1250)

F/SystemServer( 8991):	at java.lang.reflect.Method.invokeNative(Native Method)

F/SystemServer( 8991):	at java.lang.reflect.Method.invoke(Method.java:515)

F/SystemServer( 8991):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

F/SystemServer( 8991):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)

F/SystemServer( 8991):	at dalvik.system.NativeStart.main(Native Method)

W/SystemServer( 8991): ***********************************************

D/AndroidRuntime( 8991): Shutting down VM

W/dalvikvm( 8991): threadid=1: thread exiting with uncaught exception (group=0x4155f698)

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

V/MIK ( 8991): Finished in 22 ms

E/AndroidRuntime( 8991): *** FATAL EXCEPTION IN SYSTEM PROCESS: main

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

E/AndroidRuntime( 8991):	at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:5147)

E/AndroidRuntime( 8991):	at com.android.server.ServerThread.initAndLoop(SystemServer.java:417)

E/AndroidRuntime( 8991):	at com.android.server.SystemServer.main(SystemServer.java:1250)

E/AndroidRuntime( 8991):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 8991):	at java.lang.reflect.Method.invoke(Method.java:515)

E/AndroidRuntime( 8991):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

E/AndroidRuntime( 8991):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)

E/AndroidRuntime( 8991):	at dalvik.system.NativeStart.main(Native Method)

I/ServiceManager( 194): service 'sensorservice' died

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

W/AudioFlinger( 8700): power manager service died !!!

W/AudioFlinger( 8700): power manager service died !!!

I/ServiceManager( 194): service 'batterystats' died

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

I/ServiceManager( 194): service 'appops' died

I/ServiceManager( 194): service 'display' died

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

I/ServiceManager( 194): service 'scheduling_policy' died

I/ServiceManager( 194): service 'accessibility' died

I/ServiceManager( 194): service 'package' died

I/ServiceManager( 194): service 'activity' died

I/ServiceManager( 194): service 'procstats' died

I/ServiceManager( 194): service 'meminfo' died

I/ServiceManager( 194): service 'gfxinfo' died

I/ServiceManager( 194): service 'dbinfo' died

I/ServiceManager( 194): service 'cpuinfo' died

I/ServiceManager( 194): service 'permission' died

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

I/ServiceManager( 194): service 'user' died

I/ServiceManager( 194): service 'account' died

I/ServiceManager( 194): service 'content' died

E/installd( 207): eof

E/installd( 207): failed to read transaction id

I/installd( 207): closing connection

I/Zygote ( 8698): Exit zygote because system server (8991) has terminated

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

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

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

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

I/Netd ( 9133): Netd 1.0 starting

I/mediaserver( 9134): ServiceManager: 0x2a00b508

I/AudioFlinger( 9134): Using default 3000 mSec as standby time.

E/MediaPlayerFactory( 9134): calling dlopen on FACTORY_LIB

E/MediaPlayerFactory( 9134): Failed to open FACTORY_LIB Error : dlopen failed: library "libdashplayer.so" not found

I/CameraService( 9134): CameraService started (pid=9134)

I/CameraService( 9134): Loaded "M7 Camera Wrapper" camera module

I/AudioPolicyManagerBase( 9134): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf

D/ALSADevice( 9134): ALSA module opened

D/AudioHardwareALSA( 9134): AudioHardware: DLOPEN successful for ACDBLOADER

I/ALSADevice( 9134): void android_audio_legacy::ALSADevice::setACDBHandle(void*) ACDB_handle: 0xb627ca48

D/alsa_ucm( 9134): Single config file format detected

D/AudioHardwareALSA( 9134): AudioHardware: DLOPEN successful for CSD CLIENT

E/AudioHardwareALSA( 9134): csd_client_init is NULL

I/ALSADevice( 9134): void android_audio_legacy::ALSADevice::setCsdHandle(void*) csd_handle: 0xb627cdb4

I/AudioHardwareALSA( 9134): ucm instance opened: 704733464

D/AudioHardwareALSA( 9134): Fluence dualmic feature Enabled

I/AudioFlinger( 9134): loadHwModule() Loaded primary audio interface from QCOM Audio HW HAL (audio) handle 1

D/AudioHardwareALSA( 9134): useCase HiFi

D/ALSADevice( 9134): route: devices 0x2 in mode 0

D/ALSADevice( 9134): No valid input device: 0

D/alsa_ucm( 9134): snd_use_case_set(): uc_mgr 0x2a016118 identifier _enadev value Speaker

E/alsa_ucm( 9134): Invalid verb_index -1

E/alsa_ucm( 9134): No valid device Speaker found

D/ALSADevice( 9134): switchDevice: mCurTxUCMDevivce None mCurRxDevDevice Speaker

E/tfa9887 ( 9134): Timed out waiting for tfa9887 to become ready

E/tfa9887 ( 9134): tfa9887 MTP still busy

E/tfa9887 ( 9134): Failed to initialize tfa9887R, DSP not enabled

D/alsa_ucm( 9134): snd_use_case_set(): uc_mgr 0x2a016118 identifier _verb value HiFi

D/alsa_ucm( 9134): Set mixer controls for Speaker enable 1

D/alsa_ucm( 9134): acdb_id 15 cap 1 enable 1

D/alsa_ucm( 9134): Set mixer controls for HiFiSpeaker enable 1

D/alsa_ucm( 9134): Setting mixer control: MI2S_RX Audio Mixer MultiMedia1, value: 1

E/AudioUtil( 9134): failed to open audio_caps

D/ALSADevice( 9134): HDMI channel count: Two

D/ALSADevice( 9134): setMixerControl:: name HDMI_RX Channels value Two

E/ALSADevice( 9134): Could not get the mixer control

D/ALSADevice( 9134): close: handle 0x2a03d6d0 h 0x0

D/ALSADevice( 9134): open: handle 0x2a03d6d0, format 0x2

D/ALSADevice( 9134): Device value returned is hw:0,0

D/ALSADevice( 9134): handle->format: 0x2

D/ALSADevice( 9134): setHardwareParams: reqBuffSize 2048 channels 2 sampleRate 48000

D/AndroidRuntime( 9132):

D/AndroidRuntime( 9132): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

D/ALSADevice( 9134): setHardwareParams: buffer_size 16384, period_size 2048, period_cnt 8

I/AudioFlinger( 9134): HAL output buffer size 512 frames, normal mix buffer size 1024 frames

D/AndroidRuntime( 9132): CheckJNI is OFF

I/AudioMixer( 9134): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project

E/MonoPipe( 9134): Failed to fetch local time frequency when constructing a MonoPipe (res = -32). getNextWriteTimestamp calls will be non-functional

D/dalvikvm( 9132): Trying to load lib libjavacore.so 0x0

D/dalvikvm( 9132): Added shared lib libjavacore.so 0x0

D/dalvikvm( 9132): Trying to load lib libnativehelper.so 0x0

D/dalvikvm( 9132): Added shared lib libnativehelper.so 0x0

D/dalvikvm( 9132): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init