Commit Graph

41 Commits

Author SHA1 Message Date
LuK1337 2074c18049
sm8150-common: Rename ueventd.rc module to ueventd.qcom.rc
* Fixes: MODULE.TARGET.ETC.ueventd.rc already defined by system/core/rootdir.

Change-Id: Ib9de82cfb1b34f91af09a7f09660f95f112048e1
2021-04-03 06:48:17 +05:30
Alexander Koskovich 40b17107ae
sm8150-common: Set gain of vibrator to 0x55 on boot
* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I676b74aac3cbc1900c73b3236879479e8ecfca00
2021-04-03 06:47:21 +05:30
LuK1337 2bf8423dee sm8150-common: Switch to common usb-in-recovery configuration
Change-Id: I6e281e0a76dbf6f02c9cab9b0dcf2293e0352c0a
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50: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
LuK1337 e8aa356674 sm8150-common: Relocate dashd to /system/bin
Change-Id: Ief585959ebef9461bd62b26039997ae3c438c1d5
2020-04-02 23:35:43 +02:00
Marty E. Plummer 2e0be87559 sm8150-common: Set SSR9-10 restart_level in init.qcom.rc
Change-Id: Ic0da5fec9734be8b92e8a2868f0bc1b16ff34acf
Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2020-01-08 23:09:58 +01:00
LuK1337 e78e13d4f2 sm8150-common: rootdir: Update everything from OOS 10 OB2
Change-Id: I650f277befe47d6f461e4b1952b153ef3c81d4c0
2019-10-11 22:06:41 +02:00
Peter Cai c0a24ddf44 sm8150-common: usb: update sys.usb.state also when switching to none
* Android will always try to "kick" the USB stack by setting
  sys.usb.config to none before doing anything else. Failure to updating
  sys.usb.state here can block the USB stack waiting and eventually
  timeout.

* This fixes MTP and all the other USB issues we have seen on LOS 17.

Change-Id: Ic372aebde97cbff14cb1f140620cbcacd5523a8e
2019-10-11 13:02:28 +02:00
Peter Cai ce91b894c2 sm8150-common: update USB init scripts from OOS 10
Change-Id: I1daf9f1214c4ee255c55ce3d61c27088638c3f88
2019-10-11 13:02:28 +02:00
Peter Cai 522ea26e05 sm8150-common: rootdir: remove redundant services
* These services are now split to their own rc files

Change-Id: Ia1a616c2ba4d5e9f84dbb13e774279e26af15691
2019-10-11 13:02:28 +02:00
Peter Cai a93cecb2c0 sm8150-common: update vendor blobs from OOS 10 OB2
* Updated all blobs from OOS 10 OB2.

* Ramdisk is not fully synchronized, but necessary changes are made to
  support the new blobs.

* Device manifest has been updated to match the new blobs. However,
  clean-ups might be needed due to some vendor changes.

* SELinux permissive is flipped on for now until all the new denials are
  addressed.

Change-Id: I8e0e72445da8ecab1c4e85735ebfcabc5ff2ed7b
2019-10-11 13:02:27 +02:00
Peter Cai e3687d3b73 sm8150-common: [DNM] make host initrc checker happy
Change-Id: I9b2e742fc85806ae112cce7d0267339c3c3cc5e9
2019-10-06 19:59:40 +02:00
Han Wang f9e23ec087 sm8150-common: Remove LOCAL_MODULE_TAGS := eng usage
Change-Id: I6dfb66adf5dcf5ecd650f192935818ff624de2e8
2019-10-06 19:59:40 +02:00
LuK1337 92b3ad26c4 sm8150-common: Let system read and write to FRP block device
* No clue why this is needed but ok.

Change-Id: Ib40ab18e42ced8995f57c9d0a8e1a6decdc7f146
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
Peter Cai bea94bd664
init.qcom.rc: remove critical flag from dashd
* Somehow, some third-party stuff can mess up the context of dashd and
  prevent it from starting. We cannot fix third-party stuff, but at
  least it makes sense that dashd isn't that "critical" to the point
  that the whole system shuts down just because of this single service.

Change-Id: Ife3ca59e38782909b0b42a9b77a342d2a5b92ae8
2019-08-30 21:11:46 +08:00
Bruno Martins e0fa0a2874 sm8150-common: Remove wcnss_filter and all references to it
* No longer needed with QTI BT stack

Change-Id: I6c30349e177613adf943f20d1f27bcd0b936911d
2019-08-05 23:37:30 +02:00
LuK1337 89cea58bef sm8150-common: Set proper permissions for {vib}/ignore_store
Change-Id: Ic176a9a64980c5f7abe9f72741d908a9fa5ccab9
2019-08-03 11:41:59 +02:00
LuK1337 b5b65b7979 sm8150-common: rootdir: Mark all modules as 'optional eng'
Change-Id: I4c57d369d6f577865cf7082ca58ac7e651c0f02f
2019-07-15 13:46:43 +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 119cc4d051 sm8150-common: sepolicy: Restore dashd domain
Change-Id: I7d3e1bd878319ce269fc19d0ec1ef69081d68edb
2019-07-07 22:56:49 +02:00
LuK1337 7a50301ba7 sm8150-common: Finish up cleaning proprietary-files.txt
Change-Id: I808347beef355a003e40ca9b0a492b0ad244cebd
2019-07-07 18:49:18 +02:00
LuK1337 ff02df1d2a sm8150-common: Add recovery support
Change-Id: Id44d9793e0ea5fd1359f661ec6a9a1784514dbd2
2019-07-04 01:42:28 +02:00
LuK1337 37551a6817 sm8150-common: Clean up device layout
Change-Id: Icee155f555f2280092fe7d82c216a47366cfb434
2019-07-04 01:42:26 +02:00
Peter Cai 37474082d5 sm8150-common: ueventd: add /vendor/firmware to firmware paths 2019-07-02 17:51:16 +08:00
Peter Cai b38c4814dd
sm8150-common: fix double-tap-to-wake
* Added a kernel interface at `/proc/touchpanel/gesture_dt2w` for easier
interaction with power HAL.
* Add parameter to OSS power HAL to use this interface
* Added keycode for touchpanel to wake up the device
* TODO: Maybe add support for more touchscreen gestures?
2019-06-28 20:14:29 +08:00
Peter Cai 73d6fffe87
[WIP] sm8150-common: rootdir: disable SELinux context
* We haven't started working on sepolicy yet. This non-existent context
sends us to RescueParty every time.
2019-06-25 10:40:10 +08:00
Peter Cai 382d8fee8d
[WIP, DO NOT MERGE] sm8150-common: build vendor image
* Initial full vendor building. Do not merge, does not boot.
2019-06-24 21:32:23 +08:00
Peter Cai d6b72fae07
guacamole: hack: overwrite vendor soundfx
kang libqcbassboost.so from oneplus3 to fix audiofx crashing
2019-06-24 09:29:14 +08:00
Peter Cai 00237e26c3
guacamole: rootdir: add dashd daemon 2019-06-22 12:34:36 +08:00
Peter Cai 18086eba66
guacamole: rootdir: mount everything on `boot`
* Magisk may mess these stuff up. Do it on boot because Magisk runs in
`post-fs-data`.
2019-06-22 10:32:24 +08:00
Peter Cai 0b8ef19878
guacamole: rootdir: add back codeaurora snapcam as aux 2019-06-22 10:04:08 +08:00
Peter Cai 268006a6b0
guacamole: audio: fix a2dp source
* The CAF audio policy xml doesn't work properly with AOSP audio. Nuke
it and import aosp one.
* Import BluetoothResCommon overlay hack from violet. Note that we have
to insert this overlay in `on boot` because Magisk works in `on
post-fs-data`. Magisk can mess this up.
2019-06-22 10:01:33 +08:00
Peter Cai fae10aee11
guacamole: camera_motor: switch to proper HAL 2019-06-20 21:55:46 +08:00
Peter Cai 431807bf8c
guacamole: rootdir: allow more camera apps for aux cam 2019-06-20 20:28:00 +08:00
Peter Cai a12ac7946d
guacamole: implement camera motor support
* Support camera motor by using a hook into the camera service
* TODO: Clean this up. Maybe we can use HAL to implement this?
2019-06-20 20:21:53 +08:00
Peter Cai ee6ee60aa8
guacamole: override fstab.qcom from vendor to remove wrappedkey
* OnePlus has `wrappedkey` enabled in their fstab but actually does not
use it at all. To match this, we have to override the fstab by
bind-mounting.
2019-06-20 11:04:39 +08:00
Peter Cai 2f4cb1a416
guacamole: update media_profiles and correct binding 2019-06-20 08:43:33 +08:00
Peter Cai e995d40b75
guacamoleb: init: override vendor media profiles 2019-06-19 07:48:48 +08:00
Peter Cai 7c00a3ac79
guacamoleb: add init script to override audio policy 2019-06-19 07:45:51 +08:00
Peter Cai 755ac8c975
guacamoleb: import stock fstab 2019-06-19 07:40:28 +08:00