How to use LineageOS/android_vendor_qcom_opensource_fm-commonsys - General Questions and Answers

Hello there,
I'm building Android for HTC M7 (see here: https://forum.xda-developers.com/t/...all-lineageos-18-1-for-microg-stable.4439595/) with the following Docker image:
GitHub - lineageos4microg/docker-lineage-cicd: Docker microservice for LineageOS Continuous Integration and Continous Deployment
Docker microservice for LineageOS Continuous Integration and Continous Deployment - GitHub - lineageos4microg/docker-lineage-cicd: Docker microservice for LineageOS Continuous Integration and Conti...
github.com
My manifest.xml looks like this:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="htc-msm8960-dev/android_device_htc_m7" path="device/htc/m7" remote="github" revision="lineage-18.1" />
<project name="zsoerenm/android_device_htc_m7-common" path="device/htc/m7-common" remote="github" revision="lineage-18.1-label_mpdecision" />
<project name="htc-msm8960-dev/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="lineage-18.1" />
<project name="htc-msm8960-dev/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="lineage-18.1" />
<project name="htc-msm8960-dev/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="lineage-18.1" />
</manifest>
Currently FM Radio is not working.
Looking at the build log, I found that https://github.com/LineageOS/android_vendor_qcom_opensource_fm-commonsys is used.
e.g.
Code:
[ 98% 462/467] including vendor/qcom/opensource/libfmjni/Android.mk ...
...
[ 28% 22103/76729] //vendor/qcom/opensource/fm-commonsys/jni:libqcomfm_jni clang++ android_hardware_fm.cpp
[ 28% 22104/76729] //vendor/qcom/opensource/fm-commonsys/jni:libqcomfm_jni clang++ ConfFileParser.cpp
[ 28% 22105/76729] //vendor/qcom/opensource/fm-commonsys/jni:libqcomfm_jni clang++ ConfigFmThs.cpp
[ 28% 22106/76729] //vendor/qcom/opensource/fm-commonsys/jni:libqcomfm_jni clang++ FmPerformanceParams.cpp
...
[ 49% 37708/76729] //vendor/qcom/opensource/fm-commonsys/fmapp2:FM2 aidl
...
[ 50% 38860/76729] //vendor/qcom/opensource/fm-commonsys/fmapp2:FM2 fix manifest
BTW: I'm surprised that this is actively maintained. Very cool!
Now the question is: How do I activate FM radio?
When I open the preinstalled FM-Radio App, it says: Operation failed
and in the logcat I find this:
Code:
06-04 20:31:50.553 4369 4369 E FMRadio : FmReceiver constructor
06-04 20:31:50.553 4369 4369 D FMService: fmOn: RadioBand :1
06-04 20:31:50.553 4369 4369 D FMService: fmOn: Emphasis :1
06-04 20:31:50.553 4369 4369 D FMService: fmOn: ChSpacing :2
06-04 20:31:50.554 4369 4369 D FMService: fmOn: RdsStd :1
06-04 20:31:50.554 4369 4369 D FMService: fmOn: LowerLimit :87500
06-04 20:31:50.554 4369 4369 D FMService: fmOn: UpperLimit :108000
06-04 20:31:50.554 4369 4369 V FMRadio : enable: CURRENT-STATE : FMOff ---> NEW-STATE : FMRxStarting
06-04 20:31:50.554 4369 4369 D FmTransceiver: Fail to Open -1
06-04 20:31:50.554 4369 4369 E FMRadio : enable: Error while turning FM On
06-04 20:31:50.554 4369 4369 E FMRadio : enable: CURRENT-STATE : FMRxStarting ---> NEW-STATE : FMOff
06-04 20:31:50.554 4369 4369 D FMService: mReceiver.enable done, Status :false
06-04 20:31:50.554 4369 4369 D FMService: in stop
06-04 20:31:50.562 4369 4369 E FMRadio : mService.fmOn failed
06-04 20:31:50.562 4369 4369 D FMRadio : disaplyDialog 13
06-04 20:31:50.619 4369 4429 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
I tried to add the following to BoardConfigCommon.mk
Code:
BOARD_HAVE_QCOM_FM := true
COMMON_GLOBAL_CFLAGS += -DQCOM_FM_ENABLED
(see here: https://github.com/zsoerenm/android...mmit/ba35097128d3d0ea730402630bfdad4662a8fe63)
And there is some old code here:
android_device_htc_m7/device.mk at lineage-18.1 · htc-msm8960-dev/android_device_htc_m7
Contribute to htc-msm8960-dev/android_device_htc_m7 development by creating an account on GitHub.
github.com
Code:
# FM radio
PRODUCT_PACKAGES += \
FM2 \
libqcomfm_jni \
qcom.fmradio
However, FM Radio is still not working with the same error as above.
What do I need to do to enable FM-Radio? @bgcngm @LuK1337

Related

OnePlus One (OxygenOS ) No GSM Signal

No network signal - how to know is gsm Radio dead in hardware or it is software issue
I have OnePlus One with OxygenOS now, but gsm wasn't working under CM12 either, so I clean installed Oxygen and it didn't resolve issue.
In log I have :
D/RILJ ( 1523): [3904]> QUERY_AVAILABLE_NETWORKS [SUB0]
D/RILC ( 250): SOCKET RIL_SOCKET_1 REQUEST: QUERY_AVAILABLE_NETWORKS length
:8
D/RILC ( 250): RequestComplete, RIL_SOCKET_1
E/RILC ( 250): Send Response to RIL_SOCKET_1
D/RilRequest( 1523): [3904]< QUERY_AVAILABLE_NETWORKS error: com.android.intern
al.telephony.CommandException: GENERIC_FAILURE ret=
*********************
D/NetworkSetting( 1523): EVENT_NETWORK_DATA_MANAGER_DONE: 1
V/QC_RIL_OEM_HOOK( 1523): sendRilOemHookMsg: Outgoing Data is 514f454d484f4f4b1200080000000000
D/QcrilMsgTunnelIfaceManager( 2776): handleMessage what = 1
D/QcrilMsgTunnelSocket( 2776): [1000] > OEM_HOOK_RAW[514f454d484f4f4b1200080000000000]
D/PowerManagerService( 833): acquireWakeLockInternal: lock=562127469, flags=0x1, tag="QcrilMsgTunnelSocket", ws=null, uid=1001, pid=2776
D/QcrilMsgTunnelSocket( 2776): readRilMessage: Buffer = [[email protected] HexData = [00000000e803000002000000ffffffff]
D/QcrilMsgTunnelSocket( 2776): Rcvd SOLICITED response with 12 bytes data for SUB0
D/QcRilRequest( 2776): [1000] < OEM_HOOK_RAW error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
I also have this when trying to click "TURN RADIO ON" in service menu (*#*#4636#*#*) :
D/GsmSST ( 1523): [GsmSST] mDeviceShuttingDown = false
D/GsmSST ( 1523): [GsmSST] mDesiredPowerState = true
D/GsmSST ( 1523): [GsmSST] getRadioState = RADIO_OFF
D/GsmSST ( 1523): [GsmSST] mPowerOffDelayNeed = true
D/GsmSST ( 1523): [GsmSST] mAlarmSwitch = false
D/RILJ ( 1523): [4127]> RADIO_POWER on [SUB0]
D/RILC ( 250): SOCKET RIL_SOCKET_1 REQUEST: RADIO_POWER length:16
D/RILC ( 250): RequestComplete, RIL_SOCKET_1
E/RILC ( 250): Send Response to RIL_SOCKET_1
D/RilRequest( 1523): [4127]< RADIO_POWER error: com.android.internal.telephony.C
ommandException: GENERIC_FAILURE ret=

[ROM][MM][LOS-13][m7] | 2018-02-22 | 9L5

These are cm13.0 builds for the international HTC One m7, build from CyanogenMod's sources with a few modifications and here and there a cherry-pick from unmerged commits.
Disclaimer: I AM NOT RESPONSIBLE IF YOU BREAK YOUR DEVICE OR DROP YOUR COFFEE !
---
Bugs (known):
- Bluetooth disables every few hours
- High battery consumption
- In energy saver there is no option to enable vibration
- Random reboots every few days
---
Download: Android File Host Folder
Archiv
open_gapps-arm-6.0-pico-20160717-9L5-modified.zip:
Be careful: This package is only (REALLY ONLY) for Play Store access.
Means, there are e.g. no Calendar&Contacts Sync adapter included, or anything. ONLY the things NEEDED for getting Play Store access.
source:
CyanogenMod Gerrit / GitHub
My Kernel Fork
Version Information
Status: abandoned
RC Release Date: 2016-09-17
last release: 2018-02-22
For changelogs have a look at the Gerrit. I filtered it with this link for only merged and cm13.0 related commits yet:
device
kernel
Apart from the official changes, I use a fork of the cm kernel as I changed a few things there:
Enabled SWAP option - it's not set by default, it will only create a SWAP if you set it with a kernel config app. cm merged it now official
undervolted CPU - see here
Initial GPU Overclock - thanks @ pattyboi : ) cherry-picked from his repo
pushed GPU to 545Mhz
undervolted GPU and later this oh and did I tell you about this yet
tbaldens fastcharge (if I read the changed code correct, it only forces the device to charge in AC mode, even if USB is recognized) - thanks @ pattyboi : ) cherry-picked from his repo
Added User Voltage Control for CPU (and therefore removed the default undervolt)
Added smartmax CPU-Governor
Since 2016-10-02 build:
reverted: 163000 - msm: HTC: m7: Enable static 802.11 regulatory database
Since 2016-10-22 build:
166184 - UPSTREAM: netfilter: x_tables: validate e->target_offset early - MERGED
166185 - msm: perf: Do not allocate new hw_event if event is duplicate - MERGED
166186 - ASoC: msm: audio-effects: misc fixes in h/w accelerated effect - MERGED
166187 - perf: duplicate deletion of perf event - MERGED
166188 - net: Fix use after free in the recvmmsg exit path - MERGED
166189 - binder: prevent kptr leak by using %pK format specifier - MERGED
166190 - fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE - MERGED
166191 - Replace %p with %pK to prevent leaking kernel address - MERGED
166192 - fix infoleak in rtnetlink - MERGED
Since 2016-09-03 build:
160241 - Torch: Add legacy check for camera hardware - MERGED
Since 2016-07-31 build:
Fix GPS - thanks for finding the working lib @flab80 - fixed in cm's vendor-repo
Since 2016-07-17 build:
151062 - Revert "Revert "m7-common: fix broken rotation"" - MERGED
Since 2016-06-14 build:
148941 - m7-common: Remove HTC sound config - MERGED
148942 - m7-common: Clean up Android.mk - MERGED
148943 - m7-common: Remove deprecated vold flags - MERGED
148944 - m7-common: Organize boardconfig - MERGED
148945 - m7-common: Remove extra AAPT_CONFIG - MERGED
148946 - m7-common: Organize m7-common.mk - MERGED
140146 - PackageInstaller: Themes: Add Tint mode for custom icon - MERGED
149372 - frameworks_base: SysUI: Don't let rogue themes ruin notifications - MERGED
Since 2016-04-10 build:
135528 - frameworks_base: bootanimation: Reduce thread priority - cm did a great job with the new Android is updating screen
139192 - SettingsProvider : load region-specific settings - MERGED
138263 - Settings: Rework vibration intensity slider - MERGED
138571 - Settings: Save vibration intensity on close - MERGED
140103 - Global actions: fix airplane mode switch for MSIM - MERGED
139976 - SysUI: Deprecate collapseNotificationPanel [2/2] - MERGED
139975 - LLS: Deprecate collapseNotificationPanel [1/2] - MERGED
140184 - porting jpeg_mem_src() from jpeg lib v8c - MERGED
139886 - init: Increase coldboot timeout to 5 seconds - MERGED
131628 - frameworks_base: Barrier only messages shouldn't prevent the idle handlers from running - cm did a great job with the new Android is updating screen
131627 - frameworks_base: policy: Show a simple dialog about optimizing apps - cm did a great job with the new Android is updating screen
129343 - m7-common: Switch to Clang by default - MERGED
129345 - m7-common: use Snap camera app - MERGED
125274 - m7-common: Shim libhtc_symbols instead - MERGED
Used apps: No-Frills CPU for cpu settings, and Kernel Adiutor for everything else. Settings not mentioned, aren't touched.
Kernel Adiutor:
CPU-Voltage (set on boot):
- see attached screenshot
Battery (set on boot):
- USB Fast Charge
I/O Scheduler (set on boot):
- Scheduler: noop
- Read-Ahead 2048kB
Kernel Samepage Merging (set on boot):
- disabled 'Kernel Samepage Merging'
Low Memmory Killer (set on boot):
- Profile middle
virtual memmory (set on boot):
- swappiness 10
- Disksize 1000MB
No frills CPU (set on boot)
- CPU Govoner: smartmax
Two Questions:
1. What recovery is recommended for this to install?
2. What GAPP is best for this to install?
Thanx.
alammori said:
Two Questions:
1. What recovery is recommended for this to install?
2. What GAPP is best for this to install?
Thanx.
Click to expand...
Click to collapse
twrp 3.0 and open gapps pico
@9Lukas5 be careful with cpu/gpu undervolt by default (depending on device silicon strength of course) it can lead to major issues great job otherwise!
edit: and one thing,REMOVE CPUBOOST,trust me
So no official builds I think )
9Lukas5 said:
Bad News on this one: It seems our m7's camera has brought the dev a big headache and he gave up on it as he spent too much time on it yet. So it doesn't look like the camera will get fixed in the near future :/
Click to expand...
Click to collapse
This sounds bad.
So no MM for my M7
@Maik268 I guess no official one until this is fixed.
But if you can live with a 'only-one-shot-per-open' camera and (I think I read that) a buggy Bluetooth calling, this is a great daily driver. I use it since December
L
Gesendet von meinem HTC One m7
9Lukas5 said:
@Maik268 I guess no official one until this is fixed.
But if you can live with a 'only-one-shot-per-open' camera and (I think I read that) a buggy Bluetooth calling, this is a great daily driver. I use it since December
L
Gesendet von meinem HTC One m7
Click to expand...
Click to collapse
Unfortunately I can't live with that.
I need my camera really often at work. I already tried MM for a few day, it's running great, but without a fully working camera it's useless for me at the moment
pattyboi:) said:
@9Lukas5 be careful with cpu/gpu undervolt by default (depending on device silicon strength of course) it can lead to major issues great job otherwise!
edit: and one thing,REMOVE CPUBOOST,trust me
Click to expand...
Click to collapse
Thanks, could you tell me where I change that? I set it for me personally in kernel adiutor, but are those values in one central place, or are they all spread over the whole source code?
L
Gesendet von meinem HTC One m7
Hey
I was thinking about the camera issues. Do you think that this may have something to do with Sony libraries missing or being incompatible?
As cRDroid is also CM-based maybe we can mix things up if the camera is working on cRDroid or at least compare the proprietary files.
I don't have my HTC One M7 at the moment so I am unable to test it. I made a build myself from CM source using TheMuppets' prorpietary files.
Everything else is stock, so no undervolt, etc.
*EDIT*
Got back my HTC One, will do some testing.
*EDIT2*
Hm... I see they are struggling with the same issue.
delete - saw the edits after writing an answer^^
So far it looks like it has something to do with the mediaserver crashing:
Code:
03-29 17:32:37.245 3408 3408 V CAM_PhotoModule: old picture_size = 2688 x 1520
03-29 17:32:37.245 3408 3408 V CAM_PhotoModule: new picture_size = 2688 x 1520
03-29 17:32:37.246 3408 3408 E CAM_PhotoModule: Invalid preview resolution:
03-29 17:32:37.246 3408 3408 V CAM_PhotoModule: Preview size is 1920x1088
03-29 17:32:37.246 3408 3408 V CAM_PhotoModule: Thumbnail size is 0x0
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: Picture format value =jpeg
03-29 17:32:37.247 3408 3408 D CameraSettings: Supported iso values: auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: Color effect value =none
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: Saturation value =5
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: Contrast value =5
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: Sharpness value =10
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: Face Recognition value = off
03-29 17:32:37.247 3408 3408 V CAM_PhotoModule: AE Bracketing value =Off
03-29 17:32:37.247 3408 3408 E CAM_PhotoModule: advancedFeature value =none
03-29 17:32:37.248 3408 3408 V CAM_PhotoModule: autoExposure value =frame-average
03-29 17:32:37.248 3408 3408 V CAM_PhotoModule: antiBanding value =auto
03-29 17:32:37.249 3408 3408 D Util : Parameters: [ae-bracket-hdr-values=Off,HDR,AE-Bracket, ae-bracket-hdr=Off, antibanding-values=off,50hz,60hz,auto, antibanding=auto, auto-exposure-lock-supported=true, auto-exposure-lock=false, auto-exposure-values=frame-average,center-weighted,spot-metering,smart-metering, auto-exposure=frame-average, auto-whitebalance-lock-supported=true, auto-whitebalance-lock=false, awb-calibration-check=success, camera-mode-values=0,1, camera-mode=1, capture-burst-captures-values=-1, capture-burst-exposures-values=-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12, capture-burst-exposures=, capture-burst-interval-max=10, capture-burst-interval-min=1, capture-burst-interval-supported=true, capture-burst-interval=1, capture-burst-retroactive-max=-1, capture-burst-retroactive=0, capture-burst-timeinterval-max=1000, capture-burst-timeinterval-min=0, capture-burst-timeinterval-supported=true, capture-burst-timeinterval=0, capture-mode-values=normal,contiburst,contiburst-one-shot,hdr,panorama,zoe,contizoe, capture-mode=normal, contiburst-type=unlimited, contrast-min=0, contrast=5, denoise-values=off, denoise=denoise-off, dual-camera-supported=false, effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua,emboss,sketch,neon, effect=none, exposure-compensation-step=0.166667, exposure-compensation=0, face-detection-values=off,on, face-detection=on, flash-calibration-check=success, flash-mode-values=off,auto,on,torch, flash-mode=auto, focal-length=3.82, focus-areas=(-198,-291,29,109,1), focus-distances=0.100000,0.150000,0.170000, focus-mode-values=auto,infinity,normal,macro,fixed,continuous-picture,continuous-video, focus-mode=auto, gps-timestamp=1459265556, hdr-need-1x=false, hdr-supported=true, hfr-size-values=800x480,640x480, histogram-values=enable,disable, histogram=disable, horizontal-view-angle=69.6, iso-values=auto,ISO_HJR,ISO100,ISO200,ISO400,ISO800,ISO1600, iso=auto, jpeg-quality=85, jpeg-thumbnail-height=0, jpeg-thumbnail-quality=90,
03-29 17:32:37.250 3408 3408 D Util : Parameters: jpeg-thumbnail-size-values=512x288,480x288,432x288,512x384,352x288,0x0, jpeg-thumbnail-width=0, lensshade-values=enable,disable, lensshade=enable, long-shot=off, lsc-calibration-check=success, luma-adaptation=3, max-contrast=10, max-exposure-compensation=12, max-longshot-snap=-1, max-num-detected-faces-hw=0, max-num-detected-faces-sw=0, max-num-focus-areas=1, max-num-metering-areas=1, max-saturation=10, max-sharpness=30, max-zoom=59, mce-values=enable,disable, mce=enable, metering-areas=(-255,-391,86,209,1), min-exposure-compensation=-12, no-display-mode=0, num-jpegs-per-shutter=1, num-queue-depth=2, num-snaps-per-shutter=1, ois-setting=true, ois_mode=off, ois_support=true, overlay-format=265, picture-format-values=jpeg,raw, picture-format=jpeg, picture-size-values=2688x1520,2592x1456,2048x1520,2048x1216,2048x1152,1920x1088,1600x1200,1600x896,1520x1520,1456x1088,1456x880,1456x832,1440x1088,1280x960,1280x768,1280x720,1024x768,1088x1088,800x600,800x480,720x720,640x480,640x384,640x368,480x480,352x288,320x240,176x144, picture-size=2688x1520, power-mode-supported=true, power-mode=Normal_Power, preview-format-values=yuv420sp,yuv420sp-adreno,yuv420p,yuv420p,nv12, preview-format=yuv420sp, preview-fps-range-values=(3,200000), preview-fps-range=10000,60000, preview-frame-rate-mode=frame-rate-fixed, preview-frame-rate-modes=frame-rate-auto,frame-rate-fixed, preview-frame-rate-values=5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120, preview-frame-rate=120, preview-size-values=1920x1088,1456x832,1440x1088,1280x720,1088x1088,960x720,960x544,800x480,768x464,768x432,720x720,720x480,640x480,640x384,640x368,576x432,544x544,480x480,480x320,384x288,352x288,320x240,240x160,176x144, preview-size=1920x1088,
03-29 17:32:37.250 3408 3408 D Util : Parameters: recording-hint=false, redeye-reduction-values=enable,disable, redeye-reduction=disable, rotation=90, saturation-min=0, saturation=5, scene-detect-values=off,on, scene-detect=off, scene-mode-values=off,auto,action,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,fireworks,sports,party,candlelight,backlight,flowers,AR,text,hdr, scene-mode=auto, selectable-zone-af-values=auto,spot-metering,center-weighted,frame-average, selectable-zone-af=auto, sharpness-min=0, sharpness=10, single-isp-output-enabled=false, skinToneEnhancement-values=enable,disable, skinToneEnhancement=0, slow-motion-res=768x432, slow-motion-x=4, smileinfo-byface-supported=1, strtextures=OFF, time-cons-post-processing=enable, touch-af-aec-values=touch-off,touch-on, touch-af-aec=touch-off, touchAfAec-dx=100, touchAfAec-dy=100, vertical-view-angle=43.0, video-720p60fps-supported=true, video-frame-format=yuv420sp, video-hdr-supported=true, video-hdr-values=off,on, video-hdr=off, video-hfr-values=off,60, video-hfr=off, video-mode=0, video-slow-motion-supported=true, video-snapshot-supported=true, video-stabilization-supported=true, video-stabilization=false, video-zoom-support=true, whitebalance-values=auto,incandescent,fluorescent,daylight,cloudy-daylight, whitebalance=auto, zoe-supported=true, zoom-ratios=100,102,104,107,109,112,114,117,120,123,125,128,131,135,138,141,144,148,151,155,158,162,166,170,174,178,182,186,190,195,200,204,209,214,219,224,229,235,240,246,251,257,263,270,276,282,289,296,303,310,317,324,332,340,348,356,364,373,381,390, zoom-supported=true, zoom=0, zsl-values=off,on, zsl=on, zsl_mymode=on]
03-29 17:32:37.255 208 208 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-29 17:32:37.255 208 208 F DEBUG : Build fingerprint: 'htc/m7_google/m7:5.0.1/LRX22C.H3/434277:user/release-keys'
03-29 17:32:37.255 208 208 F DEBUG : Revision: '0'
03-29 17:32:37.255 208 208 F DEBUG : ABI: 'arm'
03-29 17:32:37.255 673 2379 W NativeCrashListener: Couldn't find ProcessRecord for pid 7959
03-29 17:32:37.255 208 208 F DEBUG : pid: 7959, tid: 10442, name: mm_camera_poll >>> /system/bin/mediaserver <<<
03-29 17:32:37.255 208 208 E DEBUG : AM write failed: Broken pipe
03-29 17:32:37.255 208 208 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x149
03-29 17:32:37.256 673 1148 W BackupManagerService: dataChanged but no participant pkg='org.cyanogenmod.snap' uid=10056
03-29 17:32:37.257 673 3532 W BackupManagerService: dataChanged but no participant pkg='org.cyanogenmod.snap' uid=10056
03-29 17:32:37.257 673 2769 W BackupManagerService: dataChanged but no participant pkg='org.cyanogenmod.snap' uid=10056
03-29 17:32:37.258 3408 3408 I CAM_PhotoModule: Using preview width = 1920& height = 1088
03-29 17:32:37.258 3408 3408 D CAM_UI : setAspectRatio() ratio[1.7647059] mAspectRatio[1.7647059]
03-29 17:32:37.259 3408 3408 V CAM_UI : setTransformMatrix: scaledTextureWidth = 1080.0, scaledTextureHeight = 1905.8823
03-29 17:32:37.262 3408 3408 D CAM_UI : setAspectRatio() ratio[1.7647059] mAspectRatio[1.7647059]
03-29 17:32:37.262 3408 3408 V CAM_UI : setTransformMatrix: scaledTextureWidth = 1080.0, scaledTextureHeight = 1905.8823
03-29 17:32:37.270 208 208 F DEBUG : r0 00000101 r1 ffffffff r2 b48802fc r3 80000000
03-29 17:32:37.271 208 208 F DEBUG : r4 b0ae2c00 r5 b39c8d40 r6 b39c8d4c r7 b39c8d44
03-29 17:32:37.271 208 208 F DEBUG : r8 b39c7400 r9 b456c024 sl b39c8d38 fp b0ae2c00
03-29 17:32:37.271 208 208 F DEBUG : ip b487fdb4 sp a40828d0 lr b485f735 pc b485ef36 cpsr 40070030
03-29 17:32:37.276 208 208 F DEBUG :
03-29 17:32:37.276 208 208 F DEBUG : backtrace:
03-29 17:32:37.276 208 208 F DEBUG : #00 pc 00049f36 /system/lib/hw/camera.vendor.msm8960.so (android::util_get_Hal_obj(camera_device*)+5)
03-29 17:32:37.276 208 208 F DEBUG : #01 pc 0004a731 /system/lib/hw/camera.vendor.msm8960.so (release+52)
03-29 17:32:37.276 208 208 F DEBUG : #02 pc 000046d5 /system/lib/libimage-jpeg-enc-omx-comp.so (handleMessage+164)
03-29 17:32:37.276 208 208 F DEBUG : #03 pc 0003f5f7 /system/lib/libc.so (__pthread_start(void*)+30)
03-29 17:32:37.276 208 208 F DEBUG : #04 pc 00019ccb /system/lib/libc.so (__start_thread+6)
03-29 17:32:37.729 673 2790 D QMI_FW : QCCI: QMUXD: xport_rx[1 <- 16]: 659 bytes on conn_id: 9
03-29 17:32:37.729 673 2790 D QMI_FW : QCCI: QMI_CCI_RX: cntl_flag - 04, txn_id - 0000, msg_id - 0025, msg_len - 028c
03-29 17:32:37.729 673 2790 E LocSvc_adapter: I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 88 QMI_LOC_EVENT_GNSS_SV_INFO_IND_V02
03-29 17:32:37.729 673 2790 E LocSvc_utils_q: D/msg_q_snd: Sending message with handle = 0x9DD61300
03-29 17:32:37.729 673 2790 E LocSvc_utils_ll: D/linked_list_add: Adding to list data_obj = 0x9DD61300
03-29 17:32:37.729 673 2787 E LocSvc_utils_ll: D/linked_list_remove: Removing from list
03-29 17:32:37.729 673 2787 E LocSvc_utils_q: D/msg_q_rcv: Received message 0x9DD61300 rv = 0
03-29 17:32:37.729 673 2787 E LocSvc_eng: D/void loc_eng_deferred_action_thread(void*):1415] received msg_id = LOC_ENG_MSG_REPORT_SV context = 0xaec028d0
03-29 17:32:37.729 673 2787 E LocSvc_afw: I/<=== sv_status_cb - line 1127 23
03-29 17:32:37.729 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.729 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSV,6,1,23,04,00,000,24,02,14,118,,06,18,075,,10,00,000,*7E
03-29 17:32:37.729 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSV,6,2,23,12,78,333,,14,34,302,,15,12,180,,17,07,036,*7A
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSV,6,3,23,19,31,049,,22,00,000,,24,63,123,,25,46,264,*7C
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSV,6,4,23,29,09,199,,32,30,305,,78,23,300,,86,39,045,*75
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSV,6,5,23,77,67,002,,69,09,344,,88,14,175,,87,50,135,*76
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSV,6,6,23,85,00,000,,67,14,241,,68,24,295,*40
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGSA,A,1,,,,,,,,,,,,,,,*1E
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPVTG,,T,,M,,N,,K,N*2C
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPRMC,,V,,,,,,,,,,N*53
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: I/<=== nmea_cb line 59 0x93a7a734
03-29 17:32:37.730 673 2787 E LocSvc_eng_nmea: D/NMEA <$GPGGA,,,,,,0,,,,,,,,*66
03-29 17:32:37.730 673 2787 E LocSvc_eng: D/void loc_eng_deferred_action_thread(void*):1402] 134 listening ...
03-29 17:32:37.730 673 2787 E LocSvc_utils_q: D/msg_q_rcv: Waiting on message
03-29 17:32:37.730 673 2790 E LocSvc_utils_q: D/msg_q_snd: Finished Sending message with handle = 0x9DD61300
03-29 17:32:38.000 673 2790 D QMI_FW : QCCI: QMUXD: xport_rx[1 <- 16]: 146 bytes on conn_id: 9
03-29 17:32:38.000 673 2790 D QMI_FW : QCCI: QMI_CCI_RX: cntl_flag - 04, txn_id - 0000, msg_id - 0024, msg_len - 008b
03-29 17:32:38.000 673 2790 E LocSvc_adapter: I/<--- void globalEventCb(locClientHandleType, uint32_t, locClientEventIndUnionType, void*) line 88 QMI_LOC_EVENT_POSITION_REPORT_IND_V02
03-29 17:32:38.000 673 2790 E LocSvc_adapter: D/Reporting postion from V2 Adapter
03-29 17:32:38.000 673 2790 E LocSvc_utils_q: D/msg_q_snd: Sending message with handle = 0x9B5C4C30
03-29 17:32:38.000 673 2790 E LocSvc_utils_ll: D/linked_list_add: Adding to list data_obj = 0x9B5C4C30
03-29 17:32:38.000 673 2790 E LocSvc_utils_q: D/msg_q_snd: Finished Sending message with handle = 0x9B5C4C30
03-29 17:32:38.000 673 2787 E LocSvc_utils_ll: D/linked_list_remove: Removing from list
03-29 17:32:38.000 673 2787 E LocSvc_utils_q: D/msg_q_rcv: Received message 0x9B5C4C30 rv = 0
03-29 17:32:38.000 673 2787 E LocSvc_eng: D/void loc_eng_deferred_action_thread(void*):1415] received msg_id = LOC_ENG_MSG_REPORT_POSITION context = 0xaec028d0
03-29 17:32:38.000 673 2787 E LocSvc_eng: D/void loc_eng_deferred_action_thread(void*):1402] 135 listening ...
03-29 17:32:38.000 673 2787 E LocSvc_utils_q: D/msg_q_rcv: Waiting on message
03-29 17:32:38.048 208 208 F DEBUG :
03-29 17:32:38.048 208 208 F DEBUG : Tombstone written to: /data/tombstones/tombstone_03
03-29 17:32:38.049 673 760 I BootReceiver: Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
03-29 17:32:38.059 3408 5000 W CameraBase: mediaserver's remote binder Camera object died
03-29 17:32:38.059 3408 5000 W CameraBase: Camera service died!
*EDIT*
Ah, I missed that you have already added the logcat output for this error in the other thread.
Hey @9Lukas5 where are you getting the source from. Is there any guide to build the rom?
@aloknm I used this wiki guide from cm:
https://wiki.cyanogenmod.org/w/Build_for_m7
And additionally I had to add a link to the proprietary files I think in my local_manifest
When I'm at home I'll send you the content of the manifest in my build environment
L
Gesendet von meinem HTC One m7
As far as the camera issue goes this is what I figured out so far:
camera.vendor.msm8960.so is calling util_get_Hal_obj; camera.vendor.msm8960.so is prorietary, so nothing we can do here
util_get_Hal_obj is part of the QCOM HAL Wrapper:
android_hardware_qcom_camera/QCamera2/HAL/wrapper/QualcommCamera.cpp:
Code:
...
QCamera2HardwareInterface *util_get_Hal_obj( struct camera_device * device)
{
QCamera2HardwareInterface *hardware = NULL;
if(device && device->priv){
camera_hardware_t *camHal = (camera_hardware_t *)device->priv;
hardware = camHal->hardware;
}
return hardware;
}
....
The address is extracted here: camera_hardware_t *camHal = (camera_hardware_t *)device->priv;
hardware = camHal->hardware;
However, so far I could not find the struct definition of camera_device, which would be handy because we want to know what device->priv exactly is
Then we would have to figure out who or what is defining the original camera_device and why it is suddenly pointing to a wrong address
Yeah, it is pretty messed up. I don't know if I will be able to look into it more....
Does anyone happen to know where the struct camera_device is specified?
@sToRm1nG you seem much more a 'developer' than me . I'm more like, let's see what we can *easily* punch together and works atm^^
Edit: could you edit your post above with the long logcat output and make spoiler tag around the code tag? In tapatalk you have to scroll through the whole code :/
@aloknm I'm using the three xml's I attached in my ./.repo/local_manifests/ folder.
The roomservice.xml came from cm, I edited just to delete the kernel repo and created the other one for including my own fork of the kernel and the local_manifest.xml is also created from me after googling around, why my builds are too small and won't boot up. There I added the proprietary_vendor from the aicp github, what fixed my builds.
L
9Lukas5 said:
@sToRm1nG you seem much more a 'developer' than me . I'm more like, let's see what we can *easily* punch together and works atm^^
Edit: could you edit your post above with the long logcat output and make spoiler tag around the code tag? In tapatalk you have to scroll through the whole code :/
@aloknm I'm using the three xml's I attached in my ./.repo/local_manifests/ folder.
The roomservice.xml came from cm, I edited just to delete the kernel repo and created the other one for including my own fork of the kernel and the local_manifest.xml is also created from me after googling around, why my builds are too small and won't boot up. There I added the proprietary_vendor from the aicp github, what fixed my builds.
L
Click to expand...
Click to collapse
*HIDEON*
I will try and see if I can add some additional logging to QualcommCamera.cpp to see if the address actually changes (if not this would be even more confusing).
I had a lot of Java programming at university and a little C++ and even a little bit of C.
New build is online
Be aware of the following:
- I added user side Voltage Control for CPU, therefore I reverted the CPU undervolt back to stock values.
For those want to keep the undervolt like it was set before, please have a look to the commit here. Check the changed lines to find the voltage table shown in your kernel control app, and then set the values to the ones they were before :good:
- I added the cpu governor smartmax:
If someone has mindblowing governor settings for smartmax, please let me know
L

Run shell command with root permissions from AOSP apk

I would like to ask for help with get root access for AOSP apk broadcast receiver.
I need receive event for change date/time and I need run my shell command for write system time to hardware RTC.
I have chosen follow principe:
- I wrote Android myBR.apk in AOSP with broadcast receiver for TIME_SET, TIMEZONE_CHANGED
- From myBR.apk I run my shell command (rtcclock -w)
- "rtcclock -w" shell command which is write system time from Android to RTC via /dev/rtc0 -> ioctl( i2c )
My problem is:
==============
I need run shell command rtcclock from AOSP myBR.apk as root.
My all attempts were unsuccessful.
I would like to ask for help from some experts how can I resolve this problem.
Environment info (everything in Android shell terminal)
=======================================================
Android device is not rooted
Permissions for su shell command
$ ls -lZ /system/xbin/su
-rwsr-x--- root shell ubject_r:su_exec:s0 su
SELinux status
$ getenforce
Disabled
Super user information
$ su
# id
uid=0(root) gid=0(root) groups=1007(log)
Android version
$ cat /system/build.prop | grep "ro.build.version.release"
ro.build.version.release=5.1.1
Kernel version
$ cat /proc/version
Linux version 3.4.39 .....
Permissions for rtcclock shell command
$ ls -l /system/bin/rtcclock
-rwxr-xr-x root shell 13672 2017-10-18 09:53 rtcclock
Example for try write system time from Android to RTC as user = shell from
$ rtcclock -w
rtcclock: can't open '/dev/misc/rtc': No such file or directory
Example for try write system time from Android to RTC as user = system
$ su system
$ rtcclock -w
rtcclock: ioctl 0x4024700a failed: Permission denied
Example for try write system time from Android to RTC as user = root
$ su
# rtcclock -w
successfull
My source code:
MyBroadcastReceiver.java
========================
package com.example.mybr;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class MyBroadcastReceiver extends BroadcastReceiver {
private static final String TAG = "MyBroadcastReceiver";
public MyBroadcastReceiver() {
super();
Log.i( TAG, "MyBroadcastReceiver - created" );
}
@override
public void onReceive( Context context, Intent intent )
{
final String intentAction = intent.getAction();
boolean bResult = false;
if( intentAction.equals( Intent.ACTION_TIME_CHANGED ) ||
intentAction.equals( Intent.ACTION_TIMEZONE_CHANGED ) )
{
bResult = runCmd( "sh", "id" );
Log.i( TAG, "bResult = " + bResult );
bResult = runCmd( "su", "id" );
Log.i( TAG, "bResult = " + bResult );
bResult = runCmd( "su", "rtcclock -w" );
Log.i( TAG, "bResult = " + bResult );
}
}
public static boolean runCmd( String...commands )
{
boolean bResult = false;
try
{
Process prcs = Runtime.getRuntime().exec( commands[ 0 ] );
DataOutputStream cmdStream = new DataOutputStream( prcs.getOutputStream() );
DataInputStream resStream = new DataInputStream( prcs.getInputStream() );
DataInputStream errStream = new DataInputStream( prcs.getErrorStream() );
if( cmdStream != null && resStream != null && errStream != null )
{
for( int n = 1; n < commands.length; n++ )
{
Log.d( TAG, "cmd: " + commands[ n ] );
cmdStream.writeBytes( commands[ n ] + "\n" );
cmdStream.flush();
do
{
String outputResult = resStream.readLine();
Log.d( TAG, "cmd result: " + outputResult );
} while( resStream.available() > 0 );
while( errStream.available() > 0 )
{
String outputResult = errStream.readLine();
Log.d( TAG, "cmd error: " + outputResult );
}
}
bResult = true;
cmdStream.writeBytes( "exit\n" );
cmdStream.flush();
try
{
prcs.waitFor();
} catch( InterruptedException e )
{
Log.i( TAG, "!!! EXCEPTION_1 !!!" );
e.printStackTrace();
}
}
if( cmdStream != null )
{
cmdStream.close();
}
if( resStream != null )
{
resStream.close();
}
if( errStream != null )
{
errStream.close();
}
}
catch( IOException e )
{
Log.i( TAG, "!!! EXCEPTION_2 !!!" );
e.printStackTrace();
}
return( bResult );
}
}
AndroidManifest.xml
===================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="...schemas.android.com/apk/res/android"
package="com.example.mybr"
android:sharedUserId="android.uid.shell">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true">
<receiver
android:name=".MyBroadcastReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.TIME_SET"/>
<action android:name="android.intent.action.TIMEZONE_CHANGED"/>
</intent-filter>
</receiver>
</application>
</manifest>
Android.mk
==========
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
# Only compile source java files in this apk.
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := myBR
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
LOCAL_MODULE_PATH := $(TARGET_OUT)/priv-app
include $(BUILD_PACKAGE)
# Use the following include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
Listing from logcat (as you can see su always failed)
===================
10-28 14:08:28.821 455-455/system_process I/PackageManager: /system/priv-app/myBR changed; collecting certs
10-28 14:08:28.855 455-455/system_process I/art: DexFile_isDexOptNeeded file /system/priv-app/myBR/arm/myBR.odex needs to be relocated for /system/priv-app/myBR/myBR.apk
10-28 14:08:42.875 455-455/system_process I/art: DexFile_isDexOptNeeded file /system/priv-app/myBR/arm/myBR.odex needs to be relocated for /system/priv-app/myBR/myBR.apk
10-28 14:08:42.876 455-455/system_process I/PackageManager: Running patchoat on: com.example.mybr
10-28 14:08:42.878 631-631/? E/installd: Running /system/bin/patchoat isa=arm in-fd=5 (/system/priv-app/myBR/arm/myBR.odex) out-fd=6 (/data/dalvik-cache/arm/[email protected]@[email protected]@classes.dex)
10-03 14:11:47.001 455-501/system_process I/ActivityManager: Start proc 1795:com.example.mybr/2000 for broadcast com.example.mybr/.MyBroadcastReceiver
10-03 14:11:47.115 455-499/system_process W/InputMethodManagerService: Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
10-03 14:11:47.181 1795-1795/com.example.mybr I/MyBroadcastReceiver: MyBroadcastReceiver - created
10-03 14:11:47.214 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd: id (added my note: runCmd( "sh", "id" )
10-03 14:11:47.268 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd result: uid=2000(shell) gid=2000(shell) groups=1015(sdcard_rw),1023(media_rw),1028(sdcard_r),3002(net_bt),3008(net_bt_stack),9997(everybody),42000(u0_a32000)
10-03 14:11:47.275 1795-1795/com.example.mybr I/MyBroadcastReceiver: bResult = true
10-03 14:11:47.297 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd: id (added my note: runCmd( "su", "id" )
10-03 14:11:47.306 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd result: null
10-03 14:11:47.309 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd error: su: permission denied (added mine detection: call function setgidI() return -1 from su.c)
10-03 14:11:47.310 1795-1795/com.example.mybr I/MyBroadcastReceiver: !!! EXCEPTION_2 !!!
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: java.io.IOException: write failed: EPIPE (Broken pipe)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at libcore.io.IoBridge.write(IoBridge.java:502)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at java.io.FileOutputStream.write(FileOutputStream.java:186)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at java.iutputStream.write(OutputStream.java:82)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at java.io.DataOutputStream.writeBytes(DataOutputStream.java:156)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at com.example.mybr.MyBroadcastReceiver.runCmd(MyBroadcastReceiver.java:77)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at com.example.mybr.MyBroadcastReceiver.onReceive(MyBroadcastReceiver.java:33)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread.handleReceiver(ActivityThread.java:2609)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread.access$1700(ActivityThread.java:151)
10-03 14:11:47.310 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at android.os.Looper.loop(Looper.java:135)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5254)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at java.lang.reflect.Method.invoke(Native Method)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at libcore.io.Posix.writeBytes(Native Method)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at libcore.io.Posix.write(Posix.java:258)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:313)
10-03 14:11:47.311 1795-1795/com.example.mybr W/System.err: at libcore.io.IoBridge.write(IoBridge.java:497)
10-03 14:11:47.312 1795-1795/com.example.mybr W/System.err: ... 15 more
10-03 14:11:47.312 1795-1795/com.example.mybr I/MyBroadcastReceiver: bResult = true
10-03 14:11:47.337 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd: rtcclock -w (added my note: runCmd( "su", "rtcclock -w" )
10-03 14:11:47.340 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd result: null
10-03 14:11:47.342 1795-1795/com.example.mybr D/MyBroadcastReceiver: cmd error: su: permission denied (added mine detection: call function setgidI() return -1 from su.c)
10-03 14:11:47.342 1795-1795/com.example.mybr I/MyBroadcastReceiver: !!! EXCEPTION_2 !!!
10-03 14:11:47.342 1795-1795/com.example.mybr W/System.err: java.io.IOException: write failed: EPIPE (Broken pipe)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at libcore.io.IoBridge.write(IoBridge.java:502)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at java.io.FileOutputStream.write(FileOutputStream.java:186)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at java.iutputStream.write(OutputStream.java:82)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at java.io.DataOutputStream.writeBytes(DataOutputStream.java:156)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at com.example.mybr.MyBroadcastReceiver.runCmd(MyBroadcastReceiver.java:77)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at com.example.mybr.MyBroadcastReceiver.onReceive(MyBroadcastReceiver.java:36)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread.handleReceiver(ActivityThread.java:2609)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread.access$1700(ActivityThread.java:151)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at android.os.Looper.loop(Looper.java:135)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5254)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at java.lang.reflect.Method.invoke(Native Method)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-03 14:11:47.343 1795-1795/com.example.mybr W/System.err: Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
10-03 14:11:47.344 1795-1795/com.example.mybr W/System.err: at libcore.io.Posix.writeBytes(Native Method)
10-03 14:11:47.344 1795-1795/com.example.mybr W/System.err: at libcore.io.Posix.write(Posix.java:258)
10-03 14:11:47.344 1795-1795/com.example.mybr W/System.err: at libcore.io.BlockGuardOs.write(BlockGuardOs.java:313)
10-03 14:11:47.344 1795-1795/com.example.mybr W/System.err: at libcore.io.IoBridge.write(IoBridge.java:497)
10-03 14:11:47.344 1795-1795/com.example.mybr W/System.err: ... 15 more
10-03 14:11:47.344 1795-1795/com.example.mybr I/MyBroadcastReceiver: bResult = true
10-03 14:11:47.354 1388-1388/com.android.deskclock V/AlarmClock: AlarmInitReceiver android.intent.action.TIME_SET
10-03 14:11:47.384 1388-1647/com.android.deskclock V/AlarmClock: AlarmInitReceiver finished
10-03 14:11:47.395 455-498/system_process I/ActivityManager: Killing 1368:com.android.music/u0a33 (adj 15): empty #17
10-03 14:11:47.408 455-455/system_process W/MediaSessionRecord: Removing dead callback in pushEvent.
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.media.session.ISessionControllerCallback$Stub$Proxy.onSessionDestroyed(ISessionControllerCallback.java:189)
at com.android.server.media.MediaSessionRecord.pushSessionDestroyed(MediaSessionRecord.java:667)
at com.android.server.media.MediaSessionRecord.access$3800(MediaSessionRecord.java:67)
at com.android.server.media.MediaSessionRecord$MessageHandler.handleMessage(MediaSessionRecord.java:1286)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at com.android.server.SystemServer.run(SystemServer.java:269)
at com.android.server.SystemServer.main(SystemServer.java:170)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Thank you very much for help.

Unexpected shutdown/restart

Hi,
I have again some ugly issues: from time to time, randomly, my HTC U12+ with latest software version shuts down, or reboots, or something.
For example, it works fine, I put it on the table and after some time, when I want to check it... Black screen. Not working.
Most of the time I struggle a lot to "open it". I keep pressing the power button, press it multiple times, press volume buttons... It looks like something happened and it does not work anymore.
The only "symptom" I found was that the Internet connection does not work anymore before losing the device.
Oh, I also booted in SAFE MODE, and it still happened!!!
I tried:
- Clear caches, both from Boost+, Settings and CCleaner
- Clear cache partition from recovery mode
- Shaking it and force it a bit thinking about a hardware connection
- I also, of course, used it without the case and it still happened
Nothing seems to work.
I took a bug report but I am not sure where to look at. I also connected using ADB and keeping it running with "logcat" hoping it will crash and I can find the bug in the logs...
Meanwhile, did this happen to any of you? Do you have any idea why this can happen?
Thanks!
Got some errors, this is exactly before the crash, last error messages:
04-08 18:10:58.738 1553 1894 D WifiStateMachine: handleMessage: E msg.what=131133
04-08 18:10:58.738 1553 1894 D WifiStateMachine: processMsg: ConnectedState
04-08 18:10:58.738 1553 1894 D WifiStateMachine: processMsg: L2ConnectedState
04-08 18:10:58.738 1553 1894 D WifiStateMachine: processMsg: ConnectModeState
04-08 18:10:58.738 1553 1894 D WifiStateMachine: processMsg: DefaultState
04-08 18:10:58.760 1553 1605 D Tethering: interfaceRemoved rmnet_data1
04-08 18:10:58.761 748 748 E WifiHAL : acquire_supported_features: requestResponse Error:-4
04-08 18:10:58.762 1553 1926 D EthernetNetworkFactory: updateCapabilityFilter: []
04-08 18:10:58.770 748 748 E WifiHAL : wifi_get_logger_supported_feature_set: Error -4 happened.
04-08 18:10:58.773 748 748 E WifiHAL : acquire_supported_features: requestResponse Error:-4
04-08 18:10:58.773 748 748 E WifiHAL : wifi_get_logger_supported_feature_set: Error -4 happened.
04-08 18:10:58.766 14703 14703 W iptables-wrappe: type=1400 audit(0.0:2722): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=16129 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-08 18:10:58.793 1553 1894 D WifiStateMachine: handleMessage: X
04-08 18:10:58.794 1553 1894 D WifiStateMachine: handleMessage: E msg.what=131135
04-08 18:10:58.794 1553 1894 D WifiStateMachine: processMsg: ConnectedState
04-08 18:10:58.794 1553 1894 D WifiStateMachine: processMsg: L2ConnectedState
04-08 18:10:58.794 1553 1894 D WifiStateMachine: processMsg: ConnectModeState
04-08 18:10:58.795 748 748 E WifiHAL : wifi_get_link_stats: requestResponse Error:-5
04-08 18:10:58.800 1553 1894 E WifiVendorHal: getWifiLinkLayerStats(l.937) failed {.code = ERROR_INVALID_ARGS, .description = }
04-08 18:10:58.802 1553 1894 D WifiStateMachine: handleMessage: X
04-08 18:10:58.803 1553 1590 E BatteryExternalStatsWorker: no controller energy info supplied for wifi
04-08 18:10:58.833 1553 1590 D BatteryExternalStatsWorker: uES end
04-08 18:10:58.833 1553 1590 D BatteryExternalStatsWorker: end updateExternalStatsSync
04-08 18:10:58.840 1180 1235 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-08 18:10:58.841 1180 1235 E Diag_Lib: qpLogDiagInit <== result : 0
04-08 18:10:58.841 1180 1235 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-08 18:10:58.841 1180 1180 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-08 18:10:58.841 1180 1180 E Diag_Lib: qpLogDiagInit <== result : 0
04-08 18:10:58.841 1180 1180 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-08 18:10:58.841 1180 1180 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-08 18:10:58.841 1180 1180 E Diag_Lib: qpLogDiagInit <== result : 0
04-08 18:10:58.841 1180 1180 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-08 18:10:58.842 1180 1180 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-08 18:10:58.842 1180 1180 E Diag_Lib: qpLogDiagInit <== result : 0
04-08 18:10:58.842 1180 1180 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-08 18:10:58.836 14708 14708 W iptables-wrappe: type=1400 audit(0.0:2723): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=16129 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-08 18:10:58.857 752 2147 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-08 18:10:58.857 752 2159 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-08 18:10:58.857 1127 1210 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-08 18:10:58.858 1128 1165 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-08 18:10:58.864 1088 1158 I cnss-daemon: wlfw_qmi_err_cb: Server disconnect, err -2 client 0x3K
04-08 18:10:58.864 1088 1145 I cnss-daemon: wlfw_service_request: Pthread exiting
04-08 18:10:58.868 1553 1605 D Tethering: interfaceRemoved rmnet_data2
04-08 18:10:58.869 1553 1926 D EthernetNetworkFactory: updateCapabilityFilter: []
04-08 18:10:58.871 1088 14709 E cnss-daemon: ro.baseband : [msm]
04-08 18:10:58.873 1170 1250 E ThermalEngine: qmi_clnt_error_cb: with error -2 called for clnt MODEM
04-08 18:10:58.876 1127 1127 E slim_daemon: [QMISLIM] slim_QSQmiSvc_HandleSlimEvent: Client for ID 2 is not found
04-08 18:10:58.906 14715 14715 W iptables-wrappe: type=1400 audit(0.0:2724): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=16129 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-08 18:10:58.877 1170 1269 E ThermalEngine: qmi_ts_clnt_error_cb: with -2 called for clnt MODEM0
04-08 18:10:58.879 1251 2542 I QTI_SDM_INFO: [qti_rmnet_dpm.c:586] dpm_erro_cb():qti_dpm_erro_cb
04-08 18:10:58.881 1022 1072 D QC-time-services: Daemon:genoff_qmi_error_cb: Error callback called
04-08 18:10:58.882 1022 1060 D QC-time-services: Daemon:genoff_modem_qmi_service_request: Initializing QMI
04-08 18:10:58.886 1088 1786 I cnss-daemon: wlan_qmi_err_cb: WLPS service disconnect, called with error -2 for client 0x4K
Click to expand...
Click to collapse
I tried to change settings from Developer option, to stop services, uninstall apps, nothing seems to help.
I got another error log:
04-10 12:42:42.462 12182 12202 I FA : Tag Manager is not found and thus will not be used
04-10 12:42:42.507 12182 12236 D libc : [NET] dns_sku:0
04-10 12:42:42.508 12182 12236 D libc : [NET] android_getaddrinfo_proxy get netid:0
04-10 12:42:42.509 1067 12242 D libc : [NET] _dns_getaddrinfo+, netid:100, mark:983140
04-10 12:42:42.515 2595 12181 I FSA2_RawContactSyncer: contact count. before sweep: -1, before sync: 0, after sync down: -1, after sync up: 0
04-10 12:42:42.515 2595 12181 W FSA2_ContactsSyncAdapter: @onPerformSync Sync finished successfully
04-10 12:42:42.556 1067 12242 D libc : [NET] _dns_getaddrinfo-, (NS_SUCCESS)
04-10 12:42:42.558 12182 12236 D libc : [NET] android_getaddrinfo_proxy-, success
04-10 12:42:42.563 12182 12236 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false
04-10 12:42:42.776 1536 2575 D AlarmManager: [AlarmGrouping_4.0] before: 82012d8 2020-04-10 12:43:55 257081 name=com.google.android.gms type=ELAPSED_WAKEUP window=54546 interval=0
04-10 12:42:42.777 1536 2575 D AlarmManager: [AlarmGrouping_4.0] after: 82012d8 2020-04-10 12:50:00 621578 name=com.google.android.gms type=ELAPSED_WAKEUP window=54546 interval=0
04-10 12:42:42.953 11088 11123 I Finsky : [147] kem.run(3): Stats for Executor: BlockingExecutor [email protected][Running, pool size = 2, active threads = 0, queued tasks = 0, completed tasks = 13]
04-10 12:42:42.954 11088 11123 I Finsky : [147] kem.run(3): Stats for Executor: LightweightExecutor [email protected][Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 72]
04-10 12:42:43.198 1536 3796 I BatteryService: n_update end
04-10 12:42:43.201 739 739 D qdlights: set_light_battery colorRGB=FFFF0000
04-10 12:42:43.202 739 739 D qdlights: set_speaker_light_locked mode 0, colorRGB=FFFF0000, onMS=0, offMS=0
04-10 12:42:43.202 739 739 D qdlights: [LEDInfo] has indicator attribute
04-10 12:42:43.202 739 739 D qdlights: [LedInfo] write attr ok name=/sys/class/leds/indicator/ModeRGB string=1ff0000,len=7
04-10 12:42:43.209 1974 1974 I BatteryController: (lvl,plug,charged,charging)=(13,T,f,T) [status,health,timeout,unsupprt]=[2,2,f,f]
04-10 12:42:43.210 1536 1616 D HtcPowerSaver: updateBatteryInfo
04-10 12:42:43.210 7949 7949 D PowerWakeLock: acquirePower AOD_BatteryController
04-10 12:42:43.211 1536 4622 V LocSvc_HIDL_Subscription_jni: battery_level_update
04-10 12:42:43.214 1536 4622 V LocSvc_HIDL_Subscription_jni: [battery_level_update][931] [HC] =>> [HS]
04-10 12:42:43.214 754 754 V LocSvc_HIDL_IzatSubscription: [batteryLevelUpdate][777] [HS] <<<<= [HC]
04-10 12:42:43.214 1536 4622 V LocSvc_HIDL_Subscription_jni: Exit Result 0
04-10 12:42:43.216 1536 1536 D UsbnetService: BroadcastReceiver:nReceive+
04-10 12:42:43.216 1536 1536 D UsbnetService: onReceive BATTERY_CHANGED
04-10 12:42:43.217 1536 1536 D UsbnetService: --> pluggedType = 2, mPluggedType = 0, mScreenOff = false
04-10 12:42:43.217 1536 1536 D UsbnetService: BroadcastReceiver:nReceive-
04-10 12:42:43.217 7949 7949 D BatteryController: onReceive : android.intent.action.BATTERY_CHANGED
04-10 12:42:43.217 1536 1536 D UsbDeviceManager: Receive update chargind state broadcast
04-10 12:42:43.217 1536 1536 I DeviceIdleController: updateChargingLocked: charging=true
04-10 12:42:43.217 1536 1612 D UsbDeviceManager: [USB] handleMessage: 9; pre_mConnected=true, pre_mConfiguration=true
04-10 12:42:43.217 7949 7949 I BatteryController: (lvl,plug,charging)=(13,T,T) [status,health,timeout,unsupprt]=[2,2,f,f]
04-10 12:42:43.218 7949 7949 D AodClockView: onBatteryLevelChanged (13, true, true, false, false)
04-10 12:42:43.218 7949 7949 D b : onBatteryLevelChangedInternal(13, true, true, false, false)
04-10 12:42:43.220 7949 7949 D PowerWakeLock: releasePower AOD_BatteryController
04-10 12:42:43.222 1536 1536 W DeviceIdleController: becomeActiveLocked, reason = charging
04-10 12:42:43.222 1536 1536 D PowerManagerService: runPSCheck
04-10 12:42:43.222 1536 1536 D HtcPowerSaver: Checking...
04-10 12:42:43.222 1536 1536 I HtcPowerSaver: >> updateStatus
04-10 12:42:43.222 1536 1536 I HtcPowerSaver: << updateStatus
04-10 12:42:43.229 1989 1989 I PowerUI_SlowChargerReceiver: onReceive : com.htc.intent.action.BATTERY_LEVEL_CHANGED
04-10 12:42:43.231 1989 1989 I SmartNS_ChargeOnly_Enabler: battery status:2
04-10 12:42:43.236 1989 1989 I PowerUI_SlowChargerReceiver: Level: 13 Plug usb battery level: 12 Battery health: 2 USB type: 2
04-10 12:42:43.376 11088 11123 I Finsky : [147] kem.run(3): Stats for Executor: bgExecutor [email protected][Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 62]
04-10 12:42:43.381 3119 3119 W NotificationListener: shouldBeFilteredOut !canShowBadge() com.android.systemui
04-10 12:42:43.385 3104 3104 I Launcher: Deferring update until onResume
04-10 12:42:43.395 1974 1974 I StackScroller: updateEmptyShade(true,false,false)
04-10 12:42:43.395 1974 1974 I StatusBar: updateEmptyShade(true,false)
04-10 12:42:43.395 1974 1974 I StackScroller: setBlockTouch:false
04-10 12:42:43.495 1941 1941 D wpa_supplicant: RTM_NEWLINK: ifi_index=8 ifname=rmnet_ipa0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.504 1536 1612 I EthernetTracker: interfaceLinkStateChanged, iface: rmnet_ipa0, up: false
04-10 12:42:43.505 1536 1612 V WifiNative: Received iface link up/down notification on an invalid iface=rmnet_ipa0
04-10 12:42:43.505 1536 1612 D Tethering: interfaceStatusChanged rmnet_ipa0, false
04-10 12:42:43.508 1536 1612 D Tethering: ignore interface down for rmnet_ipa0
04-10 12:42:43.566 1941 1941 D wpa_supplicant: RTM_NEWLINK: ifi_index=20 ifname=r_rmnet_data0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.568 1536 1612 I EthernetTracker: interfaceLinkStateChanged, iface: r_rmnet_data0, up: false
04-10 12:42:43.569 1536 1612 V WifiNative: Received iface link up/down notification on an invalid iface=r_rmnet_data0
04-10 12:42:43.570 1536 1612 D Tethering: interfaceStatusChanged r_rmnet_data0, false
04-10 12:42:43.581 1536 1612 D Tethering: ignore interface down for r_rmnet_data0
04-10 12:42:43.640 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=8 ifname=rmnet_ipa0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.640 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_ipa0' removed
04-10 12:42:43.646 1536 1612 D Tethering: interfaceRemoved rmnet_ipa0
04-10 12:42:43.646 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:43.649 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=9 ifname=rmnet_data0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.649 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data0' removed
04-10 12:42:43.650 1536 1612 D Tethering: interfaceRemoved rmnet_data0
04-10 12:42:43.650 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:43.681 12252 12252 W iptables-wrappe: type=1400 audit(0.0:2730): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=17763 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-10 12:42:43.751 12253 12253 W iptables-wrappe: type=1400 audit(0.0:2731): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=17763 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-10 12:42:43.797 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=10 ifname=rmnet_data1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.797 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data1' removed
04-10 12:42:43.798 1536 1612 D Tethering: interfaceRemoved rmnet_data1
04-10 12:42:43.798 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:43.821 12254 12254 W iptables-wrappe: type=1400 audit(0.0:2732): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=17763 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-10 12:42:43.880 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=11 ifname=rmnet_data2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.881 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data2' removed
04-10 12:42:43.889 1536 1612 D Tethering: interfaceRemoved rmnet_data2
04-10 12:42:43.889 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:43.891 12255 12255 W iptables-wrappe: type=1400 audit(0.0:2733): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=17763 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-10 12:42:43.951 12256 12256 W iptables-wrappe: type=1400 audit(0.0:2734): avc: denied { read write } for path="/dev/diag" dev="tmpfs" ino=17763 scontext=u:r:netutils_wrapper:s0 tcontext=ubject_r:diag_devi
ce:s0 tclass=chr_file permissive=0
04-10 12:42:43.957 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=12 ifname=rmnet_data3 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:43.957 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data3' removed
04-10 12:42:43.958 1536 1612 D Tethering: interfaceRemoved rmnet_data3
04-10 12:42:43.959 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:44.037 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=13 ifname=rmnet_data4 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:44.037 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data4' removed
04-10 12:42:44.041 1536 1612 D Tethering: interfaceRemoved rmnet_data4
04-10 12:42:44.057 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:44.087 1173 1221 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-10 12:42:44.088 1173 1221 E Diag_Lib: qpLogDiagInit <== result : 0
04-10 12:42:44.088 1173 1221 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-10 12:42:44.088 1173 1173 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-10 12:42:44.088 1173 1173 E Diag_Lib: qpLogDiagInit <== result : 0
04-10 12:42:44.088 1173 1173 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-10 12:42:44.088 1173 1173 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-10 12:42:44.088 1173 1173 E Diag_Lib: qpLogDiagInit <== result : 0
04-10 12:42:44.088 1173 1173 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-10 12:42:44.089 1173 1173 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-10 12:42:44.089 1173 1173 E Diag_Lib: qpLogDiagInit <== result : 0
04-10 12:42:44.089 1173 1173 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-10 12:42:44.100 754 2066 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-10 12:42:44.100 1130 1186 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-10 12:42:44.101 1129 1208 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-10 12:42:44.102 754 2069 E LocSvc_ApiV02: errorCb:4087]: Service unavailable error
04-10 12:42:44.108 1089 1148 I cnss-daemon: wlfw_qmi_err_cb: Server disconnect, err -2 client 0x2K
04-10 12:42:44.108 1089 1145 I cnss-daemon: wlfw_service_request: Pthread exiting
04-10 12:42:44.115 1089 12259 E cnss-daemon: ro.baseband : [msm]
04-10 12:42:44.117 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=14 ifname=rmnet_data5 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:44.117 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data5' removed
04-10 12:42:44.121 1536 1612 D Tethering: interfaceRemoved rmnet_data5
04-10 12:42:44.122 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:44.137 1129 1129 E slim_daemon: [QMISLIM] slim_QSQmiSvc_HandleSlimEvent: Client for ID 2 is not found
04-10 12:42:44.138 1159 1234 E ThermalEngine: qmi_clnt_error_cb: with error -2 called for clnt MODEM
04-10 12:42:44.140 1271 2500 I QTI_SDM_INFO: [qti_rmnet_dpm.c:586] dpm_erro_cb():qti_dpm_erro_cb
04-10 12:42:44.143 1159 1249 E ThermalEngine: qmi_ts_clnt_error_cb: with -2 called for clnt MODEM0
04-10 12:42:44.143 1271 2498 I QTI_SDM_INFO: [qti_rmnet_peripheral.c:1221] qti_rmnet_ph_set_modem_state():Received set modem state to 0
04-10 12:42:44.143 1271 2498 E QTI_SDM_INFO: [qti_rmnet_peripheral.c:1233] qti_rmnet_ph_set_modem_state():Couldn't set ph_iface_fd
04-10 12:42:44.143 1271 2498 E QTI_SDM_INFO: [qti_rmnet_modem.c:1726] qti_rmnet_modem_not_in_service():Failed to set modem state on peripheral driver file
04-10 12:42:44.143 1271 2498 I QTI_SDM_INFO: [qti_rmnet_dpm.c:542] qti_rmnet_dpm_release():qti_rmnet_dpm_release Entry
04-10 12:42:44.144 1271 2498 I QTI_SDM_INFO: [qti_rmnet_dpm.c:551] qti_rmnet_dpm_release():Successfully deregistered DPM client
04-10 12:42:44.144 1271 2498 I QTI_SDM_INFO: [qti_rmnet_modem.c:1737] qti_rmnet_modem_not_in_service():qti rmnet modem not in service going to register DPM call back
04-10 12:42:44.148 1025 1079 D QC-time-services: Daemon:genoff_qmi_error_cb: Error callback called
04-10 12:42:44.148 1025 1069 D QC-time-services: Daemon:genoff_modem_qmi_service_request: Initializing QMI
04-10 12:42:44.151 1536 2092 D HtcSystemUPManager: HtcSystemUPolicy [canLog (default)] category: modem, enable: true
04-10 12:42:44.157 1089 1789 I cnss-daemon: wlan_qmi_err_cb: WLPS service disconnect, called with error -2 for client 0x4K
04-10 12:42:44.159 1018 10372 V AudioFlg: registerClient() client 0xe2c3e018, pid 2109
04-10 12:42:44.160 1018 10372 V AudioFlg: setParameters(): io 0, keyvalue vsid=299651072;call_state=1, calling pid 2109 calling uid 1001
04-10 12:42:44.173 1018 10372 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS for uid=1001 => granted (13392 us)
04-10 12:42:44.173 1018 10372 W AudioFlg: setParameters(): Voice vsid=299651072;call_state=1
04-10 12:42:44.174 1018 10372 V AudioFlg: setParameters: filtered keyvalue call_state=1;vsid=299651072
04-10 12:42:44.175 722 957 D audio_hw_primary: adev_set_parameters: enter: call_state=1;vsid=299651072
04-10 12:42:44.175 722 957 D voice_extn: update_call_states is_call_active:0 in_call:0, mode:0
04-10 12:42:44.175 722 957 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-10 12:42:44.175 722 957 D split_a2dp: ignore a2dp setparameter
04-10 12:42:44.175 722 957 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-10 12:42:44.178 722 957 D r_submix: adev_set_parameters: call_state=1;vsid=299651072
04-10 12:42:44.178 1536 2093 D HtcSystemUPManager: HtcSystemUPReceiver Wrong format of UP data, ignore it!
04-10 12:42:44.182 1018 1338 V AudioFlg: setParameters(): io 0, keyvalue vsid=299651072;call_state=1, calling pid 2109 calling uid 1001
04-10 12:42:44.182 1018 1338 W AudioFlg: setParameters(): Voice vsid=299651072;call_state=1
04-10 12:42:44.183 1018 1338 V AudioFlg: setParameters: filtered keyvalue call_state=1;vsid=299651072
04-10 12:42:44.186 722 957 D audio_hw_primary: adev_set_parameters: enter: call_state=1;vsid=299651072
04-10 12:42:44.186 722 957 D voice_extn: update_call_states is_call_active:0 in_call:0, mode:0
04-10 12:42:44.187 722 957 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-10 12:42:44.187 722 957 D split_a2dp: ignore a2dp setparameter
04-10 12:42:44.187 722 957 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-10 12:42:44.189 1173 1173 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-10 12:42:44.189 1173 1173 E Diag_Lib: qpLogDiagInit <== result : 0
04-10 12:42:44.189 1173 1173 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-10 12:42:44.189 1173 1173 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
04-10 12:42:44.189 1173 1173 E Diag_Lib: qpLogDiagInit <== result : 0
04-10 12:42:44.189 2874 2948 I SecureElement-Terminal-SIM1: OnStateChange:false
04-10 12:42:44.189 1173 1173 E Diag_Lib: DATAD : gIsQXDMDisabled 0, gIsADBDisabled 1, gIsDebugDisabled 0, gIsIMSLogsDisabled 0
04-10 12:42:44.190 1271 2498 I QTI_SDM_INFO: [qti_rmnet_modem.c:1749] qti_rmnet_modem_not_in_service():Completed processing modem out of service ind
04-10 12:42:44.190 1271 2498 I QTI_SDM_INFO: [qti_cmdq.c:113] qti_cmdq_cmd_free():qcmap_cmdq: free one commmand data
04-10 12:42:44.190 2874 2948 I SecureElement-AccessControlEnforcer: Reset the ACE for terminal:SIM1
04-10 12:42:44.192 1159 12263 I ThermalEngine: qmi: Instance id 0 for MODEM0 TS
04-10 12:42:44.194 722 3408 D r_submix: adev_set_parameters: call_state=1;vsid=299651072
04-10 12:42:44.195 1018 10372 V AudioFlg: setParameters(): io 0, keyvalue vsid=297816064;call_state=1, calling pid 2109 calling uid 1001
04-10 12:42:44.195 1018 10372 W AudioFlg: setParameters(): Voice vsid=297816064;call_state=1
04-10 12:42:44.195 1018 10372 V AudioFlg: setParameters: filtered keyvalue call_state=1;vsid=297816064
04-10 12:42:44.195 722 3408 D audio_hw_primary: adev_set_parameters: enter: call_state=1;vsid=297816064
04-10 12:42:44.195 722 3408 D voice_extn: update_call_states is_call_active:0 in_call:0, mode:0
04-10 12:42:44.195 722 3408 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-10 12:42:44.195 722 3408 D split_a2dp: ignore a2dp setparameter
04-10 12:42:44.195 722 3408 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-10 12:42:44.196 2927 2993 I QcrilOemhookMsgTunnel: [1]processOemHookIndication length=47
04-10 12:42:44.199 722 3408 D r_submix: adev_set_parameters: call_state=1;vsid=297816064
04-10 12:42:44.200 1018 10372 V AudioFlg: setParameters(): io 0, keyvalue vsid=299651072;call_state=1, calling pid 2109 calling uid 1001
04-10 12:42:44.200 1018 10372 W AudioFlg: setParameters(): Voice vsid=299651072;call_state=1
04-10 12:42:44.200 1018 10372 V AudioFlg: setParameters: filtered keyvalue call_state=1;vsid=299651072
04-10 12:42:44.200 722 3408 D audio_hw_primary: adev_set_parameters: enter: call_state=1;vsid=299651072
04-10 12:42:44.201 722 3408 D voice_extn: update_call_states is_call_active:0 in_call:0, mode:0
04-10 12:42:44.201 722 3408 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-10 12:42:44.201 722 3408 D split_a2dp: ignore a2dp setparameter
04-10 12:42:44.201 722 3408 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-10 12:42:44.202 722 3408 D r_submix: adev_set_parameters: call_state=1;vsid=299651072
04-10 12:42:44.203 1018 10372 V AudioFlg: setParameters(): io 0, keyvalue vsid=297816064;call_state=1, calling pid 2109 calling uid 1001
04-10 12:42:44.203 1018 10372 W AudioFlg: setParameters(): Voice vsid=297816064;call_state=1
04-10 12:42:44.203 1018 10372 V AudioFlg: setParameters: filtered keyvalue call_state=1;vsid=297816064
04-10 12:42:44.204 722 3408 D audio_hw_primary: adev_set_parameters: enter: call_state=1;vsid=297816064
04-10 12:42:44.204 722 3408 D voice_extn: update_call_states is_call_active:0 in_call:0, mode:0
04-10 12:42:44.204 722 3408 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-10 12:42:44.204 722 3408 D split_a2dp: ignore a2dp setparameter
04-10 12:42:44.204 722 3408 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-10 12:42:44.205 722 3408 D r_submix: adev_set_parameters: call_state=1;vsid=297816064
04-10 12:42:44.208 1018 10372 V AudioFlg: setParameters(): io 0, keyvalue vsid=297816064;call_state=1, calling pid 2109 calling uid 1001
04-10 12:42:44.208 1018 10372 W AudioFlg: setParameters(): Voice vsid=297816064;call_state=1
04-10 12:42:44.209 1018 10372 V AudioFlg: setParameters: filtered keyvalue call_state=1;vsid=297816064
04-10 12:42:44.209 722 3408 D audio_hw_primary: adev_set_parameters: enter: call_state=1;vsid=297816064
04-10 12:42:44.209 722 3408 D voice_extn: update_call_states is_call_active:0 in_call:0, mode:0
04-10 12:42:44.209 722 3408 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
04-10 12:42:44.209 722 3408 D split_a2dp: ignore a2dp setparameter
04-10 12:42:44.209 722 3408 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
04-10 12:42:44.209 2927 2993 I QcrilOemhookMsgTunnel: [0]processOemHookIndication length=47
04-10 12:42:44.212 2124 2124 I ImsFeature: notifying ImsFeatureState=0
04-10 12:42:44.212 2124 2124 I ImsServiceController: notifyImsFeatureStatus: slot=0, feature=1, status=0
04-10 12:42:44.213 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.215 2124 2124 I chatty : uid=1001(radio) com.android.phone identical 28 lines
04-10 12:42:44.215 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.215 722 3408 D r_submix: adev_set_parameters: call_state=1;vsid=297816064
04-10 12:42:44.216 2124 2124 W ImsServiceController: sendImsFeatureStatusChanged: Binder died, removing callback. Exception:null
04-10 12:42:44.216 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.216 2124 2124 I chatty : uid=1001(radio) com.android.phone identical 2 lines
04-10 12:42:44.216 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.216 2124 2124 W ImsServiceController: sendImsFeatureStatusChanged: Binder died, removing callback. Exception:null
04-10 12:42:44.216 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.217 2124 2124 I chatty : uid=1001(radio) com.android.phone identical 11 lines
04-10 12:42:44.217 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.218 2124 2124 I CallbackAdapterManager: Closing connection and clearing callbacks
04-10 12:42:44.218 2124 2124 W MmTelFeatureConnection: remove: Couldn't get IImsMmTelFeature binder
04-10 12:42:44.218 2124 2124 I CallbackAdapterManager: Closing connection and clearing callbacks
04-10 12:42:44.219 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.219 2124 2124 I chatty : uid=1001(radio) com.android.phone identical 13 lines
04-10 12:42:44.219 2124 2124 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.219 2097 2116 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.222 2097 2108 I MmTelFeatureConnection: imsStatusChanged: slot: 0 feature: 1 status: 0
04-10 12:42:44.228 2927 2993 I QcrilOemhookMsgTunnel: [1]processOemHookIndication length=47
04-10 12:42:44.231 2097 2116 I MmTelFeatureConnection: onDeregistered ::
04-10 12:42:44.235 2927 2993 I QcrilOemhookMsgTunnel: [0]processOemHookIndication length=47
04-10 12:42:44.238 1941 1941 D wpa_supplicant: RTM_DELLINK: ifi_index=15 ifname=rmnet_data6 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x0 ()
04-10 12:42:44.238 1941 1941 D wpa_supplicant: RTM_DELLINK: Interface 'rmnet_data6' removed
04-10 12:42:44.240 2927 2993 I QcrilOemhookMsgTunnel: [1]processOemHookIndication length=47
04-10 12:42:44.242 1536 1927 D EthernetNetworkFactory: updateCapabilityFilter: []
04-10 12:42:44.242 1536 1612 D Tethering: interfaceRemoved rmnet_data6
04-10 12:42:44.245 2927 2993 I QcrilOemhookMsgTunnel: [0]processOemHookIndication length=47
04-10 12:42:44.246 1974 1974 D NetworkController: [FakeUI][0] Start!
04-10 12:42:44.252 1974 1974 D NetworkController: [FakeUI][1] Start!
04-10 12:42:44.258 2124 2124 D HtcBuildUtils: supportSIMLockedNotification = 0
Click to expand...
Click to collapse
Does anyone have any idea why this happens?
Could it be a hardware issue?
I do not want to lose all the data on the phone (I know, backup helps but not fully: 2 factor authentication apps, etc.)
OK, problem soved: I destroyed the phone (getting a small hand cut as well).
Reset to factory > Same thing
Recovery mode > Wipe > Same thing
It was probably a hardware issue. I saved my data (what I could) and throw it at the garbage.
So from now on, never HTC (if they ever come with a new phone). System UI restarting, no updates, this errors, dumb buttons (never fully worked, of course, and almost 2 years were not enough to get used to them).

Video encoding

Hi all,
I'm getting an error when attempting to encode video frames using the h264 encoder. I'd like to get some help i understanding what could be going wrong, and especially understanding which errors are fatal and which are not:
Code:
06-04 14:43:39.478 25211 25211 I OMXClient: IOmx service obtained
06-04 14:43:39.479 286 1364 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in [email protected] process
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32: Returning default
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32 Config name: vidc_enc_log_in value: 0
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32 Config name: vidc_enc_log_out value: 0
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32 Config name: vidc_enc_csc_custom_matrix value: 0
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32: Returning default
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32: Returning default
06-04 14:43:39.503 286 1364 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
06-04 14:43:39.508 25098 25098 I MediaCodec: MediaCodec will operate in async mode
06-04 14:43:39.511 286 1364 I OMX-VENC: WARN: Enable/Disable allocate-native-handle allowed only in secure session
06-04 14:43:39.511 286 1364 E OMXNodeInstance: setParameter(0xe3fb6144:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
06-04 14:43:39.511 286 1364 I OMX-VENC: WARN: set_parameter: metamode is valid for input port only
06-04 14:43:39.511 286 1364 W OMXNodeInstance: [0xe3fb6144:qcom.encoder.avc] component does not support metadata mode; using fallback
06-04 14:43:39.513 25211 25211 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
06-04 14:43:39.513 25211 25211 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
06-04 14:43:39.513 25211 25211 W OMXUtils: do not know color format 0x7fa30c00 = 2141391872
06-04 14:43:39.514 25211 25211 W OMXUtils: do not know color format 0x7fa30c09 = 2141391881
06-04 14:43:39.514 25211 25211 W OMXUtils: do not know color format 0x7fa30c0a = 2141391882
06-04 14:43:39.514 25211 25211 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
06-04 14:43:39.515 25211 25211 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
06-04 14:43:39.516 25211 25211 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-04 14:43:39.518 286 1364 I OMX-VENC: venc_dev: WARN: Unsupported eColorFormat 0x7f000789
06-04 14:43:39.525 25211 25211 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]
06-04 14:43:39.527 286 943 I OMX-VENC: WARN: Failed to update the profile_level
06-04 14:43:39.527 25211 25211 I ACodec : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
06-04 14:43:39.527 25211 25211 I ACodec : setupVideoEncoder succeeded
06-04 14:43:39.528 25211 25211 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-04 14:43:39.528 286 1556 E OMX-VENC: ERROR: unsupported index 1870659589
06-04 14:43:39.528 286 1556 E OMXNodeInstance: getConfig(0xe3fb6144:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
06-04 14:43:39.533 137 137 W AshmemAllocator: ashmem_create_region(1490944) returning hidl_memory(0x7e34a2c110, 1490944)
06-04 14:43:39.534 25211 25211 D vndksupport: Loading /system/lib64/vndk-sp-28/hw/[email protected] from current namespace instead of sphal namespace.
06-04 14:43:39.536 286 1364 E ion : ioctl c0044901 failed with code -1: Not a typewriter
06-04 14:43:39.538 137 137 W AshmemAllocator: ashmem_create_region(1490944) returning hidl_memory(0x7e34a2c110, 1490944)
06-04 14:43:39.546 137 137 I chatty : uid=1000(system) [email protected] identical 5 lines
06-04 14:43:39.547 137 137 W AshmemAllocator: ashmem_create_region(1490944) returning hidl_memory(0x7e34a2c110, 1490944)
06-04 14:43:39.553 137 137 W AshmemAllocator: ashmem_create_region(921600) returning hidl_memory(0x7e34a2c110, 921600)
06-04 14:43:39.555 137 137 I chatty : uid=1000(system) [email protected] identical 2 lines
06-04 14:43:39.556 137 137 W AshmemAllocator: ashmem_create_region(921600) returning hidl_memory(0x7e34a2c110, 921600)
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035230, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035243, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: WARN: TemporalLayer: Invalid settings, hardware doesn't support 0 temporal layers
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035230, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035243, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: WARN: TemporalLayer: Invalid settings, hardware doesn't support 0 temporal layers
06-04 14:43:40.058 25097 25097 I MediaCodecSource: MediaCodecSource (video) starting
06-04 14:43:40.060 25097 25097 I MediaCodecSource: MediaCodecSource (video) started
06-04 14:43:40.066 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):346
06-04 14:43:40.066 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):350
06-04 14:43:40.066 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):357
06-04 14:43:40.083 286 1757 E OMX-VENC: ERROR: ETBProxyA: Invalid bufindex = 1718596252
06-04 14:43:40.083 286 1757 E OMX-VENC: ERROR: ETBProxy() failed!
06-04 14:43:40.083 286 1757 E OMX-VENC: ERROR: send OMX_ErrorHardware to Client
06-04 14:43:40.085 25211 25211 E ACodec : [OMX.qcom.video.encoder.avc] ERROR(0x80001009)
06-04 14:43:40.085 25211 25211 E ACodec : signalError(omxError 0x80001009, internalError -2147483648)
06-04 14:43:40.085 25098 25098 E MediaCodec: Codec reported err 0x80001009, actionCode 0, while in state 6
06-04 14:43:40.085 25098 25098 W MediaAnalyticsItem: Unable to record: [1:codec:0:-1::0:-1:1:0:10:android.media.mediacodec.codec=OMX.qcom.video.encoder.avc:android.media.mediacodec.mode=video:android.media.mediacodec.secure=0:android.media.mediacodec.encoder=1:android.media.mediacodec.width=1280:android.media.mediacodec.height=720:android.media.mediacodec.rotation-degrees=0:android.media.mediacodec.mime=video/avc:android.media.mediacodec.errcode=-2147479543:android.media.mediacodec.errstate=STARTED:] [forcenew=0]
06-04 14:43:40.087 25097 25097 E MediaCodecSource: Encoder (video) reported error : 0x80001009
06-04 14:43:40.088 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):359 err is -1011
06-04 14:43:40.109 25096 25096 E qdgralloc: Invalid gralloc handle (at 0x760400b420): ver(12/12) ints(0/22) fds(0/2)
06-04 14:43:40.109 25096 25096 E qdgralloc: Gralloc Error : device= 0x760400a820, buffer-handle=0x760400b420
06-04 14:43:42.104 2311 2311 W SDM : HWCSession::UEventThread: UEvent dropped. No uevent listener.
06-04 14:43:42.141 2311 2311 W SDM : HWCSession::UEventThread: UEvent dropped. No uevent listener.
06-04 14:43:43.088 25211 25211 I ACodec : [OMX.qcom.video.encoder.avc] forcing the release of codec
06-04 14:43:43.194 286 1758 E OMX-VENC: venc_dev: async_venc_message_thread interrupted to be exited
06-04 14:43:43.198 286 1364 I OMX-VENC: Component Deinit
06-04 14:43:43.204 25211 25211 E ACodec : OMX.qcom.video.encoder.avc
06-04 14:43:43.207 25097 25097 I MediaCodecSource: encoder (video) stopped
The code is the aethercast project from UBports, and all calls are going through libhybris: https://github.com/ubports/aethercast/blob/xenial/src/ac/android/h264encoder.cpp
I have encountered this propblem just now today.
Have you got the fix ?
amuppet said:
Hi all,
I'm getting an error when attempting to encode video frames using the h264 encoder. I'd like to get some help i understanding what could be going wrong, and especially understanding which errors are fatal and which are not:
Code:
06-04 14:43:39.478 25211 25211 I OMXClient: IOmx service obtained
06-04 14:43:39.479 286 1364 I OMXMaster: makeComponentInstance(OMX.qcom.video.encoder.avc) in [email protected] process
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32: Returning default
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32 Config name: vidc_enc_log_in value: 0
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32 Config name: vidc_enc_log_out value: 0
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32 Config name: vidc_enc_csc_custom_matrix value: 0
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32: Returning default
06-04 14:43:39.486 286 1364 D PlatformConfig: getInstance: Enter
06-04 14:43:39.486 286 1364 D PlatformConfig: getInt32: Returning default
06-04 14:43:39.503 286 1364 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
06-04 14:43:39.508 25098 25098 I MediaCodec: MediaCodec will operate in async mode
06-04 14:43:39.511 286 1364 I OMX-VENC: WARN: Enable/Disable allocate-native-handle allowed only in secure session
06-04 14:43:39.511 286 1364 E OMXNodeInstance: setParameter(0xe3fb6144:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
06-04 14:43:39.511 286 1364 I OMX-VENC: WARN: set_parameter: metamode is valid for input port only
06-04 14:43:39.511 286 1364 W OMXNodeInstance: [0xe3fb6144:qcom.encoder.avc] component does not support metadata mode; using fallback
06-04 14:43:39.513 25211 25211 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
06-04 14:43:39.513 25211 25211 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
06-04 14:43:39.513 25211 25211 W OMXUtils: do not know color format 0x7fa30c00 = 2141391872
06-04 14:43:39.514 25211 25211 W OMXUtils: do not know color format 0x7fa30c09 = 2141391881
06-04 14:43:39.514 25211 25211 W OMXUtils: do not know color format 0x7fa30c0a = 2141391882
06-04 14:43:39.514 25211 25211 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
06-04 14:43:39.515 25211 25211 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
06-04 14:43:39.516 25211 25211 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-04 14:43:39.518 286 1364 I OMX-VENC: venc_dev: WARN: Unsupported eColorFormat 0x7f000789
06-04 14:43:39.525 25211 25211 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]
06-04 14:43:39.527 286 943 I OMX-VENC: WARN: Failed to update the profile_level
06-04 14:43:39.527 25211 25211 I ACodec : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
06-04 14:43:39.527 25211 25211 I ACodec : setupVideoEncoder succeeded
06-04 14:43:39.528 25211 25211 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-04 14:43:39.528 286 1556 E OMX-VENC: ERROR: unsupported index 1870659589
06-04 14:43:39.528 286 1556 E OMXNodeInstance: getConfig(0xe3fb6144:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
06-04 14:43:39.533 137 137 W AshmemAllocator: ashmem_create_region(1490944) returning hidl_memory(0x7e34a2c110, 1490944)
06-04 14:43:39.534 25211 25211 D vndksupport: Loading /system/lib64/vndk-sp-28/hw/[email protected] from current namespace instead of sphal namespace.
06-04 14:43:39.536 286 1364 E ion : ioctl c0044901 failed with code -1: Not a typewriter
06-04 14:43:39.538 137 137 W AshmemAllocator: ashmem_create_region(1490944) returning hidl_memory(0x7e34a2c110, 1490944)
06-04 14:43:39.546 137 137 I chatty : uid=1000(system) [email protected] identical 5 lines
06-04 14:43:39.547 137 137 W AshmemAllocator: ashmem_create_region(1490944) returning hidl_memory(0x7e34a2c110, 1490944)
06-04 14:43:39.553 137 137 W AshmemAllocator: ashmem_create_region(921600) returning hidl_memory(0x7e34a2c110, 921600)
06-04 14:43:39.555 137 137 I chatty : uid=1000(system) [email protected] identical 2 lines
06-04 14:43:39.556 137 137 W AshmemAllocator: ashmem_create_region(921600) returning hidl_memory(0x7e34a2c110, 921600)
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035230, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035243, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: WARN: TemporalLayer: Invalid settings, hardware doesn't support 0 temporal layers
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035230, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: id = 10035243, value = 4294967295, min = 0, max = 5
06-04 14:43:39.558 286 1757 I OMX-VENC: venc_dev: WARN: TemporalLayer: Invalid settings, hardware doesn't support 0 temporal layers
06-04 14:43:40.058 25097 25097 I MediaCodecSource: MediaCodecSource (video) starting
06-04 14:43:40.060 25097 25097 I MediaCodecSource: MediaCodecSource (video) started
06-04 14:43:40.066 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):346
06-04 14:43:40.066 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):350
06-04 14:43:40.066 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):357
06-04 14:43:40.083 286 1757 E OMX-VENC: ERROR: ETBProxyA: Invalid bufindex = 1718596252
06-04 14:43:40.083 286 1757 E OMX-VENC: ERROR: ETBProxy() failed!
06-04 14:43:40.083 286 1757 E OMX-VENC: ERROR: send OMX_ErrorHardware to Client
06-04 14:43:40.085 25211 25211 E ACodec : [OMX.qcom.video.encoder.avc] ERROR(0x80001009)
06-04 14:43:40.085 25211 25211 E ACodec : signalError(omxError 0x80001009, internalError -2147483648)
06-04 14:43:40.085 25098 25098 E MediaCodec: Codec reported err 0x80001009, actionCode 0, while in state 6
06-04 14:43:40.085 25098 25098 W MediaAnalyticsItem: Unable to record: [1:codec:0:-1::0:-1:1:0:10:android.media.mediacodec.codec=OMX.qcom.video.encoder.avc:android.media.mediacodec.mode=video:android.media.mediacodec.secure=0:android.media.mediacodec.encoder=1:android.media.mediacodec.width=1280:android.media.mediacodec.height=720:android.media.mediacodec.rotation-degrees=0:android.media.mediacodec.mime=video/avc:android.media.mediacodec.errcode=-2147479543:android.media.mediacodec.errstate=STARTED:] [forcenew=0]
06-04 14:43:40.087 25097 25097 E MediaCodecSource: Encoder (video) reported error : 0x80001009
06-04 14:43:40.088 25216 25216 V MediaCompatibilityLayer: bool media_codec_source_read(MediaCodecSourceWrapper *, MediaBufferWrapper **):359 err is -1011
06-04 14:43:40.109 25096 25096 E qdgralloc: Invalid gralloc handle (at 0x760400b420): ver(12/12) ints(0/22) fds(0/2)
06-04 14:43:40.109 25096 25096 E qdgralloc: Gralloc Error : device= 0x760400a820, buffer-handle=0x760400b420
06-04 14:43:42.104 2311 2311 W SDM : HWCSession::UEventThread: UEvent dropped. No uevent listener.
06-04 14:43:42.141 2311 2311 W SDM : HWCSession::UEventThread: UEvent dropped. No uevent listener.
06-04 14:43:43.088 25211 25211 I ACodec : [OMX.qcom.video.encoder.avc] forcing the release of codec
06-04 14:43:43.194 286 1758 E OMX-VENC: venc_dev: async_venc_message_thread interrupted to be exited
06-04 14:43:43.198 286 1364 I OMX-VENC: Component Deinit
06-04 14:43:43.204 25211 25211 E ACodec : OMX.qcom.video.encoder.avc
06-04 14:43:43.207 25097 25097 I MediaCodecSource: encoder (video) stopped
The code is the aethercast project from UBports, and all calls are going through libhybris: https://github.com/ubports/aethercast/blob/xenial/src/ac/android/h264encoder.cpp
Click to expand...
Click to collapse
E -> Error ( fatal )
W -> Warning ( non fatal )
Enoch.Liu said:
I have encountered this propblem just now today.
Have you got the fix ?
Click to expand...
Click to collapse
Nope. :-(

Categories

Resources