Commit graph

174 commits

Author SHA1 Message Date
Ash Blake 90c786bed3 LG8n: rootdir: Fix ownership for /dev/video{0,1}
Mediacodec did not have access and video recording didn't work.

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:32:07 +08:00
TheMalachite fb5c429b95 LG8n: rootdir: Drop on property:vold.decrypt
- We don't use FDE encryption

Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Icd9c16a5f5b92992e8e41539971302a09cdde9be
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:31:48 +08:00
Vaisakh Murali 7651369abd LG8n: rootdir: Elevate read permissions for mtk_cmdq and mdp_sync
Apparently on AOSP builds, these nodes when read by the hals
with O_RDONLY attribute, need an elevated read permission, which
is apparently unneeded on mtk builds/stock rom.

This fixes video playback/OMX

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I7f358d0037de569a4eb038e5ac2a17b7651d307d
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:31:30 +08:00
Kshitij Gupta b9fa6c8546 LG8n: rootdir: Correct mode for video0 and video1
- init services fail to setup encoders on boot and camera and
  screenrecord fails to open video1 when trying to encode a video.
- While we may wanna consider looking through services that make use of
  these devs and correct their groups for AOSP, this gets the job done
  for now.

Change-Id: I0278efe201a9cbaa20c650fdc32bed6f9ecfd017
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:31:09 +08:00
Minchan Kim 44bdf87779 LG8n: rootdir: Add zram parameter
* We also changed zram_loopback_size with zram_backingdev_size so correct it.

Bug: 145116439
Test: confirmed there is no warning and zram backing device was configured
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I51be34c59203813a2f493eee6ab442c9940b75d7
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:30:54 +08:00
Wei Wang 0ac021bb73 LG8n: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:54 +08:00
bengris32 2c7fafb516 LG8n: rootdir: Add ZRAM entry from fstab.enableswap
Change-Id: I84333394bd27f67fcd30e054f0446e7c45f39bde
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:37 +08:00
fjrXTR 05a580c10e LG8n: link older libutils for audio.primary.mt6789
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:28:11 +08:00
Jiyong Park 7d59c4396b LG8n: power: Remove ndk_platform backend. Use ndk backend instead
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m

Signed-off-by: xyzuniverse <dev.xyzuniverse@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:26:43 +08:00
AndroidHQ254 d5053cc537 LG8n: Link older libhidlbase & libbinder for camerahalserver
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:26:05 +08:00
AndroidHQ254 257beb70cd LG8n: Link older libutils for camerahalserver 2024-07-17 07:25:30 +08:00
Shirayuki39 f9d86b2b82 LG8n: Import and build required blobs/libs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:23:39 +08:00
Shirayuki39 99e46522d0 LG8n: Reimport Media Blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:17:50 +08:00
Shirayuki39 f0f7db7bad LG8n: Switch to Prebuilt Lights Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:16:56 +08:00
Shirayuki39 69fe8e6c1b LG8n: Switch to Prebuilt Vibrator Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:15:14 +08:00
Shirayuki39 fefb71b596 LG8n: Build *-v31
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:13:34 +08:00
Shirayuki39 0afdaf3538 LG8n: Import Camera Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:11:32 +08:00
fjrXTR 7ccbb1e4ba LG8n: Import missing permissions
Change-Id: I641df2c8e45f915ffdf9ec363393a9993a43ce6b
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:06:44 +08:00
Shirayuki39 11d49c89d3 LG8n: Import LG8n Audio and Bluetooth Blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:06:14 +08:00
Shirayuki39 e53ad037a2 LG8n: Import LG8n firmware blobs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 06:57:32 +08:00
dmpstr 8695ca5e36 LG8n: Set SELinux as permissive
`"The device knew the system wouldn't boot with an enforcing kernel, so it switched it out for a permissive kernel"`
`- april (fzr850)`
2024-05-25 22:54:45 +08:00
dmpstr 66ecaddf15 [DNM] LG8n: Make SELinux enforcing 2024-05-24 09:14:45 +08:00
SebaUbuntu b7d27c1595 LG8n: Reboot to recovery if init fails 2024-05-24 08:51:28 +08:00
aubrey b27b2315df LG8n: Switch CPU runtime variant to cortex-a76 2024-05-24 08:46:09 +08:00
Shirayuki39 a7ccd1a3c3 LG8n: initial LG8n overlay 2024-05-22 20:58:50 +08:00
Shirayuki39 e4a5094e42 LG8n: Adapt for LG8n 2024-05-22 20:55:23 +08:00
Shirayuki39 e0286bfe5b LG8n: Change the spec sheet to a more appropriate one 2024-05-18 14:45:24 +08:00
Sarthak Roy 2628f11802 X6833B: Remove android.hardware.soundtrigger@2.3 from manifest
Change-Id: I3a5132c27f4b9801c7824443a6ff4ce0580ded69
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
Signed-off-by: SakthivelNadar <s2234nadar@gmail.com>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:15:20 +07:00
Adithya R 0265abd50e X6833B: overlay: Disable alpha compositing in WM
* Completely eliminates occasional jank in few animations

Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Woomymy 650362d320 X6833B: Fix OTA post-install file system types
* On non-gms builds, /system is ext4, just use the variable set in
  BoardConfig.mk to configure postinstall

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I20407e3e6b34b143f88c5c8054e575ce2fa55684
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
dodyirawan85 d054191528 X6833B: Add ext4 filesystem to product and system_ext
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Dan Pasanen 2410f428e1 X6833B: Reserve additional space on system/system_ext/product
Co-authored-by: Alessandro Astone <ales.astone@gmail.com>
Co-authored-by: Eamon Powell <eamonpowell@outlook.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: razorloves <razorloves@gmail.com>
Change-Id: I0382f5070751ef4d1be0e48bb89c7abb7eba22c6
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Woomymy c3de457ad8 X6833B: Switch system, system_ext and product to ext4 on non-gms builds
* Makes gapps installation possible, while keeping vendor and
  vendor_dlkm read-only

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I84eecbf5237d878eff8c368f7ab9bd16b45e46e7
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
bengris32 9df45be24c X6833B: perf: Trigger kernel touch boosting on INTERACTION
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: I7b1397b66553a68e96e5b2471bc62dbb083f89cf
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Vaisakh Murali afb70de88e X6833B: perf: Use input boost to improve interaction hint
Drop unused GPU node and instead use input touch boost for boosting
whenever a touch input is detected upto 50% and for a duration of
1 millisecond, improving overall scrolling and responsiveness.

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Change-Id: I77c163ea7a2cf9546c321b180b2304b099fc7a34
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
bengris32 f960288513 X6833B: perf: Remove unimplemented hints on AOSP
* Clean-up the scenario table by removing hints which
  would never be triggered under an AOSP system.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib4572fe68ed7e0e77124895b47b59daa0e3786c0
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
SamarV-121 3fb13ca2f1 X6833B: perf: Rename MTKPOWER_HINT_UX_SCROLLING hint to INTERACTION
* This hint along with almost every MTKPOWER_HINT depends on fwk side changes
 * Use INTERACTION hint to boost stuffs on interaction instead

Change-Id: I79603458fb525cdc1b6ac58cee31b84d63083f79
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
bengris32 fedc3e881a X6833B: Configure vendor logtags
Change-Id: I83b1e3d5691c7c22a5fef5f03ce3172ac47298d3
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Woody Lin 0c7fab181e X6833B: Enable zygote critical window
Bug: 141948707
Change-Id: Iad7407bdacd03caafc4bb3ce2b9deaff00b9f692
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
David Sehr 75db0331bf X6833B: Use dex2oat64 for better dexopt time
Enable dex2oat64 usage on ruby.

Bug: 153380900
Test: boot and install an application.
Change-Id: I101ebfe5865da84baa90c55d2246dbd4287a9b72
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Michael Bestas c8857ab71d X6833B: overlay: Update multiple vibration strength levels overlay for 13
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Murat Kozan 293f807ece X6833B: overlay: Enable vibration intensity control
* Activates some options on Settings>accessibility>vibration

Change-Id: I00e20f0d607736c04d5c2a0bd9c513c7f5fd8b41
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Santiago Seifert 5e2043c264 X6833B: overlay: Unpin updatable-media from memory
Bug: 214499288
Test: Presubmit
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Nicolas Geoffray 494ce22e97 X6833B: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Kevin Jeon 6ffc1e5bae X6833B: Update SurfaceFlinger pin on all targets
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService

Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Danny Lin cd55dfae6b X6833B: Don't pin camera app in memory
The default camera app can be *huge* in some cases, e.g. when the app in
question is Google Camera. The system will only pin up to the first 80
MiB of the APK file, as well as the first 80 MiB of its odex. There are
several problems with this:

  - We could easily end up with 160 MiB of camera app files pinned,
    which is a tall order with the 8 GiB of usable RAM that we have
  - The data that gets pinned may not even be the most critical data for
    launching the camera

Let's disable pinning of the camera app to save RAM.

Change-Id: I745e39b6ff212dfaf9213517d2a2be8ff7384e24
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Bruno Martins d4a19ee64f X6833B: overlay: Pin standard SystemUI instead of Google's
Change-Id: If96bb13d6cc2c2156d8df111a1037247c96c6e0f
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Jeongik Cha 525eee2f0c X6833B: overlay: Update config overlay with new SystemUI location
The app is moving to /product

Test: m
Test: check if it can boot
Bug: 137908189
Change-Id: Ifd73ba03884543e33d61c74d933ad8171dd3b259
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Martin Stjernholm dd5b453cc9 X6833B: overlay: Update paths to the new ART APEX.
Test: Presubmits
Bug: 135753770
Change-Id: If522ab29b6c4e9aab91f5ba41e10947799315f33
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00
Rick Yiu 44db5a7aaa X6833B: overlay: sync pinner service configs from crosshatch
Bug: 130103428
Test: verified with dumpsys pinner
Change-Id: I8ffe5eee1d40a5ac6be2112621ccda4b4dd5be1a
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
2023-12-26 09:14:29 +07:00