Commit Graph

419 Commits

Author SHA1 Message Date
082b8d8fa3 msm8974-common: Update GPS config for S
XTRA_SERVER has been changed to LONGTERM_PSDS_SERVER in framework so we follow suit here.

Change-Id: I0a15782e49b1c530f2f0fd8ff991ebb9e1da1403
2022-08-19 09:30:25 +02:00
48a44601e0 msm8974-common: Kill sysfs_io_sched_tuneable
Change-Id: I49bb16cd8539f80b50974ceb6af9fa6a92e7cbeb
2022-08-18 20:45:25 +02:00
retiredtab-gerrit
b34b271f48 msm8974-common: these 4 display modes all cause crashes and eventually OS restarts over and over
Remove all these display modes are they are not started by OS correctly
and/or cause the OS to crash and reboot.
2022-08-18 11:42:40 +02:00
Janis Danisevskis
83085fd5b3 msm8974-common: update keymaster to 4.1
Remove keymaster 3.0 entries and update to 4.1.
2022-08-18 11:42:31 +02:00
dianlujitao
a15c8e8f7d msm8974-common: Uprev to audio hal 5.0
Audio hal 2.0 was deprecated in Android 12.  Using audio hal 6.0 causes
a bootloop during OS startup so we use 5.0 for now.
2022-08-18 11:42:13 +02:00
Kyle Harrison
efc0985e2a msm8974-common: Use threaded GLES render engine
In Android 12, the default graphics engine is no longer GLES.

For msm8974, the OS crashes if skia is used and never boots.
2022-08-18 11:41:57 +02:00
Kyle Harrison
f1758aed19 msm8974-common: props: Don't write binary XML files
- Android 12 now writes XML files in binary format by default. This can cause incompatibility with TWRP which can hang when attempting to read XML files e.g. /data/system/storage.xml

- This commit sets the persist.sys.binary_xml property to false so that XML files are written in text format.
2022-08-18 11:41:47 +02:00
Kyle Harrison
4e6e487df6 msm8974-common: Enable BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES 2022-08-18 11:41:28 +02:00
Tim Zimmermann
d5e6bcaee5 msm8974-common: switch to new AIDL light HAL
Old hardware.light hidl will cause OS to get stuck at boot animation.
2022-08-18 11:40:53 +02:00
d34582f2b4 msm8974-common: remove duplicate ro.sf.lcd_density in device 2022-05-29 10:27:16 +02:00
83333fa975 msm8974-common: init: Drop no longer necessary libbase include dir
It seems that soong is now solving exported headers for all modules
in shared_libs.

Change-Id: Id9612abe17222226fd8b3009c92f5376543ec261
2022-05-29 10:17:16 +02:00
Nolen Johnson
4f28aad667 msm8974-common: Enable Wi-Fi Display
* AOSP Wi-Fi display is back in lineage-18.1.

Change-Id: I7958fc6869a22d66ad2955f80c4ea1867bdc23fd
2021-12-23 04:41:31 +01:00
Danny Wood
d851283fe6
msm8974-common: libril: initialise RIL_CallForwardInfo to 0 when requesting status
Some devices have extra pointers in this structure that if non-zero
causes libsec-ril.so to segfault

Change-Id: I9fd07a4747ef0fb1388ebbec472f2dda8dea4003
2021-09-10 11:36:15 -06:00
Kevin F. Haggerty
6a2957e85e
msm8974-common: Set bluetooth enable timeout to 12s
Change-Id: I99886621c85c4ee00a3d4a1cff732bcc03e8ac78
2021-04-17 07:19:57 -06:00
Michael Bestas
10eedbc70b msm8974-common: Don't build tinymix
* This tool can be built manually for debugging cases,
  there is no need to ship it in production

Change-Id: I9ab8b076b4bede70c368c198960ceabc68dad65b
2021-04-12 13:41:41 -04:00
Kevin F. Haggerty
dbc57d889c
msm8974-common: Don't let builds complete without vendor tree
* There is zero reason to ever build without blobs. We've even seen
  this situation with official builds from our servers. It's always
  better for a build to fail than it is for it to produce something
  that has no chance at working.

Change-Id: I4968795670c91f691e9ecdc0e4af62e16ba3a93a
2021-04-09 10:20:09 -06:00
Bruno Martins
efb106815f
msm8974-common: Define shipping FCM version in the manifest
Shipping API level less than 26 corresponds to legacy FCM version.

This addresses the following build warning:

   Warning: Shipping FCM Version is inferred from Shipping API level. Declare Shipping FCM Version in device manifest directly.

Change-Id: Ib230c345ff7deb552597824838b8809ceefbbe8a
2021-02-09 07:26:47 -07:00
Kevin F. Haggerty
d267ad8693
Merge branch 'lineage-17.1' of http://www.github.com/LineageOS/android_device_samsung_msm8974-common into lineage-18.1
* 'lineage-17.1' of http://www.github.com/LineageOS/android_device_samsung_msm8974-common:
  msm8974-common: Drop OVERRIDE_RS_DRIVER

Change-Id: Ia98c7e5352e49a86a98937c0e1890f66e74cba22
2021-02-09 07:25:48 -07:00
Kevin F. Haggerty
271ce38322
msm8974-common: Drop OVERRIDE_RS_DRIVER
* So, this one from bullhead can cause everything to get janky AF
  every time RenderScript is actually used, and finding one that
  actually loads (no missing symbols) AND actually works well is,
  well, challenging. The device works fine with the "normal"
  non-adreno driver in AOSP, so let's use that until/unless we find
  an actually working adreno driver.

Change-Id: I4ab19269eb49f5f2aed375d9055d68c1b9835f69
2021-02-08 07:02:49 -07:00
Michael Bestas
345ae3b0f6
msm8974-common: Switch to standalone extract utils
* Align with templates while we are at it

Change-Id: Ife50623a3d1b8733f5cc76995c982d8950d39ad4
2021-02-08 05:47:57 -07:00
Kevin F. Haggerty
3cb55ae129
msm8974-common: sepolicy: Resolve hostapd HAL denials
avc: denied { read } for name="phy80211" dev="sysfs" ino=30200
scontext=u:r:hal_wifi_hostapd_default:s0
tcontext=u:object_r:sysfs_net:s0 tclass=lnk_file permissive=0

avc: denied { open } for name="rfkill" dev="tmpfs" ino=8718
scontext=u:r:hal_wifi_hostapd_default:s0
tcontext=u:object_r:wlan_device:s0 tclass=chr_file permissive=0

Change-Id: Ie196e3fb2c5a9458a73444bb1de13f15a037532d
2021-01-23 13:41:37 -07:00
Kevin F. Haggerty
74b76dfffb
Revert "msm8974-common: overlay: Disable wifi AP MAC randomization"
* Oddly, disabling MAC randomization fully breaks AP, which really
  just points to a platform problem. But it seems that our device
  can actually handle the "randomization", which doesn't actually
  randomize anything (for us). ¯\_(ツ)_/¯

This reverts commit 1e39b786ec.

Change-Id: I8bbcdb968a08f0c700cf436cfdde453b51f96170
2021-01-22 19:27:56 -07:00
Kevin F. Haggerty
1b4cc55e16
Revert "Revert "msm8974-common: Build and enable fastbootd""
This reverts commit fd7fe5dd86.

Change-Id: Ie729c8ecd70fe0a92f54be9f3f20d89de032b861
2021-01-14 06:41:27 -07:00
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