[Xperia Z1 Original Android Development] mwheeler:
I played around a little trying to get sensors to work. Looks like the sensor HAL has changed from 4.4 to 5.0 and the binary blobs for sensors.qcom don't support it. (https://android.googlesource.com/platform/frameworks/native/+/6c2664a^!/) I tried a few sensors.qcom from the S4 but it seems widely different to the Z1. I suspect the camera is also failing because of this. Still unsure about the mobile data. This is my first little dip into android dev so no idea, this may all be a red herring.

---------- Post added at 10:28 PM ---------- Previous post was at 10:23 PM ----------

logcat of youtube play attempt. I'm guessing it's missing video decoders

D/MediaPlayer( 2355): Couldn't open file on client side, trying server side

D/audio_hw_primary( 6578): select_devices: out_snd_device(2: speaker) in_snd_device(0: none)

D/audio_hw_primary( 6578): enable_snd_device: snd_device(2: speaker)

I/AwesomePlayer( 6578): setDataSource_l(https://<suppressed>)

D/audio_hw_primary( 6578): enable_audio_route: apply and update mixer path: low-latency-playback

W/YouTube ( 2355): (unknown) CsiAction [apw] already ticked pl_s. Ignored.

W/YouTube ( 2355): (unknown) CsiAction [apw] already ticked mpl_s. Ignored.

E/WVMExtractor( 6578): Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/QC_EVRCENC( 6578): component init: role = OMX.qcom.audio.encoder.evrc

I/QC_EVRCENC( 6578): component init: role = OMX.qcom.audio.encoder.evrc

I/QC_EVRCENC( 6578):

I/QC_EVRCENC( 6578): component_init: Component OMX.qcom.audio.encoder.evrc LOADED

I/QC_EVRCENC( 6578): Driver in Non Tunnel mode open

E/QC_EVRCENC( 6578): unknown param 0600000f

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/QC_EVRCENC( 6578): unknown param 06000001

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

I/QC_EVRCENC( 6578): Returning the state 1

I/QC_EVRCENC( 6578): Returning the state 1

I/QC_EVRCENC( 6578): Component-deinit being processed

I/QC_EVRCENC( 6578): ********************************

I/QC_EVRCENC( 6578): STATS: in-buf-len[0]out-buf-len[0] tot-pb-time[0]

I/QC_EVRCENC( 6578): STATS: fbd-cnt[0]ftb-cnt[0]etb-cnt[0]ebd-cnt[0]

I/QC_EVRCENC( 6578): ************************************

I/QC_EVRCENC( 6578): DEINIT COMPLETED

I/QC_EVRCENC( 6578): ************************************

E/QC_EVRCENC( 6578): component_deinit:COMPONENT DEINIT...

E/QC_EVRCENC( 6578): EVRC Object getting destroyed comp-deinit=1

E/QC_EVRCENC( 6578): OMX EVRC component destroyed

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/QC_QCELP13ENC( 6578): component init: role = OMX.qcom.audio.encoder.qcelp13

I/QC_QCELP13ENC( 6578): component init: role = OMX.qcom.audio.encoder.qcelp13

I/QC_QCELP13ENC( 6578):

I/QC_QCELP13ENC( 6578): component_init: Component OMX.qcom.audio.encoder.qcelp13 LOADED

I/QC_QCELP13ENC( 6578): Driver in Non Tunnel mode open

E/QC_QCELP13ENC( 6578): unknown param 0600000f

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/QC_QCELP13ENC( 6578): unknown param 06000001

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

I/QC_QCELP13ENC( 6578): Returning the state 1

I/QC_QCELP13ENC( 6578): Returning the state 1

I/QC_QCELP13ENC( 6578): Component-deinit being processed

I/QC_QCELP13ENC( 6578): ********************************

I/QC_QCELP13ENC( 6578): STATS: in-buf-len[0]out-buf-len[0] tot-pb-time[0]

I/QC_QCELP13ENC( 6578): STATS: fbd-cnt[0]ftb-cnt[0]etb-cnt[0]ebd-cnt[0]

I/QC_QCELP13ENC( 6578): ************************************

I/QC_QCELP13ENC( 6578): DEINIT COMPLETED

I/QC_QCELP13ENC( 6578): ************************************

E/QC_QCELP13ENC( 6578): component_deinit:COMPONENT DEINIT...

E/QC_QCELP13ENC( 6578): QCELP13 Object getting destroyed comp-deinit=1

E/QC_QCELP13ENC( 6578): OMX QCELP13 component destroyed

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.encoder.avc'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.encoder.mpeg4'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.encoder.h263'

I/SoftAVCEncoder( 6578): Construct SoftAVCEncoder

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000100e

W/ACodec ( 6578): do not know color format 0x7f000789 = 2130708361

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000100e

I/SoftMPEG4Encoder( 6578): Construct SoftMPEG4Encoder

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000100e

W/ACodec ( 6578): do not know color format 0x7f000789 = 2130708361

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000100e

I/SoftMPEG4Encoder( 6578): Construct SoftMPEG4Encoder

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000100e

W/ACodec ( 6578): do not know color format 0x7f000789 = 2130708361

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000101a

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000101a

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.audio.decoder.Qcelp13'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.audio.decoder.evrc'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.avc'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.mpeg4'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.h263'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.divx'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.divx311'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.divx4'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.qcom.video.decoder.vp8'

E/OMX ( 6578): FAILED to allocate omx component 'OMX.ittiam.video.decoder.hevc'

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): OMX_GetExtensionIndex OMX.google.android.index.storeMetaDataInBuffers failed

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): OMX_GetExtensionIndex OMX.google.android.index.storeMetaDataInBuffers failed

E/OMXNodeInstance( 6578): getParameter(100663311) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): getParameter(100663297) ERROR: 0x8000100e

E/OMXNodeInstance( 6578): OMX_GetExtensionIndex OMX.google.android.index.storeMetaDataInBuffers failed

E/OMX ( 6578): FAILED to allocate omx component 'OMX.google.vpx.decoder'

I/OMXCodec( 6578): [OMX.google.h264.decoder] AVC profile = 66 (Baseline), level = 13

I/OMXCodec( 6578): [OMX.google.h264.decoder] video dimensions are 352 x 264

I/OMXCodec( 6578): [OMX.google.h264.decoder] Crop rect is 352 x 264 @ (0, 0)

W/thermanager( 6703): failed to attach resource "temp-emmc" [msm-adc], ignoring

W/thermanager( 6703): failed to attach resource "temp-batt" [msm-adc], ignoring

E/thermanager( 6703): failed to create configuration with sensor "temp-emmc"

E/thermanager( 6703): failed to parse configuration sections

D/audio_hw_primary( 6578): disable_audio_route: reset and update mixer path: low-latency-playback

D/audio_hw_primary( 6578): disable_snd_device: snd_device(2: speaker)

E/MediaPlayer( 2355): Should have subtitle controller already set

I/OMXCodec( 6578): [OMX.google.h264.decoder] video dimensions are 352 x 272

I/OMXCodec( 6578): [OMX.google.h264.decoder] Crop rect is 352 x 264 @ (0, 0)

I/SoftAAC2( 6578): limiting to stereo output

I/SoftAAC2( 6578): Reconfiguring decoder: 0->44100 Hz, 0->2 channels

I/AwesomePlayer( 6578): we're much too late (3.40 secs), video skipping ahead

D/audio_hw_primary( 6578): select_devices: out_snd_device(2: speaker) in_snd_device(0: none)

D/audio_hw_primary( 6578): enable_snd_device: snd_device(2: speaker)

D/audio_hw_primary( 6578): enable_audio_route: apply and update mixer path: low-latency-playback

F/SoftwareRenderer( 6578): frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp:68 CHECK(format->findInt32("stride", &widthNew)) failed.

F/libc ( 6578): Fatal signal 6 (SIGABRT), code -6 in tid 6651 (TimedEventQueue)

I/DEBUG ( 286): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 286): Build fingerprint: 'Sony/aosp_c6903/honami:5.0/LRX21M/krabappel254811121559:userdebug/test-keys'

I/DEBUG ( 286): Revision: '0'

I/DEBUG ( 286): ABI: 'arm'

I/DEBUG ( 286): pid: 6578, tid: 6651, name: TimedEventQueue >>> /system/bin/mediaserver <<<

I/DEBUG ( 286): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

W/NativeCrashListener( 575): Couldn't find ProcessRecord for pid 6578

I/DEBUG ( 286): Abort message: 'frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp:68 CHECK(format->findInt32("stride", &widthNew)) failed.'

E/DEBUG ( 286): AM write failure (32 / Broken pipe)

I/DEBUG ( 286): r0 00000000 r1 000019fb r2 00000006 r3 00000000

I/DEBUG ( 286): r4 b4601db8 r5 00000006 r6 00000000 r7 0000010c

I/DEBUG ( 286): r8 b440ef88 r9 b4a2f020 sl 00000000 fp b4a1c260

I/DEBUG ( 286): ip 000019fb sp b4601668 lr b6ea8af9 pc b6ecc28c cpsr 600f0010

I/DEBUG ( 286):

I/DEBUG ( 286): backtrace:

I/DEBUG ( 286): #00 pc 0003a28c /system/lib/libc.so (tgkill+12)

I/DEBUG ( 286): #01 pc 00016af5 /system/lib/libc.so (pthread_kill+52)

I/DEBUG ( 286): #02 pc 00017707 /system/lib/libc.so (raise+10)

I/DEBUG ( 286): #03 pc 00013f75 /system/lib/libc.so (__libc_android_abort+36)

I/DEBUG ( 286): #04 pc 00012a3c /system/lib/libc.so (abort+4)

I/DEBUG ( 286): #05 pc 00007a59 /system/lib/libcutils.so (__android_log_assert+88)

I/DEBUG ( 286): #06 pc 0009f0bb /system/lib/libstagefright.so (android::SoftwareRenderer::resetFormatIfChanged(android::sp<android::AMessage> const&)+74)

I/DEBUG ( 286): #07 pc 0009f5b5 /system/lib/libstagefright.so (android::SoftwareRenderer::render(void const*, unsigned int, long long, void*, android::sp<android::AMessage> const&)+12)

I/DEBUG ( 286): #08 pc 0006705f /system/lib/libstagefright.so

I/DEBUG ( 286): #09 pc 0006830f /system/lib/libstagefright.so (android::AwesomePlayer::onVideoEvent()+1054)

I/DEBUG ( 286): #10 pc 00066385 /system/lib/libstagefright.so

I/DEBUG ( 286): #11 pc 0009a38b /system/lib/libstagefright.so (android::TimedEventQueue::threadEntry()+354)

I/DEBUG ( 286): #12 pc 0009a3d9 /system/lib/libstagefright.so (android::TimedEventQueue::ThreadWrapper(void*)+16)

I/DEBUG ( 286): #13 pc 000162e3 /system/lib/libc.so (__pthread_start(void*)+30)

I/DEBUG ( 286): #14 pc 000142d3 /system/lib/libc.so (__start_thread+6)

I/DEBUG ( 286):

I/DEBUG ( 286): Tombstone written to: /data/tombstones/tombstone_03

W/AudioFlinger( 6578): write blocked for 515 msecs, 1 delayed writes, thread 0xb5a4d000

I/BootReceiver( 575): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)

E/SharedPreferencesImpl( 575): Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml

I/ServiceManager( 214): service 'media.sound_trigger_hw' died

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

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

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

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

W/AudioSystem( 575): AudioFlinger server died!

W/AudioSystem( 575): AudioPolicyService server died!

W/AudioSystem( 2355): AudioFlinger server died!

W/IMediaDeathNotifier( 2355): media server died

E/MediaPlayer( 2355): error (100, 0)

E/MediaPlayer( 2355): Error (100,0)

W/YouTube ( 2355): (unknown) MediaPlayer error during playback [what=100, extra=0]

E/AudioService( 575): Media server died.

W/YouTube ( 2355): (unknown) Retrying MediaPlayer error [retry=1, max=3]

I/ServiceManager( 2355): Waiting for service media.audio_flinger...

I/mediaserver( 6709): ServiceManager: 0xb61500c0

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

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

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

I/AudioPolicyService( 6709): AudioPolicyService CSTOR in new mode

I/AudioPolicyManager( 6709): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf

D/audio_hw_primary( 6709): adev_open: enter

D/msm8974_platform( 6709): platform_init: snd_card_name: msm8974-taiko-mtp-snd-card

E/AudioService( 575): Media server started.

D/msm8974_platform( 6709): platform_init: Opened sound card:0

E/msm8974_platform( 6709): platform_init: DLOPEN failed for libacdbloader.so

D/platform_info( 6709): platform_info_init: Failed to open /system/etc/audio_platform_info.xml, using defaults.

E/ext_speaker( 6709): open_speaker_bundle: DLOPEN failed for /system/lib/soundfx/libspeakerbundle.so

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

I/AudioFlinger( 6709): HAL output buffer size 240 frames, normal sink buffer size 960 frames

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

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

I/AudioFlinger( 6709): Using module 1 has the primary audio interface

I/AudioFlinger( 6709): AudioFlinger's thread 0xb5b4d000 ready to run

D/audio_hw_primary( 6709): out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2

I/AudioFlinger( 6709): HAL output buffer size 960 frames, normal sink buffer size 960 frames

I/AudioFlinger( 6709): AudioFlinger's thread 0xb5501000 ready to run

D/audio_hw_primary( 6709): out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: routing=2

I/AudioFlinger( 6709): AudioFlinger's thread 0xb5542000 ready to run

I/audio_a2dp_hw( 6709): adev_open: adev_open in A2dp_hw module

I/AudioFlinger( 6709): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 7

I/AudioFlinger( 6709): loadHwModule() Loaded usb audio interface from USB audio HW HAL (audio) handle 8

I/r_submix( 6709): adev_open(name=audio_hw_if)

I/r_submix( 6709): adev_init_check()

I/AudioFlinger( 6709): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 9

E/SoundTriggerHwService( 6709): couldn't load sound trigger module sound_trigger.primary (No such file or directory)

D/audio_hw_primary( 6709): adev_set_parameters: enter: restarting=true

E/audio_a2dp_hw( 6709): adev_set_parameters: ERROR: set param called even when stream out is null

W/AudioFlinger( 6709): session id 12 not found for pid 2355

W/AudioPolicyManager( 6709): setPhoneState() setting same state 0

D/MediaPlayer( 2355): Couldn't open file on client side, trying server side

E/OMXMaster( 6709): A component of name 'OMX.qcom.audio.decoder.aac' already exists, ignoring this one.

I/AwesomePlayer( 6709): setDataSource_l(https://<suppressed>)

I/AwesomePlayer( 6709): interrupting the connection process

D/audio_hw_primary( 6709): adev_set_parameters: enter: restarting=false

E/audio_a2dp_hw( 6709): adev_set_parameters: ERROR: set param called even when stream out is null

I/AwesomePlayer( 6709): Prepare cancelled while waiting for initial cache fill.

E/NuCachedSource2( 6709): source returned error -1, 10 retries left

I/Choreographer( 2355): Skipped 166 frames! The application may be doing too much work on its main thread.

W/MediaPlayer( 2355): mediaplayer went away with unhandled events

W/YouTube ( 2355): (unknown) CsiAction [apw] already ticked mpl_s. Ignored.

W/thermanager( 6729): failed to attach resource "temp-emmc" [msm-adc], ignoring

W/thermanager( 6729): failed to attach resource "temp-batt" [msm-adc], ignoring

E/thermanager( 6729): failed to create configuration with sensor "temp-emmc"

E/thermanager( 6729): failed to parse configuration sections

---------- Post added at 10:33 PM ---------- Previous post was at 10:28 PM ----------

Just had a quick look. It appears going into developer options and selecting "Use NuPlayer" seems to fix youtube.