Commit Graph

54 Commits

Author SHA1 Message Date
LuK1337
0a5161eaee sdm845-common: Drop SSR blobs and set SSR restart_level in init.qcom.rc
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2020-05-10 00:52:48 +02:00
argraur
f0a88a841e sdm845-common: IGnss: update to 2.0
Signed-off-by: argraur <argraur@gmail.com>
Change-Id: I91f04e346f23ead5f1e10a3945b14654a8fad9e1
2020-02-02 10:09:14 +00:00
Bruno Martins
37022184cf sdm845-common: Drop no longer needed compat rootfs folders
Change-Id: Ie5ce442be5166a94bc969e5c145927b1283e47ee
2020-02-02 10:09:14 +00:00
Bruno Martins
17726ddac6 sdm845-common: power: Scan input devices for eligible DT2W node
It is no longer a surprise for anyone to see Xiaomi shipping the same
device with different displays and different displays usually mean
different touchscreen drivers.

The current double tap handling in the power HAL only takes into
account one specific node, meant to be set in the device tree.
However, if the touchscreen was registered as a different input device
it would cause the feature to be broken. Address the issue by iterating
through the input devices in order to find one supported touchscreen
input to be used.

Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I2f7fb4a8b0c9cd1a16d6c2b93602d285a191f170
2020-02-01 11:37:23 +01:00
Bruno Martins
9c0038d846 sdm845-common: sepolicy: Remove broken rule
Type vendor_camera_prop is no longer defined.

Change-Id: Idc554ae9f4476d820f21b35826b7e36af9b80b11
2020-01-23 22:05:04 +00:00
Bruno Martins
bfeffb6e96 sdm845-common: sepolicy: Label white led sysfs node
Change-Id: I7c51c5d20daa04252e7e0a41bbe698d6081064b3
2019-09-30 17:14:03 +01:00
LuK1337
44e26839b9 sdm845-common: sepolicy: Label ~ legacy ~ neural networks 1.1 HAL
Change-Id: Ib1e95f214310177d089fd41a926c6405a094b6ea
2019-09-30 10:09:41 +02:00
Bruno Martins
0dc7e72545 sdm845-common: Move offline charging daemon to new path and update label
The charger daemon has been moved to /system/bin, so mimic that change
but keep using the nice deamon. Also the service label got changed to charger
and daemon is now labeled as charger_exec, therefore update it accordingly.

Change-Id: I93a88aef41f52837fd0be691e414a5319b689208
2019-09-28 19:25:22 +01:00
Bruno Martins
c7216cdc6f sdm845-common: sepolicy: Label files under extra root folders
These labels are no longer being set in QC sepolicy.

Change-Id: I56c73bdf3125f9b2f73294665626cc9bd7408759
2019-09-21 00:30:11 +02:00
1nfrag
7a4b89b64f sdm845-common: Switch to OSS display HAL
This allows to get rid of Xiaomi's display feature HAL

Change-Id: I3801a603e08547a919e2e7cd90edabfb116dfac8
2019-09-11 13:04:56 +02:00
Bruno Martins
c3b269d55b sdm845-common: sepolicy: Drop init rules for bind mounting
* No longer necessary as the charger service now points
   directly to the daemon.

Change-Id: I9567579239c042b6361cbf83896467af261f1ef6
2019-08-06 17:21:48 +01:00
dianlujitao
10c28ab1ed sdm845-common: sepolicy: Get Alipay fingerprint going
Change-Id: I58a64a1d4b551f24cfb5e589dacb56d72247db84
2019-08-02 15:05:10 +02:00
Ananth Raghavan Subramanian
ac82ace2a3 sdm845-common: power: Introducing PowerHAL binderized service
Moving from the default implementation to a binderized service with no
wrapping.
Now using 1.2 implementation of the IPower interface.

Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
2019-08-02 00:15:04 +02:00
Bruno Martins
86caa0c12a sdm845-common: Bring up initial vendor sepolicy rules
Change-Id: Iaf298cb02696dbe8d83b9040011bd93889cf18ad
2019-08-01 00:28:53 +01:00
Bruno Martins
438104a656 sdm845-common: Switch to vendor variants of the custom HALs
Change-Id: I599ef8b3d143641821b6e42ec41050aedd3f2b37
2019-08-01 00:28:53 +01:00
Bruno Martins
4b586cca2b sdm845-common: Inherit from QC sepolicy and adapt to it
Change-Id: I619038d1a1f5a2b58baf4019372ec4164cca2137
2019-07-30 17:41:49 +01:00
Bruno Martins
5547e73001 sdm845-common: Get rid of prebuilt vendor images' specific hacks
Change-Id: I52cde54e8d38f847f903004ea8d61437bf5efa0a
2019-07-30 17:41:49 +01:00
Bruno Martins
a15bb44fd9 sdm845-common: sepolicy: Fix typo in pocketmode_app rules
Change-Id: I3806e0381eab678ac14f8869819e938b62cbe59d
2019-07-06 15:40:30 +01:00
LuK1337
eb33fe1abe sdm845-common: sepolicy: Transition pocketmode app to its own domain
Change-Id: Id87176c2430e49851a6c65ab3490ad59ea1764a2
2019-07-04 12:17:05 +01:00
Bruno Martins
57e1d4ef12 sdm845-common: Add PocketMode app
* Based off android_device_xiaomi_msm8996-common

Change-Id: I48302769d6f1fcc5244614f672e562e0fb913d98
2019-03-25 21:54:29 +00:00
Luca Stefani
0c11507a79 sdm845-common: sepolicy: Address all neverallows
Change-Id: I7320018af86e0fe689aa94a1dc4f174bc814a2cd
2019-02-10 13:36:18 +00:00
TheScarastic
86c208962d sdm845-common: Disable diag services in a better way
Instead of bind mounting /dev/null over the vendor binaries,
force the services to be stopped right whenever those are running.
This also reverts commit 1501593 and workarounds the neverallows,
because system init can't bind mount vendor exec files.

Change-Id: Ia5e723b837e547b9e2cebe47accdaa2356e1d694
2019-02-10 13:25:02 +00:00
Bruno Martins
edc5c7c71b sdm845-common: Replace SunlightEnhancement class with LiveDisplay HAL
* Manifest entries must now be set per device.

Change-Id: I17b0215ad78d86989c146291552c5e6e7b6a689d
2019-02-07 10:03:17 +01:00
Bruno Martins
439a75cfd4 sdm845-common: Satisfy LiveDisplay with neverallows addressed
* On TREBLE devices, most coredomains should not access vendor_files.
   For this reason, vendor.display.color@1.0.so must be present in /system
   so that libsdm-disp-apis.so can dlopen it.

Change-Id: I850b123ea23dd3e7cc74ee9708e781748561df06
2019-02-04 22:43:58 +00:00
Joey
fc0d900644 sdm845-common: Build Trust HAL (system variant)
Change-Id: I2a426b2c2dda70f41e3c3ea6f85905b0daf65f0d
Signed-off-by: Joey <joey@lineageos.org>
2019-02-04 20:50:33 +01:00
Bruno Martins
83fbc69376 sdm845-common: Migrate to livedisplay 2.0
Change-Id: I513c284c534ce3abc27bf374513280171454f4d1
2019-02-04 19:38:18 +00:00
Bruno Martins
7131c7c8bd sdm845-common: sepolicy: Adapt for global LiveDisplay HAL rules
Change-Id: Ia2f70d3f73d96d70f1b4ea6f31f0e8572ddc1957
2019-02-01 19:57:58 +00:00
Giuseppe Barillari
ad8dd84182 sdm845-common: sepolicy: Move hal_power_default back to hal_power
Change-Id: Ibf1e11111466377ecd6090c2956d638f9500bfc3
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
2019-01-31 21:28:18 +01:00
TheScarastic
cdd2d459d5 sdm845-common: Switch to more generic dt2w node
Change-Id: I08c874f3ca50fad1db820ddd85ef0f5d7ccf0ed2
2019-01-31 00:38:14 +01:00
dianlujitao
d7af84b53b sdm845-common: sepolicy: Label vendor.camera.aux.packageblacklist
Change-Id: I07b82e0ba4a8e16faf67c64e0ffe73a690b38064
2019-01-21 19:49:16 +00:00
dianlujitao
ed8e3f6165 sdm845-common: sepolicy: Allow system_server to read vendor camera props
Change-Id: I43a2404d9399a931b03e1d2c8589d0d4adb10fc3
2019-01-19 00:37:40 +00:00
Bruno Martins
38c5e76daf sdm845-common: sepolicy: Label special rootfs files
* This is needed for system-as-root enabled builds to complete.

Change-Id: I50dcc45b3c3b8c8fa673de794e6a64582fcd9dd2
2019-01-13 14:40:43 +01:00
Bruno Martins
a0d7bcb47f sdm845-common: Add support for high brightness mode (HBM)
Change-Id: I2b66142a024390a8992e6b940a7c06092e45aad3
2019-01-12 01:47:36 +01:00
Bruno Martins
7c437713b5 sdm845-common: Build system variant of LiveDisplay HAL
Change-Id: I2d9056950338eafb06e857c4028d2c4d31cb6d77
2019-01-02 11:11:37 +00:00
Bruno Martins
6739b74e8d sdm845-common: sepolicy: Grant NFC HAL access over NFA storage path
Change-Id: I800ce71324e7ad00ebf4386663cc825b2a39975b
2018-12-29 16:54:16 +00:00
Bruno Martins
f85f6102bb sdm845-common: sepolicy: Stop fingerprint HALs logging denial spam
* The fingerprint HALs try to create a log file under /sdcard.
   It's useless, so silent it.

Change-Id: I4749589127e606213a50123346a883d81472ea69
2018-12-29 13:30:04 +00:00
Luca Stefani
6c35f3ce28 sdm845-common: Build only 64bit power hal
Change-Id: I3dd347b6fa66bbb82224adf9081d1512920263da
2018-12-23 14:16:31 +00:00
Bruno Martins
d5c3181329 sdm845-common: Switch qcacld-3.0 to built-in
This partially reverts commit 9f26a0e25d.

Change-Id: I1ed157847e5526c525f78156d1aa0768f0f8841f
2018-12-14 19:12:55 +00:00
TheScarastic
5c7cd35ae9 sdm845-common: sepolicy: Remove boot breaking rules
* Now defined in the latest builds, remove duplicate property contexts
   in order to allow devices to boot.

This reverts commit 683242f174.

Change-Id: I76d7381721abf28c283acc1b54f17f586fa908b0
2018-10-31 21:44:13 +01:00
TheScarastic
15015937bc sdm845-common: Disable diag services
These services are pretty useless for production builds. Moreover,
cnss_diag was running in the background and continuously writing logs
to sdcard/wlan_logs, so disable them.

Change-Id: I4a9dea38179f39ca939174b60a132f1cbbc1fa44
2018-10-30 17:14:57 +01:00
Bruno Martins
683242f174 sdm845-common: sepolicy: Add property context for panel related props
Change-Id: I61c1c944104f02c58ba2141e56facdbe7a547ab5
2018-10-30 15:59:29 +01:00
LuK1337
9c529e3442 sdm845-common: Allow appdomain to get vendor_camera_prop
* Some apps rely on this and won't work properly if they
  can't read this property. See ~ Snapchat.

Change-Id: I737e28f038941e6d18b96ff512f29dbe0ad7b7e4
2018-10-23 23:13:48 +02:00
Bruno Martins
c96e6315e6 sdm845-common: Update fstab to reflect P changes
* Several mount points got updated for treble compliance,
   so keep fstab up-to-date and also remove contexts accordingly.

Change-Id: I3dc7e08e9b64b759b03f1a93c85f161a5c1a554f
2018-10-06 10:26:56 +08:00
LuK1337
48eb9245a9 sdm845-common: sepolicy: Allow init to chown/chmod on pseudo files in /sys
Change-Id: Idf9cca465b9db3cfc9714ce170c5bf965968f79d
2018-10-03 10:31:51 +02:00
Bruno Martins
e218c4568c sdm845-common: Ship proper postprocessing soundfx libs
* The lib responsible for audio postprocessing (libvolumelistener)
   from Xiaomi causes stuttering distorted audio. Replace with a working
   copy from enchilada.

Change-Id: I27d631e5fea0dbd338c18a529b26d1ef700affd7
2018-10-03 00:15:03 +02:00
Bruno Martins
622aea6627 sdm845-common: Import and bind mount stock custom audio policy config
* The purpose is to apply the same BT A2DP fix that used to be
   applied in the individual device trees.

Change-Id: I500948b5e1e11ee11097ee2e115b0c23dd808a12
2018-10-02 12:48:07 +02:00
TheScarastic
3a543a414a sdm845-common: Adjust wake_gesture node regex to support all devices
Change-Id: Ic983a1a07c8c2c30ef4b59659b61b62d57e40880
2018-09-29 01:05:45 +01:00
Bruno Martins
646da87ff2 sdm845-common: sepolicy: Fix lights HAL denials
Change-Id: I190f1e311d20978fa70804c595bfb6d35a370bc6
2018-09-25 23:45:23 +01:00
Bruno Martins
ea5882dda2 sdm845-common: Use MIUI poweroff charging animation
* It's cool, and more importantly... it actually works!
   Oh look, it even displays battery level. Wow. :-P

Change-Id: I6351e2eac6df89aa1b6b98e4e6b2815fa5c37794
2018-09-24 11:06:20 +02:00
Bruno Martins
c434f510a4 sdm845-common: Enable double tap to wake support
Change-Id: I5e2eca2b2bfb843c2c6601bea53b141d3519e402
2018-09-09 01:01:01 +01:00