Commit Graph

472 Commits

Author SHA1 Message Date
Naveen Kalla
ccae8ba222 Fix the name and interface of UCE Hal
Change the name and interface of UCE HAL to IUceService/uceservice0

Test: Ensure imsrcsd comes up and connects to UceShimService
      lshal should show the proper HAL

Change-Id: Ic6c1fdbbd44411519fa3313d5d03075616c8f6ce
2017-05-05 14:39:57 -07:00
TreeHugger Robot
d594caa602 Merge "AOD: move doze config flags to device/ tree" 2017-05-05 02:10:45 +00:00
David Lin
646e1e592b vibrator hal: add loop mode control and update waveform
This patch updates the click waveform to use 6 ms full amplitude as well
as switching to open-loop mode for any duration that's less than 20 ms.
The medium and strong now shares the same strength to provide a stronger
default feedback.

Bug: 37952639
Test: keyboard and home key taps
Change-Id: I00086e47e41d97ce8363ba4032eeab320ad1b765
Signed-off-by: David Lin <dtwlin@google.com>
2017-05-05 00:37:04 +00:00
Peng Xu
e95c2e5d4f Merge "Move multihal configuration file to /vendor" 2017-05-04 21:29:53 +00:00
TreeHugger Robot
5247fbaac6 Merge "Remove redundant dependencies" 2017-05-04 08:56:28 +00:00
Peng Xu
efb7f69d38 Move multihal configuration file to /vendor
Move hal configuration file to /vendor to satisfy treble requirement.

Test: wahoo sensor works
Bug: 35947802
Change-Id: I0ef5aff67653090791c1f11b79bc5f3420122aec
2017-05-03 17:53:14 -07:00
Max Bires
efd894d0f5 Fixing boot issue
Bug: 37956963
Test: Phone boots
Change-Id: I468190419a800045ef11058e9e86a853ec3d604a
2017-05-03 15:07:09 -07:00
Adrian Roos
01285a81fe AOD: move doze config flags to device/ tree
Change-Id: Ibd17e1a56dea0274b8d411bfd4a9cb3044df6fdb
Fixes: 37913858
Test: trigger AOD, verify with adb shell dumpsys that device is in low power display state
2017-05-03 14:33:54 -07:00
TreeHugger Robot
8ee51bb2b2 Merge "Adding allows and contexts to address the following denials" 2017-05-03 18:25:50 +00:00
Steven Moreland
582d2b5f99 Remove redundant dependencies
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.

Test: links
Bug: 33276472
Change-Id: Ie75f2af2a53c53cde3ebf5e76c7282261e3c7c74
2017-05-03 11:14:04 -07:00
Max Bires
4daa4aee1e Adding allows and contexts to address the following denials
denied  { write } for  pid=530 comm="ueventd" name="uevent" dev="sysfs"
ino=43389 scontext=u:r:ueventd:s0 tcontext=u:object_r:sysfs_laser:s0
tclass=file

denied { read } for pid=908 comm="perfd" name="modes" dev="sysfs"
ino=34248 scontext=u:r:perfd:s0 tcontext=u:object_r:sysfs:s0 tclass=file

denied  { relabelto } for  pid=1 comm="init" name="boot_b" dev="tmpfs"
ino=21880 scontext=u:r:init:s0 tcontext=u:object_r:boot_block_device:s0
tclass=lnk_file

denied  { write } for  pid=1 comm="init" name="debug_suspend"
dev="debugfs" ino=997 scontext=u:r:init:s0
tcontext=u:object_r:debugfs:s0 tclass=file

denied  { relabelto } for  pid=1 comm="init" name="vbmeta_b" dev="tmpfs"
ino=21885 scontext=u:r:init:s0 tcontext=u:object_r:ab_block_device:s0
tclass=lnk_file

denied { write } for pid=695 comm="light@2.0-servi" name="on_off_ms"
dev="sysfs" ino=46423 scontext=u:r:hal_light_default:s0
tcontext=u:object_r:sysfs:s0 tclass=file

denied { search } for pid=916 comm="gnss@1.0-servic" name="soc0"
dev="sysfs" ino=51314 scontext=u:r:hal_gnss_qti:s0
tcontext=u:object_r:sysfs_soc:s0 tclass=dir

denied { ioctl } for pid=798 comm="Loc_hal" path="socket:[64664]"
dev="sockfs" ino=64664 ioctlcmd=c302 scontext=u:r:hal_gnss_qti:s0
tcontext=u:r:hal_gnss_qti:s0 tclass=socket

denied { create } for pid=916 comm="Loc_hal"
scontext=u:r:hal_gnss_qti:s0 tcontext=u:r:hal_gnss_qti:s0 tclass=socket

denied { read } for pid=916 comm="gnss@1.0-servic" name="name"
dev="sysfs" ino=34701 scontext=u:r:hal_gnss_qti:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { read } for pid=916 comm="gnss@1.0-servic" name="subsys0"
dev="sysfs" ino=34709 scontext=u:r:hal_gnss_qti:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file

denied { read } for pid=916 comm="gnss@1.0-servic" name="hw_platform"
dev="sysfs" ino=51342 scontext=u:r:hal_gnss_qti:s0
tcontext=u:object_r:sysfs_soc:s0 tclass=file

denied { search } for pid=916 comm="gnss@1.0-servic" name="msm_subsys"
dev="sysfs" ino=19076 scontext=u:r:hal_gnss_qti:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

Bug: 34784662
Test: The above denials are no longer appearing in the logs
Change-Id: I3fbcc4686ceaf88194ca65d9c7c463a4d59e4c6f
2017-05-03 16:37:58 +00:00
TreeHugger Robot
e0d1021546 Merge changes from topic 'vndk_sp_in_muskie'
* changes:
  tag libdrm.so as same_proecess_hal_file
  muskie: copy vndk-sp libraries to /vendor/lib/vndk-sp
2017-05-03 15:16:26 +00:00
TreeHugger Robot
74eac717d5 Merge "allow wcnss_filter CAP_SYS_NICE, Bluetooth HAL binder to system_server" 2017-05-02 23:53:56 +00:00
TreeHugger Robot
cfeb1696f0 Merge "Adding in ioctl access to address hal_graphics... denials." 2017-05-02 23:15:31 +00:00
TreeHugger Robot
10b2cce2dc Merge "Fixing denials that prevented power supply detail access." 2017-05-02 23:07:54 +00:00
Max Bires
917cf47851 Adding in ioctl access to address hal_graphics... denials.
denied { ioctl } for path="/dev/video3" dev="tmpfs" ino=20567
ioctlcmd=5613 scontext=u:r:hal_graphics_composer_default:s0
tcontext=u:object_r:video_device:s0 tclass=chr_file

Bug: 37671626
Test: The denial no longer appears during camera operation
Change-Id: I5bc3a513190169e7e20c912318bc085f83901833
2017-05-02 14:18:39 -07:00
Max Bires
f9ad7c6fee Fixing denials that prevented power supply detail access.
Non-root shells didn't have access to capacity measurements; the file
context relabeling and shell access to search sysfs_msm_subsys dir's
fixed this.

Bug: 37875181
Test: cat /sys/class/power_supply/*/capacity returns values as a
non-root user

Change-Id: Iaa64f35b642bc656b8d7630aa621afffd61ae490
2017-05-02 13:20:40 -07:00
TreeHugger Robot
428a41ddbc Merge "Wifi Offload: IWYU" 2017-05-02 18:46:40 +00:00
Nick Desaulniers
0b02f792a4 Merge "fingerprint: upgrade to sw23" 2017-05-02 16:30:55 +00:00
Jiyong Park
d126b41580 tag libdrm.so as same_proecess_hal_file
libdrm.so is used by gralloc and gralloc is SP-HAL. So libdrm.so also
needs to be marked as same_process_hal_file.

Bug: 37483222
Test: ls -Z /vendor/lib/libdrm.so shows same_process_hal_file
Test: muskie boots

Change-Id: Ie5cbfebb035553c21136b0953851f15a1ac5506f
2017-05-02 13:00:54 +09:00
Jiyong Park
2c448274c6 muskie: copy vndk-sp libraries to /vendor/lib/vndk-sp
Note: this shouldn't be permanent solution. Anything that is installed
to /vendor partition must be compiled against the vndk build of the
system libraries, which might be different than the core build of the
libraries. However, since the number of such libraries are so many and
thus it takes considerable time to build them as vndk. So, in the mean
time, we just build vendor libraries against the core build as before
and copy the core builds to the vendor partition.

Bug: 37483222
Test: the listed files are in /vendor/lib(64?)/vndk-sp and their
contents are the same as those in /system/lib(64?).
Test: muskie/walleye boots

Change-Id: I143fb2cf8b6f3215a05582b23997150d75028adb
2017-05-02 13:00:54 +09:00
Steven Moreland
3a8eaea54b Wifi Offload: IWYU
Missing dependency that was being transitively included
from MQDescriptor.h.

Test: links
Bug: 37791060
Change-Id: I197ce3c98f647e2bfb1079e263b8ba71a2c93da9
2017-05-01 18:17:57 -07:00
TreeHugger Robot
b523193a48 Merge "overlay: frameworks/base/core config.xml" 2017-05-02 01:06:10 +00:00
TreeHugger Robot
ba55fe3743 Merge "Fixing the following denial for camera." 2017-05-02 00:34:26 +00:00
Jerry Zhang
c9288ecd61 Merge "Remove unused usb commands." 2017-05-01 23:19:17 +00:00
Thierry Strudel
404c1a8de4 overlay: frameworks/base/core config.xml
- Remove Brightness related as they are already in device specific overlay
 - Move relevant things that were defined in vendor here

Bug: 36603750
Change-Id: I613a261914d410accd7d2555c3b4bd48ac19df91
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-01 16:10:19 -07:00
Max Bires
f3b3c8208d Fixing the following denial for camera.
denied { open } for path="/dev/video3" dev="tmpfs" ino=19796
scontext=u:r:hal_graphics_composer_default:s0
tcontext=u:object_r:video_device:s0 tclass=chr_file

Bug: 37671626
Test: The denial no longer appears during camera functioning
Change-Id: I3e4f7c2aa450c756f5eb0026f79a8929d47fc24f
2017-05-01 23:03:41 +00:00
Kris Chen
1881a9c33b fingerprint: upgrade to sw23
integrate FPC SW23.1-ODR1.0 - use FPC HIDL implementation

Bug: 35443500
Change-Id: I4fb3c69dbc30d55ae5525c2b2f07f8855b74ed4f
2017-05-01 15:56:16 -07:00
Philip Cuadra
d158c13cce allow wcnss_filter CAP_SYS_NICE, Bluetooth HAL binder to system_server
wcnss_filter is on the critical path for Bluetooth audio playback.
It needs the ability to set critical threads to RT scheduling in order
to meet audio deadlines.

Bluetooth HAL needs to talk to system_server in order to call
SchedulingPolicyService to set priority of Bluetooth HAL threads to RT.

Bug 37518404
Test: play Bluetooth audio, verify threads are RT via systrace

Change-Id: I458055fe986e3b82b9f633a0e5be62e903e9fc50
2017-05-01 15:36:10 -07:00
Max Bires
c231ef1ea3 Fixing the following OTA blocking denials.
avc: denied { getattr } for pid=1142 comm="update_engine"
path="/postinstall" dev="dm-0" ino=42 scontext=u:r:update_engine:s0
tcontext=u:object_r:postinstall_mnt_dir:s0 tclass=dir

denied { read } for pid=952 comm="update_engine" name="vbmeta_b"
dev="tmpfs" ino=10173 scontext=u:r:update_engine:s0
tcontext=u:object_r:tmpfs:s0 tclass=lnk_file

denied { read } for pid=589 comm="boot@1.0-servic" name="boot_b"
dev="tmpfs" ino=10168 scontext=u:r:hal_bootctl_default:s0
tcontext=u:object_r:tmpfs:s0 tclass=lnk_file

Bug: 37848273
Test: OTAs function
Change-Id: Ie65507718ae63ff8401dfb2472a6c40993513f14
2017-05-01 22:26:02 +00:00
TreeHugger Robot
042c18fbcf Merge "Fixed boot issue selinux policy." 2017-05-01 21:09:53 +00:00
Jerry Zhang
5f5237b3db Merge "Enable MTP on functionfs for M/W/T." 2017-05-01 19:12:57 +00:00
Chris Forbes
13fd8e9fbf Merge "wahoo/muskie: advertise vulkan support" 2017-05-01 16:04:05 +00:00
TreeHugger Robot
c2899aa6ab Merge "Remove vr_wm from late-fs startup" 2017-05-01 15:03:30 +00:00
Chris Thornton
a8547307d4 Use bottom microphone for input to sound trigger use cases.
Test: Dumped audio from walleye/taimen to check it was using the bottom
mic.

Change-Id: Icc3f616719267033fd43ce69dfeb5824a7052524
2017-04-30 16:04:56 -07:00
TreeHugger Robot
1f03943760 Merge "Updated SEPolicy for camera/composer/sensors." 2017-04-29 06:55:04 +00:00
Guang Zhu
940ef509ca Merge "Revert "Enable metadata encryption"" 2017-04-29 00:01:34 +00:00
Guang Zhu
d4416d55a6 Revert "Enable metadata encryption"
Bug: 37792477

This reverts commit 0494fb84bc.

Change-Id: I119f97f1141ee69fa2902ef9931dde4b01492831
2017-04-28 23:59:15 +00:00
Nick Desaulniers
b219c5e86e Merge "Enable metadata encryption" 2017-04-28 21:29:30 +00:00
Martijn Coenen
75573c0fe5 Updated SEPolicy for camera/composer/sensors.
Removes binder violations for camera/hwcomposer HALs.

Bug: 36683636
Bug: 37302783
Test: muskie/taimen boot, graphics/camera works
Change-Id: Id3996b3ca11e2c4cb1d0df10e0f4a456829b8f9b
2017-04-28 21:05:17 +00:00
Daniel Nicoara
2fc983c8e0 Remove vr_wm from late-fs startup
surfaceflinger no longer depends on vr_wm starting early, so remove it
from here.

Bug: 36051907
Test: Compiled
Change-Id: I12e5d32a7a4525da67b06d59d239cdd0948f7ec7
2017-04-28 15:40:53 -04:00
Wei Wang
ce4c654ed3 Merge "PowerHAL: add cpubw boost for touch boost and app launch" 2017-04-28 19:32:15 +00:00
Wei Wang
3cc39749a8 PowerHAL: add cpubw boost for touch boost and app launch
Test: hint handled on muskie
Bug: 37548050
Change-Id: I441a2529d7fb1566a2159ccba17dfb5081ba787a
2017-04-28 10:13:57 -07:00
Chris Forbes
b2055fb87a wahoo/muskie: advertise vulkan support
Adds vulkan support level and version to system/etc/permissions;
fixes sepolicy so the vulkan driver can load.

Fixes tests in android.graphics.cts.VulkanFeaturesTest:
	- testVulkanHardwareFeatures
	- testVulkanVersionForVrHighPerformance

sepolicy change mostly borrowed from equivalent marlin config

Test: CtsGraphicsTestCases/android.graphics.cts.VulkanFeaturesTest
Bug: b/37719307
Change-Id: Ia99d6dacc8d8353cb7ef0e1cfaca0636708c5067
2017-04-28 16:03:44 +00:00
Bowgo Tsai
3357f4242c wahoo: enable verity_update_state
Bug: 36900078
Test: boot device, checks property [partition.system.verified] exists.

Change-Id: I5c719c4e191e80e80ec9d6f00eefe84551bd67c2
2017-04-28 04:20:33 +00:00
TreeHugger Robot
8a93fbce52 Merge "Add PRODUCT_FULL_TREBLE_OVERRIDE" 2017-04-28 00:46:31 +00:00
TreeHugger Robot
e6dec8464c Merge "PowerHAL: update vr-mode frequency locks" 2017-04-28 00:40:10 +00:00
John Dias
eae569c2c6 PowerHAL: update vr-mode frequency locks
Bug: 35490156
Test: boot, check freqs under vr, check wifi
Change-Id: Ia3d54c3844900afa25553d5ac19dc62ea5c4b31b
2017-04-27 15:40:36 -07:00
Kyunam.jo
2032d4e1d0 Fixed boot issue selinux policy.
denied { search } for pid=663 comm="rmt_storage" name="block" dev="tmpfs" ino=20145 scontext=u:r:rmt_storage:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0 duplicate messages suppressed
denied { read write } for pid=661 comm="sensors.qcom" name="diag" dev="tmpfs" ino=22650 scontext=u:r:sensors:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0
denied { net_bind_service } for pid=1167 comm="sensors.qcom" capability=10 scontext=u:r:sensors:s0 tcontext=u:r:sensors:s0 tclass=capability permissive=0
denied { read write } for pid=1165 comm="sensors.qcom" name="diag" dev="tmpfs" ino=21593 scontext=u:r:sensors:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0
denied { read write } for pid=1165 comm="sensors.qcom" name="diag" dev="tmpfs" ino=21593 scontext=u:r:sensors:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0
denied { search } for pid=1165 comm="sensors.qcom" name="/" dev="sda4" ino=2 scontext=u:r:sensors:s0 tcontext=u:object_r:persist_file:s0 tclass=dir permissive=0

Change-Id: I081c5ebb798245693fcf7ad6ec3df63b6f3bf67a
2017-04-27 15:39:52 -07:00
TreeHugger Robot
111304d628 Merge "Add userdata partition size for Wahoo." 2017-04-27 21:58:04 +00:00