Open zsoerenm opened 2 years ago
I observed something interesting: I rooted the devices with Magisk and installed Kernel Adiutor. If I disable all cores excepts the first one, the M7 won't reboot, when going to suspend. Any hints to resolve this issue will be appreciated.
I finally found the error. mpdecision
could not start correctly, due to sepolicy.
I tried to start mpdecision
manually with start mpdecision
and the dmesg
output was the following:
init: Control message: Could not ctl.start for 'mpdecision' from pid: 2741 (start mpdecision): File /system/bin/mpdecision (labeled "u:object_r:system_file:s0") has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
I set selinux to permissive and now it isn't rebooting anymore. @TARKZiM do you know how to set the sepolicy correctly?
I tried to build this ROM on my own. Everything is working fine as long as the HTC M7 is not going to suspend. So if it is connected to a PC via USB or if it is used as a Wifi hotspot this ROM works fine. However, as soon as the HTC goes to suspend (deep sleep), this build will reboot.
I tried to debug the error. These are the last lines of
proc/last_kmsg
:This isn't very informative so I set
no_console_suspend
to debug with:After unplugging the USB cable again and waiting for the HTC M7 to suspend and restart, this is the
proc/last_kmsg
It tries to go to suspend twice. I cannot see a clear error except
msm_mpm_irqs_detectable: cannot monitor irq=261 (null)
. How would you debug this @TARKZiM ? I would be happy to dive deeper to get this device working.