Halium / projectmanagement

142 stars 32 forks source link

libhybris issues for Nexus 5 (hammerhead) #8

Open bhush9 opened 7 years ago

bhush9 commented 7 years ago

libhybris tests for nexus 5

works

Doesn't work

Audio device API version 0200 doesn't match platform current 3004.test_audio: test_audio.c:71: main: Assertion `audiohw->common.version == AUDIO_DEVICE_API_VERSION_CURRENT' failed.
Aborted
preview-size=1280x960;video-size=1280x960;preferred-preview-size-for-video=1280x960;preview-size-values=1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144;video-size-values=1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144;preview-format=yuv420sp;preview-format-values=yuv420p,yuv420sp;preview-frame-rate=15;preview-fps-range=15000,15000;preview-fps-range-values=(15000,15000),(7000,24000),(24000,24000),(7000,30000),(30000,30000);preview-frame-rate-values=15,24,30;picture-size=1280x960;picture-size-values=1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144;picture-format=jpeg;picture-format-values=jpeg;jpeg-thumbnail-width=512;jpeg-thumbnail-height=384;jpeg-thumbnail-size-values=0x0,128x96,176x144,320x240,432x288,480x288,512x288,512x384;jpeg-thumbnail-quality=90;jpeg-quality=90;rotation=0;whitebalance=auto;whitebalance-values=auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight,twilight,shade,;effect=none;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;antibanding=auto;antibanding-values=off,60hz,50hz,auto;scene-mode=auto;scene-mode-values=auto,landscape,snow,beach,sunset,night,portrait,sports,steadyphoto,candlelight,fireworks,party,night-portrait,theatre,action;focus-mode=fixed;focus-mode-values=fixed;max-num-focus-areas=0;focus-areas=(0,0,0,0,0);focal-length=2.35;horizontal-view-angle=55.0103;vertical-view-angle=42.6624;exposure-compensation=0;max-exposure-compensation=12;min-exposure-compensation=-12;exposure-compensation-step=0.166667;auto-exposure-lock=false;auto-exposure-lock-supported=true;auto-whitebalance-lock=false;auto-whitebalance-lock-supported=true;max-num-metering-areas=1;metering-areas=(0,0,0,0,0);zoom=0;max-zoom=99;zoom-ratios=100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172,175,178,181,184,187,190,193,196,199,203,206,209,212,215,218,221,224,227,230,233,236,239,242,245,248,251,254,257,260,263,266,269,272,275,278,281,284,287,290,293,296,299,303,306,309,312,315,318,321,324,327,330,333,336,339,342,345,348,351,354,357,360,363,366,369,372,375,378,381,384,387,390,393,396,399;zoom-supported=true;smooth-zoom-supported=false;focus-distances=Infinity,Infinity,Infinity;max-num-detected-faces-hw=5;max-num-detected-faces-sw=0;video-frame-format=android-opaque;recording-hint=false;video-snapshot-supported=true;video-stabilization=false;video-stabilization-supported=false 
Supported size: [1280,960]
Supported size: [1280,768]
Supported size: [1280,720]
Supported size: [1024,768]
Supported size: [800,600]
Supported size: [800,480]
Supported size: [720,480]
Supported size: [640,480]
Supported size: [352,288]
Supported size: [320,240]
Supported size: [176,144]
Supported size: [1280,960]
Supported size: [1280,768]
Supported size: [1280,720]
Supported size: [1024,768]
Supported size: [800,600]
Supported size: [800,480]
Supported size: [720,480]
Supported size: [640,480]
Supported size: [352,288]
Supported size: [320,240]
Supported size: [176,144]
Preview fps range: [15000,15000]
Current preview fps range: 15
Current preview size: [960,720]
Current picture size: [1280,960]
Max zoom: 99
Current effect mode: 0
Current flash mode: 0
Current wb mode: 0
Current scene mode: 0
Current af mode: 0
Segmentation fault

Fails to start completely, though this is already broken on libhybris level mostly

Fails to start completely, though this is already broken on libhybris level mostly

Gets stuck forever,

*** setup signal handler
*** get gps interface
*** device info
 id = gps
 name = loc_api GPS Module
 author = Qualcomm USA, Inc. 
*** init gps interface
 ** Creating thread: 'Loc_hal_worker' (start=0xb6c037c5, arg=0x1914148)
 ** After thread_create: 'Loc_hal_worker', error=0 (start=0xb6c037c5, arg=0x1914148)
 **** Thread wrapper start (start=0xb6c037c5, arg=0x1914148) ****
*** setting positioning mode
*** start gps track
*** gps tracking started
*** tracking.... 
^C Diag_LSM_Init: Failed to open handle to diag driver, error = 2*** cleanup

Not sure how is supposed to work?

Outputs following but screen doesn't render anything..

Setting data source to: test.mp4.
Starting test_nfc.
Finding NFC hardware module.
test_nfc: test_nfc.c:156: testNfc: Assertion `hwModule != NULL' failed.
Aborted

It says volume up will start recording and volume down will stop recording but pressing button does nothing..

Test application for video recording using the camera
Recording start with volume up button. And stops with volume down.
The result is stored to /root/test_video.avi

preview-size=1920x1080;video-size=1920x1080;preferred-preview-size-for-video=1920x1080;preview-size-values=1920x1080,1600x1200,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144;video-size-values=1920x1080,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144;preview-format=yuv420sp;preview-format-values=yuv420p,yuv420sp,;preview-frame-rate=15;preview-fps-range=15000,15000;preview-fps-range-values=(15000,15000),(7000,24000),(24000,24000),(7000,30000),(30000,30000);preview-frame-rate-values=15,24,30;picture-size=3264x2448;picture-size-values=3264x2448,3200x2400,2592x1944,2048x1536,1920x1080,1600x1200,1280x960,1280x768,1280x720,1024x768,800x600,800x480,720x480,640x480,352x288,320x240,176x144;picture-format=jpeg;picture-format-values=jpeg;jpeg-thumbnail-width=512;jpeg-thumbnail-height=384;jpeg-thumbnail-size-values=0x0,128x96,176x144,320x240,432x288,480x288,512x288,512x384;jpeg-thumbnail-quality=90;jpeg-quality=90;rotation=0;whitebalance=auto;whitebalance-values=auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight,twilight,shade,;effect=none;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;antibanding=auto;antibanding-values=off,60hz,50hz,auto;scene-mode=auto;scene-mode-values=auto,landscape,snow,beach,sunset,night,portrait,sports,steadyphoto,candlelight,fireworks,party,night-portrait,theatre,action;flash-mode=off;flash-mode-values=off,auto,on,torch,red-eye;focus-mode=auto;focus-mode-values=auto,macro,continuous-video,continuous-picture;max-num-focus-areas=1;focus-areas=(0,0,0,0,0);focal-length=3.97;horizontal-view-angle=60.0848;vertical-view-angle=47.4366;exposure-compensation=0;max-exposure-compensation=12;min-exposure-compensation=-12;exposure-compensation-step=0.166667;auto-exposure-lock=false;auto-exposure-lock-supported=true;auto-whitebalance-lock=false;auto-whitebalance-lock-supported=true;max-num-metering-areas=1;metering-areas=(0,0,0,0,0);zoom=0;max-zoom=99;zoom-ratios=100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172,175,178,181,184,187,190,193,196,199,203,206,209,212,215,218,221,224,227,230,233,236,239,242,245,248,251,254,257,260,263,266,269,272,275,278,281,284,287,290,293,296,299,303,306,309,312,315,318,321,324,327,330,333,336,339,342,345,348,351,354,357,360,363,366,369,372,375,378,381,384,387,390,393,396,399;zoom-supported=true;smooth-zoom-supported=false;focus-distances=Infinity,Infinity,Infinity;max-num-detected-faces-hw=5;max-num-detected-faces-sw=0;video-frame-format=android-opaque;recording-hint=false;video-snapshot-supported=true;video-stabilization=false;video-stabilization-supported=false 
Supported video sizes:
Supported size: [1920,1080]
Supported size: [1280,960]
Supported size: [1280,768]
Supported size: [1280,720]
Supported size: [1024,768]
Supported size: [800,600]
Supported size: [800,480]
Supported size: [720,480]
Supported size: [640,480]
Supported size: [352,288]
Supported size: [320,240]
Supported size: [176,144]
Current video size: [1920,1080]
We have got a key event: 0 
We have got a key event: 0 
We have got a key event: 0 
We have got a key event: 0 
We have got a key event: 0 
We have got a key event: 0 
We have got a key event: 0 
^C
Hardware module ID: sensors
Hardware module Name: QTI Sensors Module
Hardware module Author: Qualcomm Technologies, Inc.
Hardware module API version: 0x1
Hardware HAL API version: 0x100
Poll device version: 0x1030001
API VERSION 0.1 (legacy): 0x1
API VERSION 0.1: 0x65537
API VERSION 1.0: 0x16777217
API VERSION 1.1: 0x16842753
API VERSION 1.2: 0x16908289
API VERSION 1.3: 0x16973825
Got 0 sensors
*** Error in `test_sensors': free(): invalid pointer: 0xb6d920a8 ***
Aborted
bhush9 commented 7 years ago

Now I've test_sensors reporting correct number of sensors at least but still crashes after reporting 1 sensor

root@localhost:/# test_sensors
Hardware module ID: sensors
Hardware module Name: QTI Sensors Module
Hardware module Author: Qualcomm Technologies, Inc.
Hardware module API version: 0x1
Hardware HAL API version: 0x100
Poll device version: 0x1030001
API VERSION 0.1 (legacy): 0x1
API VERSION 0.1: 0x65537
API VERSION 1.0: 0x16777217
API VERSION 1.1: 0x16842753
API VERSION 1.2: 0x16908289
API VERSION 1.3: 0x16973825
Got 19 sensors
=== Sensor 0 ==
Name: MPU6515 Accelerometer
Vendor: InvenSense
Version: 0x1
Handle: 0x0
Type: 1
Segmentation fault

If I pass index of sensor, it can load different sensor and report it..

root@localhost:/# test_sensors 5
Hardware module ID: sensors
Hardware module Name: QTI Sensors Module
Hardware module Author: Qualcomm Technologies, Inc.
Hardware module API version: 0x1
Hardware HAL API version: 0x100
Poll device version: 0x1030001
API VERSION 0.1 (legacy): 0x1
API VERSION 0.1: 0x65537
API VERSION 1.0: 0x16777217
API VERSION 1.1: 0x16842753
API VERSION 1.2: 0x16908289
API VERSION 1.3: 0x16973825
Got 19 sensors
=== Sensor 5 ==
Name: APDS-9930/QPDS-T930 Proximity & Light
Vendor: Avago
Version: 0x2
Handle: 0x24
Type: 8
Segmentation fault