Commit Graph

120 Commits

Author SHA1 Message Date
Ramakant Singh fc5247f4d8
sm8150-common: init: Add vendor prefix for shell
qti_init_shell renamed to
vendor_qti_init_shell

Change-Id: I4cfe1d8e15892a4948ece52aa799b2a60826d5f9
2021-04-03 06:48:55 +05:30
Scott Warner 1404467948 sm8150-common: sepolicy: Grant fingerprint xdsp_device rw perms
Since fastrpc is moved to secure domain, fingerprint now
needs to communicate over xdsp (/dev/adsprpc-smd-secure)

Change-Id: I94b472144a946df898f12d5f6bee31ec8cc71d47
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-11-21 13:30:21 +05:30
Scott Warner 7d883af2b0 sm8150-common: manifest/sepolicy: Add new camera interface
Interface added in the Oxygen OS 10.3.4.GM21AA blob update

Change-Id: I95202b728c381b0bec4922e2688f1d33a43035dc
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-09-08 21:58:59 +05:30
LuK1337 ecf95ef92e sm8150-common: fingerprint: Sync with hardware/interfaces/biometrics
* Also drop silead support and fp variant props as
  none of these are actually used (anymore?).

Change-Id: If9fa58c63c5033e7a89c24580288ec7300500c66
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50:09 +05:30
Hikari-no-Tenshi a03d66103d sm8150-common: sepolicy: Allow system_app to interact with pasr hal
Change-Id: I5d521704aa6739ab27b7cad292f05269fd5411d7
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:47:49 +05:30
Ashwin R C 935a7051b2 sm8150-common: allow hal_audio_default to read audio_device
audio_hw_primary: pcm_open_prepare_helper: cannot open device '/dev/snd/pcmC0D0p': Permission denied
avc: denied { search } for name="snd" dev="tmpfs" ino=14528 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0

Change-Id: I8fb7ec2c269fca6b8bf21aacf521990e9279418d
2020-05-04 16:35:53 +00:00
Anirudh Gupta c79373d4da sm8150-common: sepolicy: Allow ims to read and write to diag_device
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta 17d9eab96d sm8150-common: sepolicy: Allow memtrack HAL to search in sysfs_kgsl
Addresses the following denial:
```
avc: denied { search } for name="kgsl" dev="sysfs" ino=57739 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:sysfs_kgsl:s0 tclass=dir permissive=0
```
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta 502ed6474f sm8150-common: {sepolicy,rootdir}: Address denials in DeviceSettings
Guides that helped fix these:
 - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/SELinux_Guide/rhlcommon-section-0023.html
 - https://msfjarvis.website/posts/understanding-and-resolving-selinux-denials-on-android
 - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/SELinux_Guide/selg-part-0057.html

Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:29:50 +05:30
Anirudh Gupta 5ac64cd669 sm8150-common: Switch to stock vibrator HAL
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:12:09 +05:30
Hikari-no-Tenshi c4871a9086 sm8150-common: fod: Hardcode dim amount for hbm mode(670)
Change-Id: Ic403cbd69a57d2da78e388cfc31d0aa8dbb0d8e1
2020-05-01 13:24:25 +02:00
Anirudh Gupta b779941e81 sm8150-common: sepolicy: Address hal_camera_default denials
* Needed on OnePlus7 and OnePlus7T.

Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Change-Id: I5cf593a89704b32a4e3232eeee33cb9a3c3c4f9f
2020-05-01 11:00:34 +02:00
Hikari-no-Tenshi 5d4b065ffc sm8150-common: tri-state-key: Add hall sensor calibration support
* Needed for OnePlus 7 (and possibly 7T).

Change-Id: I8449041eec5c8ab4153bd2942ebc7fda9ceb743e
2020-04-30 13:44:49 +02:00
LuK1337 e9ea023e0a sm8150-common: tri-state-key: Relocate to /vendor
Change-Id: Ic70173b82ded0151e98fcfa4023b8a081cd67874
2020-04-30 12:07:27 +02:00
LuK1337 e8aa356674 sm8150-common: Relocate dashd to /system/bin
Change-Id: Ief585959ebef9461bd62b26039997ae3c438c1d5
2020-04-02 23:35:43 +02:00
LuK1337 e33de6b22a sm8150-common: sepolicy: Label vendor.nxp.eventprocessor::INxpEseEvtProcessor
Change-Id: Id67723d049bba927cba992f2ecef8963ee894b74
2020-02-04 21:39:16 +01:00
LuK1337 7c34f92d81 sm8150-common: sepolicy: Use r_dir_file() macro for wcnss_service
Change-Id: I721936c7a298fdd328cb8b3568787cc49b3cdad8
2020-01-14 02:21:45 +01:00
LuK1337 3b89c8f844 sm8150-common: sepolicy: Allow hal_audio_default to use hal_param_hwservice
Change-Id: Iec81050b714b554ab6371bb5a8a4c2fc2e546193
2020-01-14 02:07:48 +01:00
LuK1337 f677bd245b sm8150-common: Label secure_element HAL 2020-01-05 16:03:25 +01:00
LuK1337 a339a11d89 sm8150-common: Import camera_* from guacamole
* Now that we have more than 1 device using these
  apps there's no reason to have them in separate
  trees.

Change-Id: Ie5a969f2d40506a330eb721f7702424f1f9f087b
2019-12-27 17:20:11 +01:00
LuK1337 fce85fa1cc sm8150-common: Remove no longer needed rootfs symlinks
Change-Id: I3eefcdedd2a041dec9186a1ca8c3c3007663d395
2019-12-27 17:20:11 +01:00
LuK1337 e3db1059ce sm8150-common: sepolicy: Address wifi-mac-generator denials
Change-Id: I0e6667fe4ab0ff0b147867924192d6642eb3502a
2019-12-27 17:20:11 +01:00
LuK1337 a241944cfc sm8150-common: sepolicy: Label /dev/pn553
Change-Id: Icb4da402216c5544f3251f0422be07d870827ca3
2019-10-19 23:14:09 +02:00
LuK1337 9275ce1036 sm8150-common: sepolicy: Label /dev/{audio,sensor}_ultrasound
Change-Id: Ibdd4805c44ad574e8b3ddfb81706c67597b37bc0
2019-10-12 02:32:09 +02:00
LuK1337 cdc3a04c9b sm8150-common: Make SELinux great again!
Change-Id: I63e87ada53e4c5e8b6d8230d4acdb3ae430b3384
2019-10-06 19:59:40 +02:00
LuK1337 e11e001981 sm8150-common: sepolicy: Resolve some ugly dashd issues
* Since a certain funny mod does some unexpected
  changes to rootfs, which essentially resets
  /sbin/dashd label back to u:object_r:rootfs:s0,
  the dashd cannot be started anymore.
* This change syncs attributes and allows init to
  execute files with u:object_r:rootfs:s0 context
  as u:object_r:dashd:s0 using seclabel service
  option just like OnePlus does on stock.
* We are also reverting bea94bd just because it's
  not needed anymore and dropping /sbin/dashd fs
  label just so that we can easier spot this issue
  if it'd ever happen again.

Change-Id: I98b376a66836aae036b8e41bb0300ce0d926f4c2
2019-09-16 16:24:53 +02:00
LuK1337 07f1b40701 sm8150-common: sepolicy: Update camera motor HAL path
Change-Id: Ib31301bcc6c9a6325525475dad72e7fa54d6b232
2019-08-21 12:05:07 +02:00
LuK1337 f63996e4ec sm8150-common: Implement custom Vibrator 1.2 HAL
* This HAL implements interface needed for
  amplitude control and use of vibrator effects:
  - click
  - double click
  - tick
  - heavy click
  - pop
  - thud
* The implementation was inspired by darkobas's
  OmniROM HAL but it was totally rewritten by me.

Change-Id: I8574c5676bfb8711222e864394d77dcd7042956f
2019-08-03 19:17:56 +02:00
LuK1337 baf62e8a5c sm8150-common: sepolicy: Label persist.vendor.diag.max.{num,size}
Change-Id: I9c04cf2d29315b67eea9fd41b4d80464510b1a11
2019-07-17 23:51:45 +02:00
LuK1337 f2b11f7b56 sm8150-common: sepolicy: Address hal_audio_default denials
Change-Id: I67b064ccf1d84ca4b891f1cdb4f4d6ecebdbce23
2019-07-17 23:13:36 +02:00
LuK1337 3662278479 sm8150-common: sepolicy: Address hal_param_default denials
Change-Id: I387a629e82dbcea74567eb203b99c361238e9c09
2019-07-17 23:13:36 +02:00
LuK1337 bec6f7bcdd sm8150-common: sepolicy: Correct camera helper package id
Change-Id: Ief458fa8009eda5c115bdf228feed9e0561b58a7
2019-07-17 01:38:49 +02:00
Scott Warner d06017c53e sm8150-common: sepolicy: Label /dev/socket/vl53l1_daemon
Change-Id: I5b7b813720c7dd6bcef3518ceb9b0d255d265fd8
2019-07-13 12:58:48 +02:00
Scott Warner acba7bfa81 sm8150-common: sepolicy: Address hal_fingerprint_default denials
Change-Id: I6f65b1d0a8ebc2f40d927b912f0a57f3a46da350
2019-07-13 12:58:48 +02:00
Scott Warner 7666d6b9af sm8150-common: sepolicy: Address NFC denials
Change-Id: I67138bb9133d12703445cf3c3010c493eecda1b0
2019-07-13 12:58:48 +02:00
Scott Warner 55ede6c9ac sm8150-common: sepolicy: Label more RIL props
Change-Id: Ieb1dd65deb7bcb1b08f96577123cbba84cbff75a
2019-07-13 12:58:48 +02:00
Scott Warner e39a1a2cd2 sm8150-common: sepolicy: Label more NFC props
Change-Id: I9dfdee3ff2e5a78a8ac19283f1c4821ea1474f2e
2019-07-13 12:58:46 +02:00
Scott Warner ec44666633 sm8150-common: sepolicy: Label more camera props
* Also use camera_prop instead of vendor_camera_prop
  for non-vendor props.

Change-Id: I7ecb6bd8424b21839c49fd3a84a282db04e792bf
2019-07-13 12:33:25 +02:00
Scott Warner 2c782507bb sm8150-common: sepolicy: Label persist.vendor.audio.hac.enable
Change-Id: I6d38241448f8a39d7bbe7b7db1502bb67a63e53c
2019-07-13 12:31:45 +02:00
Scott Warner e7ab814a19 sm8150-common: sepolicy: Label persist.vendor.color.matrix
Change-Id: Ida04ce0ec155a17d800e8b47b8c80b61ef1aede3
2019-07-13 12:30:59 +02:00
Scott Warner bc61984b05 sm8150-common: sepolicy: Label FTM mode and prmec props
Change-Id: I08d827b7fbb68ef9eb71da3796a9e8cacfe2bdff
2019-07-13 12:30:02 +02:00
LuK1337 661593137b sm8150-common: sepolicy: Label persist.vendor.sys.memplus.
Change-Id: I758c6da33d40dc8dd0d5d3299098ccdc3a5e485d
2019-07-11 21:28:58 +02:00
LuK1337 c5a654eb06 sm8150-common: sepolicy: Address binder related hal_sensors_default denials
* Also enable PRODUCT_FULL_TREBLE_OVERRIDE to bypass
  SELinux treble tests since we are violating treble
  rules now.

Change-Id: I314946bffa9bdfc99881927b4f74b5c42b3eb021
2019-07-11 19:27:19 +02:00
LuK1337 a8f1b12048 sm8150-common: Drop SSR blobs and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2019-07-11 15:55:34 +02:00
LuK1337 210ca12342 sm8150-common: sepolicy: Address qti_init_shell denials
Change-Id: I21807dc3ae7b7c073b3b06f1412ccc21a727b497
2019-07-11 15:07:14 +02:00
LuK1337 34a7aa8f40 sm8150-common: sepolicy: Address sensors denials
Change-Id: I242f660bccd7bfa2cd258f1f0e745617ec64395b
2019-07-11 15:06:44 +02:00
LuK1337 ddeb3d2209 sm8150-common: sepolicy: Address vendor_init denials
Change-Id: If9a5629aedc0e8ab496b1f18ec0644b2ac94cd57
2019-07-11 14:49:27 +02:00
LuK1337 af01742eb6 sm8150-common: sepolicy: Label fpc_images
Change-Id: If98f4e219bfc928590ff8c8c1e1070c5ee25af59
2019-07-11 14:23:21 +02:00
LuK1337 5604000586 sm8150-common: sepolicy: Allow sensors hal to write to motor nodes
Change-Id: Ifdfa6c2808daa2f3f76c151784e085a4775fdf01
2019-07-11 14:08:13 +02:00
LuK1337 cda478214e sm8150-common: sepolicy: Label oem partitions
Change-Id: I2daab5fcf5aee260ff8aad198630f64337490f1a
2019-07-10 23:45:21 +02:00