Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
KernelFlasher: Set mic gains and Enable MoroSound after boot
Browse files Browse the repository at this point in the history
  • Loading branch information
xxmustafacooTR committed Apr 3, 2021
1 parent 7d73242 commit 7a0852d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions KernelFlasher/anykernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ echo " " >> /tmp/anykernel/ramdisk/init.services.rc
echo "on property:sys.boot_completed=1" >> /tmp/anykernel/ramdisk/init.services.rc
echo " stop proca" >> /tmp/anykernel/ramdisk/init.services.rc
echo " stop secure_storage" >> /tmp/anykernel/ramdisk/init.services.rc
echo " write /sys/devices/virtual/misc/moro_sound/moro_sound 1" >> /tmp/anykernel/ramdisk/init.services.rc

if [ -d /system/product/vendor_overlay ]; then
cp -af /tmp/anykernel/ramdisk/init.services.rc /system/product/vendor_overlay/29/etc/init/;
Expand Down
4 changes: 4 additions & 0 deletions KernelFlasher/ramdisk/init.services.rc
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,8 @@ on boot
write /proc/sys/vm/page-cluster 0
write /proc/sys/vm/swappiness 140
write /sys/block/zram0/comp_algorithm zstd
write /sys/devices/virtual/misc/moro_sound/mic 1
write /sys/devices/virtual/misc/moro_sound/mic_down_gain 164
write /sys/devices/virtual/misc/moro_sound/mic_up_gain 164
write /sys/devices/virtual/misc/moro_sound/mic_hp_gain 164
swapon_all /vendor/etc/fstab.enableswap

0 comments on commit 7a0852d

Please sign in to comment.