Demon000 / device_xiaomi_libra

23 stars 13 forks source link

I don't know if problem of ROM.But it's stuck in boot animation with nitrogen #13

Closed viscropst closed 7 years ago

viscropst commented 7 years ago

Here is logcat:https://mega.nz/#!RZ0EmJrA!VcIj2Ea0ZSuy3fDuSt_JoUsVkZaF_nHGq49w8B5T-IQ Hope you can help me with this,thanks!

Demon000 commented 7 years ago

With what?

viscropst commented 7 years ago

Nitrogen O and device tree based on yours.

GuaiYiHu commented 7 years ago

image something wrong with... you power hal???

viscropst commented 7 years ago

Power hal is modified to support aosp based roms,because of aosp based rom not has getfeature() and POWER_HINT_SET_PROFILE.You could read the source code based on Demon's.

Demon000 commented 7 years ago
  1. Issue with power hal is that you don't know shit about writing code. https://github.com/viscropst/device_libra/blob/oreo/modules/power/power.c#L119 You can't just cast this here, because you don't know that the data sent through that void parameter is actually an int32_t. If your AOSP ROM doesn't support power profiles, just remove the power hal, since power profiles is all it does.
  2. F zygote64: jni_internal.cc:508] JNI FatalError called: frameworks/base/core/jni/com_android_internal_os_Zygote.cpp:186: setgroups failed: Invalid argument, gids.size=15 This happens because missing qcom_diag AID. https://review.lineageos.org/#/c/187897/
viscropst commented 7 years ago

Thanks, I'm trying to building without in-device-tree power hal.I'll try to apply that patch(or replace the 'qcom_diag' to 'oem_2950' in rc files of rootdir) to codebase of nitrogen.

viscropst commented 7 years ago

this is new logcat logcat.txt

GuaiYiHu commented 7 years ago

https://review.lineageos.org/#/c/185640/

viscropst commented 7 years ago

It's already applied to nitrogen.Here is commit

viscropst commented 7 years ago

A new logcat up logcat

viscropst commented 6 years ago

Have you get this error in lineage? I built the nitrogen oreo and booting normally but logcat shows as below. Thanks for you help!

02-02 04:18:46.680   434   618 D PerMgrLib: QCRIL voting for modem
02-02 04:18:46.680   394   628 D PerMgrSrv: QCRIL voting for modem
02-02 04:18:46.680   394   628 D PerMgrSrv: modem client QCRIL is voter already
02-02 04:18:46.684   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.684   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.684   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.686   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.686   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.686   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.686   412   412 E QC-QMI  : qmi_qmux: TX failed, connection inactive or in reset, conn_id=0, status_flags=0
02-02 04:18:46.686   412   412 E QC-QMI  : qmi_ctl_tx_msg: qmi_qmux_tx_msg failed
02-02 04:18:46.686   412   412 E QC-QMI  : qmi_ctl_handle_request: qmi_ctl_tx_msg call failed
02-02 04:18:46.689   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.689   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.689   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.689   412   412 E QC-QMI  : qmi_qmux: TX failed, connection inactive or in reset, conn_id=0, status_flags=0
02-02 04:18:46.689   412   412 E QC-QMI  : qmi_ctl_tx_msg: qmi_qmux_tx_msg failed
02-02 04:18:46.689   412   412 E QC-QMI  : qmi_ctl_handle_request: qmi_ctl_tx_msg call failed
02-02 04:18:46.692   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.693   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.693   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.694   434  9695 E QC-QMI  : qmi_client [434] c25: failed to locate client data
02-02 04:18:46.694   412   412 E QC-DS-LIB: qmuxd: RX on fd=14 returned error=0 errno[19:No such device]
02-02 04:18:46.694   412   412 E QC-QMI  : QMUX qmux_client_id=c25 not found in qmux client list, unable to remove
02-02 04:18:46.698   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.698   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.698   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.702   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.702   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.702   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.702   412   412 E QC-QMI  : qmi_qmux: TX failed, connection inactive or in reset, conn_id=0, status_flags=0
02-02 04:18:46.702   412   412 E QC-QMI  : qmi_ctl_tx_msg: qmi_qmux_tx_msg failed
02-02 04:18:46.702   412   412 E QC-QMI  : qmi_ctl_handle_request: qmi_ctl_tx_msg call failed
02-02 04:18:46.707   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.707   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.707   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.707   412   412 E QC-QMI  : qmi_qmux: TX failed, connection inactive or in reset, conn_id=0, status_flags=0
02-02 04:18:46.707   412   412 E QC-QMI  : qmi_ctl_tx_msg: qmi_qmux_tx_msg failed
02-02 04:18:46.707   412   412 E QC-QMI  : qmi_ctl_handle_request: qmi_ctl_tx_msg call failed
02-02 04:18:46.710   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.710   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.710   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.710   412   412 E QC-QMI  : qmi_qmux: TX failed, connection inactive or in reset, conn_id=0, status_flags=0
02-02 04:18:46.710   412   412 E QC-QMI  : qmi_ctl_tx_msg: qmi_qmux_tx_msg failed
02-02 04:18:46.710   412   412 E QC-QMI  : qmi_ctl_handle_request: qmi_ctl_tx_msg call failed
02-02 04:18:46.714   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.714   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.714   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.714   412   412 E QC-QMI  : qmi_qmux: TX failed, connection inactive or in reset, conn_id=0, status_flags=0
02-02 04:18:46.714   412   412 E QC-QMI  : qmi_ctl_tx_msg: qmi_qmux_tx_msg failed
02-02 04:18:46.714   412   412 E QC-QMI  : qmi_ctl_handle_request: qmi_ctl_tx_msg call failed
02-02 04:18:46.722   412   412 E QC-QMI  : linux_qmi_qmux_io.c: Unable to open port id /dev/smdcntl0, error [19:No such device]
02-02 04:18:46.722   412   412 E QC-QMI  : qmi_qmux_open_connection: QMI_QMUX_IO_PLATFORM_OPEN_CONN failed conn_id=0 rc=-1 
02-02 04:18:46.722   412   412 E QC-QMI  : qmi_qmux_tx_msg: failed to open inactive connd_id=0
02-02 04:18:46.722   434  9702 E QC-QMI  : qmi_client [434] c26: failed to locate client data
02-02 04:18:46.723   412   412 E QC-DS-LIB: qmuxd: RX on fd=14 returned error=0 errno[19:No such device]
02-02 04:18:46.723   412   412 E QC-QMI  : QMUX qmux_client_id=c26 not found in qmux client list, unable to remove
Demon000 commented 6 years ago

Do you see any sepolicy denials?

viscropst commented 6 years ago

Yes, just like below.

02-02 09:21:28.063 26528 26528 W rfs_access: type=1400 audit(0.0:276): avc: denied { read } for name="uio" dev="sysfs" ino=15612 scontext=u:r:rfs_access:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
02-02 09:21:28.069 26528 26528 E rfs_access: open dir failed on /sys/class/uio, errno = 13
02-02 09:21:28.070 26528 26528 E rfs_access: Mmap failed for client: rfsa_dsp
02-02 09:21:28.070 26528 26528 E rfs_access: Client initialization failed at startup.
viscropst commented 6 years ago

I just add something as below. rfs_access.te:

allow rfs_access uio_sysfs:dir { read open };
allow rfs_access uio_sysfs:file { read open };
allow rfs_access uio_sysfs:lnk_file { read open };

file_contexts:

/sys/class/uio(/.*)                   u:object_r:uio_sysfs:s0
viscropst commented 6 years ago

Could I ignore the VNDK Abi broken ?

viscropst commented 6 years ago

I found an amazing thing in the logcat.

02-03 15:12:07.445     0     0 E init    : service 'console' couldn't open console '/dev/ttyHSL0': No such file or directory
viscropst commented 6 years ago

Now mobile data is working.Thanks for help.

viscropst commented 6 years ago

Hey Demon, A user flash this into mi-4s and get rebooting repeat. I could not found the problem from the logcat he provided. Thanks for you help!