Commit Graph

187 Commits

Author SHA1 Message Date
Jeferson
1dd3dd16d3 msm8953-common: libshims: Adress compiler warnings
Change-Id: Ib6a560c94edd982156fb8b997e7891d4a406a1f4
2021-09-19 16:00:07 -03:00
Prema Chand Alugu
3018438ec7 msm8953-common: libqsap: Include necessary headers explicitly
device/motorola/msm8916-common/libshims/libqsap_shim.c: 57:5: error: implicitly declaring library function 'strlcpy' with type 'unsigned long (char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
    strlcpy(wrq.ifr_name, iface, sizeof(wrq.ifr_name));
    ^
device/motorola/msm8916-common/libshims/libqsap_shim.c: 57:5: note: include the header <string.h> or explicitly provide a declaration for 'strlcpy'
Change-Id: I663edbb2ac09363dcac9dec3acf4289349af46d2
2021-09-19 15:59:55 -03:00
Sonal Singh
d8e72e0b21 msm8953-common: sepolicy: Add sepolicy for battery health
Change-Id: I2092c760a81328ec4c93b4b47520213b65f0fa6e
2021-09-19 15:59:53 -03:00
Rahul Krishna
ad0237e19a msm8953-common: Disable GPU protected composition
Change-Id: I54c40e9ba876c88185afbdbfa586e5f988741657
2021-09-19 15:59:53 -03:00
Ady Abraham
df3b301de5 msm8953-common: Enable GL comp backpressure
Enable backpressure for client composition to avoid jank due to
HWC queue stuffing.

Test: 1. Open Camera
      2. Swipe horizontally to go back to previous app.

Bug: 138083790
Change-Id: I3d26aa470c1660b23bd97133f39858f92638aca8
2021-09-19 15:59:53 -03:00
Jeferson
7dc147b5d3 msm8953-common: Solve some init denials
Change-Id: Id3cb44112e0219dd9d003ab1bf5acbf5762f095c
2021-09-19 15:59:53 -03:00
Chirayu Desai
f78ec94081 msm8953-common: rro_overlays: Move CarrierConfig to RRO
Change-Id: Ia57acd244608848f70fdcc30d5694c919db60671
2021-09-19 15:59:43 -03:00
Timi
c5eea592fa msm8953-common: sepolicy: silence fsck denials
* Don't audit dac_override, dac_read_search denials for fsck

Change-Id: I3883861b2bff61834718239522ec28f09b30e6c5
2021-09-19 15:59:15 -03:00
orgesified
84e29f9c37 msm8953-common: sepolicy: address kernel denial
avc: denied { create } for scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=socket permissive=0

Change-Id: I045d4f0c43814f607747ee938d82d147683fc805
2021-09-19 15:58:57 -03:00
Jeferson
18f0b938bd msm8953-common: Adress fsck_untrusted denials
[244457.303036] type=1400 audit(1624810115.905: 76046): avc: denied {read } for comm="fsck.exfat" uid=0 name="start" dev="sysfs" ino=41979
scontext=u: r:fsck_untrusted:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1 [244457.303320] type=1400 audit(1624810115.908:76047):
avc: denied { open } for comm="fsck.exfat" uid=0 path="/sys/devices/soc/c084000.sdhci/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p1/start" dev="sysfs" ino=41979 scontext=u:r:fsck_untrusted:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[244457.303418] type=1400 audit(1624810115.908: 76048): avc: denied { getattr } for comm="fsck.exfat" uid=0 path="/sys/devices/soc/c084000.sdhci/mmc_host/mmc1/mmc1:59b4/block/mmcblk1/mmcblk1p1/start" dev="sysfs" ino=41979 scontext=u:r:fsck_untrusted:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Change-Id: I73a58794c00693c6a259f631a14638c7b18454d5
2021-09-19 15:58:35 -03:00
jeangraff30
7abe0d3f66 msm8953-common: Use MotoActions from hardware/motorola 2021-09-18 16:40:45 -03:00
jeangraff30
cf311b4e17 msm8953-common: Decommonize keylayout and idc 2021-09-18 16:39:41 -03:00
Jarl-Penguin
3bc4a210df msm8953-common: Drop more QCOM WFD components
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com>
Change-Id: I6b8e4d7743bb9c7130ce8afcdc86426b9bf5c80f
2021-09-12 11:42:23 -03:00
Nolen Johnson
ff4e0f0cb5 Revert "mms8953-common: Disable WiFi display for now"
This reverts commit 8de45fc749273c56bab02dd2f52edd1e936afec4.

Change-Id: Idd39c35bc506a1f3d478885dcac240d65398945a
2021-09-12 11:40:32 -03:00
Marc Bourgoin
cebafd6aed msm8953-common: Drop QCOM WFD
Change-Id: I3dd591444dc54ebe3a32e0385cbfc3db6bfc5e1f
2021-09-12 11:39:12 -03:00
LuK1337
ac23b8983a msm8953-common: Drop TARGET_EXFAT_DRIVER flag
* No longer needed.

Change-Id: Icb0df10fece66ee2ded0fe9c4ae329c50b3d2571
2021-08-22 16:35:42 -04:00
Nolen Johnson
6a71b45eb4 msm8953-common: Kill deprecated TARGET_USES_MKE2FS
* This has been useless since some time in Pie.

Change-Id: Ic02238aa0f1c25cfad20a2b827c3c2fe128f3543
2021-08-22 16:33:59 -04:00
Nolen Johnson
a85669f571 msm8953-common: Kill deprecated/unneeded board flags
* TARGET_DISABLE_WCNSS_CONFIG_COPY - We no longer need this.

Change-Id: I8d140fecdbbaac979bc8398745ffa95b911e4c89
2021-08-22 13:17:01 -04:00
Aayush Gupta
8c1d3f5af3 msm8953-common: Allow thermal-engine r_dir_file perms for sysfs*
[    8.618801] type=1400 audit(69459649.586:21): avc: denied { read } for comm="thermal-engine" name="kgsl" dev="sysfs" ino=29020 scontext=u:r:thermal-engine:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
12-18 04:50:58.101   648   648 I auditd  : type=1400 audit(0.0:32): avc: denied { search } for uid=0 comm="thermal-engine" name="qpnp-vadc-10" dev="sysfs" ino=14445 scontext=u:r:thermal-engine:s0 tcontext=u:object_r:sysfs_vadc_dev:s0 tclass=dir permissive=0

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I09c8dbaf80ecb7a6a511cc83b934dcb3128b0e76
2021-06-20 19:11:01 -03:00
jeangraff30
ea6b45d633 msm8953-common: kang ims apk from river 2021-06-20 19:01:12 -03:00
jeangraff30
9f78431624 msm8953-common: Update blobs to deen_sprout QPKS30.54-22-21 2021-06-20 18:55:03 -03:00
chingtzunglin
31c47c9320 msm8953-common: set selabel for metadata for vold to acess 2021-06-18 18:25:08 -03:00
jeangraff30
a6143c02e7 msm8953-common: Update Graphics blobs from river QPUS30.52-33-11
* Fix several problem with glitch
* continue with deen_sprout SDM color blobs so as not to break night mode
2021-06-06 00:48:45 -03:00
UtsavisGreat
fb4c0fc523 msm8953-common: rootdir: use all cores for camera daemon
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
2021-05-26 12:12:23 -03:00
Jeferson
0af5cf7c3c msm8953-common: Downrev audio to 4.0
* Audio v6 has issues related with setMicrophoneFieldDimension, killing audio input causing
  signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
* Kill soundtrigger while we are it too

Change-Id: Iff802131e67ca6cb507f5a3d3d850ad153288b83
2021-05-16 16:35:10 -03:00
Nolen Johnson
7278919e58 msm8953-common: Append vendor prefix to several properties
* Needed after `LA.UM.9.2.r1-02700-SDMxx0.0` merge.

* Also remove duplicated vendor_fm_prop, as its now in
  qcom/sepolicy.

Change-Id: Iea4145ae677b463f9370843d4db5c16d8862a6fe
2021-05-15 17:11:27 -03:00
Michael Bestas
e9d8ad8894 msm8953-common: sepolicy: Add vendor prefix to qcom_ims_prop
* qcom_ims_prop -> vendor_qcom_ims_prop
* Fixes build after device/qcom/sepolicy-legacy-um update

Change-Id: I8d1b736deaaf54ce012cf3e42a4c927d43326631
2021-05-15 17:11:27 -03:00
Nolen Johnson
d2463902e2 msm8953-common: Fold important parts of late-fs into init.mmi.rc
* I0731bb767ae22863bcb2245eb2f8d5e94d7b3672 dropped `late-fs`
  to prevent bootanimation from starting in charge_only_mode.
  Unfortunately, we missed a few small bits of `late-fs`
  trigger than charge_only_mode depends on. The only remaining
  parts of `late-fs` that have been omitted are "fs tuning" and
  the Pixel optimizations that early start bootanimation.

Change-Id: Iec9146ba7902e78f02361ad3aa53ff76e89feabc
2021-04-06 12:37:25 -03:00
Nolen Johnson
c1b0fbc8b0 msm8953-common: Don't run late-fs on charger
* Pixel boot enhancements start boot animation and
  its dependencies in `late-fs`. Hence our charger mode
  was horridly broken in 11. to mitigate this, just don't
  run `late-fs` on charger - the only net loss is some
  "read optimizations", which are no-ops here as we won't
  be reading/writing anything in charger mode.

Change-Id: I0731bb767ae22863bcb2245eb2f8d5e94d7b3672
2021-04-06 12:37:25 -03:00
Nolen Johnson
f420d8a819 msm8953-common: Set TARGET_LEGACY_HW_DISK_ENCRYPTION
* This is back, again.

Change-Id: I11fc7c2e6ad9cf912fc596a79e6ab13377588109
2021-04-06 12:37:25 -03:00
Jorge Lucas
5352fa3bad Revert "msm8953-common: Drop pixel boot enhancements"
This reverts commit d14e9e83fd.
2021-04-06 12:37:08 -03:00
dianlujitao
1fb63a6bcf msm8953-common: Disable the Significant Motion Detector
Holds an unexpected sensor_SMD wake lock on R from time to time

Change-Id: Ib1eab796c186904db8ae342c9078de7c26cdf1dc
2021-03-15 00:31:51 -03:00
jeangraff30
6167b5e618 msm8953-common: Address laser denials
based https://github.com/LineageOS/android_device_motorola_griffin
2021-03-11 23:48:36 -03:00
Joshua Blanchard
eb816e2712 msm8953-common: Only build 32bit audio stack
Change-Id: I088b21c69b306bf908d54c69c12bfd16ee552a9c
2021-03-10 22:51:12 -03:00
Joshua Blanchard
e94b9e5b3e msm8953-common: sepolicy: Add rules for Moto ADSPD HAL
Change-Id: Ib3760a1dcece4428e5ed8adc9cae1ecc3e0f01b0
2021-03-10 22:47:48 -03:00
jeangraff30
4e18f5a8c6 msm8953-common: Switch to snap camera 2021-03-07 13:37:21 -03:00
Jorge Lucas
31af7ced40 msm8953-common: Fix typo on sanders model 2021-03-06 03:04:32 +00:00
Jorge Lucas
6b56c51280 msm8953-common: Add support for potter
Signed-off-by: Jorge Lucas <jorgelucas@pixelexperience.org>
2021-03-06 03:02:25 +00:00
Brad Ebinger
7a83fee3ea msm8953-common: overlay: Add translatable="false" tags to ims package overlays
Bug: 147569830
Test: atest TeleServiceTests:PhoneGlobalsTest
Change-Id: I57d80bbf17fafdc87ba04c6e7f7ab9573482e395
2021-03-05 15:28:17 +00:00
Han Wang
3c4a11279b Revert "msm8953-common: Force enable mobile network settings v2"
* This prop is not honored anymore on 11.

This reverts commit 9c3436802860786f782335e08dc5ad4c1a009a1d.

Change-Id: I7a10d9918a0218d607d65203e9a38d3e484a618f
2021-03-05 15:28:17 +00:00
Michael Bestas
231c883687 msm8953-common: Disable WiFi display for now
* Don't show the broken setting until we have a working
  QCOM wfd stack

Change-Id: Ie0637914b853609e27e8c5cb5699364b1717f712
2021-03-05 15:28:17 +00:00
jeangraff30
ce44eb9889 msm8953-common: Add perm laser device 2021-03-05 15:28:17 +00:00
LuK1337
e324816129 msm8953-common: Fix host_init_verifier errors
Change-Id: Ieb693814ad69e6864c7baadf6922ab7cbdb6ac4c
2021-03-05 15:28:17 +00:00
dianlujitao
5f052ffa08 msm8953-common: Switch to source built vendor.qti.hardware.perf@2.0.so
For some reason, any prebuilt ones from pre-R ROMs no longer work on R
and cause the following error:
  E ANDR-PERF: Unable to link to gPerfHal death notifications!

What's worse, the minimal CPU frequency of both clusters will be locked
at 1036MHz on msm8953.

Change-Id: I1dc96e4a51c4c81dd847c59a58ec670d89054f64
2021-03-05 15:28:17 +00:00
jeangraff30
591f5d58d9 msm8953-common: address denials 2021-03-05 15:28:17 +00:00
Michael Bestas
85f5c393ae msm8953-common: Switch to standalone extract utils
* Align with templates while we are at it
2021-03-05 15:28:17 +00:00
jeangraff30
dcd3793e03 msm8953-common: Drop liboemcrypto
* Disable L1 temporarily as it is causing a problem in some applications
2021-03-05 15:28:17 +00:00
Quallenauge
f27a110c79 msm8953-common: WifiOverlay: Disable WPA2 -> WPA3 upgrade.
Our device doesn't simply support sae.

Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca
2021-03-05 15:28:17 +00:00
Andrew Hexen
fb1c02ddd3 msm8953-common: rro_overlays: Move to Vendor
* For GSI compatibility.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I21180e80de1109483f8ce0ab67fba021d4a74b08
2021-03-05 15:28:17 +00:00
jeangraff30
2d7510968e msm8953-common: Align overlays with stock 2021-03-05 15:28:17 +00:00