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
Kevin F. Haggerty
9f313b3cee
msm8974-common: sepolicy: Allow system_app to access wificond via IPC
...
avc: denied { call } for comm=4173796E635461736B202334
scontext=u:r:system_app:s0 tcontext=u:r:wificond:s0 tclass=binder
permissive=0
Change-Id: I5fed7bfa2362bce7fa26d22618b2584a145f5385
2020-09-06 04:12:10 -06:00
Kevin F. Haggerty
b17d75621e
msm8974-common: sepolicy: Allow mediaswcodec to use binder IPC
...
Change-Id: I866c7b0843cd0e64f9f0f2e743b571c87281b086
2020-09-06 04:12:10 -06:00
Kevin F. Haggerty
8326e1562c
msm8974-common: sepolicy: Allow system_app to read /proc/pagetypeinfo
...
avc: denied { read } for name="pagetypeinfo" dev="proc" ino=4026543033
scontext=u:r:system_app:s0 tcontext=u:object_r:proc_pagetypeinfo:s0
tclass=file permissive=0
Change-Id: I16465eb9acca9ff64a755d47f86f4ff424ebe4de
2020-09-06 04:12:10 -06:00
Kevin F. Haggerty
5404fa9536
msm8974-common: sepolicy: Quiet system_app attempts to find disallowed services
...
Change-Id: I6a17bef88c3b9fe9f075dc0ef3de5e203f5d9ce3
2020-09-06 04:12:10 -06:00
Kevin F. Haggerty
d6e781307f
msm8974-common: sepolicy: Quiet priv_app opening sysfs_android_usb files
...
* Reading these is disallowed globally, no need to see logspam of
open attempts
Change-Id: I4c0094097d39456c65720cbdfb949d14439ce5f4
2020-09-06 04:12:10 -06:00
Kevin F. Haggerty
3377f79b53
msm8974-common: sepolicy: Allow system_app to access zram sysfs nodes
...
avc: denied { search } for name="zram0" dev="sysfs" ino=20744
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=dir
permissive=0
avc: denied { open } for name="mem_used_total" dev="sysfs" ino=20804
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=file
permissive=0
avc: denied { read } for name="mem_used_total" dev="sysfs" ino=20804
scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs_zram:s0 tclass=file
permissive=0
Change-Id: Ide9b1a9488b26fa69e7a2c8e73a8e657c8b28beb
2020-09-06 04:12:10 -06:00
Kevin F. Haggerty
a586ba7d50
msm8974-common: sepolicy: Quiet vold finding the bootctl hwservice
...
* We don't have this
Change-Id: I879f9b30e94c153dfec30ef369ae0ca31e3ab3d7
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
135f55810f
msm8974-common: sepolicy: Quiet zygote reading cmdline
...
Change-Id: I3fad2a7a3a7e2200453fd40ef325a9f98bce5506
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
39c71a0276
msm8974-common: sepolicy: Allow platform_app to getattr radio_data_file
...
avc: denied { getattr } for path="/data/user_de/0/com.android.phone"
dev="dm-0" ino=1545357 scontext=u:r:platform_app:s0:c512,c768
tcontext=u:object_r:radio_data_file:s0 tclass=dir permissive=0
app=com.android.systemui
Change-Id: I74744dde2a3af01a4f30e0898889cad13f95d563
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
98dd537e3c
msm8974-common: sepolicy: Allow the BT HAL to read /efs
...
avc: denied { search } for name="/" dev="mmcblk0p11" ino=2
scontext=u:r:hal_bluetooth_default:s0 tcontext=u:object_r:efs_file:s0
tclass=dir permissive=0
Change-Id: I1a8abfb3d02c5cb3c63c93ff20a2974ff70ecb87
2020-09-06 04:12:09 -06:00
Arne Coucheron
8462d2ec5b
msm8974-common: sepolicy: Allow ueventd to set sys_nice capability
...
avc: denied { sys_nice } for capability=23 scontext=u:r:ueventd:s0 tcontext=u:r:ueventd:s0 tclass=capability permissive=0
Change-Id: Icfa56283a9b4c67456bd4e714aa3922fece59436
2020-09-06 04:12:09 -06:00
Arne Coucheron
66dcc79709
msm8974-common: sepolicy: Allow gpuservice to read opengles_prop
...
avc: denied { read } for name="u:object_r:opengles_prop:s0" dev="tmpfs" ino=6353 scontext=u:r:gpuservice:s0 tcontext=u:object_r:opengles_prop:s0 tclass=file permissive=0
Change-Id: I455c5d681e301451ad11210e91d0a71b4b80239a
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
065046fd6d
msm8974-common: sepolicy: Allow fsck_untrusted appropriate access to sysfs_dm
...
avc: denied { search } for name="dm-0" dev="sysfs" ino=33209
scontext=u:r:fsck_untrusted:s0 tcontext=u:object_r:sysfs_dm:s0
tclass=dir permissive=0
avc: denied { read } for name="name" dev="sysfs" ino=33374
scontext=u:r:fsck_untrusted:s0 tcontext=u:object_r:sysfs_dm:s0
tclass=file permissive=0
Change-Id: I38d74974d23f94ddac4c45f1d5470288d4ee8a6f
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
7bfaa1d75f
msm8974-common: sepolicy: Allow ioctls necessary for physical sdcard operations
...
* Note: 0x1271 is note defined in system/sepolicy/public/ioctl_defines
avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=19222 ioctlcmd=125e scontext=u:r:vold:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0
avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=20176 ioctlcmd=1271 scontext=u:r:vold:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0
avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=27110 ioctlcmd=125e scontext=u:r:fsck_untrusted:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0
avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=27110 ioctlcmd=1271 scontext=u:r:fsck_untrusted:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0
Change-Id: I7bf2346b9517196160e4dde51baa550fb343bfdf
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
61d3a4eafa
msm8974-common: sepolicy: Allow untrusted fsck to getattr block_device dirs
...
avc: denied { getattr } for path="/dev/block" dev="tmpfs" ino=6914
scontext=u:r:fsck_untrusted:s0 tcontext=u:object_r:block_device:s0
tclass=dir permissive=0
Change-Id: I03c1086a21edba4e193f81b473e6785aac890364
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
631007d58c
msm8974-common: sepolicy: Update for move of init.{qcom,target}.rc to /vendor
...
Change-Id: Ic0042ed52e7aeb3faba856411fd0a1b298446125
2020-09-06 04:12:09 -06:00
Kevin F. Haggerty
d9fdcde7d2
Revert "msm8974-common: Make the external camera provider ignore internal cameras"
...
* Even though camera.device@3.4-external-impl still will look for the
file, this is seemingly no longer required in Q due to changes
elsewhere in the stack.
This reverts commit cf207232cb
.
Change-Id: Ibd19f4d7abeafb7f4d8af1ca6226d6065058538c
2020-09-06 04:12:07 -06:00
Marc Bourgoin
85c6a473c4
msm8974-common: Symlink bootdevice for Lineage Recovery
...
* It is needed by OpenGApps install script.
Change-Id: Idb90a6ecaae541e74a9878c1ca93459cc2fdd949
2020-09-02 04:07:16 -06:00