Commit Graph

4725 Commits

Author SHA1 Message Date
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
51441571d3 Merge "folio_daemon: Avoid UAF with stale sensor handle" into qt-dev 2020-04-07 20:13:43 +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
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
Lubo Hristov
7d2f2c254c Update Wahoo SVN to 35
bug:141272605
2019-09-19 22:23:20 +00:00
Paul Scovanner
1b1692d98a Update Wahoo SVN to 33
Bug:139434268
Change-Id: Ief27255508e5fa4cef71df720b5bf9ea4e84d49f
2019-08-14 21:01:22 +00:00
Paul Scovanner
bc9e7660da Update Wahoo SVN to 32
Bug:139074978
Change-Id: I807f1d97205680ae0ac531c1b28101cef986cfda
2019-08-07 19:46:41 +00:00
TreeHugger Robot
ec6c1b56de Merge "Update Wahoo SVN to 31" into qt-dev 2019-08-05 16:50:37 +00:00
Paul Scovanner
5cc5927893 [automerger skipped] [DO NOT MERGE] Update Wahoo SVN to 30
am: a55b49f5d0 -s ours
am skip reason: subject contains skip directive

Change-Id: I0011f2926c979097acf3fa5e8e18a4fe65e943a7
2019-08-02 17:13:52 -07:00
Paul Scovanner
d46799a735 Update Wahoo SVN to 31
Bug:126590667
Change-Id: I048357eb4b33d84c4fac303c0f5dd44aae7614cb
2019-08-02 23:39:20 +00:00
Paul Scovanner
a55b49f5d0 [DO NOT MERGE] Update Wahoo SVN to 30
Bug:126590667
Change-Id: I7eebbe6e9f4c39d8a0d60d074b344d0f4208e800
2019-08-02 20:49:51 +00:00
Pawin Vongmasa
2aeb9b87f3 Add missing performance points
Test: cts-tradefed run cts -m CtsMediaTestCases \
-t android.media.cts.MediaCodecListTest#testAllHardwareAcceleratedVideoCodecsPublishPerformancePoints

Bug: 136536656
Change-Id: Iab2a1ae6a2365fb01e0c66d818974849cb8cf596
2019-07-04 04:48:49 -07:00
Adam Seaton
26ea1f7b49 Update Wahoo SVN to 30 for Q release
Bug:136220150
Change-Id: I00a79b87364bf613acd2594b65bdef50a46c70c6
2019-07-03 17:10:20 +00:00
Tao Bao
a07062c52a Merge "Include misc_writer." into qt-dev 2019-06-24 22:13:36 +00:00
Peiyong Lin
ec4f0d31b7 Merge "Disable WCG on Pixel 2017." into qt-dev 2019-06-19 22:18:10 +00:00
Tao Bao
2cb10aa20c Include misc_writer.
Bug: 113028175
Bug: 134157796
Bug: 134430124
Test: Build and flash taimen with the matching bootloader change.
      Check serial log regarding the start of vendor.darkboot service.
      Also read the value via `dd bs=1 skip=2048 if=/dev/block/sda5
      count=32 | xxd` to confirm the change.
Test: Trigger a factory reset via Settings. Check the value in /misc
      after the reset.
Change-Id: I87c248e25450f520bdc6f1cab3d7f240e54394d0
2019-06-17 12:21:16 -07:00
Eva Huang
7c82a29668 Add ramdump search access to metadata.
Bug: 135149434
Change-Id: I35231d4bd86cf78185b9fcb750c1bdb97b0e21eb
2019-06-17 14:10:50 +08:00
Joel Galenson
f7f59f80d4 Track denial.
This should help fix presubmit tests.

Bug: 130250133
Bug: 135149434

Test: Build.
Change-Id: I5e0bc87a527317c2086c0e698c7b8bda1c09593b
Merged-In: I5e0bc87a527317c2086c0e698c7b8bda1c09593b
(cherry picked from commit 5fdf5cfaa8)
2019-06-15 07:27:39 -07:00
Paul Scovanner
6dd44dec19 Update Wahoo SVN to 29 Bug:126590667
am: 54f31c6501

Change-Id: Ifbd2cd5dfc3ef8b929dc50379da213571f04bbb6
2019-06-12 10:41:47 -07:00
Paul Scovanner
54f31c6501 Update Wahoo SVN to 29
Bug:126590667
2019-06-11 19:57:42 +00:00
TreeHugger Robot
26d913d557 Merge "fstab: use "sync" for /metadata" into qt-dev 2019-06-11 10:22:24 +00:00
TreeHugger Robot
2911bc982d Merge "Remove CAR_SPEED pre-grant for Gearhead on wahoo" into qt-dev 2019-06-07 17:24:49 +00:00
Nick Moukhine
b5cb56b8c1 Remove pre-granted audio permission from Now Playing on Pixel2
See bug for more details.  The apk already supports asking for this permission at runtime.  Upgrading to this android build does not revoke the permission out from under the app.

Bug: 130440726
Test: Manually tested by upgrading walleye to this build and seeing now playing continue to work.
Change-Id: I599586b93ad786762e151fb798d4e5011f2b0315
2019-06-07 12:05:47 +00:00
Jaegeuk Kim
e982cf1e4b fstab: use "sync" for /metadata
/metadata should be synchronous enoughly to avoid boot failure.

Bug: 134172577
Change-Id: I342b1eab9b3b79024deebe039e07d0aa93209148
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2019-06-05 19:42:17 -07:00
Srinivas Visvanathan
04ffd88058 Remove CAR_SPEED pre-grant for Gearhead on wahoo
- Pre-granting has caused issues in the past. See b/134583542.

Test: None
Bug: 134583542
Change-Id: I37d81c1f716533543919607e0e898dc78bb746d4
2019-06-05 10:59:17 -07:00
Lajos Molnar
f70badf3be Merge "media: update performance XML" into qt-dev 2019-06-04 13:42:56 +00:00
Lajos Molnar
de8e4cf259 media: update performance XML
Bug: 131600580
Change-Id: I880a4212e68768508e04a7214e6e3d4ee7420e8a
2019-05-31 13:46:44 -07:00
Srinivas Visvanathan
c2bed46517 Extra Wahoo runtime pregrants for Android Auto
- Including permissions for Top Gear effort.

Bug: 132998136
Bug: 132997487
Test: Built/flashed Wahoo
Change-Id: I91503b29c81c686596e3f0151548ea6b72a707eb
2019-05-31 06:36:29 -07:00
Carter Hsu
6f28bfbe18 Merge "audio: enable soundtrigger concurrent cpature" into qt-dev 2019-05-31 01:13:47 +00:00
TreeHugger Robot
e8e2c36aa5 Merge "Allow codecs access to gpu_device" into qt-dev 2019-05-24 16:25:48 +00:00
Carter Hsu
928955b464 audio: enable soundtrigger concurrent cpature
Bug: 129111371
Test: manual
Change-Id: Ib6a81f56e75331bae086ef599714794bcb66b7c9
Signed-off-by: Carter Hsu <carterhsu@google.com>
2019-05-24 11:21:55 +00:00
Pawin Vongmasa
4f10bbae3e Allow codecs access to gpu_device
Bug: 132837730
Test: atest android.media.cts.DecoderTest
Change-Id: I23aaf87106ca9aa0942a3053e5baf3e7667377e4
2019-05-24 01:25:30 -07:00
Srinivas Visvanathan
69fc3dc604 Granting Android Auto permissions on Pixel 2
- Pre-granting runtime permissions. The stub will be installed on Pixel
1's and this matches Pixel 4 setup.

Bug: 133353187
Test: Build/installed images on Pixels and confirm AA setup
Change-Id: I9e964a1ef40284c6777c733f0f7e771109c7c5a6
2019-05-23 09:46:40 -07:00
Ryan Savitski
61dfc52f7e Merge "Allow camera to notify traced of a notable event (walleye/taimen)" into qt-dev 2019-05-21 11:07:58 +00:00
TreeHugger Robot
2bc7620e2b Merge "Allow vendor read access to 'ro.camera' property" into qt-dev 2019-05-20 22:21:39 +00:00
Ryan Savitski
b71af1ed7c Allow camera to notify traced of a notable event (walleye/taimen)
Most apps already have the permission to act as full producers
(isolated_app, ephemeral_app, priv_app, untrusted_app_all), but
the camera doesn't inherit that as it runs in its own domain.

Granting only the socket (i.e. ipc) permission, as:
* only that is needed at the moment.
* granting the shmem/fd permissions would require a broader change, as traced_tmpfs is declared in private/.

Specific denial:
05-20 13:56:20.303  7751  7751 W trigger_perfett: type=1400 audit(0.0:19): avc: denied { write } for name="traced_producer" dev="tmpfs" ino=7061 scontext=u:r:google_camera_app:s0:c181,c256,c512,c768 tcontext=u:object_r:traced_producer_socket:s0 tclass=sock_file permissive=0 app=com.google.android.GoogleCamera

Bug: 130543265
Tested: extrapolating from the same fix on crosshatch, tested manually on blueline-userdebug.
Merged-In: I53dc08a28d167f566b759d8f91d00a4828f4847f
Change-Id: I53dc08a28d167f566b759d8f91d00a4828f4847f
(cherry picked from commit 12b6414919)
2019-05-20 20:28:25 +01:00
TreeHugger Robot
f42815ed26 Merge "vibrator: Enforce API-Specific Effect Range" into qt-dev 2019-05-16 16:53:19 +00:00
TreeHugger Robot
1ede337150 Merge "power.stats: Give permission to access wifi system props" into qt-dev 2019-05-15 03:13:33 +00:00
Emilian Peev
84ea4994d1 Allow vendor read access to 'ro.camera' property
The Camera HIDL wrapper needs access to
properties "ro.camera.req.fmq.size" and
"ro.camera.res.fmq.size" which control
the fast message queue size. Cases exist
where the default size is not sufficient.
The precise amount can be controlled by
the respective device configuration which
can set the previously mentioned properties.

Bug: 77865891
Test: Manual using application
Change-Id: I468bde2ee356e0d1d20f781fe6a3af48143cc4b2
Merged-In: I468bde2ee356e0d1d20f781fe6a3af48143cc4b2
2019-05-14 13:40:00 -07:00
Paul Scovanner
18ee059698 [automerger skipped] [DO NOT MERGE] Update Wahoo SVN to 28 Bug:132634503
am: 934ba6d552 -s ours
am skip reason: subject contains skip directive

Change-Id: I9f69a2d69a96438cf2232c8a92dc5c98f17a3c2b
2019-05-14 11:04:49 -07:00
Benjamin Schwartz
9cab564cbf power.stats: Give permission to access wifi system props
Bug: 130202935
Test: vts-tradefed run vts -m VtsHalPowerStatsV1_0Target
Change-Id: I4900643ad7555c9570705019f03a71e63ea1a581
2019-05-13 17:18:17 -07:00
Paul Scovanner
934ba6d552 [DO NOT MERGE] Update Wahoo SVN to 28
Bug:132634503
2019-05-13 22:43:41 +00:00
Christine Franks
1af82961b8 Merge "Add config value for a11y color mode" into qt-dev 2019-05-13 14:47:21 +00:00
Lajos Molnar
26cb86496e Merge "media: remove Codec2 XMLs as these are served from /apex folder" into qt-dev 2019-05-11 01:36:14 +00:00
TreeHugger Robot
9cc1610f68 Merge "netd socket related sepolicy rule cleanup" into qt-dev 2019-05-10 03:15:56 +00:00
Lajos Molnar
f455791995 media: remove Codec2 XMLs as these are served from /apex folder
Bug: 129710438
Change-Id: I10d63c8e1577c70dac3c103853c1233055250d49
2019-05-09 07:09:53 -07:00
Harpreet "Eli" Sangha
2c3507689a vibrator: Enforce API-Specific Effect Range
Bug: 132135335
Test: vts-tradefed run singleCommand vts-hal -m VtsHalVibratorV1_0Target
Change-Id: I45ea5b65220158995a0fe7be603be8fbde5581ad
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-05-09 14:46:04 +09:00