Commit graph

4814 commits

Author SHA1 Message Date
Edwin Moquete
5c094cad89 sdm660-common: Switch to FBEv2 emmc optimised encryption
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Daniel Rosenberg
6cf2314019 sdm660-common: Use emulated storage
Sdcardfs in deprecated

Enable Project ID Quota support on userdata.
 * These features enable wide inodes on userdata, which
   is required for project ID quotas. Wide inodes can
   only be set at MKFS time.

 * This also enables casefolding, which is required for the
   removal of SDCardFS.

Bug: 138321217
Test: Examine filesystem features for project quota and wide inodes.
Change-Id: I9c17cda2af34c6fbd73c2d90eb6b465f4939df67
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
a26b3a3dfe sdm660-common: enable auto rotation by default
* as c999a1a2b9d975610ffa359ba34cb27d016165cc has unlocked setupwizard rotation, auto rotation default as "on" is not meaningless now

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
552671d365 sdm660-common: vendor_init: make ro.setupwizard.rotation_locked always false
* as rom with vendor_gms repo will set this as true and locks the orientation for setup
* that is not so good for tablet type device
* override this prop in vendor_init to make it always landscape available

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
14aa292b1a sdm660-common: sepolicy: don't do anything on untrusted_app
* allowing any extra permission for "untrustred_app" domain is DANGER
* the "untrustred_app" domain rule should ONLY be defined by aosp
* kill all don't audit except getopt for untrusted_app. it's a tool to show which app are evil, let it show in audit logs

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
pix106
bfa61a3f25 sdm660-common: Cleanup duplicated build recipe & sepolicy 2024-01-14 17:18:17 +01:00
Alcatraz323
f6eb32a92c sdm660-common: clear properties, clear BoardConfig, update surface api properties
* kill not exist debug.media.codec2
* replace NUM_FRAMEBUFFER_SURFACE_BUFFERS with properties

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
chrisw444
aa804009da sdm660-common: configs: remove useless qti-perf configs
* we are using power-libperfmgr

Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Jaegeuk Kim
1d9c6314b2 sdm660-common: sepolicy: Allow ioctl to zram_swap for performance
This fixes permission denied when setting F2FS_PIN_FILE.

[   46.726131] init: [libfs_mgr]Failed to set pin_file for f2fs: /data/per_boot/zram_swap: Permission denied
[   46.726151] init: [libfs_mgr]Failure of zram backing device file for '/dev/block/zram0'
[   46.726341] type=1400 audit(1601025878.312:17): avc: denied { ioctl } for comm="init" path="/data/per_boot/zram_swap" dev="dm-9" ino=4868 ioctlcmd=0xf50d scontext=u:r:init:s0 tcontext=u:object_r:per_boot_file:s0 tclass=file permissive=0

Bug: 169311165
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I982f70556284ac55d659bae6aff93b84d71e67f0
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Mimi Wu
29909175c0 sdm660-common: sepolicy: Allow toolbox to rm -rf /data/per_boot
Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I22706c63fb13ea2aae0cd9fe8b92edc578fd459e
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Mimi Wu
d593cf85dd sdm660-common: sepolicy: Allow kernel to access /data/per_boot/zram_swap
type=1400 audit(1581485243.256:88): avc: denied { read } for comm="loop29" path="/data/per_boot/zram_swap" dev="dm-9" ino=9820 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Bug: 147469156
Test: flash full build and find avc errors gone
Change-Id: I48d7684ce3b4ca1ada81011b1cab21007c758ba5
Signed-off-by: Mimi Wu <mimiwu@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
Alcatraz323
e2a76a940f sdm660-common: sepolicy: fix denial for cnss_daemon update
Signed-off-by: pix106 <sbordenave@gmail.com>
2024-01-14 17:18:17 +01:00
f5ee041823 sdm660-common: CloverParts: Ukrainian translation 2024-01-14 17:18:17 +01:00
Alcatraz323
b02c634b4d sdm660-common: power: use more advanced cgroup/task profile & drop schedtune powerhint
* schedtune is conflict with uclamp
* CONFIG_CGROUP_FREEZER is enabled
* CONFIG_UCLAMP_TASK is backported and enabled
2024-01-14 17:18:17 +01:00
pix106
a6f9e93d68 Revert "sdm660-common: power: drop schedtune powerhint"
Revert incomplete previous commit before picking it again

This reverts commit 5c395ddd3d.
2024-01-14 17:18:17 +01:00
pix106
8132ae3f7c Revert "sdm660-common: Disable zram writeback"
This reverts commit f13ea08789.
2024-01-14 17:18:17 +01:00
YumeMichi
152cafd63b sdm660-common: Remove redundant CHRE daemon
* We don't have the chre binary and MIUI also disabled it.

Change-Id: I57a95643c366f8b1ce1a8af5ff2ebbf9b29e316d
Signed-off-by: YumeMichi <do4suki@gmail.com>
Signed-off-by: Henrique Pereira <hlcpereira@pixelexperience.org>
Signed-off-by: snnbyyds <snnbyyds@gmail.com>
Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Alcatraz323
cd42dff553 sdm660-common: rootdir: remove redundant swapon_all command
* this won't cause zram not to work, but will cause dmesg spit a
"denied" warning
* removing swapon in "fs" scope following aosp instruction
* ref -> https://source.android.com/docs/core/perf/boot-times

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
Volodymyr Zhdanov
49b6570b78 sdm660-common: rootdir: Don't configure zram in init.qcom.post_boot.sh
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-10-06 21:10:01 +02:00
pix106
48043e85f1 sdm660-common: commonize BOARD_VENDOR_PLATFORM 2023-09-15 20:53:17 +02:00
pix106
a22c9e0c2f sdm660-common: DeviceSettings: add a burn-in protection profile, for lavender
* previously, these background cgroups running freely with uclamp unset
* now set the max cpu utility for these cgroups, following pixel tablet, but extended a bit as sdm660 is weaker
2023-09-15 20:53:08 +02:00
Alcatraz323
9995d34211 sdm660-common: rootdir: tune background cgroup uclamp values
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-09-15 20:52:46 +02:00
Alcatraz323
e348804cb5 sdm660-common: power: extend launch boost duration
* when duration = 3000, it may be too short for a app to complete the launch process
* follows pixel tablet launch boost value(5000) and extend to 6000 as sdm660 can't follow up gs201 speed
* this value is only working on the "first cold start" for an app, so make it larger is not affecting the whole battery life but just speed up the launch process

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-09-15 20:52:26 +02:00
Alcatraz323
92635e6cbb sdm660-common: power: adapt uclamp launch boost
* set TA, FG min clamping to non-zero values for boosting

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-25 15:15:49 +02:00
Alcatraz323
b19b07ba07 sdm660-common: enable level 1(core) Multi-Gen LRU
* we don't support 0x0004(nonleaf_young) feature as it's a x86 only function
* we don't support 0x0002(mm_walk) feature as it requires Armv8.1 hardware
* ref:
[1] https://android.googlesource.com/platform/system/core/+/master/rootdir/init.rc#1328
[2] https://docs.kernel.org/admin-guide/mm/multigen_lru.html

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-25 15:15:49 +02:00
Alcatraz323
66b12de781 sdm660-common: CloverParts: sepolicy change from "clover: sepolicy: address bunch of denials"
f2c0736e1d
2023-08-22 08:45:13 +02:00
pix106
8ebb585c58 sdm660-common: CloverParts: french translation 2023-08-22 08:45:13 +02:00
pix106
cb73accb2d sdm660-common: CloverParts: adapt dependency 2023-08-22 08:45:13 +02:00
gAlexander Koskovich
8331a1bf9b sdm660-common: CloverParts: Drop explicit sdk_version declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Alcatraz323
3e482f8572 sdm660-common: CloverParts: update translation from user
* also adjust and added Chinese(Traditional) language by self
* big thanks to all my users
* alphabetical order below
* EL(Greek) ES(Spanish) IT(Italian) JA(Japan) RU(Russian)

Co-authored-by: Graviphone <gravi@loungestudio.com>
Co-authored-by: hackruu <hackru@gmail.com>
Co-authored-by: kamvrosidis <amkirk94@yahoo.gr>
Co-authored-by: Maximilian Swag
Co-authored-by: SBWater <136105193+sbsoda@users.noreply.github.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Alcatraz323
ccab114cee sdm660-common: implement the switch to turn off charging ripple animation
* we may not want that animation when using a charge limiter

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Alcatraz323
9ab5292b0b sdm660-common: introduce my simple battery management system
* settings page located in Settings -> Battery
* soc-based step charger, jeita thermal charger switch (also done something in kernel)
* add a mode for user always connected with chagrging cable to limit battery around 40% - 60%
* add a switch for user to limit max charge at around 80%

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Alcatraz323
5b660f6800 sdm660-common: introduce clover parts
* implemented volume panel trigger in QS
* we may need to implement some extra function like multiwindow
* the seapp_context may need a diffrent entity from DeviceSettings to avoid neverallow

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Alcatraz323
3bf23bb2d7 sdm660-common: sepolicy: allow system_app to access hall_dev
* 08-12 22:43:25.794  1674  1674 W settings.device: type=1400 audit(0.0:7): avc: denied { search } for name="parameters" dev="sysfs" ino=21188 scontext=u:r:system_app:s0 tcontext=u:object_r:hall_dev:s0 tclass=dir permissive=0

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
0e79a7bd21 sdm660-common: rootdir: Do not load non-existent wlan module
Wlan driver is compiled from kernel. Not only the module is non-existent
but also it's unnecessary and causes insmod failure. So, don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
d41f3d2a88 sdm660-common: rootdir: Do not exec init.qti.can.sh
init.qti.can.sh doesn't exist. So, executing the non-existent bash
scripts only results in failure. Don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
0a5ca4c00c sdm660-common: rootdir: Do not try to remove shmbus
shmbus doesn't exist for us. Removing a non-existent file/folder only
causes the command to fail and spam the dmesg.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
609d3d6c14 sdm660-common: rootdir: Trim and fix some blkio node paths
"bg" seems to be "background" after examining the path using a root
explorer. "blkio.weight" is non-existent. So, remove it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
pix106
03c297e53d sdm660-common: commonize releasetools 2023-08-22 08:45:13 +02:00
ghostrider-reborn
0acb16e716 sdm660-common: Disable dexpreopt minidebuginfo
Change-Id: Ief843fc411189906c5d0183a6ff4485f6b3041ee
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
ghostrider-reborn
94595661b3 sdm660-common: Disable ART debug and optimize dexpreopt
* don't include debug configs in art

Change-Id: Ic310df1e2c466437b26fcb2e5ab9333694328c48
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Jasmine Cha
51e45212b5 sdm660-common: audio: enable speaker spatializer
* 0605 build lib is same file as 0805 felix/cheetah
Bug: 260779305
Test: manual test

Change-Id: Ifbcee9faebb7607ec08db947e69d1d2d31d9eaab
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
e80c22e5dd sdm660-common: rootdir: Enable RT priority inheritance for audio HAL
Test: instrumented
Bug: 181148259
Bug: 260918856
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
emilchung
e5d0f0c0bd sdm660-common: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
dc669fe301 sdm660-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread. - done in hardware/interface/audio
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Eric Laurent
0bcf3c794d sdm660-common: configuration for spatial audio
Update audio configuration to enable spatial audio:
- build with spatial audio feature enabled and rondo library
- list spatializer effect in audio effect configuration file
- update audio policy configuration files to declare spatializer output
- declare immersive end point in audio platform configuration

* Alcatraz: not enable on bt-a2dp, usb out, tested it will create "bzzzzzzzz" like noise, not in good effect, only works well for wired headphone.
* update lib to July

Bug: 237677573
Test: spatial audio playback
Change-Id: Ic9c32d813a19ba2789425e12ee9016d53ab30678
Co-authored-by: Alcatraz323 <alcatraz32323@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
pix106
443f02b3d1 Revert "sdm660-common: update CLO media profiles and codecs"
This reverts commit a0efee8bed.
2023-08-22 08:44:53 +02:00
pix106
1043c5332c Revert "sdm660-common: sepolicy: let camera hal access system_data_file"
This reverts commit a6984f5866.
2023-08-22 08:44:53 +02:00
pix106
dabd7bf66e sdm660-common: update remaining FM blobs
* from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
2023-08-22 08:44:53 +02:00
pix106
7e84c11b56 sdm660-common: decommonize camera shim 2023-08-22 08:44:53 +02:00