Commit Graph

446 Commits

Author SHA1 Message Date
Kevin F. Haggerty
c38873580e
msm8974-common: Update default behavior of property_override()
* Prior to R, we used property_set() to add properties. In the R update
  we migrated this to using property_override(), which has the ability
  to add a property, but we didn't set the parameter of the method. We
  could go and do that for all of those instances of use, but there
  it's really any time where we *don't* want to add these properties
  in our libinit extension.

Change-Id: Iabf66d5bbaf13b2124b0062bb0a184d99bb59462
2021-01-08 21:19:02 -07:00
Michael Bestas
a9b58549c3 msm8974-common: manifest: Remove Trust interface entry
This has been turned into a VINTF fragment.

Change-Id: Iaf53a2e1fbac75d53ec11d4c56c51230f4758daf
2021-01-05 14:49:10 -05:00
Alessandro Astone
294fb86925
msm8974-common: Disable SF backpressure
Change-Id: I4d5e9ec52901a8b7da9c0c439417a4ac90c512b3
2020-12-30 12:55:16 -07:00
Nolen Johnson
87e7dd6201
msm8974-common: Cleanup dead targets
Offending entries:
audio_policy.msm8974
build/make/core/main.mk:1136: error: Build failed.

Change-Id: I0e4d93f4c3be077d49befa1f547d11d623ca74d5
2020-12-30 12:55:16 -07:00
Kevin F. Haggerty
da1a45b7c4
msm8974-common: Move display props to msm8974-common
Change-Id: Ie27ebfaa34a613351f636bf3045b105c2aff3bbd
2020-12-30 09:53:02 -07:00
Kyle Harrison
94878fa0bb
msm8974-common: sepolicy: Fix exported_camera_prop denials
Change-Id: Ib3abf88a4c71fcd1510a9b1a3cd496b85379c8b2
2020-12-30 09:19:05 -07:00
Kevin F. Haggerty
cb714bb23b
msm8974-common: sepolicy: Really quiet zygote reading cmdline
Change-Id: I180f434225a966a25cf4f9577e81588c7b2df9d9
2020-12-30 09:19:05 -07:00
Vladimir Oltean
1a7d87aba7
msm8974-common: sepolicy: allow uevent to control sysfs_mmc_host via vold
Change-Id: Iafea09efae38fb82f4019c6d3b3b4bb756cdca0b
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2020-12-30 09:19:01 -07:00
Arne Coucheron
07931872be
msm8974-common: sepolicy: Resolve last_kmsg denials
Change-Id: Ib6a00d0c14eb03f1e16b24471736a0b84371152c
2020-12-30 07:58:37 -07:00
Kyle Harrison
ec4379ecd8
msm8974-common: sepolicy: Fix userspace_reboot prop denials
- userspace_reboot_exported_prop
- userspace_reboot_config_prop

Change-Id: Ibec834df41345d1268b1eea4ae88b2fd5d37dd55
2020-12-30 07:58:37 -07:00
Francescodario Cuzzocrea
fec1e0d49c
msm8974-common: sepolicy: allow rild read perms on proc_qtaguid_stat
Change-Id: I7f7c872603d162849a4c1b07ec6b04a35f15ddcc
2020-12-30 07:58:37 -07:00
Kevin F. Haggerty
393fdef68c
msm8974-common: sepolicy: Allow rild to set various radio props
* avc: denied { set } for property=persist.ril.radiocapa.tdscdma pid=532
  uid=1001 gid=1001 scontext=u:r:rild:s0
  tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1
* avc: denied { set } for property=persist.ril.modem.board pid=572
  uid=1001 gid=1001 scontext=u:r:rild:s0
  tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1
* avc: denied { set } for property=persist.ril.ims.eutranParam pid=2745
  uid=1001 gid=1001 scontext=u:r:rild:s0
  tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1

Change-Id: Ib64be5c213456f80f403c645655fbc502a50832d
2020-12-30 07:58:17 -07:00
Paul Crowley
bd627e8b90
msm8974-common: sepolicy: allow tee system_data_root_file:dir r_dir_perms;
aosp/1106014 introduces a new class system_data_root_file and
tee needs access to that as well as system_data_file.

09-09 20:26:53.639   645   645 I auditd  : type=1400 audit(0.0:9): avc: denied { read } for comm="qseecomd" name="/" dev="dm-2" ino=2 scontext=u:r:tee:s0 tcontext=u:object_r:system_data_root_file:s0 tclass=dir permissive=1
09-09 20:26:53.639   645   645 I qseecomd: type=1400 audit(0.0:9): avc: denied { read } for name="/" dev="dm-2" ino=2 scontext=u:r:tee:s0 tcontext=u:object_r:system_data_root_file:s0 tclass=dir permissive=1
09-09 20:26:53.639   645   645 I auditd  : type=1400 audit(0.0:10): avc: denied { open } for comm="qseecomd" path="/data" dev="dm-2" ino=2 scontext=u:r:tee:s0 tcontext=u:object_r:system_data_root_file:s0 tclass=dir permissive=1
09-09 20:26:53.639   645   645 I qseecomd: type=1400 audit(0.0:10): avc: denied { open } for path="/data" dev="dm-2" ino=2 scontext=u:r:tee:s0 tcontext=u:object_r:system_data_root_file:s0 tclass=dir permissive=1

Bug: 140402208
Test: Flash Taimen device, enroll fingerprint, check log for denials
Change-Id: Ie976d7bbe4aeba875b96b6b82a94734b71ba1cb9
2020-12-30 07:52:16 -07:00
Kevin F. Haggerty
e28494bb9f
msm8974-common: sepolicy: macloader updates for new root label
Change-Id: I3526593a73b80c1ec1203734289cb5a2c8faad89
2020-12-30 07:52:16 -07:00
Bruno Martins
2bea09d812
msm8974-common: sepolicy: Deduplicate camera rule
No longer needed to keep it locally, since it has been recently
added globally.

Change-Id: Ia41e85d74da0937fddb4fe34d5b0bf15555d0ea1
2020-12-30 07:49:18 -07:00
Alessandro Astone
269d4721aa
msm8974-common: sepolicy: Camera rules for new root label
Change-Id: Iae2171eaf2acb77acabba626b7bcf017725ab81a
2020-12-30 07:48:16 -07:00
Kevin F. Haggerty
450f437728
Revert "msm8974-common: sepolicy: Allow mediaswcodec to use binder IPC"
* This is not needed with appropriate binder updates

This reverts commit b17d75621e.

Change-Id: Ic5cabb16313e68b7a1cefa6e23fc9a9d43dc6c31
2020-12-30 07:47:37 -07:00
Kevin F. Haggerty
fd7fe5dd86
Revert "msm8974-common: Build and enable fastbootd"
* This seems to be wholly dead for legacy functionfs. Pour one out,
  she led a great, yet short-lived, life.

This reverts commit 53fd5b0828.
This reverts commit 8b07abf736.

Change-Id: I494769c2106638d8e442f43dfedf399e7f90aa9e
2020-12-30 07:42:55 -07:00
Arne Coucheron
c875ae7821
msm8974-common: init: Override system_ext props too
Change-Id: I4114ab9547dbfea4ba2d043a6be55a9694ce9de3
2020-12-23 11:50:09 -07:00
Quallenauge
5303899859 msm8974-common: wifi: Disable WPA2 -> WPA3 upgrade.
Our device doesn't simply support sae.

Change-Id: Ibf8b9e363b4677cf2ab9590cc2ea1ba2341e29ca
2020-12-15 11:38:30 -05:00
Jan Altensen
bfa92dc8b5
msm8974-common: enable TARGET_HAS_MEMFD_BACKPORT
Change-Id: I3f729908f822567ff874cf909341c319e2955470
2020-12-14 13:43:45 -07:00
Bruno Martins
30833334a5
msm8974-common: Move graphics composer to hwbinder
The passthrough impl is dead as of Android 11 QPR1.

Change-Id: Ic10e93398363f03551afe39715cb664bbbce1683
2020-12-14 13:43:45 -07:00
Jimmy Chen
9a1845c121
msm8974-common: overlay: p2p: add p2p regex for tethering modes
Bug: 137602441
Test: CtsVerifier - Wi-Fi Direct
Change-Id: I215da71e96348b6bba19d4a3c6fd8c8048ff46d6
2020-12-14 09:35:24 -07:00
LuK1337
543134df98
msm8974-common: overlay: Disable BPF offload for tethering
* Such is life with 3.4 kernels.

Change-Id: I1c5e3fab63271b1e3fe6c814d96edbde782f27e8
2020-12-14 09:35:24 -07:00
Kyle Harrison
33c09e88ea
msm8974-common: overlay: Move tethering overlays
Config overlay values moved from frameworks_base core to
frameworks_base packages/Tethering

https://github.com/LineageOS/android_frameworks_base/blob/lineage-18.0/packages/Tethering/res/values/config.xml

[haggertk: As part of this move, I'm consolidating these from
 {h,k}lte-common to msm8974-common. These held common values between
 the two device families.]

Original-Change-Id: Ia5a8056d6334cd78e79853c0ada4e8873a9669e0
Change-Id: I54e93e80595c243719894aa1b9ff0c5abf85d843
2020-12-12 10:00:39 -07:00
Arian
684a57b5dc
msm8974-common: Build new aidl qti power HAL
Change-Id: I4bdea354e54d34d0dfe9b811e228fc6f8762d2ed
2020-12-12 10:00:39 -07:00
Amit Pundir
85a6137a28
msm8974-common: Add gatekeeper software HIDL service.
Use the default software implementation of gatekeeper.

Change-Id: Id696752ad78047155cad6a5dafe7ca1b4fe86345
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-12-12 10:00:39 -07:00
Bruno Martins
d2f16822ec
msm8974-common: overlay: Adapt to new button brightness configs
Change-Id: I564106fd2d6eead070e59d32a2a357990fddaaf1
2020-12-12 10:00:39 -07:00
Han Wang
18542ee37f
msm8974-common: Update loader config for media swcodec to 11
* Head at bb8f985d773f63f9e943103cb1faae5bfba8e1e1.

Change-Id: I4fb2bc8e40406b2fd8d6d002330f666b7fe5823e
2020-12-12 09:19:36 -07:00
LuK1337
3d0c4cb996
msm8974-common: Remove vintf entries that are now fragments
Change-Id: I22b105b1340dff648bc5011b80f735b33d5fe370
2020-12-12 09:19:11 -07:00
Roshan Pius
9c68181e98
msm8974-common: wifi: Move wifi related overlays to new location
[haggertk: As part of this move, I'm consolidating common values from
 {h,k}lte-common to msm8974-common.]

Original-Change-Id: I747d0242422b753f4e3007ce6c4bf7f124c52c5e
Change-Id: I516b5a3b34747bd7a9efb93eacb8b597da513d54
2020-12-12 09:19:11 -07:00
Alessandro Astone
1e39b786ec
msm8974-common: overlay: Disable wifi AP MAC randomization
This is now done in framework

Change-Id: I6e8e7557ed56c5183738a1059dff8c97e91bc2b3
2020-12-12 09:19:11 -07:00
Kevin F. Haggerty
3111569cd9
msm8974-common: Ship libcutils-v29.so for use by libsec-ril*.so
* libsec-ril*.so files need strdup8to16, which is is dropped in the API
  30 library, but can be found in the API 29 prebuilt.

Change-Id: Iaa54b061048a00f832d18396a82212905af0fd7e
2020-12-12 09:06:36 -07:00
Kevin F. Haggerty
b59ddb8101
msm8974-common: Use libprotobuf-cpp-lite-v29.so for libwvdrmengine.so
* libwvdrmengine.so needs _ZN6google8protobuf8internal13empty_string_E
  which is dropped in the API 30 library, but can be found in the
  API 29 prebuilt

Change-Id: I39e3251d53b14f3325282b12e6a6bf741ebcf63a
2020-12-12 09:06:36 -07:00
Arne Coucheron
8a56039c7d
msm8974-common: Set TARGET_DISABLE_POSTRENDER_CLEANUP := true
To fix the bad UI lag we are experiencing.

Change-Id: I3edb25f93c58b87431a1802726f31123200f75d3
2020-12-04 08:42:40 -07:00
Quallenauge
81028f988c
msm8974-common: Force build scudo free 32 bit variant of libc.
We have issues with camera blobs which doesn't play
well with scudo allocation/deallocation tracking.
Scudo reports corrupted header when stopping a
video recording.
Because we aren't alone with this (also upstream seems
to have trouble with camera modules) use the 32 libc
which is used only by a few components, like camera
and audio.

Because docs states, that libc with the svelte take less RSS,
but is a little bit slower.
https://android.googlesource.com/platform/bionic/+/master/docs/native_allocator.md
This is the reason to not enable this target wide.

Change-Id: Ic0d950817238a227218f59b95e5fd2ffd66e786a
2020-12-04 08:42:39 -07:00
LuK1337
77c7d91b39
msm8974-common: Enforce vintf manifest override
* Apparently this is now required on all non full treble devices since
  google added a sleep(1) in libhidl...

Change-Id: I6d8492dd7c56bfdb2ca00f3477634a46fa55b1c0
2020-11-30 22:21:22 -07:00
Bruno Martins
ae581bc02d
msm8974-common: Build 2.1 health HAL
The devices fail to boot otherwise.

Change-Id: I5bc6ae361a5319224b87ef6a4d7127b6b5bc9a97
2020-11-30 22:21:22 -07:00
Ahmed ElArabawy
ba9f5728e6
msm8974-common: Wifi: Remove hostapd hidl entry from manifest.xml
This CL removes the definition for the hostapd hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 145780363
Test: builds and wifi softap works
Change-Id: I2a9cb25209efc94f6306f38d89cb5e1ff6f72bed
2020-11-27 17:14:35 -07:00
Jimmy Chen
bd39672919
msm8974-common: wifi: move wpa_supplicant VINTF definition to wpa_supplicant module
Bug: 36505680
Test: atest FrameworksNetTests
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Test: connect EAP access point and verify PMK cache works correctly.
Change-Id: I2c382765b8e84951fc17bb9f1c3785dcd66e7b51
2020-11-27 17:14:35 -07:00
Ahmed ElArabawy
5b1348d5e2
msm8974-common: Wifi: Remove IWifi hidl entry from manifest.xml
This CL removes the definition for the IWifi hidl interface from
manifest.xml and rely on vint-fragements entry.
This is to avoid the need to modify the revision in future

Bug: 138243400
Test: builds and wifi works
Change-Id: Icaff93193e10d4953d9947d2739b05959ece79f1
2020-11-27 17:14:35 -07:00
Sarah Chin
bb7c1788d1
msm8974-common: libril: Fix OOB vulnerability in setGsm/CdmaSmsBroadcastConfigInfo
Error if length > 25

Test: lunch cf_x86_phone-userdebug && mm
Bug: 144046782
Change-Id: I18f9745174762a52fc20bfc7273c6b3fd2118da5
2020-11-27 17:14:35 -07:00
terrycrhuang
725f9e8f33
msm8974-common: libril: Encode MCC with 3 digit in CellIdentity
Bug: 145809537
Test: ril::util::mcc::test

Change-Id: Ie0b9d0a56530cc7a2146e9955d392867634d2b8b
2020-11-27 17:14:35 -07:00
Taesu Lee
4f09b93962
msm8974-common: libril: Fix typo
Test: build

Change-Id: I729888834881386d52f072e0444d50b480f85928
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-11-27 17:14:35 -07:00
Elliott Hughes
8a32750c24
msm8974-common: libril: Remove unused includes.
Test: treehugger
Change-Id: Id6ee53aa0e2a83ef40ce9219092f8a0f519b3471
2020-11-27 17:14:34 -07:00
Lucchetto
a968e9600c
msm8974-common: Adapt libinit to Android 11
Change-Id: Ia6b6f753891b639dad4e380bdba6b594faf2a550
2020-11-27 17:14:34 -07:00
Steven Moreland
72fb75e332
msm8974-common: Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
2020-10-29 15:43:06 -06:00
Wang Han
b9a1d97191
msm8974-common: Switch to TimeKeep
* SE policies are imported and modified from
   https://github.com/sonyxperiadev/device-sony-sepolicy.
   Modifications are needed because qcom legacy policy
   contains conflicting labels and rules.

Change-Id: Id04a824dea69976f6fc9d48bef77859cc82971ed
2020-09-07 05:28:51 -06:00
Kevin F. Haggerty
5e12cb3926
msm8974-common: Commonize libtime_genoff.so
Change-Id: Ie63e6864de5ae66e7058f140170f6081317690a7
2020-09-07 04:14:32 -06:00
Kevin F. Haggerty
16a190dd28
msm8974-common: sepolicy: Allow system_app to access storaged via IPC
avc: denied { call } for comm=4173796E635461736B202333
scontext=u:r:system_app:s0 tcontext=u:r:storaged:s0 tclass=binder
permissive=t0

Change-Id: I933dcebf2f5960d639ce47be379f62636e4ddd69
2020-09-06 04:12:10 -06:00