Commit Graph

1242 Commits

Author SHA1 Message Date
David Lin
dadffa4d96 Merge "haptics: Implement constant effect for heavy click" into pi-dev am: b7f5c29f5f
am: 8d8fd690de

Change-Id: Ib59bf49360e27c6e2c1a5dcd8446d7ee7bcababf
2018-04-17 15:40:20 -07:00
David Lin
811d138338 haptics: Implement constant effect for heavy click
This patch implements support for heavy click effect which has the
following UX requirements:

- 8 ms in square wave and full amplitude for Walleye
- 12 ms in square wave and full amplitude for Taimen

Bug: 77863933
Test: manual long press test
Change-Id: Ibc30117fecb234a6b400123e5f18a7c100ae36cb
Signed-off-by: David Lin <dtwlin@google.com>
2018-04-17 10:29:18 -07:00
Sooraj Sasindran
1cffe8e0cf Merge "Give access persist.radio access" into pi-dev am: 7ee031af14
am: a7c2457f2e

Change-Id: I48635023b2957f1d50349f4728d0f66417ae5383
2018-04-17 00:51:49 -07:00
TreeHugger Robot
7ee031af14 Merge "Give access persist.radio access" into pi-dev 2018-04-17 07:33:34 +00:00
Sooraj Sasindran
98e3e69245 Give access persist.radio access
Give persist.radio access to connectivity monitor

Bug: 73953318
Test: verified that connectivy monitor works
      fine
Change-Id: Idbcb87f45f809aa9fef00b8a6f2e191cf7e562f8
2018-04-16 21:33:34 -07:00
TreeHugger Robot
8010c0b1ed Merge "Add bug_map entries for bugs we've seen." into pi-dev 2018-04-17 04:02:40 +00:00
Joel Galenson
4db64bf671 Add bug_map entries for bugs we've seen. am: e97c886ed9 am: 03f0a3aa81
am: edbc26bdda

Change-Id: I5630a6807a5a5aecd194720ee87f666733e09016
2018-04-16 16:55:34 -07:00
Joel Galenson
edbc26bdda Add bug_map entries for bugs we've seen. am: e97c886ed9
am: 03f0a3aa81

Change-Id: I22ecd2f32b3497abeebf42ede48f223b0dc144b1
2018-04-16 16:13:24 -07:00
Joel Galenson
03f0a3aa81 Add bug_map entries for bugs we've seen.
am: e97c886ed9

Change-Id: I0ea8761dd188b1d6e161c45f97ee96572771bfdd
2018-04-16 16:01:52 -07:00
Joel Galenson
267d8aeabf Add bug_map entries for bugs we've seen.
This adds numerous bug_map entries to try to annotate all denials
we've seen.

Bug: 78117980
Test: Build
Change-Id: I78923ebeb8837e09920941450d40504da3924022
(cherry picked from commit e97c886ed9)
2018-04-16 15:58:42 -07:00
Joel Galenson
4398397246 Allow some denials we have seen.
This addresses the following denials:

avc: denied { module_request } for comm="dnsmasq" kmod="netdev-bt-pan" scontext=u:r:dnsmasq:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
avc: denied { module_request } for comm="allocator@2.0-s" kmod="crypto-heh(aes)" scontext=u:r:hal_graphics_allocator_default:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
avc: denied { module_request } for comm="android.hardwar" kmod="crypto-hmac(sha256)" scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
avc: denied { sigkill } for comm="netmgrd" scontext=u:r:netmgrd:s0 tcontext=u:r:netutils_wrapper:s0 tclass=process permissive=0
avc: denied { sys_module } for comm="android.fg" capability=16 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=capability permissive=0
avc: denied { search } for comm="cnss-daemon" name="net" dev="sysfs" scontext=u:r:wcnss_service:s0 tcontext=u:object_r:sysfs_net:s0 tclass=dir permissive=0

Bug: 78117980
Test: Build.
Change-Id: I7e201147271a32ea8420406af221aa7678374d78
(cherry picked from commit cd761300c1)
2018-04-16 10:45:58 -07:00
TreeHugger Robot
a071ea2c5d Merge "Allow some denials we have seen." 2018-04-16 17:37:43 +00:00
Joel Galenson
e97c886ed9 Add bug_map entries for bugs we've seen.
This adds numerous bug_map entries to try to annotate all denials
we've seen.

Bug: 78117980
Test: Build
Change-Id: I78923ebeb8837e09920941450d40504da3924022
2018-04-16 10:34:15 -07:00
TreeHugger Robot
7b4d161267 Merge "Use proc_net_type for /proc/net access" 2018-04-13 22:09:03 +00:00
Joel Galenson
83ccae8028 Merge "Handle some diag-related denials."
am: 63b4c05de1

Change-Id: I901b1338491ea037ab1d6ef40085e893bc24eb0a
2018-04-13 13:57:33 -07:00
Treehugger Robot
63b4c05de1 Merge "Handle some diag-related denials." 2018-04-13 20:44:04 +00:00
Joel Galenson
cd761300c1 Allow some denials we have seen.
This addresses the following denials:

avc: denied { module_request } for comm="dnsmasq" kmod="netdev-bt-pan" scontext=u:r:dnsmasq:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
avc: denied { module_request } for comm="allocator@2.0-s" kmod="crypto-heh(aes)" scontext=u:r:hal_graphics_allocator_default:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
avc: denied { module_request } for comm="android.hardwar" kmod="crypto-hmac(sha256)" scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:r:kernel:s0 tclass=system permissive=0
avc: denied { sigkill } for comm="netmgrd" scontext=u:r:netmgrd:s0 tcontext=u:r:netutils_wrapper:s0 tclass=process permissive=0
avc: denied { sys_module } for comm="android.fg" capability=16 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=capability permissive=0
avc: denied { search } for comm="cnss-daemon" name="net" dev="sysfs" scontext=u:r:wcnss_service:s0 tcontext=u:object_r:sysfs_net:s0 tclass=dir permissive=0

Test: Build.
Change-Id: I7e201147271a32ea8420406af221aa7678374d78
2018-04-13 13:41:44 -07:00
TreeHugger Robot
ff468bf2b4 Merge "Suppress hal_wifi_default module loading denials." into pi-dev 2018-04-13 20:34:55 +00:00
Joel Galenson
95430a2cdc Merge "Handle some diag-related denials." into pi-dev
am: 9bca65d293

Change-Id: Ia8ff1c5ede576b837d80d5ff6562ccec8b926059
2018-04-13 07:48:36 -07:00
TreeHugger Robot
9bca65d293 Merge "Handle some diag-related denials." into pi-dev 2018-04-13 14:39:38 +00:00
Joel Galenson
9166e1bc1f Suppress hal_wifi_default module loading denials. am: 82ee41e471 am: faf341cf1a
am: 3a04a19d0a

Change-Id: I3592ca5598aece6c64d5eefefe83f7ea5af57550
2018-04-12 14:30:17 -07:00
Joel Galenson
3a04a19d0a Suppress hal_wifi_default module loading denials. am: 82ee41e471
am: faf341cf1a

Change-Id: I887ad10a85e7ba3d5b6057ac33f864bc8c755979
2018-04-12 14:12:44 -07:00
Joel Galenson
faf341cf1a Suppress hal_wifi_default module loading denials.
am: 82ee41e471

Change-Id: Ib3757832805b240aad444b6d77a1214e94983899
2018-04-12 14:08:43 -07:00
Joel Galenson
aa293f7fa9 Suppress hal_wifi_default module loading denials.
This suppresses the following denials:

avc: denied { module_request } for comm="android.hardwar" kmod="netdev-wlan0" scontext=u:r:hal_wifi_default:s0 tcontext=u:r:kernel:s0 tclass=system
avc: denied { sys_module } for comm="android.hardwar" capability=16 scontext=u:r:hal_wifi_default:s0 tcontext=u:r:hal_wifi_default:s0 tclass=capability

Bug: 77973826
Test: Boot device.
Change-Id: I2eb4789892172cb119f50084cfe9718d8ead647d
(cherry picked from commit 82ee41e471)
2018-04-12 13:50:28 -07:00
Joel Galenson
82ee41e471 Suppress hal_wifi_default module loading denials.
This suppresses the following denials:

avc: denied { module_request } for comm="android.hardwar" kmod="netdev-wlan0" scontext=u:r:hal_wifi_default:s0 tcontext=u:r:kernel:s0 tclass=system
avc: denied { sys_module } for comm="android.hardwar" capability=16 scontext=u:r:hal_wifi_default:s0 tcontext=u:r:hal_wifi_default:s0 tclass=capability

Test: Boot device.
Change-Id: I2eb4789892172cb119f50084cfe9718d8ead647d
2018-04-12 11:03:49 -07:00
Jeff Vander Stoep
20dd98da69 Merge "Track spurious hal_imrsc selinux denial"
am: 85b730d225

Change-Id: I28281227c2eb21c77252334030886b914fb809da
2018-04-12 02:46:00 -07:00
Treehugger Robot
85b730d225 Merge "Track spurious hal_imrsc selinux denial" 2018-04-12 09:38:26 +00:00
TreeHugger Robot
5d9c327f6e Merge "hal_tetheroffload: move hwservice mapping to core policy" into pi-dev 2018-04-12 03:59:29 +00:00
Jeff Vander Stoep
513920583c Merge "hal_tetheroffload: move hwservice mapping to core policy" am: ea7df4a1e2 am: 6639c13104
am: c8407c6546

Change-Id: I203561fb53ca0170e759683b1c2d90351a606bc0
2018-04-11 17:57:12 -07:00
Jeff Vander Stoep
c8407c6546 Merge "hal_tetheroffload: move hwservice mapping to core policy" am: ea7df4a1e2
am: 6639c13104

Change-Id: I8c14deefc3845a404979f7c9b8f795a892cbfcce
2018-04-11 17:46:51 -07:00
Jeff Vander Stoep
6639c13104 Merge "hal_tetheroffload: move hwservice mapping to core policy"
am: ea7df4a1e2

Change-Id: Ie2d4073e63af547aad5a238ff91d8520a5d7eb9a
2018-04-11 17:44:09 -07:00
Treehugger Robot
ea7df4a1e2 Merge "hal_tetheroffload: move hwservice mapping to core policy" 2018-04-12 00:34:22 +00:00
Jeff Vander Stoep
50939a9413 Track spurious hal_imrsc selinux denial am: e2be8c24de
am: 43fa7ece49

Change-Id: I16ea976b336572054c8102381b1bf91705214f7c
2018-04-11 17:12:58 -07:00
Jeff Vander Stoep
bc39aadff8 hal_tetheroffload: move hwservice mapping to core policy
Addresses:
avc: denied { find } for
interface=android.hardware.tetheroffload.config::IOffloadConfig
scontext=u:r:system_server:s0
tcontext=u:object_r:default_android_hwservice:s0
tclass=hwservice_manager

Bug: 77855688
Test: build/boot Sailfish, turn on tethering, no selinux denial
Change-Id: I97cae0928b5311a4da41d19cbd5c863c3137a49f
(cherry picked from commit 8424d3b945)
2018-04-11 15:03:55 -07:00
Jeff Vander Stoep
8424d3b945 hal_tetheroffload: move hwservice mapping to core policy
Addresses:
avc: denied { find } for
interface=android.hardware.tetheroffload.config::IOffloadConfig
scontext=u:r:system_server:s0
tcontext=u:object_r:default_android_hwservice:s0
tclass=hwservice_manager

Bug: 77855688
Test: build/boot Sailfish, turn on tethering, no selinux denial
Change-Id: I97cae0928b5311a4da41d19cbd5c863c3137a49f
2018-04-11 14:57:58 -07:00
Jeff Vander Stoep
e400e47c4b Use proc_net_type for /proc/net access
Prevent relabeling of files in /proc/net from accidentally removing
access that was previously granted.

Bug: 9496886
Bug: 68016944

Test: Boot Taimen-userdebug. On both wifi and cellular: stream youtube
    navigate maps, send text message, make voice call, make video call.
    Verify no avc "granted" messages in the logs.
Test: A few VPN apps including "VPN Monster", "Turbo VPN", and
"Freighter". Verify no logspam with the current setup.
Test: atest CtsNativeNetTestCases
Test: atest netd_integration_test
Test: atest QtaguidPermissionTest
Test: atest FileSystemPermissionTest

Change-Id: Id7e271b0a417ed636c72f80c500a465c16d4304f
2018-04-11 13:17:34 -07:00
Jeff Vander Stoep
d2bd37c7e4 Track spurious hal_imrsc selinux denial
Caused by changes in b/77725358.

Track:
avc: denied { read } for comm="ims_rtp_daemon"
name="u:object_r:default_prop:s0" scontext=u:r:hal_imsrtp:s0
context=u:object_r:default_prop:s0 tclass=file

Bug: 77725358
Test: build/boot Taimen
Change-Id: Ic6234905e1694cab4bb8ef385f3dbe5455ef35b6
(cherry picked from commit e2be8c24de)
2018-04-11 12:25:08 -07:00
Jeff Vander Stoep
e2be8c24de Track spurious hal_imrsc selinux denial
Caused by changes in b/77725358.

Track:
avc: denied { read } for comm="ims_rtp_daemon"
name="u:object_r:default_prop:s0" scontext=u:r:hal_imsrtp:s0
context=u:object_r:default_prop:s0 tclass=file

Bug: 77725358
Test: build/boot Taimen
Change-Id: Ic6234905e1694cab4bb8ef385f3dbe5455ef35b6
2018-04-11 12:03:07 -07:00
Joel Galenson
daa6fec44f Handle some diag-related denials.
This allows the behavior on userdebug and eng builds and hides it on
user builds.

Bug: 77908806
Test: Boot device.
Change-Id: I936f08283bcd03ef88c55b3849f54d2dab5a5d64
(cherry picked from commit 3e3da1baaa)
2018-04-11 11:14:20 -07:00
Jaekyun Seok
7f02276ba1 Correct misspelled "perist." with "persist." (5/5) am: 7a12e2e56a
am: bdf278b804

Change-Id: I986d1e0594c8e5ff26895e1f07bdce8a34b0037b
2018-04-10 18:21:04 -07:00
Joel Galenson
fac73dd84c Handle some diag-related denials.
This allows the behavior on userdebug and eng builds and hides it on
user builds.

Test: Boot device.
Merged-In: I936f08283bcd03ef88c55b3849f54d2dab5a5d64
Change-Id: I2b9df0f941b25c7813bf2410e94e14f24a7915a6
2018-04-10 15:47:50 -07:00
TreeHugger Robot
146104bc82 Merge "Handle some diag-related denials." 2018-04-10 22:46:08 +00:00
Max Bires
e913b6a740 Adding rw access to diag_device for hal_gnss_qti
am: 2127a72275

Change-Id: Ied7a1dc31f8b1f2e4c904c5eb3362f54e0b3f24e
2018-04-10 15:26:58 -07:00
Joel Galenson
3e3da1baaa Handle some diag-related denials.
This allows the behavior on userdebug and eng builds and hides it on
user builds.

Test: Boot device.
Change-Id: I936f08283bcd03ef88c55b3849f54d2dab5a5d64
2018-04-10 13:12:45 -07:00
Max Bires
2127a72275 Adding rw access to diag_device for hal_gnss_qti
denied { read write } for pid=751 comm="Loc_hal" name="diag" dev="tmpfs"
ino=10674 scontext=u:r:hal_gnss_qti:s0
tcontext=u:object_r:diag_device:s0 tclass=chr_file

Test: on userdebug/eng builds, hal_gnss_qti can access diag_device
without generating denials

Change-Id: I571e4a4a470f3550c22a7af3145468baa4e0a155
(cherry picked from commit 365c33bb37)
2018-04-10 13:06:28 -07:00
Jaekyun Seok
7a12e2e56a Correct misspelled "perist." with "persist." (5/5)
Bug: 77725358
Test: succeeded building
Change-Id: I8fbf7a8718f409f87410a7b9b1b45ab122620417
2018-04-10 15:51:29 +09:00
Joel Galenson
6a9651b762 Track vendor_init SELinux denial.
This should help fix presubmit tests.

Bug: 77635294
Test: Built policy.
Change-Id: I884ee75106c055aa7eb7af9f373d18e828a9f4e9
(cherry picked from commit 1c81d19b81)
2018-04-09 12:54:57 -07:00
Chenbo Feng
f35218b609 Merge "Allow RILD to read xt_qtaguid iface stats on wahoo" into pi-dev
am: 5fb4818d68

Change-Id: Ib10d1bd7b022f99fd483a3d35097b00fb3c132e6
2018-04-09 12:05:45 -07:00
TreeHugger Robot
5fb4818d68 Merge "Allow RILD to read xt_qtaguid iface stats on wahoo" into pi-dev 2018-04-09 18:43:18 +00:00
Alan Stokes
2415dc1335 Add /sys/kernel/memory_state_time to sysfs_power.
am: a60f2873a5

Change-Id: I5cc07cf145cded7e852bf321cb752d4ca6493982
2018-04-09 01:10:07 -07:00