818 Commits

Author SHA1 Message Date
Andreas Schneider
523d2d59c4 a71-common: Replace prebuilt libsensorndkbridge with a shim
Change-Id: Id94ed43336e84934f42f56c58e506b50af3c59fd
2024-10-01 03:11:08 +02:00
Michael Bestas
0927f4effb a71-common: Disable ELF checks for certain libraries
Change-Id: I61dbc3559b43becc22f69ae2c1c3e8edf95e2483
2024-10-01 02:39:51 +02:00
Michael Bestas
0545bd33c6 a71-common: Libraries are now automatically added to PRODUCT_PACKAGES
Change-Id: Ie92fe02b7e6279195bf28944942c815db773b798
2024-10-01 02:39:34 +02:00
Haky86
ca05b6cc46 a71-common: Import additional blobs to pass ELF checks
Change-Id: I90f13604d6fe694c38e049b9a157b7c08502eed2
2024-10-01 02:38:47 +02:00
Haky86
4952f14c6b a71-common: Regen blobs from A715FXXSBDXB1
* Also update sha1sum of some pinned libs.

Change-Id: I86c7577eed49a798d60afcf431796d39595b1f07
2024-09-30 22:16:59 +02:00
Cosmin Tanislav
b306522c78 a71-common: do not manually build dependencies
Change-Id: I4046d8eeabfc70842898b7034f75cdd6bcfc441b
2024-09-30 22:09:18 +02:00
Aaron Kling
5c563e1a73 a71-common: Remove elf files in copy files check
New extract files uses packages instead of copy files

Change-Id: I337c07d13bd350958d4808e1693cc6e03753a96c
2024-09-29 19:55:47 +02:00
Bruno Martins
7c585d6eb9 a71-common: Setup ELF checks
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Co-authored-by: Cosmin Tanislav <demonsingur@gmail.com>
Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: I09130799d80e7abb8b694f5b8fe7266a5ea74fb4
2024-09-29 19:53:46 +02:00
Bruno Martins
78f80224fe a71-common: Resolve missing crypto symbols
Change-Id: I8c3efa2123155898d63644d82baabbd0f767b350
2024-09-29 00:07:09 +02:00
Bruno Martins
751e3cdaac a71-common: Remove old VNDK prebuilt lib copy
Change-Id: I96f7c9fdf143bab40f2143acad16316ad187415b
2024-09-29 00:02:31 +02:00
Haky86
bae1969e15 a71-common: Drop camera_32bit CameraVars flag
* Doesn't affect on camera anyways.

Change-Id: Id2fcf0b9dbcdabd6291cb557207f1bae97c9fc50
2024-09-27 19:41:05 +02:00
Haky86
1f968a907f a71-common: overlay: Drop duplicate config_mainBuiltInDisplayCutout
* We already set it via device specific tree.

Change-Id: I6f40e5c44798166e63fe31b20e68c66fe662e352
2024-09-27 19:32:09 +02:00
Haky86
571cda1440 a71-common: manifest: Override Samsung keymint entry
* See: https://review.lineageos.org/c/LineageOS/android_hardware_samsung/+/403940

Change-Id: I2bab3e013cdc22a85d614ec45711eafff909b3ac
2024-09-27 19:22:33 +02:00
Haky86
f208538fc2 a71-common: overlay: Enable doze_display_state_supported config
* Afaik, our display support "STATE_DOZE?", and based on users reports it gives better battery life after enabling it.

Change-Id: I315c6e391fd358e0af6bd081163ef80baca67466
2024-08-13 22:49:55 +02:00
Haky86
73df6b26a8 a71-common: overlay: Import brightness values from stock
* It fixes low brightness level.

Change-Id: I85e340c5983e47b838d257effef076ec1cd211a9
2024-08-13 22:42:45 +02:00
Nolen Johnson
ada9fe3e0b a71-common: Kill deprecated flags/props
Change-Id: I6558b4c972ef0d3fa3c91e20544ca737ac8dd990
2024-08-07 20:33:14 +02:00
Haky86
6a914d1c2c a71-common: Decommonize TARGET_USES_NQ_NFC flag
* A71 and M51 uses different NFC impl.

Change-Id: I733bbcd905a5647296acc3f272b48a024e76f77f
2024-08-04 15:35:22 +02:00
dianlujitao
2907e1d30e a71-common: audio: Enable compress voip
Volume control for VoIP calls (WhatsApp, WeChat, etc.) is simply
*stubbed* in audio HAL when compress voip is disabled. I don't know if
this is by design but clearly not what we expect.

Change-Id: Ibd841518340e5262fa283337a17954814ac8b9fa
2024-08-04 00:59:32 +02:00
Aaron Kling
ce24268df3 a71-common: Remove software omx codec references
These are no longer available as of Android 14 QPR3. The C2 codecs
available by default in the swcodec apex will be used instead.

Change-Id: I41389ab57dda18595c2615ae2e02f03187a7a00b
2024-08-03 10:33:55 +02:00
Haky86
ad165aab25 a71-common: sepolicy: Fix additional denials for U
* Fixes:
08-02 20:20:52.378  2552  2552 W chown   : type=1400 audit(0.0:233): avc:  denied  { setattr } for  name="hispeed_load" dev="sysfs" ino=87107 scontext=u:r:vendor_qti_init_shell:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=0

08-03 02:30:37.542  2574  2574 I auditd  : type=1400 audit(0.0:207): avc:  denied  { setattr } for  comm="chown" name="reset_enabled" dev="sysfs" ino=35551 scontext=u:r:vendor_qti_init_shell:s0 tcontext=u:object_r:sysfs_ss_writable:s0 tclass=file permissive=0

08-03 02:30:22.642  1017  1017 I auditd  : type=1400 audit(0.0:86): avc:  denied  { search } for  comm="adsprpcd" name="sensors" dev="sysfs" ino=43196 scontext=u:r:vendor_adsprpcd:s0 tcontext=u:object_r:vendor_sysfs_sensors:s0 tclass=dir permissive=0

08-03 03:05:15.202   925   925 I auditd  : type=1400 audit(0.0:162): avc:  denied  { read } for  comm="LocApiMsgTask" name="u:object_r:system_prop:s0" dev="tmpfs" ino=27113 scontext=u:r:vendor_hal_gnss_qti:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0

Change-Id: I6d1650af5e3f2d3bc8da3eaecaa04bf5ff9d6c1b
2024-08-03 10:17:43 +02:00
Haky86
833ef42009 a71-common: Get rid of ro.vendor.fingerprint.supports_gestures prop
* We don't really needed it.

Change-Id: I572f91a024112b5805101b70454742ccd94a50c0
2024-08-02 22:09:55 +02:00
Haky86
0ecdaa8052 a71-common: sepolicy: Add additional hal_audio_default labels
* Fixes:
08-02 20:02:11.507   915   915 I auditd  : type=1400 audit(0.0:243): avc:  denied  { search } for  comm="writer" name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0
08-02 20:02:11.507   915   915 W writer  : type=1400 audit(0.0:243): avc:  denied  { search } for  name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0
08-02 20:02:11.507   915   915 I auditd  : type=1400 audit(0.0:243): avc:  denied  { search } for  comm="writer" name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0
08-02 20:02:11.507   915   915 W writer  : type=1400 audit(0.0:243): avc:  denied  { search } for  name="/" dev="sda9" ino=2 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:efs_file:s0 tclass=dir permissive=0

Change-Id: I12e024836682f1487c6022c3a1a7346dd02ca634
2024-08-02 20:22:03 +02:00
Haky86
a9f791cb62 a71-common: sepolicy: Add additional hal_health_default labels
* Fixes:
08-02 19:08:15.916   926   926 I auditd  : type=1400 audit(0.0:91): avc:  denied  { read } for  comm="android.hardwar" name="type" dev="sysfs" ino=67722 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file

Change-Id: I134e461517f1aa5859ad90463b54ba0770851c63
2024-08-02 20:06:03 +02:00
Haky86
2f195efaea a71-common: sepolicy: Label paramblk_device
* Fixes:
08-02 18:56:07.876    78    78 I auditd  : type=1400 audit(0.0:505): avc:  denied  { read } for  comm="kworker/7:2" name="sda7" dev="tmpfs" ino=27047 scontext=u:r:kernel:s0 tcontext=u:object_r:paramblk_device:s0 tclass=blk_file permissive=0

Test: Build, flash then go to Settings > Battery and you can enable/disable "Fast charging" toggle in enforcing mode too.
Change-Id: I25a7e4ad673d95d3c9f0a8fd4d30361e1f49472c
2024-08-02 19:17:39 +02:00
Haky86
b4130544c1 a71-common: sepolicy: Label persist.vendor.cne prop
* Fixes:
12-04 22:56:54.049     1     1 I auditd  : type=1107 audit(0.0:13): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=persist.vendor.cne.feature pid=1 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_cnd_prop:s0 tclass=property_service permissive=0'

Change-Id: I22483a67f3bfda664f181daf077dbec84f6dc9dd
2024-08-02 18:55:23 +02:00
Haky86
0e9856b84f a71-common: sepolicy: Label bluetooth_nv_ver
* Fixes:
08-02 17:27:36.706     0     0 E [5:           init:  472] init: Unable to set property 'vendor.bluetooth_nv_ver' from uid:1002 gid:1002 pid:916: SELinux permission check failed

Change-Id: If401b07877394ecbb56b18e3e166ba27abf6454e
2024-08-02 18:12:52 +02:00
Haky86
4c3881ea23 a71-common: sepolicy: Label slot_id0/slot_id1
* Fixes:
08-02 14:45:50.489  1115  1262 W libc    : Unable to set property "vendor.calls.slot_id1" to "1": error code: 0x18

Change-Id: I13f4e43a136c6bde23849f152c252eafbbb50f82
2024-08-02 17:41:45 +02:00
Haky86
a1ba546d45 a71-common: manifest: Switch to INxpNfcLegacy instead
Change-Id: Ia8fa688a3ca13b09f57ff44ae56f5ee35708a349
2024-07-31 20:55:42 +02:00
Haky86
be174f7203 a71-common: manifest: Restore INxpNfc entry
Change-Id: I8760882a965e0f81b1e6b5db7b3b854e207e8ea4
2024-07-31 16:55:40 +02:00
Haky86
c464de1f85 a71-common: Drop sehradiomanager for now
* It cause a random sim restart, I'll check later the issue.

Change-Id: I543720ac5a25f433826ad4b097fb275d088d3f28
2024-07-31 16:53:40 +02:00
Tim Zimmermann
b2e488c414 a71-common: Introduce sehradiomanager
* Allows us to finally have signal bar, LTE+ and 5G working
  with RIL stacks from stock Android S and up
* Based on f0eecb08e4

Co-Authored-by: Pierre-Hugues Husson <phh@phh.me>
Change-Id: I34fdf4e50c6ca1d664718fbcc0b701606754e238
2024-07-31 15:30:09 +02:00
Simon1511
494bcaafdb a71-common: Switch to U RIL
- Pull RIL and QMI blobs from A715FXXSBDXB1 (T)
- Build sehradiomanager for working signal strength
- Update SMSC and slotID patches accordingly
- Build vendor.samsung.hardware.radio@2.[0,1,2] from source

Change-Id: Icb3596c38d8f86db9813ff5f8586b7602c6bd80f
2024-07-31 14:53:01 +02:00
Haky86
c3035b1eb1 a71-common: manifest: Drop unused entries
Change-Id: I42e75f9023f6c52684396cf54f1de8ff5ac12fe8
2024-07-31 14:22:16 +02:00
Michael Bestas
b733ec8a52 a71-common: Include lineage FCM
Change-Id: I6fad66d131055f8c572b33bc6d021b66064f116c
2024-07-31 14:22:00 +02:00
Andrzej Szafran
ec24810a26 a71-common: Inherit from Samsung FCM
Change-Id: I039f9b71de22a51687100a94ac5fc739bdb2799b
2024-07-31 14:21:45 +02:00
Michael Bestas
60b0800ba7 a71-common: Inherit from legacy QTI FCM
Change-Id: I1a20d84a37b77a2bea40256ee7ad91da3976b560
2024-07-31 14:21:24 +02:00
Bruno Martins
0fd25f114c a71-common: Inherit from QTI FCM
Change-Id: I8ef7a1cc97d55d3816fafcebb4b865ffd06af4ad
2024-07-31 14:21:04 +02:00
Bruno Martins
fe4c194904 a71-common: Use the common device compatibility matrix from QCOM
Change-Id: Ie2980ad3a199a77c655c95c9952b875b334f74d0
2024-07-31 14:20:51 +02:00
Yumi Yukimura
26be1bc556 a71-common: manifest: Set kernel target level to 5
Change-Id: I451c3a00479b53f9c22dece11cbaf1e5daeeddd1
2024-07-31 14:20:25 +02:00
Tim Zimmermann
3e821cb80a a71-common: manifest: Set manifest target-level to 5
Change-Id: Ibdd2b0cca385cd913dfd80748a7cf8239362dfa2
2024-07-31 14:20:07 +02:00
Roger Liao
a1d2e2decb a71-common: Update kernel target level
* Updating kernel target level to Android Q.

Change-Id: Icad3cfd9569e1f94f93d312e37c22fd5061a6aba
2024-07-31 14:19:49 +02:00
Han Sol Jin
899c128408 a71-common: Build common libqti-perfd-client stub
Change-Id: I4c7bf0dd9ecabbe8cb96fd8a6685c2ed032dd799
2024-07-31 14:19:28 +02:00
Bruno Martins
c55f72e512 a71-common: Move CNE symlink to install_symlink target
Since Samsung vendor does not include CneApp, we cannot declare it as required package.

Change-Id: I5481ca7a9c55d1c6170d5cca303d350649ba1812
2024-07-31 14:19:07 +02:00
Bruno Martins
2281e71aea a71-common: Declare EGL libs as symlinks during extraction
Change-Id: Ibc2510a2faaa844eda2e8307d18cbb55e57bda8d
2024-07-31 14:18:41 +02:00
Bruno Martins
83720ead41 a71-common: Convert WiFi firmware symlinks to install_symlink targets
The last bit that was preventing building hermetic images.

Change-Id: I60e2a3b3e3bedf6fb85a23a0682169e0375d69f8
2024-07-31 14:17:37 +02:00
Bruno Martins
9e513ce06a a71-common: Move to new RFS install_symlink targets
Change-Id: I18881e3901b12a26ce9ecab3a029438e4083161b
2024-07-31 14:17:08 +02:00
Bruno Martins
3fb46f468b a71-common: Unset BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qualcomm targets can now build hermetic partitions.

Change-Id: I3bd4c6ce6af31ed640efea94d26d1849a654dba5
2024-07-31 14:16:49 +02:00
SGCMarkus
e9517f8c6f a71-common: unset BOARD_USERDATAIMAGE_PARTITION_SIZE
This not only saves a lot of build time when building with
TARGET_USERIMAGES_SPARSE_EXT_DISABLED and/or
TARGET_USERIMAGES_SPARSE_F2FS_DISABLED which is required
on A14, but also removes the need for the build system to
temporarily create a 40+GB userdata image.
Which means that less free space is required to start the
build.

Change-Id: I2e726cc6190062a084105211b5d3bb283b38dd1d
2024-07-31 14:16:13 +02:00
Alexander Koskovich
13444f39f7 a71-common: Disable the usage of ConfigStore
* As per commit 11a113a67e ("Add disable_configstore").

[SebaUbuntu] Remove manifest entry as well

Change-Id: I1806f899073b9dda445d127c0bf4ca9949889a5a
2024-07-31 14:14:43 +02:00
Michael Bestas
1546ea2887 a71-common: Build missing libraries for 14 QPR3
Change-Id: I1c9ea71e68f097ae287f76df0cfada6dd400f249
2024-07-31 14:14:12 +02:00