SamarV-121
bea423e4a5
universal7885: sepolicy: Silence tee denial
...
- `I auditd : type=1107 audit(0.0:15): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for propertteey=sys.mobicoredaemon.enable pid=3585 uid=1000 gid=1000 scontext=u:r:tee:s0 tcontext=u:object_r:system_prop:s0 tclass=property_service permissive=0'`
- this prop is used nowhere
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I823e09cd6ee98fded5855d71ccec2d5f91454611
2021-10-21 22:12:08 +09:00
SamarV-121
c4c7efdbac
universal7885: sepolicy: Nuke neverallows
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ie0339184617873ffe3b5dc25c277e740b34c8d86
2021-10-21 22:12:08 +09:00
SamarV-121
aed3c1f464
universal7885: sepolicy: Allow kernel to read sysfs_virtual nodes
...
`avc: denied { read } for name="hall_detect" dev="sysfs" ino=29566 scontext=u:r:kernel:s0 tcontext=u:object_r:sysfs_virtual:s0 tclass=file permissive=0`
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I8fb01d8c4ce8b48fbf58a0688b04dc79664d2964
2021-10-21 22:12:08 +09:00
SamarV-121
0b3a75c212
universal7885: sepolicy: Allow hwc HAL to read hwc.exynos.vsync_mode prop
...
`W composer@2.1-se: type=1400 audit(0.0:23509): avc: denied { read } for name="u:object_r:default_prop:s0" dev="tmpfs" ino=2518 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0`
`E libc : Access denied finding property "hwc.exynos.vsync_mode"`
Change-Id: Ib259886ae5560dc3b2e427890e46877c732ff7ba
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
6cfb2d5778
universal7885: sepolicy: Remove mobicore and trustonic HAL rules from here
...
* Moved to common slsi sepolicy
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I204b0eaad014f97166180b17678277c48a851491
2021-10-21 22:12:08 +09:00
SamarV-121
ae0130bb13
universal7885: sepolicy: Resolve neverallows
...
libsepol.report_failure: neverallow on line 9 of device/samsung/universal7885-common/sepolicy/vendor/mediacodec.te (or line 60921 of policy.conf) violated by allow hal_power_default hal_power_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 5 of system/sepolicy/public/hal_power.te (or line 19140 of policy.conf) violated by allow mediacodec hal_power_hwservice:hwservice_manager { find };
libsepol.report_failure: neverallow on line 5 of system/sepolicy/public/hal_power.te (or line 19132 of policy.conf) violated by allow mediacodec hal_power_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 990 of system/sepolicy/public/domain.te (or line 13095 of policy.conf) violated by allow zygote vendor_file:file { read };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow hal_fingerprint_default fingerprintd_data_file:dir { write };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow rild radio_data_file:dir { search };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow hal_camera_default camera_data_file:dir { search };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow hal_drm_widevine media_data_file:dir { search };
libsepol.report_failure: neverallow on line 831 of system/sepolicy/public/domain.te (or line 12761 of policy.conf) violated by allow rild radio_data_file:file { lock open watch watch_reads };
Change-Id: I47cc5117dda055ca4041e666bb7ffa8a51f9a3d9
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
a9dab1b0bf
universal7885: init: Set correct device model
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ia9db3a1b4009e461b7df8cd677acd9b2bb298dab
2021-10-21 22:12:08 +09:00
Volodymyr Zhdanov
c7c83fdac1
universal7885: Only start NFC service on supported variants
...
Change-Id: I6c272eca6b45760679aac4effc7c074444692cf1
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Pig
f66a5f7574
universal7885: Enable NFC only if hardware sku prop is set
...
Change-Id: Iac4734657504004c12630dc482dfb9d6c2612282
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
75777bf8c1
universal7885: init: Set NFC sku property on supported variants
...
Change-Id: I30e4f0188c8731e0b3b76ab58ec365808eec96d5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
ba5a120ecf
universal7885: rootdir: Create efs nfc dirs
...
* Taken from stock init.rc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I35b7890363a743902da458bc555b745a27e9204a
2021-10-21 22:12:08 +09:00
SamarV-121
44ba529c7f
universal7885: rootdir: Mount sec_efs partition
...
* only available on A series
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: If860b66f65667c582d8554d2b5e731392d2dd646
2021-10-21 22:12:08 +09:00
SamarV-121
179ec03067
universal7885: rootdir: Simplify bdaddr_path
...
why even bother bind mouting it
also its gonna create conflict with seperate sec_efs partition which A series have
Change-Id: I597af331f53942cce5fa9a3e78af35a5f57ae68e
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Tim Zimmermann
9f0f037948
universal7885: move nfc data to /data/vendor/nfc
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I1d6453d04cad9bca330801abe27ac4df4c7d76ba
2021-10-21 22:12:08 +09:00
Jan Altensen
4fed82613c
universal8890: build nfc hal from source
...
Change-Id: Ief7ef8f2a597b1a978ea4b0ec4e41391cec03a99
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
1875a501a1
universal7885: sepolicy: Adapt for universal7885 and address denials
...
* Everything's working fine now
* todo: Cleanup unnecessary rules and vendor init
Change-Id: I4faea56383b5851bbd486f45d103e0bb94ebdd24
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Henrik Grimler
1db34af1a0
universal7885: Initial sepolicy
...
* Based on {exynos9820,universal7880}-common
* Squashed from https://github.com/exynos8895/android_device_samsung_universal8895-common/commits/lineage-17.1/sepolicy
Co-authored-by: Jan Altensen <info@stricted.net>
Change-Id: I5ff59c00498bc546db70277571e3d5c7595bc2b8
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
448dba611a
universal7885: Compile Sepolicy from source
...
Change-Id: I48c4ba7995e10ec3665cc2974c6977fa4d1ce25c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Andreas Schneider
f23750e9db
universal7885: Include common samsung_slsi and lineage exynos policy
...
Change-Id: I45102a4c6849f1efc8ce45051995c378442da72c
2021-10-21 22:12:08 +09:00
Andrew Hexen
548a4cc2a5
universal7885: rro_overlays: Move to Vendor
...
* For GSI compatibility.
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I21180e80de1109483f8ce0ab67fba021d4a74b08
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Roshan Pius
5453c66f29
universal7885: Add WifiOverlay
...
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
78233e4a8b
universal7885: rootdir: Merge a40's ueventd.rc
...
Change-Id: Ia20e9435d24fd5965347e4e9c9085010e6bd2bc4
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
e3b10d19e1
universal7885: Decommonize some init scripts
...
* A series has partition names in small letters
Change-Id: I603b7f4283a2486c4177f4d4cd8ddc94134f4a1b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Tim Zimmermann
b7a4a02d2c
universal7885: rootdir: Cleanup init.exynos7904.rc
...
Change-Id: I3087f71b17924188f421c91b90804c5133a9e48b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
5d4a8c7d0f
universal7885: rootdir: Remove unused service
...
Change-Id: I99dab18fe6da59782c5cc9e6a00532ddc66370b7
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
d4f77e5e74
universal7885: rootdir: Remove non-existent services
...
Change-Id: I15215cae0d43c6596ab92ec99f8c2860276d5a67
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
55862efd57
universal7885: Remove unused sec audio HAL
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I5fd996dfa3823d14a072fc03c991b7d13fada0ae
2021-10-21 22:12:08 +09:00
SamarV-121
4150d2479d
universal7885: Remove unused audio_policy_volumes_sec.xml
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ib97e3b9161be95b5eb5dcb7732c56e05b44597a9
2021-10-21 22:12:08 +09:00
SamarV-121
017eeb3b01
universal7885: Update graphics blobs from a40 oneui3
...
* relevant kernel drivers are already merged in kernel
* r26p0 ftw
Change-Id: Ideb5b69309d0fdc9f0148b454c72b7df1296d369
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
aa02f7373b
universal7885: Add missing dependency of sec-ril
...
Change-Id: Id99912c8d3f40976be4142ad6f4f705b28122f4b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
79c2c205cb
universal7885: Cleanup properties
...
Change-Id: I927ad7fc99a3f644972d1a5e8cb87ff32235bdb3
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
9f9a94d557
universal7885: Update blobs from a40
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Icb99fb314892f80d04a59897d026043c03b81b97
2021-10-21 22:12:08 +09:00
SamarV-121
5289d83394
universal7885: Rename wifi.rc to wifi_sec.rc
...
`build/make/core/base_rules.mk:325: error: device/samsung/universal7885-common/rootdir: MODULE.TARGET.ETC.wifi.rc already defined by frameworks/opt/net/wifi/service.`
Change-Id: I1699083e460ddbb8cce5d1ccb14a8fba7f0ef54c
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Jan Altensen
111b2d773c
universal7885: Add slsi wpa_supplicant_8_lib to CFI paths
...
Change-Id: Ib2bf001d0d104eeb2540682fd15c2df7dcf1518b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Jimmy Chen
b4d44ad7d7
universal7885: Move supplicant service init to wpa_supplicant
...
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
cc0fbca0d7
universal7885: Import wifi configs
...
Change-Id: I7c29879543ae9f0dd9daafa963df2814b8172ee5
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
4f2c263d84
universal7885: Compile wifi stack from source
...
Change-Id: Iff490e431489c6229b2c67d4938fa700da435b13
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
4fcc6f9cf6
universal7885: Remove unused mfgloader
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Idc23da8063787609680b271cd8e9a51c45473ec8
2021-10-21 22:12:08 +09:00
SamarV-121
7d2e8dd6d7
universal7885: Import wifi.rc to device tree
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I84430c4bbc4240cc1d6eb1d73649a17abad5af04
2021-10-21 22:12:08 +09:00
SamarV-121
0c86deb9f0
universal7885: Decommonize keymaster HAL definiton
...
* A series is using keymaster 4.0
Change-Id: I07b01c21afc7957e5830c6e692efea5972d91019
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
59aa6470ae
universal7885: Decommonize and update blobs from a30
...
Change-Id: I8faa6e6786718de42e6c2c468e350c893dbeec73
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Bruno Martins
84a5f074c8
universal7885: Also allow extracting target device blobs only
...
Change-Id: Ib5157b1e182ac6faf212793871ddff28fc32063d
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Bruno Martins
573b3d2bee
universal7885: Add ability to extract common proprietary files only
...
Change-Id: Id4303ba662f60cb794aac65ebde652b643ea2345
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Christopher N. Hesse
2b1b53aa46
universal7885: Enforce vendor tree presence
...
A compiled build has no chance of booting without the prebuilt
binaries, so fail the build if those are not present.
Change-Id: Iadd43e887d426732e549969ab8deb14194ca818d
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
P.Adarsh Reddy
b8a24832c6
universal7885: Remove health hal 2.0 manifest entry.
...
Health hal is being up-rev'ed to 2.1, and it now
gets the manifest entry from its vintf fragment.
So, remove the earlier set 2.0 entry.
Change-Id: I034ad8fa2a32e1221343c1eb23528c79d51e7b1b
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
P.Adarsh Reddy
b17b1f62e3
universal7885: Up-rev Health hal from 2.0 to 2.1.
...
Change-Id: Ib2d1e7742b49919045022d385460e0a3fedf3033
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Mikhail Naganov
2a9beddce4
universal7885: Switch to Audio HAL V6
...
Switch to Audio HAL V6
Bug: 141989952
Test: atest VtsHalAudioV6_0TargetTest
atest VtsHalAudioEffectV6_0TargetTest
manual audio "smoke" test on taimen and walleye
Change-Id: Ieb1cc5c7fdcc5416a328a0a5c4a1996258b81ac8
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
0881a3f97e
universal7885: Oraganize proprietary blob list
...
Change-Id: I16df0b269a0125c3aceb8b1031189fe87ff30c75
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
7d578c38de
universal7885: Copy seccomp policy from source
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I59f302a97f6d4a71f4e6b7ca7f7bf8dbddceb940
2021-10-21 22:12:08 +09:00
SamarV-121
6b3d21d141
universal7885: Copy feature permissions from source
...
Change-Id: I99309fc463b207f63dafeb7cdac4eb6941588a86
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00