LuK1337
d3e7573d05
sm8150-common: Switch to AOSP NfcNci
...
Change-Id: I3403084373445475ee1d997c47cfaa887bcfeb4a
2022-03-03 15:25:07 +09:00
LuK1337
c279953dc7
sm8150-common: sepolicy: Address neverallows
...
Change-Id: I73b3d2d45a2e6988ca86a9d3bfa125fd69320b13
2022-03-03 15:25:06 +09:00
LuK1337
5863411fde
sm8150-common: sepolicy: exported_radio_prop is no more
...
Change-Id: I0f5b2220d5d8c3efc41e2f7b1d5930affe4614a6
2022-03-03 15:25:06 +09:00
Inseob Kim
fc2551d553
sm8150-common: 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.
Change-Id: Iedbbcc5086c09f549e91e73ece7311563c378347
2022-03-03 15:25:05 +09:00
SamarV-121
9408b66bfa
Revert "sm8150-common: sepolicy: Label ro.gfx.driver.1"
...
* https://android-review.googlesource.com/c/platform/system/sepolicy/+/1344643
This reverts commit 1c1b01fc0ed48a42b470efc987b28352485547b6.
Change-Id: I8cf513c21b91260ef914ea1621a7363c133d37d3
2022-03-03 15:25:05 +09:00
LuK1337
b58744eaa3
sm8150-common: sepolicy: Label vendor_sensors_als_prop in private
...
Fixes init panic on Android S GSI.
Change-Id: Ie3273eaf0a8958d3821c4d5eb79cd4a3e83e82d5
2022-03-03 15:25:02 +09:00
Omkar Chandorkar
76266d26b6
sm8150-common: add missing nfc blob and sepolicy
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:25:00 +09:00
Omkar Chandorkar
bbde6da1d0
sm8150-common: sepolicy: label a2dp prop
...
* fixes init: Do not have permissions to set 'persist.vendor.bt.a2dp_offload_cap' to 'sbc-aptx-aptxtws-aptxhd-aac-ldac' in property file '/vendor/build.prop': SELinux permission check failed
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:55 +09:00
Hikari-no-Tenshi
74878cd3ff
sm8150-common: sepolicy: allow system_app to control led
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ic598d335971a7cea6aaa0edada62a903d90dddec
2022-03-03 15:24:54 +09:00
Omkar Chandorkar
833a7e5152
sm8150-common: sepolicy: label ese prop
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:54 +09:00
Omkar Chandorkar
e3752d0117
sm8150-common: drop secure_element
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I36ec5382484a1dc9030f118ffbe7f16c06837d33
2022-03-03 15:24:49 +09:00
Omkar Chandorkar
86293659d3
sm8150-common: address a few denials
...
* suppress gmscore_app looking for fw
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:49 +09:00
Omkar Chandorkar
0122d9236d
sm8150-common: Drop PowerOffAlarm
...
* google clock doesn't support and pa only ships gapps
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:48 +09:00
Omkar Chandorkar
c8a34560dd
[SQUASH]sm8150-common: camera_helper: checkout to LOS
...
Revert "FallSensor: Correctly theme the dialog"
This reverts commit acd289b071
.
Revert "sm8150-common: Theme the popup camera dialog"
This reverts commit 0b170523d1
.
Revert "sm8150-common: Allow to always display front camera open dialog"
This reverts commit a66514ccd9
.
Revert "camera_helper: Show alert dialog before raising camera when screen is off"
This reverts commit 5183a77b26
.
Revert "sm8150-common: camera_*: rework implementation and cleanup"
This reverts commit 7099ff8d71
.
sm8150-common: Move camera motor handling to OnePlusCameraHelper
Change-Id: Ie5f8bcdc80ad38a48fc9f1984f02efc2ebd85b91
Automatic translation import
Change-Id: Ic5ef142f24e2b0c4b94b082b5228edc2dc04f0de
2022-03-03 15:24:46 +09:00
Omkar Chandorkar
0a68ddbf98
sm8150-common: inital bringup for aospa
...
* drop in-tree bootctrl and dependencies
* drop unused flags
* use usb component
* update HIDL manifests for CAF
* blob perf deps
* drop non-existent overlays and general cleanup
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I7babead03416479ad6928d359b1cb68def0565cc
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:40 +09:00
Omkar Chandorkar
69d5120e21
sm8150-common: drop los touch
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 15:08:26 +00:00
Omkar Chandorkar
94f3b805df
sm8150-common: remove DeviceSettings
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 15:08:14 +00:00
Omkar Chandorkar
e451685d49
sm8150-common: sepolicy: allow camera to read /dev/adsprpc-smd-secure
...
* fixes portrait mode in oneplus camera
`05-20 17:02:33.677 878 1598 E OPRTB : doLoadLibrary():1542 doLoadLibrary RTB select: /vendor/lib64/libarcsoft_dualcam_bokeh_api.so, bokeh_select:0
05-20 17:02:33.678 878 1598 E android.hardware.camera.provider@2.4-service_64: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2459: Error -1: apps_dev_init: app does not have access to fastrpc device of domain 3 (Permission denied)
05-20 17:02:33.678 878 1598 E android.hardware.camera.provider@2.4-service_64: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2588: Error 0xffffffff: apps_dev_init failed for domain 3, errno Permission denied
05-20 17:02:33.672 878 878 W provider@2.4-se: type=1400 audit(0.0:55): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=28876 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0`
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-21 09:33:19 +00:00
Omkar Chandorkar
b0a4f906d6
sm8150-common: sepolicy: cleanup contexts
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-16 12:31:46 +00:00
Omkar Chandorkar
870504e13d
sm8150-common: cleanup NFC prop and service
...
* fixes init being unable to start service or set the prop
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-10 15:44:12 +00:00
alk3pInjection
d6cd006f80
sm8150-common: Cleanup {oemdump, memplus, fsc} stuff
...
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
2021-05-06 12:27:07 +00:00
Omkar Chandorkar
3855eeb877
sm8150-common: fod: rewrite set/restore colour mode
...
* add newly introduced customer modes
* Mode write streams were dumped using following strace command:
- strace -fp `pidof vendor.oneplus.hardware.display@1.0-service` -e openat,write
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-02 11:15:59 +00:00
Omkar Chandorkar
c7fceca04c
sm8150-common: add customer display modes
...
after LineageOS/android_device_oneplus_sm8150-common@648ca57376 I realised
that our display modes were different compared to OOS while having the same
name. So add Natural and Vivid which uses the native modes, and make
P3 and SRGB use customer modes now.
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-02 04:13:59 +00:00
Omkar Chandorkar
b4f0e658aa
sm8150-common: sepolicy: address more nfc denials
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-27 09:15:12 +00:00
Omkar Chandorkar
4f2a9f1bbb
sm8150-common: address remaining denials for eSE
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-21 18:49:49 +05:30
Omkar Chandorkar
ec9d1bfd62
sm8150-common: label eSE prop and address more denials
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-21 12:18:53 +05:30
Omkar Chandorkar
415be4e599
sm8150-common: sepolicy: remove sepol for virtual_ab
...
* hotdogb uses regular a/b now
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-20 21:35:44 +05:30
Omkar Chandorkar
8eaee60311
sm8150-common: sepolicy: allow untrusted_app to read vendor_persist_camera_prop
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-20 21:33:50 +05:30
Omkar Chandorkar
f6c90feb13
sm8150-common: sepolicy: allow secure_element to read nfc prop
...
* fixes E libc : Access denied finding property "persist.vendor.nfc.delayese"
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-20 11:54:50 +05:30
Omkar Chandorkar
7e2cacf3ca
sm8150-common: sepolicy: allow rw_file perms to secure_element hal
...
* fixes E NxpEseHal: seHalInit: SecureElement open failed!!!
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-20 11:50:20 +05:30
Omkar Chandorkar
3d7d8d6c20
sm8150-common: address secure_element denial
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-14 10:44:41 +05:30
Omkar Chandorkar
8277c8b60b
sm8150-common: sepolicy: address priv_app denial
...
* fixes avc: denied { read } for comm=446576696365207374617465206D61 name="temp" dev="sysfs" ino=78965 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:vendor_sysfs_battery_supply:s0 tclass=file permissive=0 app=com.oneplus.camera
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-13 15:07:21 +05:30
Omkar Chandorkar
c39af233b2
sm8150-common: drop sysfs_livedisplay_tuneable
...
* was lazy to fix this before
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-07 12:21:26 +05:30
Omkar Chandorkar
e3877fd44d
sm8150-common: sepolicy: add vendor_ prefix
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-06 20:30:02 +05:30
LuK1337
7aa52cc950
sm8150-common: sepolicy: Label ro.gfx.driver.1
...
Change-Id: I56ea28752ab8a1ef489adc7ab6547e86dfc220ca
2021-04-05 15:34:43 +05:30
Omkar Chandorkar
348904ab4d
sm8150-common: sepolicy: address denials for user build
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:38 +05:30
Omkar Chandorkar
deae5e88b6
sm8150-common: sepolicy: allow untrusted_app_29 to access camera prop
...
* fixes E/libc (7181): Access denied finding property "persist.vendor.camera.privapp.list"
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:34 +05:30
baalajimaestro
f8b7175692
sm8150-common: sepolicy: label more nfc props
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:33 +05:30
Ido Ben-Hur
7a6ff5d057
sm8150-common: sepolicy: build fixes
2021-04-05 07:54:33 +05:30
rituj
7099ff8d71
sm8150-common: camera_*: rework implementation and cleanup
...
* switch to intent based camera motor control
* remove camera_motor binary
Change-Id: I52916c6f059681429eb33f63f0020e9d5f1295b8
2021-04-05 07:54:24 +05:30
Omkar Chandorkar
fa7874f901
Revert "sm8150-common: sepolicy: Allow ims to read and write to diag_device"
...
This reverts commit c79373d4da
.
2021-04-05 07:54:23 +05:30
Omkar Chandorkar
c5b7fc568b
sm8150-common: enable SecureElement only for sku_3
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:03 +05:30
Quallenauge
28ea772e26
sm8150-common: sepolicy: Add swapper to kill.
...
Fixes:
W swapper/6: type=1400 audit(0.0:63): avc: denied { kill } for capability=5 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=capability permissive=0
Change-Id: Ib3b5c2a173528cb9f63a4dd750634968c060f471
2021-04-05 07:54:00 +05:30
Ido Ben-Hur
e504fe9e8e
sm8150-common: sepolicy: address LS charging denials
...
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:53:51 +05:30
Filippo
2240df9cd9
sm8150-common: Update sepolicy domains to new UM SEPolicy
...
Change-Id: Ib7ae928ead670893ec003097a33dd71db4918559
2021-04-05 07:53:39 +05:30
LuK1337
d0cbf9fcc7
sm8150-common: /{op1,op2} -> /mnt/vendor/{op1,op2}
...
Change-Id: I9de1b8fec80b18af959abc767d2ead833f1b0625
2021-04-03 06:56:32 +05:30
LuK1337
fb250f82ed
sm8150-common: sensors: Bring back naruto light support
...
Also drop full treble flag as we are no longer
violating Treble SELinux tests.
Change-Id: If6802dc13c3ac56fa2e5cd032f3daad71958bffb
2021-04-03 06:56:29 +05:30
Alessandro Astone
08d750a8d1
sm8150-common: Build and enable fastbootd
...
Since OEM fastboot implementation does not allow us to flash
critical partitions, fastbootd is useful for upgrading firmware.
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2021-04-03 06:56:24 +05:30
LuK1337
459a3cd7f3
sm8150-common: sepolicy: OOS 11 related updates
...
* Relocate files when needed
* Remove no longer present labels / hwservices / etc
* Address new denials
Change-Id: Ibf7b9f9a42653520e448619a5c7a2dc9bfeb6026
2021-04-03 06:55:35 +05:30
LuK1337
eb4b31c557
sm8150-common: Import OOS 11 changes
...
* Redo blobs list based on OnePlus sm8250-common
* Retire lights HAL
* Retire custom sensors HAL for time being
* Reimport rootdir
* Reimport seccomp
* Update audio configs
* Update priv app perms whitelist
* Update properties
* Update sec_config
* Update wifi configs
Change-Id: I2b56f03c1d3e4d0d9693d82e96e8501695ebfd74
2021-04-03 06:53:28 +05:30