Commit Graph

5760 Commits

Author SHA1 Message Date
eddielan
422956df9e [DO NOT MERGE]vibrator: Add sepolicy for double click property
Bug: 153277457
Test: Build pass
Change-Id: Ic33042373631c45e063235e0a4cd1bb20fe205e3
2020-05-08 09:29:52 +00:00
Jayachandran Chinnakkannu
5cbc768406 Merge "Move ro.telephony.default_network to vendor partition" into rvc-dev 2020-05-01 01:26:56 +00:00
Jayachandran C
ff3415e5c5 Move ro.telephony.default_network to vendor partition
This fixes GSI image overriding the default value

Bug: 153852350
Test: Manually verified after flashing the GSI image
Change-Id: I70aa7ffe2c0ee7368fa713f8798b7704f9a0db86
2020-04-30 16:46:14 -07:00
Edward Chen
00e396b91c Merge "Add runtime permissions to wahoo for PixelMigrate." into rvc-dev 2020-04-30 01:32:22 +00:00
Roshan Pius
6ceeef381d wahoo: Move PixelWifiOverlay2017 here
Also, merged PixelWifiCommon overlay contents since it is not feasible
to maintain a common overlay in the device/ folder structure.

Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-04-28 15:05:52 -07:00
chenedward
5343ca5c8d Add runtime permissions to wahoo for PixelMigrate.
The permission is used to get configured wifi list.

Test: manual (The permission is granted in runtime permission)
Bug: 153708933
Change-Id: I49d7c8014cd951eacad52876f86411d6e34186c2
2020-04-28 11:25:40 +08:00
wenchangliu
59764d3243 wahoo: fine tune media_codecs_performance.xml
Update stable performance point for R.

Bug: 148902880
Test: run CTS -m CtsMediaTestCases -t android.media.cts.VideoDecoderPerfTest
Change-Id: I1c17293fe23300921a03a985485507fa76cf3782
2020-04-22 12:40:29 +00:00
Ilya Matyukhin
bb501e8651 Merge "Use biometrics.fingerprint@2.2 for wahoo" into rvc-dev 2020-04-14 00:46:10 +00:00
Paul Scovanner
d977800f19 Update Wahoo SVN to 44 am: b2d32df822
Change-Id: I05c7edcb7cd5fef101b6448209e70e36f13c501a
2020-04-13 23:25:30 +00:00
Ilya Matyukhin
a9427075f0 Use biometrics.fingerprint@2.2 for wahoo
Bug: 153909042
Bug: 153012763
Bug: 153830435
Test: built taimen-userdebug with a @2.2 HAL
Test: "adb shell lshal | grep fingerprint@" shows the @2.2 HAL
Change-Id: Ied411a65f482ea79d9000e2f4191dba5f8927606
2020-04-13 23:18:27 +00:00
Paul Scovanner
b2d32df822 Update Wahoo SVN to 44
Bug: 153882927

Change-Id: I426d08a4353d7ad1c25954a2b32cb9aae5ffb886
2020-04-13 18:45:58 +00:00
Jimmy Chen
a68702bb59 [automerger skipped] Wifi: enable P2P MAC randomization am: 3672858e17 -s ours
am skip reason: skipped by user jimmycmchen

Change-Id: I0053ae37a2a2e726d37c2b254962e287d9d63507
2020-04-08 09:28:00 +00:00
Jimmy Chen
3672858e17 Wifi: enable P2P MAC randomization
Bug: 146398159
Test: enter Wi-Fi Direct and check p2p interface address is randomized.
Change-Id: I5f03f907174d6eec2a739c9112fc2e8fad5ef0ae
2020-04-08 04:34:53 +00:00
Andrew Lehmer
2cd4e87879 folio_daemon: Avoid UAF with stale sensor handle am: 1e9c510d49 am: 2a7dac5aa9 am: e527899e04 am: ada3ff5036
Change-Id: I1edc25a7deb6e0ee96ec3107a0eb18ba3e4ca0d0
2020-04-07 22:10:16 +00:00
Andrew Lehmer
ada3ff5036 folio_daemon: Avoid UAF with stale sensor handle am: 1e9c510d49 am: 2a7dac5aa9 am: e527899e04
Change-Id: I703be2f1fe3ece5eef83c4c9bd38d4a2f5bc6b9d
2020-04-07 21:39:46 +00:00
Andrew Lehmer
e527899e04 folio_daemon: Avoid UAF with stale sensor handle am: 1e9c510d49 am: 2a7dac5aa9
Change-Id: I7b74e07fc8e3442e194cc7bdc80cde525cb87cd8
2020-04-07 21:22:05 +00:00
Andrew Lehmer
2a7dac5aa9 folio_daemon: Avoid UAF with stale sensor handle am: 1e9c510d49
Change-Id: I0afc0be064c28dc361b8e5538442557cb0d899c7
2020-04-07 21:07:21 +00:00
TreeHugger Robot
8cc54ac83e Merge "folio_daemon: Avoid UAF with stale sensor handle" into qt-dev am: 51441571d3 am: c48b03f21f
Change-Id: Ic581fd00f3f86007f9934d680fb1cb2e6e1e0afa
2020-04-07 21:01:25 +00:00
TreeHugger Robot
23e3ccf619 [automerger skipped] Merge "folio_daemon: Avoid UAF with stale sensor handle [DO NOT MERGE]" into qt-qpr1-dev am: ef422b336e -s ours
am skip reason: subject contains skip directive

Change-Id: Ifc36cfaf66d2c670a59a045d3efc0cc2c39f0df3
2020-04-07 21:01:18 +00:00
TreeHugger Robot
c48b03f21f Merge "folio_daemon: Avoid UAF with stale sensor handle" into qt-dev am: 51441571d3
Change-Id: I5086c0d414f0287658afdd8d87379bfb3227ba44
2020-04-07 21:00:46 +00:00
TreeHugger Robot
ef422b336e Merge "folio_daemon: Avoid UAF with stale sensor handle [DO NOT MERGE]" into qt-qpr1-dev 2020-04-07 20:20:28 +00:00
TreeHugger Robot
51441571d3 Merge "folio_daemon: Avoid UAF with stale sensor handle" into qt-dev 2020-04-07 20:13:43 +00:00
TreeHugger Robot
76c83073a4 Merge "folio_daemon: Avoid UAF with stale sensor handle" into rvc-dev 2020-04-07 19:44:12 +00:00
Andrew Lehmer
ff50d91009 folio_daemon: Avoid UAF with stale sensor handle am: 948ad9c58c am: 92f0fa9448 am: f8136059a5
Change-Id: Iadb5e5600456c02456f11f415191b663ba213e61
2020-04-07 19:40:06 +00:00
Andrew Lehmer
f8136059a5 folio_daemon: Avoid UAF with stale sensor handle am: 948ad9c58c am: 92f0fa9448
Change-Id: Iecce6d22c8a65e677f53f200d494c303b877ef3c
2020-04-07 19:28:34 +00:00
Andrew Lehmer
92f0fa9448 folio_daemon: Avoid UAF with stale sensor handle am: 948ad9c58c
Change-Id: I1a8f3de8a7ebe0c9c268a93d7e8b59415a60cf57
2020-04-07 19:16:48 +00:00
Andrew Lehmer
8461c0a1d1 folio_daemon: Avoid UAF with stale sensor handle [DO NOT MERGE]
It is possible for sensor handles retrieved using
ASensorManager_getDefaultSensor() to become stale if the underlying
binder connection to the sensor service gets reset. This can be
triggered by ASensorManager_createEventQueue(), so any sensor handle
retrieved prior to this call may become stale, resulting in a use-after-
free when the handle is eventually registered with the queue. To avoid
this, the event queue is created before retrieving or registering the
sensor.

Bug: 150225255
Test: No longer crashes with proof-of-concept on Pixel 2 XL.
Change-Id: I243f6c68c734af3eb5488855d965a894b5fb99e5
2020-04-07 18:11:26 +00:00
TreeHugger Robot
3f73ae5c68 Merge "thermal: move thermal-hal selinux policy to Pixel-wide folder" into rvc-dev 2020-04-06 14:39:50 +00:00
mandyshen
ea6ffc0391 thermal: use common device.mk
Bug: 146390555
Test: run pts thermal-hal and themal-engine via forrest
Change-Id: Ib01311388c9642f2a66a77d4d31f1a675e3d4cb5
2020-04-06 21:43:17 +08:00
Paul Scovanner
e3a28599cb Update wahoo SVN to 43 am: ad7825fc2a
Change-Id: I06d1f412996f58f7c4c3cb99a67f02a7763a10cb
2020-04-02 20:50:50 +00:00
mandyshen
488607751a thermal: move thermal-hal selinux policy to Pixel-wide folder
Bug: 146390555
Test: run pts thermal-hal and themal-engine via forrest
Change-Id: If71b61618b902262b60e381a15ad0b495a843846
2020-04-01 19:35:39 +00:00
Martin Liu
da1f2ab114 mm_event: move mm_event into common
This CL moves mm_event and relative sepolicy
into common

Bug: 152414692
Test: build
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ie6d9c40f5fd2ac3f9abb86edc4d43baa88864f55
2020-04-01 16:02:44 +08:00
Andrew Lehmer
1e9c510d49 folio_daemon: Avoid UAF with stale sensor handle
It is possible for sensor handles retrieved using
ASensorManager_getDefaultSensor() to become stale if the underlying
binder connection to the sensor service gets reset. This can be
triggered by ASensorManager_createEventQueue(), so any sensor handle
retrieved prior to this call may become stale, resulting in a use-after-
free when the handle is eventually registered with the queue. To avoid
this, the event queue is created before retrieving or registering the
sensor.

Bug: 150225255
Test: No longer crashes with proof-of-concept on Pixel 2 XL.
Change-Id: I243f6c68c734af3eb5488855d965a894b5fb99e5
2020-03-30 22:36:21 +00:00
Andrew Lehmer
948ad9c58c folio_daemon: Avoid UAF with stale sensor handle
It is possible for sensor handles retrieved using
ASensorManager_getDefaultSensor() to become stale if the underlying
binder connection to the sensor service gets reset. This can be
triggered by ASensorManager_createEventQueue(), so any sensor handle
retrieved prior to this call may become stale, resulting in a use-after-
free when the handle is eventually registered with the queue. To avoid
this, the event queue is created before retrieving or registering the
sensor.

Bug: 150225255
Test: No longer crashes with proof-of-concept on Pixel 2 XL.
Change-Id: I243f6c68c734af3eb5488855d965a894b5fb99e5
2020-03-30 22:35:46 +00:00
Andrew Lehmer
34ae8052e3 folio_daemon: Avoid UAF with stale sensor handle
It is possible for sensor handles retrieved using
ASensorManager_getDefaultSensor() to become stale if the underlying
binder connection to the sensor service gets reset. This can be
triggered by ASensorManager_createEventQueue(), so any sensor handle
retrieved prior to this call may become stale, resulting in a use-after-
free when the handle is eventually registered with the queue. To avoid
this, the event queue is created before retrieving or registering the
sensor.

Bug: 150225255
Test: No longer crashes with proof-of-concept on Pixel 2 XL.
Change-Id: I243f6c68c734af3eb5488855d965a894b5fb99e5
2020-03-30 22:34:50 +00:00
Andrew Lehmer
9ccd8c165e folio_daemon: Avoid UAF with stale sensor handle
It is possible for sensor handles retrieved using
ASensorManager_getDefaultSensor() to become stale if the underlying
binder connection to the sensor service gets reset. This can be
triggered by ASensorManager_createEventQueue(), so any sensor handle
retrieved prior to this call may become stale, resulting in a use-after-
free when the handle is eventually registered with the queue. To avoid
this, the event queue is created before retrieving or registering the
sensor.

Bug: 150225255
Test: No longer crashes with proof-of-concept on Pixel 2 XL.
Change-Id: I243f6c68c734af3eb5488855d965a894b5fb99e5
2020-03-30 14:24:40 -07:00
Paul Scovanner
ad7825fc2a Update wahoo SVN to 43
Bug: 151752725
Change-Id: Iff06deadea687ad2fc7fe5faccce7494f91c2272
2020-03-28 00:45:03 +00:00
Torne (Richard Coles)
6bf1d5cfb8 Remove fixed SELinux denial from bug_map.
The webview_zygote denial should now be fixed; removing it from the list
so that we see if this regresses or continues to fail.

Bug: 149481620
Fixes: 131636647
Test: check for avc denials from webview_zygote
Change-Id: I2265ff314d1fa7956aa8b443040199acccb23e88
2020-03-25 16:32:45 +00:00
Wei Wang
32ce635c3b Start Power HAL early
Power HAL start "on boot" trigger and we start processing hints on
boot_complete. The power start time and hint processing time different,
the reasons are both boottime and also availability of governors. The
notification of IPC is done by setting vendor.setup.power to 1.

This has been always the case. However there is new dependency in
surfaceflinger for Power HAL availability.

To workaround the dependency for early bootanim: bootanim =>
surfaceflinger => power hal, we could start Power HAL earlier by moving
from on boot to on late-fs here, as Pixel Power HAL doesn't need
anything in data/ partition e.g. neither persist property nor
configuration file.

Bug: 152131148
Test: build
Change-Id: I87d0b0ea32c86898f6bc19958d321ed177c2a739
2020-03-23 13:35:47 -07:00
Paul Scovanner
540f5b4b08 Update wahoo SVN to 42 am: f20a9df793
Change-Id: Ibc0b1ddd9d5cb89bf383c58617c2f8889f3b1d95
2020-03-18 23:26:02 +00:00
Paul Scovanner
f20a9df793 Update wahoo SVN to 42
Bug: 151752725
Change-Id: I9588b9237f3a8b6d26c5fa5202040b1e32df2ba0
2020-03-17 20:35:28 +00:00
linjoey
d2029e9577 display: dontaudit various domains for read/search sysfs_msm_subsys
Graphics drivers gfx promo #0454 adds dependency on gpu_model sysfs
node. This needs various domains to have sepolicy to read and search the
sysfs node. Dontaudit these domains for read/search into sysfs_msm_subsys

Bug: 150924173
Test: device logs does not throw selinux denials, pass pre-submit checks
Change-Id: I5b2dd718d6af92ed557da17181d6595f72f0cc29
2020-03-17 16:16:06 +08:00
Srinivas Visvanathan
d2b8cfc32b Merge "Updating Android Auto pregrants for R" into rvc-dev 2020-03-06 20:16:53 +00:00
Srinivas Visvanathan
20f3110ae8 Updating Android Auto pregrants for R
- Adding READ_CALENDAR.

Bug: 144437725
Test: Build/flashed device and confirmed pregrant
Change-Id: Ic993622324437a387e242ddf6f16a8d7c5c6e74b
2020-03-04 21:37:48 -08:00
Harpreet \"Eli\" Sangha
13e222d8d9 vibrator: Switch from HIDL to AIDL
Bug: 148249136
Test: PTS, VTS, Unit Test
Change-Id: I844cdd4af6c6ecd028895ffb8447793df21dfa19
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
2020-03-03 10:24:43 +09:00
Dave Mankoff
aa569810f0 New config value for specifying alternative prox sensor
Bug: 149420648
Test: n/a
Change-Id: I9cda34e99299393727da23b3f25779a7cce89a13
2020-02-25 16:30:23 +00:00
Automerger Merge Worker
09b60a7681 Temporary add b/149317789 to bugmap am: 6fa9961f40 am: 4ce19ac5b7 am: dbc165fc04
Change-Id: Iabc02ae9f492ed853033a68d31335e52e120948f
2020-02-21 12:21:25 +00:00
Automerger Merge Worker
dbc165fc04 Temporary add b/149317789 to bugmap am: 6fa9961f40 am: 4ce19ac5b7
Change-Id: I5f5c8a7e46ef0ded36fc7fddf7eac2d7f5471da9
2020-02-21 12:06:34 +00:00
Automerger Merge Worker
4ce19ac5b7 Temporary add b/149317789 to bugmap am: 6fa9961f40
Change-Id: I8b6c426ebf3d455ea08000fef5a2d42c18d063bf
2020-02-21 11:37:39 +00:00
Nikita Ioffe
6fa9961f40 Temporary add b/149317789 to bugmap
On taimen/walley DeviceBootTest.SELinuxUncheckedDenialBootTest
occasionally fails with following selinux denials:

02-10 10:21:23.940   784   784 I auditd  : type=1400 audit(0.0:4): avc: denied { getattr } for comm="apexd" path="/metadata/apex/sessions" dev="sde41" ino=17 scontext=u:r:apexd:s0 tcontext=u:object_r:metadata_file:s0 tclass=dir permissive=0
02-10 10:21:23.943   784   784 I auditd  : type=1400 audit(0.0:5): avc: denied { read } for comm="apexd" name="sessions" dev="sde41" ino=17 scontext=u:r:apexd:s0 tcontext=u:object_r:metadata_file:s0 tclass=dir permissive=0
02-10 10:21:24.577   784   784 I auditd  : type=1400 audit(0.0:7): avc: denied { read } for comm="apexd" name="sessions" dev="sde41" ino=17 scontext=u:r:apexd:s0 tcontext=u:object_r:metadata_file:s0 tclass=dir permissive=0

Since the behaviour is flakey, temporary ignore these denials to deflake
presubmit.

Test: builds
Bug: 149317789
Change-Id: Iff3295d2a9be8cf0029a2e5867ebd231badfc9e8
2020-02-21 09:47:13 +00:00