Commit Graph

1542 Commits

Author SHA1 Message Date
Treehugger Robot
ea46f456cd Merge "Ban sharing data between platform and vendor processes" 2017-11-08 21:35:50 +00:00
Jeff Vander Stoep
87529b3f4b Ban sharing data between platform and vendor processes
Annotate processes that violate the ban including fingerprint and
widevine HALs.

Bug: 34980020
Test: build
Change-Id: I4afa03841e1648d4624e66bbd5ed21d09d357547
Merged-In: I4afa03841e1648d4624e66bbd5ed21d09d357547
(cherry picked from commit 458d1f6a6e)
2017-11-08 20:20:09 +00:00
Mikhail Naganov
943161347d Use /data/vendor/audio for Audio HAL data
This separates the data of audioserver from the data of the
hal_audio.

Bug: 35042759
Test: no SELinux denials for hal_audio
Change-Id: I2eafed4d8a620507e27cab3a9b84d829d003bcec
Merged-In: I1815c5debaa6d6d2076cebf8beb5acd36c6fe891
2017-11-08 10:31:55 -08:00
Treehugger Robot
2d2cd9670a Merge "Label /sys/devices/soc/{ c179000.i2c c1b5000.i2c } as sysfs_msm_subsys" 2017-11-08 02:56:32 +00:00
Tri Vo
cf5550fe6a Label /sys/devices/soc/{ c179000.i2c c1b5000.i2c } as sysfs_msm_subsys
On taimen some of the files under /sys/class/power_supply are symlinks
to these dirs.

Addresses these denials on taimen:
avc: denied { read } for comm="android.hardwar" name="type" dev="sysfs"
ino=50110 scontext=u:r:hal_health_default:s0
tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

avc: denied { read } for comm="android.hardwar" name="type" dev="sysfs"
ino=48182 scontext=u:r:hal_health_default:s0
tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Bug: 68962942
Test: builds, boots, files are correctly labeled.

Change-Id: I2b972f4f471b54097354d3e490a02300182a8e9a
2017-11-07 14:31:18 -08:00
Chih-Hung Hsieh
20197b4ece Use -Werror in device/google/wahoo
* Remove unused local variable.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I96228277b9c81b71e73e4e376d86cdea6cbcb647
2017-11-06 15:06:45 -08:00
Chih-Hung Hsieh
7d0bdbefcd Use -Werror in device/google/wahoo
* Remove unused variables.
* Return result of registerAsService().

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I79d1add6190e835de20a0b0c247bbbb259096c14
2017-11-02 15:26:20 -07:00
Tri Vo
1898ea64c2 Remove obdm_app access to proc label.
Instead give obdm_app read access to /proc/stat.

Bug: 65643247
Test: can login to obdm app without selinux denials

Merged-In: I368c018f883610364cd026da68085935aefd69c1
Change-Id: I368c018f883610364cd026da68085935aefd69c1
(cherry picked from commit 036ef1ebc2)
2017-11-01 22:11:45 -07:00
Bill Yi
31411fcf06 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD 2017-10-24 12:04:12 -07:00
Bill Yi
f0a717ba34 Initial empty repository 2017-10-23 16:07:28 +00:00
Tri Vo
f9ae2b0511 Move device-agnostic netd rules to fwk policy.
These were moved from vendor to fwk policy:
1. sysfs_net type declaration
2. labeling of /sys/devices/virtual/net with sysfs_net
3. netd access to sysfs_net

Bug: 65643247
Test: can browse internet without netd denials
Test: netd_unit_test, netd_integration_test without netd denials

Merged-In: I9e6ec7ab24039bc74a7e47f423222334fed8bf3a
Change-Id: I9e6ec7ab24039bc74a7e47f423222334fed8bf3a
(cherry picked from commit 661dbb6d30)
2017-10-20 23:08:03 +00:00
Dan Albert
28dfa2c208 Add missing includes.
Change-Id: I74ce25b3b5c918e371140b91f82ec00ff571f9fe
Exempt-From-Owner-Approval: trivial cleanup
Test: mma
Bug: None
2017-10-17 18:03:22 +00:00
Tom Cherry
a619805eda add libcutils to PRODUCT_STATIC_BOOT_CONTROL_HAL
This was picked up transitively previously, but that transitive
include is removed, so we include it explicitly here.

Test: build
Change-Id: I023831d0fbe474d363201f792bbfb3f7ea38cd9b
(cherry picked from commit c2b4ce4e0a)
2017-10-11 23:40:57 +00:00
Dan Cashman
93e9a16bcb Fix build. Revert "Move mediaprovider domain to wahoo"
This policy belongs in global policy.

(cherry-pick of commit: e498eb7ee2)

Bug: 62102757
Test: Builds and boots.
Change-Id: I099e1fbed6e1c648d0d5f1570ba3207c197f3233
2017-09-27 12:48:06 -07:00
Jeff Vander Stoep
c16eac8767 Fix build. Remove dup file_contexts label
/dev/input(/.*)? u:object_r:input_device:s0

Is now in core policy. Remove from device specific policy.

(cherry-pick of commit: 1fa31288a0)

Bug: 64954704
Test: build
Change-Id: Id16dccff58843e619e5197661f7ffabc22c3e213
2017-09-27 12:11:04 -07:00
Vineeta Srivastava
6f34234b50 Merge "Make brightness ramp rates multiples of 60." into oc-dr1-dev
am: 450b68d7ff

Change-Id: I916ef831c9bcbed288d3d78b4b198254e9fe4db7
2017-08-17 03:26:16 +00:00
Vineeta Srivastava
450b68d7ff Merge "Make brightness ramp rates multiples of 60." into oc-dr1-dev 2017-08-17 03:07:47 +00:00
John Dias
f107a42635 Merge "thermal: expose accurate thermistors in hal" into oc-dr1-dev
am: b7c424d990

Change-Id: If3d3e1867795c1bb107efee20aac57464ce31a04
2017-08-17 00:08:45 +00:00
TreeHugger Robot
b7c424d990 Merge "thermal: expose accurate thermistors in hal" into oc-dr1-dev 2017-08-16 23:00:40 +00:00
Michael Wright
fa9709b09a Make brightness ramp rates multiples of 60.
If ramp rates aren't even multiple of 60 then we're more likely to get
brightness changes that differ each frame, which can show up as a
stuttering in the animation.

Bug: 64514692
Test: made change, took systrace, saw smooth ramping
Change-Id: I48ec832f752a8aefb6185c1583141f2fb1a29e85
2017-08-16 22:34:33 +01:00
John Dias
2f75a0019a thermal: expose accurate thermistors in hal
A new thermistor was recently exposed on Taimen,
which shifted all the thermistor numbers, making
the hal innaccurate because it checks by number,
not name...

Bug: 62845934
Test: heat device and verify exactly when warning appears
Change-Id: I08e00296e622a85f5bbc45a7faf9b5024faacb10
2017-08-16 13:26:18 -07:00
Jayachandran C
ac96c979fd Merge "Remove SPN override for Rogers, DTAG and Telstra" into oc-dr1-dev
am: 923ff4e929

Change-Id: I1ce148bdd120954af530f7ab2cc7e6b280b1f620
2017-08-11 00:10:30 +00:00
TreeHugger Robot
923ff4e929 Merge "Remove SPN override for Rogers, DTAG and Telstra" into oc-dr1-dev 2017-08-11 00:05:53 +00:00
Naveen Kalla
d12603a99d Merge "Add selinux domain for verizon OBDM app" into oc-dr1-dev
am: 2a1b7561d9

Change-Id: I4fc0637486f3cd61383cd7d85edde06f22e1e578
2017-08-10 21:51:43 +00:00
TreeHugger Robot
2a1b7561d9 Merge "Add selinux domain for verizon OBDM app" into oc-dr1-dev 2017-08-10 21:40:34 +00:00
Jayachandran C
25fb8d5882 Remove SPN override for Rogers, DTAG and Telstra
Rogers, DTAG and Telstra want the actual SIM card SPN to be displayed

The entries in spn-conf.xml overrides the SIM SPN hence this CL disables it

Test: Validated using T-Mobile SIM card with same set of changes for T-Mobile

Bug: 64137294
Bug: 64139429

Merged-In: I3d3e1b1d2dc38a73a657fe7f9220dd894f967c67
Change-Id: I2b4d2cb87f6dd05302ba03c8abda46b9de7f8187
2017-08-10 17:51:48 +00:00
Naveen Kalla
cdddc5171c Add selinux domain for verizon OBDM app
Bug: 64546277
Test: Build and carrier testing
Change-Id: Ia2a996e6e726765b7452ee369f770acf295430c5
2017-08-10 16:20:45 +00:00
Ranjith Kagathi Ananda
b3862b3407 Merge "pre-grant permissions for Ornament app" into oc-dr1-dev
am: 66324b03d8

Change-Id: I11c8340fbb576e71a7f34b66b20827d2dbf43538
2017-08-10 06:30:12 +00:00
TreeHugger Robot
66324b03d8 Merge "pre-grant permissions for Ornament app" into oc-dr1-dev 2017-08-10 06:23:32 +00:00
Ranjith Kagathi Ananda
30ce4d393b pre-grant permissions for Ornament app
Add Camera, Storage and other permissions for Ornament app.

BUG=62444679
Test: Settings app shows the pre-grant permissions enabled

Change-Id: Idd53b816e025d1f0f7d1f888ac0675203e611d18
2017-08-09 23:35:14 +00:00
Chia-Kai Liang
cef9b8dc17 Merge "GOOG_LLV: Set fuse flag" into oc-dr1-dev
am: 4b9db7c262

Change-Id: I23154cc54f0bd3a271569d9ce722b8e05e586a27
2017-08-09 22:21:59 +00:00
TreeHugger Robot
4b9db7c262 Merge "GOOG_LLV: Set fuse flag" into oc-dr1-dev 2017-08-09 22:12:27 +00:00
Justin Klaassen
51deb43d3e Merge "Revert "Pre-grant READ_EXTERNAL_STORAGE for soundpicker"" into oc-dr1-dev
am: 61c1f1a1ef

Change-Id: I2b63bc9be79d3b289f51fd895630a781e1111f66
2017-08-09 17:57:20 +00:00
TreeHugger Robot
61c1f1a1ef Merge "Revert "Pre-grant READ_EXTERNAL_STORAGE for soundpicker"" into oc-dr1-dev 2017-08-09 17:43:37 +00:00
Chia-Kai Liang
20a7056e81 GOOG_LLV: Set fuse flag
Bug: 63152009
Test: Local build + CTS
Change-Id: I210912a9e798bd6875996ca79692a298b7b7502f
2017-08-09 09:52:50 -07:00
Thierry Strudel
1ce944b718 Merge "init.hardware.rc: androidboot.hardware.revision set by bootloader on walleye" into oc-dr1-dev
am: 922d5ec3de

Change-Id: Idb758096366386973b844d3d49ff6e9d74fb460b
2017-08-09 04:35:49 +00:00
Thierry Strudel
922d5ec3de Merge "init.hardware.rc: androidboot.hardware.revision set by bootloader on walleye" into oc-dr1-dev 2017-08-09 04:26:36 +00:00
Ranjith Kagathi Ananda
05cae99117 Merge "sepolicy: Rename com.google.arcore to com.google.ar.core" into oc-dr1-dev
am: 2bfa33e92d

Change-Id: I6e70c0cd523b19c3b2dc69830309ae4dce602a02
2017-08-09 01:41:11 +00:00
TreeHugger Robot
2bfa33e92d Merge "sepolicy: Rename com.google.arcore to com.google.ar.core" into oc-dr1-dev 2017-08-09 01:31:24 +00:00
Ranjith Kagathi Ananda
a7e7e139ed sepolicy: Rename com.google.arcore to com.google.ar.core
Rename com.google.arcore to com.google.ar.core and add
arcore app keys

BUG=64121848
Test: Basic sanity

Change-Id: I7e0d6b3072da1b20177e43071598742d24b3bb5b
2017-08-08 15:53:16 -07:00
Sooraj Sasindran
d9cf40769f Correct the property name to not drop packets
am: d5bb37eee9

Change-Id: I89300b461186f437087dd807866b1fd66791f8cf
2017-08-08 19:42:20 +00:00
Thierry Strudel
bf124eba35 init.hardware.rc: androidboot.hardware.revision set by bootloader on walleye
Taimen is setting this property in init-taimen.rc file

Bug: 64375827
Change-Id: I1f1fad799e84c21551ac0ff6fe3d9f1d33f8a4fa
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-08-08 11:39:49 -07:00
Sooraj Sasindran
d5bb37eee9 Correct the property name to not drop packets
correct the property name to not drop packets based upon
enqueue sequence to avoid freeze.

BUG=63274801

Change-Id: I5a5c336c7e3f1e90e4ed05bc731747998a15e51b
2017-08-08 10:21:04 -07:00
Zhijun He
2fe3e55fde remove nfc WAR
am: 73e6d37cd6

Change-Id: I07c6bf30821a6832298558228809ac9f79688b8d
2017-08-08 06:05:13 +00:00
Zhijun He
73e6d37cd6 remove nfc WAR
taimen doesn't have this issue.

Bug: 38217362
Change-Id: I874453255149be411ef62ba5c670b23499e88754
2017-08-07 18:36:25 -07:00
Justin Klaassen
8e22bb4aaf Revert "Pre-grant READ_EXTERNAL_STORAGE for soundpicker"
This reverts commit 06e79629d6.

Bug: 63355851
Bug: 64112806
Test: DefaultPermissionGrantPolicyTest#testDefaultGrant
Change-Id: I4ae1bbacbc07be30324bdf7c03fa0e42b677be28
2017-08-07 16:39:20 -07:00
Qingxi Li
7a46e4c7ac Merge "Remove testing OTA images." into oc-dr1-dev
am: 1ef1249575

Change-Id: Ic7899e35554794db6fb88e7e6a3f8893ebf3d026
2017-08-07 22:25:01 +00:00
Steve Pfetsch
79e6aa27ba Merge "sepolicy: move ftm4 sepolicy" into oc-dr1-dev
am: 16be8f0958

Change-Id: I5f7f236595d2967bb22bc30f4fcc8621da41866d
2017-08-07 22:24:24 +00:00
Qingxi Li
1ef1249575 Merge "Remove testing OTA images." into oc-dr1-dev 2017-08-07 22:23:44 +00:00
TreeHugger Robot
16be8f0958 Merge "sepolicy: move ftm4 sepolicy" into oc-dr1-dev 2017-08-07 22:16:22 +00:00