Commit Graph

449 Commits

Author SHA1 Message Date
Madhanraj Chelladurai
9886edc317
msm8974-common: gps: Consider nsec while ranking the timer objects
We need to consider nsec as well while ranking timer objects

Change-Id: Ieaad5dfa80b26b90e998618b3cbe1e590fc00839
CRs-Fixed: 991345
2020-06-26 09:50:02 -06:00
Saurabh Srivastava
ee76952f5e
msm8974-common: gps: Adding a new NMEA sentence : $GNGSA.
Currently only $GPGSA was being generated for GPS satellites.
This change adds $GNGSA for GLONASS satellites as well.

Change-Id: I7ab0e92c7ed4ce73be11909eefe0d570a1a0fc1e
CRs-Fixed: 978745
2020-06-26 09:50:02 -06:00
Arne Coucheron
62261a55b5
msm8974-common: gps: Set correct target for msm baseband
Change-Id: Ie52feed022db511abb6813f20418d23c0f5b3ba9
2020-06-26 09:50:02 -06:00
Arne Coucheron
8441090408
msm8974-common: gps: Add Cleanstep.mk
Change-Id: I1af155718ae4f48c15317b0d05303d22ec458084
2020-06-26 09:50:02 -06:00
Akash Mondal
630d6b5ca4
msm8974-common: add libashmemd_client to platform shared libraries.
E : ashmem  : Failed to dlopen() libashmemd_client.so: dlopen failed:
library "libashmemd_client.so" not found.

Change-Id: I5ea7f1686d4ad5b67ec5e37b91742f907d71075e
2020-05-29 12:14:16 -06:00
Bruno Martins
eac9496d05
msm8974-common: Binderize them all
* Switch to binderized HAL services as possible and update
   HIDL manifest accordingly.

Change-Id: Id50291488d655187aa013c51bdd6890dca010564
2020-05-29 12:14:16 -06:00
Elektroschmock
e9a18e2d9e
msm8974-common: sepolicy: label /dev/stune(/.*) as cgroup
* avc: denied { write } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:adbroot:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { open } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:adbroot:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { write } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:installd:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { open } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:installd:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { write } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { open } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:netd:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { write } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:storaged:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { open } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:storaged:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1
* avc: denied { write } for name="tasks" dev="tmpfs" ino=7795
  scontext=u:r:gsid:s0 tcontext=u:object_r:device:s0 tclass=file
  permissive=1

Change-Id: Idc69978328640ff40ad5efe2f0abd79304e75893
2020-05-29 12:14:16 -06:00
Kevin F. Haggerty
f3cd79f3ae
msm8974-common: sepolicy: Resurrect alarm_device
* Both our ril_daemon, via libsec-ril*.so, and our time_daemon
  need access to this device node

Change-Id: Ib787f45596bb6aa606bab102a5bd1cb93eb645a4
2020-05-26 15:09:19 -06:00
Kevin F. Haggerty
d6b1712058
Revert "msm8974-common: libshims: Import libshim_cutils_atomic"
* This served a purpose for a period of time, but we decided to embed
  the relevant symbols directly into libril.so with 8f6082f

This reverts commit 61a18ade33.

Change-Id: Ifb92a32be007fd0f842af38cf652edffde0604e5
2020-05-26 15:09:19 -06:00
Alessandro Astone
6d7945ef44
msm8974-common: libshims: Import libshim_binder
* LineageOS/android_frameworks_native@f1cf11f1a finally removed
  these binder calls, marked as deprecated in 2014

Change-Id: I489c0ce5d324f1a3c911fe60e6217f1e8405f23f
2020-05-26 15:09:19 -06:00
Sean Callanan
05bc27344c
msm8974-common: Switch to IMapper 2.1
Test: display CTS
Bug: 62535446
Change-Id: I2d6d0d118014eb2b99a6832b4c900ae21c062517
2020-05-15 10:43:56 -06:00
Roshan Pius
8e08805f3d
msm8974-common: hostapd(hidl): Uprev to 1.1
Bug: 112705137
Test: Compiles
Change-Id: I8111523b013cf36570d9e1e26f11838e79ec8901
2020-05-15 10:43:56 -06:00
Arne Coucheron
86804b4771
msm8974-common: Remove config_disable_TelephonyManager_network_scan
Not needed in Q, as scanning works without it, and the feature
hasn't been forward ported.

This reverts commit 881a6b9fff.

Change-Id: Ida4d2ef429cef47178c9858082dbaae8c1207716
2020-05-15 10:43:56 -06:00
Kevin F. Haggerty
8b07abf736
msm8974-common: sepolicy: Put fastbootd.te in correct place
Change-Id: I7e65f7835e1ee37aee90aa84dfc431fc0d434231
2020-05-15 10:43:56 -06:00
Alessandro Astone
53fd5b0828 msm8974-common: Build and enable fastbootd
Change-Id: I0b20600fe7203a7aec19cbea8f6849052585c6ab
2020-04-27 18:49:42 -04:00
Peter Collingbourne
fc16d6b483
msm8974-common: Add /apex/com.android.runtime/${LIB} to runtime search path.
The canonical location of the HWASAN runtime, an LL-NDK library, is being moved
to the runtime APEX. It is apparently the first LL-NDK library in the runtime
APEX that does not require a legacy symlink in /system/${LIB}. Therefore we
need to add the runtime APEX's ${LIB} directory to the various search paths
used by the linker so that the library can be loaded from the default and
sphal namespaces.

Bug: http://b/134459232
Test: Builds

Change-Id: I1f63e1a2a61e1717d00736ef431f3ec2a9334193
Merged-In: I1f63e1a2a61e1717d00736ef431f3ec2a9334193
(cherry picked from commit 61f5fdf5c907f83f777395b7ebd45432855b5e7b)
2020-04-25 14:27:01 -06:00
Wang Han
f518f75f1f
msm8974-common: Extend sphal search paths for media swcodec
* Legacy devices do not have vndk-sp, so we have to add
   /system/{LIB} to sphal search paths to make sure linker
   can find the according libraries successfully.

Change-Id: I95b4b4cc9b187ce2b3a50e4e4d1e4940f36e087d
2020-04-25 14:27:01 -06:00
Wang Han
853a30dffe
msm8974-common: Import loader config for media swcodec
* This config needs to be modified for legacy devices. As
   there is no easy way to split it, import it into device
   tree and bind mount it instead.

 * Head at android-10.0.0_r2
   (3ac371484399da6efbd0c835aa461d3326263ab1).

Change-Id: I8d5003d7cd3a471c569844aede4b5ea4c68ae36b
2020-04-25 14:27:00 -06:00
Arne Coucheron
e15cdea68f
msm8974-common: manifest: Remove widevine instance
In Q, this looks like it's making the system wait for a
specific widevine service, which we don't have.
Removing this appears to make L3 start working again.

Change-Id: Ib410029519e1d3cb0f0f3a5aa553976b36bca8c3
2020-04-25 14:27:00 -06:00
Kevin F. Haggerty
64ed0d4ffc
msm8974-common: sepolicy: Resolve hal_lineage_touch_default denials
* avc: denied { search } for name="sec_epen" dev="sysfs" ino=23534
  scontext=u:r:hal_lineage_touch_default:s0
  tcontext=u:object_r:sysfs_sec_epen:s0 tclass=dir permissive=1
* avc: denied { search } for name="sec_touchkey" dev="sysfs" ino=23413
  scontext=u:r:hal_lineage_touch_default:s0
  tcontext=u:object_r:sysfs_sec_touchkey:s0 tclass=dir permissive=1

* avc: denied { read } for name="epen_gestures" dev="sysfs" ino=23559
  scontext=u:r:hal_lineage_touch_default:s0
  tcontext=u:object_r:sysfs_sec_epen:s0 tclass=file permissive=1
* avc: denied { open } for name="epen_gestures" dev="sysfs" ino=23559
  scontext=u:r:hal_lineage_touch_default:s0
  tcontext=u:object_r:sysfs_sec_epen:s0 tclass=file permissive=1
* avc: denied { read write } for name="epen_gestures" dev="sysfs"
  ino=23559 scontext=u:r:hal_lineage_touch_default:s0
  tcontext=u:object_r:sysfs_sec_epen:s0 tclass=file permissive=1

Change-Id: Ie62004f9ca8e93cb8e1dfe45fcff0a9e74f3c44d
2020-04-25 14:27:00 -06:00
Shinru Han
200effb649
msm8974-common: Migrate gps overlay to CarrierConfig
Test: build
Bug: 122431542
Change-Id: I9bb4150522fd367a6a6895bba008eba24e238e4d
2020-04-25 14:27:00 -06:00
Lucas Dupin
a6915d5485
msm8974-common: Disable window rounded corner animations
For graphics performance reasons

Bug: 122347746
Test: visual; swipe up on overview
Change-Id: Iadc765aa72e2777f5307659a6138e9dcef1a9659
2020-04-25 09:55:57 -06:00
Kevin F. Haggerty
eb088711d4
Revert "msm8974-common: Move XTRA_SERVER entries to overlays"
* Even though the stock gps_debug.conf says that you put
  customization in fw/b overlays, Q doesn't look to those anymore.
* With XTRA_SERVERs in those overlays you get:
  GpsPsdsDownloader: No PSDS servers were specified in the GPS configuration

This reverts commit 399e9af90a.

Change-Id: Id392cf4a9b91a63a4400e546bc9ba4c32b656ef4
2020-04-25 09:55:35 -06:00
Michael Bestas
5fd2d661c8
msm8974-common: Update to power HAL 1.2
Change-Id: Ic8c5f7e9c77a95befff5661e1634683ec6c25ac4
2020-04-24 18:56:19 -06:00
Jong Wook Kim
85ec9f3831
msm8974-common: Device Manifest Uprev Wifi HAL from 1.2 to 1.3
Move Wifi HAL from 1.2 to 1.3

Bug: 111753174
Test: builds and wifi works
Change-Id: I37e0d232c95d86ec8b104b65bf1c9c7c44eee86c
2020-04-24 18:56:19 -06:00
Peter Kalauskas
3e22994513
msm8974-common: Convert IMediaCasService to use vintf_fragments
Bug: 119669996
Test: Run cts CtsMediaTestCases
Change-Id: I39aed4c8c2286f35cda3b480b33c810795bdf420
2020-04-24 18:45:40 -06:00
Bruno Martins
dbe62622f8
msm8974-common: Switch to legacy Wi-Fi service
Change-Id: I690bc80349e47907a29a89b8a6f96659f1c61aba
2020-04-24 18:45:40 -06:00
Bruno Martins
ffa2231296
msm8974-common: Drop mediaextractor seccomp policy
These syscalls are now allowed by default.

Change-Id: I405f609d030331e19031612cbd912a54a3c72339
2020-04-24 16:20:43 -06:00
Kevin F. Haggerty
5eb54f4a81
msm8974-common: sepolicy: Label rootfs tombstones symlink
Change-Id: Ic9960d487b37521c8c1d730bb4f3bb69ed8b53e2
2020-04-24 16:20:42 -06:00
Kevin F. Haggerty
0cfb50a823
msm8974-common: sepolicy: Label .psm.info file
Change-Id: Id2e6cf9706262bac877deca0d692d81ef637b0fb
2020-04-24 16:20:42 -06:00
Kevin F. Haggerty
b46d020e98
msm8974-common: Build the Samsung hwbinder light service
Change-Id: I33c259766914a5a714b05b59735ee2a8d70b0a5c
2020-04-24 15:44:37 -06:00
Joshua Primero
1e9008e54f
msm8974-common: proprietary-files: Import libmmjpeg.so
* hlte's copy errors with an ILL_ILLOPC:
Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0xaeff97c8 in
tid 10171 (Binder:6108_3), pid 6108 (mediaserver)

* This common copy from G900FXXU1CSA1_G900FVIA1CSC1_VIA does not result
  in such an error and is compatible with all Samsung msm8974 devices

Change-Id: I7dd8b31c327b3eadeacdb7be9d43495a7fabb816
2020-04-24 15:44:37 -06:00
Anton Hansson
60bc3d4193
msm8974-common: Set cpu "runtime variant" to krait
This makes bionic and various art tools that compile/runs cpu-specific
code choose the kryo variant at runtime. It does not affect
build-time compilation.

Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I670c8acd094090135515688c5f057c2cc08a083f
2020-04-24 14:29:18 -06:00
Anton Hansson
c2f41080cf
msm8974-common: Use generic arch variant
Follow blueline which has not demonstrated any regressions
after switching to a generic arch variant.

Bug: 120773446
Test: make
Change-Id: I9e23963fcfa5ccaa912f2930a632458c4d2a692d
2020-04-24 14:29:18 -06:00
Kevin F. Haggerty
d68795bd7f
msm8974-common: sepolicy: Label /firmware-modem mountpoint
Change-Id: I08720daf701235f9209b7e6fd66d6432a5684ec2
2020-04-24 14:22:24 -06:00
John Stultz
b31e6addda
msm8974-common: Disable nonblocking_ffs to avoid recent crashes with adbd
Recent changes to adbd have enabled nonblocking_ffs by default.

These have seeminly uncovered some bad memory corruption in the
kernel ffs gadget driver on every kernel I've tried so far.

Unfortunately I've not been able to diagnose what is going wrong,
so for now, lets disable the nonblocking_ffs.

We still need to root cause the issue as its a problem even with
the mainline kernel on HiKey, so its likely a generic kernel issue.

Change-Id: I7a0797cc9e8e5f263e533beea23642f768c0f017
Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-04-18 10:55:03 -06:00
Katz Yamada
3138fafbcd
msm8974-common: gps: Fix for buffer overrun crash at copying nmea string
Add zero clearing of allocated nmea buffer to ensure
the nmea string is null terminated.

Change-Id: Ie36010a7d3eca16dabb3067ae891a94e4b63b10c
CRs-Fixed: 2041933
2020-04-18 10:55:03 -06:00
Suren Baghdasaryan
2efdd808f9
msm8974-common: gps: Add libprocessgroup dependency to set_sched_policy users
Add libprocessgroup dependency required for set_sched_policy function.
Include sched_policy_ctrl.h header which now contains set_sched_policy
definition.

Bug: 111307099
Test: builds, boots

Merged-In: I3b93555d4be0a8b3040235b2ab872a6a3238505e
Change-Id: I3b93555d4be0a8b3040235b2ab872a6a3238505e
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-04-18 10:55:03 -06:00
LuK1337
c0ea446532
msm8974-common: init: Override everything ^.^
Change-Id: If09eed5bf254a386631327ea19e21d42366fb08f
2020-04-18 10:55:02 -06:00
Kevin F. Haggerty
0fd0cb6ade
msm8974-common: Convert libinit_helpers_sam8974 to blueprint
Change-Id: I990a4d2c68cd51f0043390408c3b128c4bb20900
2020-04-18 10:55:02 -06:00
Kevin F. Haggerty
992ae3c4fe
msm8974-common: Drop vestiges of old libinit_msm8974
Change-Id: I40b11ebb48ff71a0a81e4f248fcc9bb42d6db792
2020-04-13 06:31:52 -06:00
Kevin F. Haggerty
080bf8a0ec
msm8974-common: libinit: Convert extension into simple helper library
* This will contain functions used by the actual extensions at the
  device level, it will not be a full-fledged libinit extension on
  its own.

Change-Id: I2752dbf7d0b0fb439765fa99b61c82ec10a6c3d2
2020-04-06 09:31:49 -06:00
Paul Keith
5006db0ec0 msm8974-common: Remove unnecessary keylayout files
* Nothing uses these keylayout files

Change-Id: I477445fd226f5fc77125fa5706e42cd8e0fe8b02
2020-03-31 19:23:55 +02:00
Paul Keith
11997658fb msm8974-common: Enforce inclusion of samsung_qcom-common/BoardConfigCommon.mk
* This should always be present in the souce tree

Change-Id: I32397f245580be8174f22af6096dcbeee2bedcd8
2020-03-30 15:51:10 +02:00
Paul Keith
95faaa3643 msm8974-common: Migrate all properties system.prop
* We already set props via system.prop, so let's not mix
  and match between that and PRODUCT_PROPERTY_OVERRIDES.

Change-Id: I92c6863b8393640e2239decd7f089ee890b3c7f7
2020-03-26 17:46:41 +02:00
Kevin F. Haggerty
1d1a7f182c
msm8974-common: libinit: Commonize {cdma,gsm}_properties functions
* It doesn't make sense to maintain these in the numerous device-
  specific trees. It especially doesn't make sense for those to be
  subtly-different.

Change-Id: I4e82c0f6b5b835ac4c742a5d5663a8f3498aaf7b
2020-03-02 06:37:33 -07:00
Kevin F. Haggerty
a1be441339
msm8974-common: libinit: Drop unnecessary includes
Change-Id: I678c39f2dbdf91916a97b3ac07b467de7b14e503
2020-02-29 12:44:02 -07:00
Paul Keith
eea2c37a49 Revert "msm8974-common: Don't mess with APN or CDMA CarrierConfig options"
* It turns out, this is now necessary for Sprint

This reverts commit b1352d7bec.

Change-Id: Ifaa71b0cfc0879d881a8ab9d1cb54aa8255a74d2
2020-02-15 02:49:23 +01:00
Paul Keith
50045fa46e msm8974-common: Transition to consumerir HIDL hal
Change-Id: I85950a46eebec0e9a4b34681b2042467231b33b3
2020-01-31 15:08:24 +01:00
Nolen Johnson
24300422f6 msm8974-common: Set TARGET_RECOVERY_DEVICE_DIRS
* In the previous commit, I failed to note that TWRP
  also needs the AIO property set, so append local path
  to TARGET_RECOVERY_DEVICE_DIRS to make both Lineage
  Recovery and TWRP happy.

Change-Id: Ie1d8dfa252dad02787544a73e9d4ee1d44d30dbf
2019-08-06 06:30:09 +00:00