Commit graph android_device_samsung_a20/universal7885-common/sepolicy
Author SHA1 Message Date
roynatech2544
eaab77ceff
universal7885: Add other 7885 devices
* A10, A30, A40

Change-Id: I92829c4d3b11e2759f08ef04fe4d4d60ff352a0b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00
Kevios12
62b750c2e9
universal7885: Add some rules to make ds work on enforcing 2022-03-22 18:57:12 +09:00
David Sehr
a5d59ee4fe
universal7885: Use dex2oat64
Enable dex2oat64 use
Additionally, cleanup
Bug: 153380900
Test: boot and install an application
Change-Id: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
(cherry picked from commit 126f03be80f57a8a0411842011152d9381589b78)
Merged-In: I3e7a6e6e9385ff6564d1a2e6dda004ebb061f095
Signed-off-by: orgesified <gesishabani1@gmail.com>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
Signed-off-by: Kevios12 <kerschbaumer.kevin2@gmail.com>
2022-03-22 18:56:53 +09:00
roynatech2544
c3ae831d7f
universal7885: Fixup neverallow 2022-03-22 18:56:37 +09:00
Inseob Kim
faa961a5f5
universal7885: sepolicy: Attach vendor_property_type to properties
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: I33c40ca345365d8f01f43d3ce7f1f3434b1edfd5
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:56:37 +09:00
Soo-Hwan Na
833959f896
universal7885: drop a2dp hardware offload
Reason: unsupported

Inital inputmonitor

* Tool to record input keycodes (numbers)

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>

universal7885: inputmonitor: fix build errors
2022-03-22 18:56:36 +09:00
roynatech2544
1f8d0619cc
[APTX] universal7885: Add APTX support
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:55:39 +09:00
roynatech2544
2ba9a6ccbf
universal7885: Add samsung configstore HAL entry 2022-03-22 18:55:32 +09:00
roynatech2544
84b8328a01
universal7885: import light HAL from hardware/samsung
* Added .clang-format symlink
* Undefine non-existent nodes in header file

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:52:43 +09:00
roynatech2544
cecc5caa7b
universal7885: SEPolicy: Label new HAL(libpower-perfmgr)
* Since we merged Samsung slsi repo, it should be labeled here

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:41 +09:00
Tim Zimmermann
5fc20541b8
universal7885: Switch to AIDL libperfmgr power HAL
Change-Id: I56928037bf543accb3175ea50c674f80a3f60b99
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:51:23 +09:00
roynatech2544
eb55252ccd
universal7885: Add necessary selinux policy for previous commit
* type=1400 audit(0.0:410): avc: denied { setuid } for capability=7 scontext=u:r:hal_battery_default:s0 tcontext=u:r:hal_battery_default:s0 tclass=capability permissive=0

Change-Id: Iaf23adf8c27758b4856f4c3ab2f55b16f57e646e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:46:49 +09:00
Soo-Hwan Na
2c3de84078
universal7885: sepolicy: typo
* add ; back

Change-Id: Ied8348babdf09daa4768b9a9cd4c2b405290d6b2
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:44:10 +09:00
roynatech2544
0631cfad71
universal7885: sepolicy: Address A20 and DS denials
Change-Id: I5838c1cd88f4479169651b8a66f70d52242c2e4e
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:41:13 +09:00
roynatech2544
0d81c5b97d
universal7885: CameraLightSensor: Correctly monitor brightness settings
* Added an observer
2022-03-22 18:39:42 +09:00
roynatech2544
0629318372
universal7885: sepolicy: Address dual sim model's denials
Change-Id: Ib9482de562b74964738968320c869c96e22bd704
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:39:11 +09:00
roynatech2544
83eec48ea9
universal7885: sepolicy: Address build error
* ERROR 'unknown type system_suspend' at token ';' on line 37636

Change-Id: I701844d4ca372c7bfa031fc03e0b56d94fd08c01
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:36:40 +09:00
roynatech2544
7d795b7fe3
universal7885: sepolicy: Support for A20's poll_delay file 2022-03-22 18:36:18 +09:00
roynatech2544
0fc8d0c629
a20: Address SELinux denials
* Additionally, try to save more battery on CameraLightSensor

Change-Id: I8a3a86a67eeefb0b023e4162f0a32c9ecca20ff4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:35:27 +09:00
Gabriel2392
7329c87196
universal7885: Address SELinux denials
* Now boots with enforcing kernel
2022-03-22 18:32:07 +09:00
roynatech2544
c1a9d9f071
universal7885: SamsungParts: add gpu, selinux and update related sepolicy 2022-03-22 18:29:22 +09:00
roynatech2544
1bcf57f719
universal7885: SamsungParts: Add new HIDL
* Related to flashlight
* Also, build it
2022-03-22 18:26:48 +09:00
roynatech2544
703c0edf61
universal7885: Fix another merge issue
* /vendor/firmware/
2022-03-22 18:26:13 +09:00
roynatech2544
f6da6e72c2
universal7885: sepolicy: Completely merge samsung_slsi repo 2022-03-22 18:22:11 +09:00
Gabriel2392
af95ebdf2b
universal7885: Import debugging script
* https://github.com/SamarV-121/android_vendor_extra/blob/android-12.0/prebuilt/init/debugging.rc
2022-03-22 18:18:36 +09:00
roynatech2544
f5cec63d36
universal7885: sepolicy: Fix syntax error
Change-Id: I0b98f8e2ec733e9dee29912e176fe927a68eebf0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:17:22 +09:00
roynatech2544
9f2cdeb5b4
universal7885: SamsungParts: Update relevant SEPolicy
Change-Id: I13eb7abd5d0651a52a8a14211c00b5e74798976f
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:17:15 +09:00
roynatech2544
651386dfff
universal7885: add Samsungparts
* It is based on XiaomiParts usually found on Xiaomi device trees

Change-Id: If34ba79bba05ede0ce98bbedf14a1c318bee8fc4
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:16:05 +09:00
SamarV-121
f2941dde63
universal7885: Import USB typec HAL from lineage
* https://github.com/LineageOS/android_hardware_lineage_interfaces/tree/lineage-18.1/usb/1.1-typec

Change-Id: I784aa37b58deca8d12df030be103cad5b72d7e3b
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:15:10 +09:00
roynatech2544
9506c382c4
universal7885: Adapt SELinux rules to match our A20/A20e's needs
* Additionally, adapt LineageOS's rules too

Change-Id: Ie253afd9052c700705861d618253445ef4b8c728
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:11:48 +09:00
roynatech2544
f8eb3e1258
universal7885: Inital port to A20/A20e
Addtitionally, Add device-specific trees as well

Change-Id: Icbbc31c063b18bce3702d0b208a0aee78148a7c0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:08:09 +09:00