This repository has been archived on 2025-09-03 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
cc3c3cbf7041ee894a85b950eabb9bc245bead0a
There are two ways for the kernel to load iris5.fw. The first way is via fw_get_filesystem_firmware(), which read iris5.fw directly from the filesystem using filp_read(). The second way gets FW via ueventd, which calls request_firmware(). Because the kernel unconditionally calls fw_get_filesystem_firmware() for iris5, the first way always gets executed. However, the current sepolicy denies read access to iris5.fw for the kernel, causing this way to never work. The second way is used only on ioctl(), which would likely be sent from HWC. Unlike the first way, the second way *does* work as-is, and since HWC is always started when booting into Android, we don't have to worry about the first way being broken. However, HWC doesn't run offline charging mode, so we have to rely on the first way for that case. Unfortunately, since the first way is broken, offline charging fails to work properly as a result. As such, we need to fix that denial to make the first way work again. Change-Id: Iba43afc5dba1c64d8ced9f374bbf9f0457db3c92
Description
Cherish OS A13 Dependency of OnePlus Nord(Avicii)
Languages
C++
80.4%
Kotlin
12.4%
C
6%
Makefile
1%
Shell
0.2%