Commit Graph

4003 Commits

Author SHA1 Message Date
Cheney Ni
eea7cb4057 Merge "Support for Bluetooth Audio HAL V2 on Pixel 2"
am: 6751b23bd2

Change-Id: Ic6591890dd610686cb153680e886631db15cb8e8
2019-02-18 20:38:39 -08:00
Treehugger Robot
6751b23bd2 Merge "Support for Bluetooth Audio HAL V2 on Pixel 2" 2019-02-19 04:26:19 +00:00
Jeff Vander Stoep
56620c551d hal_bluetooth: track flaky selinux denial
am: 6e99fbed32

Change-Id: I43b8c0f634fe02692461672b3a4497ad634167cd
2019-02-18 19:22:51 -08:00
Jeff Vander Stoep
6e99fbed32 hal_bluetooth: track flaky selinux denial
avc: denied { read } for comm="bluetooth@1.0-s" name="ssrdump"
dev="dm-2" ino=3276848 scontext=u:r:hal_bluetooth_default:s0
tcontext=u:object_r:ramdump_vendor_data_file:s0 tclass=dir

Bug: 124682886
Test: build
Change-Id: I45022b149b5a99c3fd601db60fed0f1e791c4eb0
2019-02-18 13:46:56 -08:00
Cheney Ni
892d1243c3 Support for Bluetooth Audio HAL V2 on Pixel 2
Remove primary flags from hearing aid also.

Bug: 111519504
Bug: 124278829
Bug: 124014853
Test: manual with BluetoothAudioHAL enabled / disabled
Change-Id: I57e521422ae37b359e08836429a4c8e1a99dd66b
Merged-In: I57e521422ae37b359e08836429a4c8e1a99dd66b
2019-02-18 18:41:35 +08:00
Xin Li
f73e96a8a9 Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master 2019-02-14 22:11:30 +00:00
Joel Galenson
37f83d9a29 Merge "Hide denial seen in tests."
am: 68ffdec493

Change-Id: Id162571a7bf0a557810fd1120823e06620b7663d
2019-02-14 07:30:29 -08:00
Treehugger Robot
68ffdec493 Merge "Hide denial seen in tests." 2019-02-14 15:23:18 +00:00
Joel Galenson
d6771fb99b Hide denial seen in tests.
This should help fix presubmit tests.

Test: Build.
Change-Id: Icf93d79c533243b79367e633fa4b3dda3577e791
2019-02-13 17:18:34 -08:00
Benjamin Schwartz
38b289bd51 power.stats: Add AidlStateResidencyDataProvider
am: 81b6f12e13

Change-Id: Ib7bc2a515a7b4d8dc78453b5023ba3501ae0a072
2019-02-13 17:17:24 -08:00
Benjamin Schwartz
5ea03bf9cb power.stats: Port power.stats HAL to Pixel 2
am: 8a9a191958

Change-Id: I4aea29b6425114b7dd78183b6f9e946c94783520
2019-02-13 17:17:18 -08:00
Benjamin Schwartz
81b6f12e13 power.stats: Add AidlStateResidencyDataProvider
Some drivers that we want to collect power stats from are pass-through
and would require significant changes in order to provide a sysfs node
that the current power stats framework can pull stats from.

These pass-through drivers typically have a userspace daemon that is
capable of keeping track of the power stats and providing them to the
power.stats HAL service, but currently have no way to do that.

The AidlStateResidencyDataProvider will provide a vendor binder service
that will allow the userspace daemon to push updates or the power
statistics to power.stats HAL.

Bug: 117585786
Test: Created a PTS test to update some mock power entities that were
created using the AidlStateResidencyDataProvider. Further testing is
planned when real power entities start using this.

Change-Id: I73e02cb65da9c22850f65b96c12554a28f1fbb60
2019-02-13 10:42:54 -08:00
Benjamin Schwartz
8a9a191958 power.stats: Port power.stats HAL to Pixel 2
Bug: 120301393
Test: run vts -m VtsHalPowerStatsV1_0Target
Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default"
Change-Id: Ib46e205651e0972dd4008976209aaf7dbff4d5f8
(cherry picked from commit 61d2125575)
Merged-In: Ib46e205651e0972dd4008976209aaf7dbff4d5f8
2019-02-13 10:32:36 -08:00
Joel Galenson
988a4ce157 Merge "Track SELinux denial."
am: aef21de27f

Change-Id: I5492c7776d541633f5d48ace7887cde73d80d73c
2019-02-13 07:53:44 -08:00
Joel Galenson
aef21de27f Merge "Track SELinux denial." 2019-02-13 15:40:24 +00:00
Joel Galenson
c2a8515884 Track SELinux denial.
This shoud fix presubmit tests.

Bug: 124364409
Test: Build.
Change-Id: I07db68aaefe37f72ac407ed4731c7ac1f23d4aed
2019-02-13 07:29:36 -08:00
Xin Li
fac5d8b2fb DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master
Bug: 124234733
Change-Id: Iaee389857897181721744c8bae8d7545bd7d2aed
2019-02-12 09:53:31 -08:00
Joel Galenson
db25269029 Merge "Fix denials seen during user bugreports."
am: 3f810d570a

Change-Id: Ic1eeb8c1f5bd7e17e552a024af8a1120055c3ea9
2019-02-11 12:49:36 -08:00
Treehugger Robot
3f810d570a Merge "Fix denials seen during user bugreports." 2019-02-11 20:27:39 +00:00
Yiwei Zhang
54011f2a7a Merge "Game Driver: allow Camera app access GpuService"
am: 78de5d62ec

Change-Id: I7085ffb3253acffe73e75268414130bc4087ce5d
2019-02-11 10:09:14 -08:00
Treehugger Robot
78de5d62ec Merge "Game Driver: allow Camera app access GpuService" 2019-02-11 18:03:50 +00:00
Joel Galenson
9fb184dd39 Fix denials seen during user bugreports.
Bug: 116711254
Bug: 123540375
Test: Build
Change-Id: I118d74f1590669ab535faeb84a0f44592055050a
2019-02-11 09:25:15 -08:00
Tom Cherry
75785c93bf Move to config.fs
am: 5434bb60e8

Change-Id: Iaef9d6cce2c5c02b788272f8310ab0b1d25e995d
2019-02-11 08:30:50 -08:00
android-build-team Robot
202cd101a1 Snap for 5180536 from 5602117af2 to pi-platform-release
Change-Id: I36ac873f9c6af4c306e6ca4efc6b3e1f53f7c464
2019-02-09 02:18:48 +00:00
Tom Cherry
5434bb60e8 Move to config.fs
TARGET_ANDROID_FILESYSTEM_CONFIG_H is soon to be deprecated, so move
to config.fs

Test: build
Change-Id: Ie987da844a8d6747eebc0886d70731eb1d0e4125
2019-02-08 17:58:38 -08:00
Yiwei Zhang
b98f6a9f57 Game Driver: allow Camera app access GpuService
Bug: 123529932
Test: Build, flash and boot. No selinux denials.
Change-Id: Ic8597f28162b4caa2075dfc8c8bc27321c0750da
2019-02-08 13:28:41 -08:00
Jeffrey Vander Stoep
0b51a54b30 Merge "Revert "Treble-ize tmpfs access""
am: 7558e65ead

Change-Id: I0696672b0d8ed0b411505740d2440af9fe8d6bd1
2019-02-07 11:53:51 -08:00
Treehugger Robot
7558e65ead Merge "Revert "Treble-ize tmpfs access"" 2019-02-07 19:40:32 +00:00
Jeff Vander Stoep
4672880b52 usb HAL: remove all DAC capabilities
am: 84304df642

Change-Id: I003eeabb1cc08c4eff22f1ff54ca55e4a5f40f76
2019-02-06 20:58:13 -08:00
Jeff Vander Stoep
84304df642 usb HAL: remove all DAC capabilities
We can verify via selinux policy that no capabilies are allowed,
so there's no reason to grant them in DAC. Currently this is
resulting in an selinux denial.

avc: denied { dac_override } for comm="usb@1.1-service" capability=1
scontext=u:r:hal_usb_impl:s0 tcontext=u:r:hal_usb_impl:s0
tclass=capability permissive=0

Test: build
Change-Id: Iddea654be7c8f374a2c5f3c4fbebf066deca1796
2019-02-06 15:02:11 -08:00
Jeffrey Vander Stoep
a1503a9d93 Revert "Treble-ize tmpfs access"
This reverts commit f8b962729f.

Reason for revert:
This change is no longer necessary due to aosp/889855 which moves all
apps to a shared tmpfs type. It's simpler, and significantly less 
likely to cause build breakages in downstream trees.
Bug: 122854450

Change-Id: I5226ff72c3fbae46822e40d7fbbacee9bc49c6db
2019-02-01 21:39:50 +00:00
Jeff Vander Stoep
5118df27c9 Merge "Treble-ize tmpfs access"
am: c1e9cab52d

Change-Id: I58128db3608f7b18176f6e5092d35cdd0ff5ff51
2019-01-26 23:52:43 -08:00
Treehugger Robot
c1e9cab52d Merge "Treble-ize tmpfs access" 2019-01-27 07:46:14 +00:00
Jeff Vander Stoep
f8b962729f Treble-ize tmpfs access
Declare *_tmpfs types for all vendor domains which need it.

Bug: 122854450
Test: Sepolicy-build tests
Test: build taimen-userdebug
Change-Id: Ifd18eea5cac0a21f5fe1e27212e35d71762a9905
(cherry picked from commit 4a137c011f)
2019-01-25 15:23:55 -08:00
Xin Li
b45a5fd147 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master
am: ca33faead8 -s ours
am skip reason: subject contains skip directive

Change-Id: I3e06b2b1712616aac8c5b1bfdcbae56cfe685463
2019-01-17 13:50:49 -08:00
Xin Li
ca33faead8 DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master
Bug: 122685541
Change-Id: I3c1e2724118c704c5be38382dc8e9265cd0a5152
2019-01-15 10:17:08 -08:00
Xin Li
fa3f88edb5 DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into stage-aosp-master
Bug: 122685541
Change-Id: Ic27d2e1087d9fb2500c07ab5111f886e13cbd9ae
2019-01-14 16:14:36 -08:00
android-build-team Robot
c4e47fd6eb Snap for 5230900 from 4b98d04b97 to pi-platform-release
Change-Id: I2c5a745d5f36f872915659853b2c070c2075229a
2019-01-14 22:11:50 +00:00
Justin Yun
f828e0e3ba Add option to increase inode count for test build
am: 749615f25a

Change-Id: I78822f18437db7a85201239ff5f9670d385edcf8
2019-01-13 20:35:04 -08:00
Justin Yun
749615f25a Add option to increase inode count for test build
To build with VNDK snapshot libs we need more inode count for the
devices without product partition.

Define PRODUCT_INCREASE_INODE_COUNT=true to double the INODE_COUNT.
This is available only for test builds, since it will consume some
space for system image.

Bug: 122706619
Test: PRODUCT_EXTRA_VNDK_VERSIONS=28 \
      PRODUCT_INCREASE_INODE_COUNT=true m -j

Change-Id: I7e57cf3d4896dbe38e6a112ef983894320026b42
2019-01-14 09:58:00 +09:00
Adam Seaton
4b98d04b97 January Pi-platform-release merges
Change-Id: If1b1c150ea1767e19ecdd88e0de22abdd3bc4f3b
2019-01-11 22:54:20 +00:00
Joel Galenson
c33afa20d0 Merge "Add Adam to OWNERS."
am: afeabbb7c9

Change-Id: Iad857ebe174660f021242ce662d818e5834123c7
2019-01-07 20:50:06 -08:00
Treehugger Robot
afeabbb7c9 Merge "Add Adam to OWNERS." 2019-01-08 04:41:12 +00:00
Tri Vo
6e2a801724 ueventd.rc: Move device-specific entries to /vendor/ueventd.rc.
am: a3a67a6bb9

Change-Id: Ia770b08c4d01db3c0d8eb6c50afdfab41a948655
2019-01-07 14:16:02 -08:00
Tri Vo
a3a67a6bb9 ueventd.rc: Move device-specific entries to /vendor/ueventd.rc.
Bug: 110962171
Test: boot taimen
Change-Id: I8b70913f6d128f7a53eb786d1e02e61423abe472
2019-01-06 16:25:40 -08:00
SalmaxChang
866d206666 rfs_access: Limit and specify tombstone_rfs_vendor_data_file label for rfs_access
am: fe77ce7472

Change-Id: I687740045eb1f138d539c01e7c13f9c84173b993
2018-12-22 02:16:53 -08:00
SalmaxChang
fe77ce7472 rfs_access: Limit and specify tombstone_rfs_vendor_data_file label for rfs_access
Bug: 121294677

Not impact existing tombstone_wifi_data_file label

Change-Id: Ifbeef88ee2de824b788ea971a2c893526c590d0a
Signed-off-by: SalmaxChang <salmaxchang@google.com>
2018-12-22 07:42:17 +00:00
SalmaxChang
4784c2a4bc selinux: rfs_access: fix tftp_server denials when operating on tombstones file
am: a82169492c

Change-Id: I5bc498049242cd64f676166404901d57d1e4122a
2018-12-21 23:41:02 -08:00
Chungjui Fan
650ae6d6ea Modify ramoops sepolicy due to some ramoops file paths are changed to vendor partition
am: e73d5d568d

Change-Id: Ibce12250b47a93a560754efcaf9fac2c7d54e778
2018-12-21 21:53:25 -08:00
SalmaxChang
a82169492c selinux: rfs_access: fix tftp_server denials when operating on tombstones file
Bug: 121294677

Sync and cherry-pick ag/4706915 to ASOP

Label and add sepolicy for tftp_server to operation on tombstones file
avc: denied { create } for name="modem" scontext=u:r:rfs_access:s0 tcontext=u:object_r:tombstone_vendor_data_file:s0 tclass=dir permissive=0

Change-Id: Ib01dc4fb3b6268817cc7d8d49430a47dd6993b50
Merged-In: I8cdaab1252ff934df92b7f4e52ba361f894f3227
Signed-off-by: SalmaxChang <salmaxchang@google.com>
2018-12-22 05:46:16 +00:00