vendor_google_cheetah/proprietary/vendor/bin/init.camera.set-interrupts-ownership
AnierinB 37b83376a7 cheetah: Initialize for Evolution X 11.x (BP2A.250705.008)
Signed-off-by: AnierinB <anierin@evolution-x.org>
2025-07-24 07:19:15 +00:00

10 lines
278 B
Bash
Executable file

#!/vendor/bin/sh
camera_irq_nums=$(grep "lwis" /proc/interrupts | awk '{ print(substr($1, 0, length($1) - 1)) }')
for irq_num in ${camera_irq_nums[@]};
do
chown system:system /proc/irq/${irq_num}/smp_affinity
chown system:system /proc/irq/${irq_num}/smp_affinity_list
done