Commit Graph

324 Commits

Author SHA1 Message Date
Etan Cohen
5232d40757 [AWARE] Enable Wi-Fi Aware feature support.
Enable the Wi-Fi Aware feature on:
- Add feature to framework
- Device HAL feature

Bug: 36088628
Test: integration (non-data-path) sl4a tests pass
Change-Id: I3e2dca6477b27b466e2b074c70595813fe365973
2017-04-19 16:04:24 -07:00
Subhani Shaik
9d144330ce Enable NAN data path
Bug: 37166810
Change-Id: Ibccc9c36a25799337287add3b124c6e03dc50c26
2017-04-19 16:04:17 -07:00
TreeHugger Robot
9e627ea90b Merge "power_profile: Fix overlays for wahoo" 2017-04-19 00:40:04 +00:00
taekwoo.nam
b45c4031ad liblight: Change the node for the low persistence mode.
To synchronize the kernel driver, changed the path.

Bug: 36660610
Change-Id: Ieaf9e46dd4ce7d0aad91a1f7bfa486029be1816a
2017-04-18 22:29:33 +00:00
TreeHugger Robot
28c5158c95 Merge "Add camera package to default dnd access list." 2017-04-18 21:48:28 +00:00
Matt Sharifi
fe81b2237b Add camera package to default dnd access list.
Test: Built system image.
Change-Id: I09c9e26adf4c1254b63f44271c0da4378c7bd807
2017-04-18 22:11:01 +02:00
TreeHugger Robot
6cfe1a87b8 Merge "Add OemLock and Weaver HAL server policies for esed." 2017-04-18 14:50:47 +00:00
Chris Thornton
c5cbcafe02 Add the music detector to sound_trigger_platform_info.xml
Currently uses a duplicate instance of the hotword code, until the
merged API exists from QC. Also uses the buffer from the hotword
codepath, because it the ACDB files do not appear to support multiple
sinks.

Test: On device with the SoundTriggetTestApp.
Change-Id: I06da9f5c8fdf4e5e244148b47830b6fd067d7f80
2017-04-17 17:16:26 -07:00
Andrew Lehmer
44aa09e865 Merge "folio_daemon: improve logging for debugging" 2017-04-17 23:21:01 +00:00
TreeHugger Robot
7da32ac2d6 Merge "camera: enable TNR for preview and video" 2017-04-17 23:02:11 +00:00
Naseer Ahmed
d5c89d423f wahoo: Add support for display calibration data
Bug: 37429752
Change-Id: I580288d081a8e64e80a8f2031c0e9a4eda6e1f51
2017-04-17 14:28:13 -07:00
Zhijun He
a19299f015 camera: enable TNR for preview and video
Bug: 36564404
Change-Id: I49d6653a659649ea5a8bbb722ad0e8bd65ecfef5
2017-04-17 14:15:23 -07:00
TreeHugger Robot
0c7ec5965d Merge "Fixing denials for OTAs" 2017-04-17 20:51:08 +00:00
Wei Wang
fbb24f4a95 Merge "init.hardware.rc: remove cpuset" 2017-04-17 20:03:03 +00:00
Andrew Lehmer
7c58dfb1de folio_daemon: improve logging for debugging
Bug: 37402669
Test: loaded on walleye
Change-Id: I9cfd071158386d3eb15a5b81656b09452c7fed15
2017-04-17 12:19:05 -07:00
Max Bires
c6607276b3 Fixing denials for OTAs
denied { read } for pid=818 comm="update_engine" name="sda13"
dev="tmpfs" ino=21751 scontext=u:r:update_engine:s0
tcontext=u:object_r:ab_block_device:s0 tclass=blk_file

denied { read } for pid=818 comm="update_engine" name="sda7" dev="tmpfs"
ino=21727 scontext=u:r:update_engine:s0
tcontext=u:object_r:modem_block_device:s0 tclass=blk_file

denied { getattr } for pid=818 comm="update_engine" path="/postinstall"
dev="sda43" ino=42 scontext=u:r:update_engine:s0
tcontext=u:object_r:postinstall_mnt_dir:s0 tclass=dir

Bug: 37305560
Test: These denials are not present
Change-Id: I47bc5743c58c4c56b95614f0a170d7af16ae2b53
2017-04-17 11:39:48 -07:00
TreeHugger Robot
642c6681aa Merge "wahoo: enable audio rotation feature" 2017-04-17 18:35:04 +00:00
TreeHugger Robot
63df0e8632 Merge "soundfx: add audio effects to product package" 2017-04-17 17:24:23 +00:00
Christine Franks
5648453aa9 Merge "Add config_setColorTransformAccelerated" 2017-04-17 17:21:16 +00:00
Ecco Park
6eaee489a7 Wifi: enable decode mode for cnss_diag local buffer
Currently There is no way to decode firmware offline.
So, it makes sense to enable decode mode for local bufffer by default

Change-Id: I9d3659debd23ff8f214a94aff7fe15ca7ca7c33e
Signed-off-by: Ecco Park <eccopark@google.com>
2017-04-17 09:40:07 -07:00
TreeHugger Robot
472651f03c Merge "Set graphics driver package name" 2017-04-16 22:34:03 +00:00
Sandeep Patil
59b3eaccd3 tag all vendor domains that rely on system executables
Bug: 36463595
Test: lunch walleye-userdebug && make sepolicy

Change-Id: I7ec48b3109d66f9537e5834933ed28aa76da367e
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-04-15 19:30:07 -07:00
Sandeep Patil
1f85c07202 make all vendor exec_types part of vendor_file_type
Bug: 36463595
Test: lunch walleye-userdebug && make -j48 sepolicy

Change-Id: Idbc83b06edcb3eb2ea548a16ed93f711cda150c1
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-04-15 19:23:59 -07:00
Andrew Scull
1b416dc8d2 Add OemLock and Weaver HAL server policies for esed.
Test: Boot daemon and connect to HALs from framework.
Bug: 35628284
Change-Id: I43a1ad5df401f9e9c39d107311d6a670abdce2f0
2017-04-15 14:42:59 +01:00
Joel Fernandes
2d3fe995f5 Merge "init: Reserve CPUs for top-app correctly in EAS 1.2" 2017-04-15 02:51:53 +00:00
Roopesh Rajashekharaiah Nataraja
50ffa4a8d9 IMS: Define sepolicies for UCE
UCE is user capability exchange functionality where the device notifies
the network its capabilities and can also find out the capabilities of a
different user from the network. Capabilities such as VoLTE,
Video Telephony, etc.

/external/ims/rcs contains the open source code that needs to interact
with the IMS stack in the modem. The UCE HAL acts as a bridge between
the ims stack in the modem and the open source code that provides
the UCE functionality that is used by Android Apps such as Phone and
Contacts.

Previous architecture was as follows:
UCE client app (aosp, system) <--> AIDL (AOSP) <-->
uce_service (system app) <--> (JNI vendor) <-->
(IMS libs: vendor) <--> modem

With Treble we have formed a clean separation between system and
vendor components: UCE app (aosp, system) <--> AIDL (aosp) <-->
UCEService <--> system/priv-app) <--> (HIDL, vendor) <-->
imrcsd (vendor daemon) <--> modem

Hope is that in future the vendor UCE HIDL is absorbed in AOSP and
we can deprecate the UCE Service system app altogether.

Add policies and permissions for UCE HAL service and UCE HAL client to
run and execute.

Bug: 37262741
Test: Check capability in contacts for VT calling

Change-Id: If426c1c046a2acd16ac30f25e15daf4aa0de1383
2017-04-14 17:58:55 -07:00
Roopesh Rajashekharaiah Nataraja
4505392eca ims: Uce Enabling Uce-HIDL-Service on init
Bug: 37262741
Test: Check capability in contacts for VT calling

Change-Id: If2ecb3280368c7ff7bf5d32937efd26a06b6ef24
2017-04-14 17:58:55 -07:00
Meng Wang
f5dd6ef2d9 Merge "Add APNs for Videotron CA" 2017-04-15 00:15:47 +00:00
Meng Wang
48ec4bc322 Add APNs for Videotron CA
Bug: 35952952
Test: make
Change-Id: Iee94cdcff61892ea62aa0134f1fc61ecd14c9810
2017-04-14 17:05:27 -07:00
Jesse Hall
52e963c176 Set graphics driver package name
This has the side effect of disabling preloading of the EGL/GLES drivers
in Zygote.

Bug: 37323602
Test: confirm driver not loaded in zygote, run gles3jni + vulkanGears
Change-Id: I4231ada91ba7dda7f7d6f8cff1de7957c24f2d99
2017-04-14 14:55:51 -07:00
TreeHugger Robot
6d4b9245f0 Merge "init.hardware.rc: disable retention" 2017-04-14 20:43:30 +00:00
Vinay Kalia
d61b2c2cee power_profile: Fix overlays for wahoo
Muskie and Wallye overlays should override the overlays defined
in wahoo. Also, resources outside of the "values" directory are
overlayed by the file so there is no need of power_profile.xml
for wahoo since muskie and walleye will always override it completely.

BUG: 36796913
Test: Verified "App usage since last charge" under Settings->Battery
Change-Id: Idc0bbe8920bf209d7cd721ea2b7fb32647d30ec2
2017-04-14 13:29:45 -07:00
Matt Sharifi
993867ac72 Merge "Add defaultDndAccessPackages to wahoo overlay." 2017-04-14 19:21:21 +00:00
Wei Wang
619eea54f9 init.hardware.rc: disable retention
Retention is leading to increased rendering time, and has not been
measured to provide any power benefit. This Cl is to remove that.

Bug: 37287554
Test: muskie boot and check retention disabled after boot
Change-Id: Id6162070220b792958dce91758660c0d2aed0195
2017-04-14 11:47:52 -07:00
Matt Sharifi
a9df0592a0 Add defaultDndAccessPackages to wahoo overlay.
This is required for the Smart Notifications feature (b/30982945) to
provide DND rules.

Test: NA
Change-Id: I826da7f5189a06effd0dda331852cc3d9a31f202
2017-04-14 18:39:12 +02:00
Mikhail Naganov
e1e3e5bdf7 soundtrigger: Use "default" instance name for HAL service
"default" implies using "primary" legacy device module.
This doesn't change anything for binderized mode, because
the server was only registering itself as "sound_trigger.primary",
so it was the only possibility anyways.

Usage of "stub" (debugging) module is still possible
if audioflinger and corresponding services are built with
USE_LEGACY_LOCAL_AUDIO_HAL=true (added makefile check to ensure
that).

Change-Id: Idc69c2ae1e0a02a7d2134f469f65d6de72aa5fe9
Test: "Ok Google" from screen off state on sailfish
Bug: 36570720
2017-04-14 15:52:23 +00:00
Wei Wang
199b10e908 init.hardware.rc: remove cpuset
init.rc already set cpuset to all core during boot

Bug: 36576280
Test: marlin boot fast and checked cpuset during early boot
Change-Id: Ib91275361c8f8a1744f99b2da0b2f1769f31072c
2017-04-13 19:34:34 -07:00
TreeHugger Robot
13a91b2731 Merge "power_profile: Update intial values" 2017-04-14 01:17:07 +00:00
TreeHugger Robot
02432cf6d4 Merge "init.hardware.rc: remove start servicemanager" 2017-04-14 01:16:23 +00:00
Max Bires
a09eac3964 Merge "Revert "Setting SELinux to enforcing mode."" 2017-04-14 01:00:59 +00:00
Max Bires
fb4eaa89a1 Revert "Setting SELinux to enforcing mode."
This reverts commit a0fd5b0101.

Bug: 37305560
Change-Id: I6d23ea3b3cb785003d4b1f18101f2579b1e26051
2017-04-13 23:55:21 +00:00
Wei Wang
c522a2c012 init.hardware.rc: remove start servicemanager
servicemanager is now started in common init

Bug: 37306311
Test: muskie boot
Change-Id: I277a9c2fff67eafe483f7a0fd4a3e90d8e4a695a
2017-04-13 14:28:46 -07:00
Vinay Kalia
b8eaf12180 power_profile: Update intial values
Test: Compilation

BUG: 36796913
Change-Id: I03a3d80f02df72ecc88451994c7bca71752e8845
2017-04-13 11:40:39 -07:00
Wei Wang
9f0befc870 sepolicy: thermal-engine.te: add shutdown permission
With recently refactored android_reboot(), we need permission to set
powerctl_prop to trigger init to do reboot logic.

Bug: 37277184
Test: build
Change-Id: If687ef874d51c64795e6175a132c34b406c2b19c
2017-04-13 10:37:17 -07:00
Alex Klyubin
662399ca0d Merge "Remove unnecessary sepolicy attributes" 2017-04-13 16:26:07 +00:00
Joel Fernandes
6f8a846e2a init: Reserve CPUs for top-app correctly in EAS 1.2
EAS v1.2 uses different search ordering in the wakeup-path.  Now cores 4
and 5 will be searched first for top-app, update the cpusets accordingly:

Littles   Bigs
0 1 2 3   4 5 6 7
T T T T   T T T T  (top-app)
F F F F       F F  (foreground)
S S S S            (system background)
B B                (background)

Bug: 36367381

Change-Id: I7f70493ff45779d1c17f19465bf3eeeb8905e05b
Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-04-13 02:03:46 -07:00
Naveen Kalla
0266d437c7 Fix IMS Registration failure
imsdatadaemon was failing due to selinux denials shown below

02-07 12:07:06.299 W imsdatadaemon: type=1400 audit(0.0:77): avc: denied
{ net_raw } for capability=13 scontext=u:r:ims:s0 tcontext=u:r:ims:s0
tclass=capability permissive=0
02-07 12:07:06.299 W imsdatadaemon: type=1400 audit(0.0:78): avc: denied
{ net_bind_service } for capability=10 scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=capability permissive=0
02-07 12:07:06.299 I auditd  : type=1400 audit(0.0:77): avc: denied {
net_raw } for comm="imsdatadaemon" capability=13 scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=capability permissive=0
02-07 12:07:06.299 I auditd  : type=1400 audit(0.0:78): avc: denied {
net_bind_service } for comm="imsdatadaemon" capability=10
scontext=u:r:ims:s0 tcontext=u:r:ims:s0 tclass=capability permissive=0

Test: Check IMS registration works on device with this fix
Change-Id: Ib0e5078d13f27ccec0ebea4f146d75f29153bf7c
2017-04-12 23:07:59 -07:00
David Lin
f7d8d86b8e wahoo: enable audio rotation feature
Bug: 34897462

Signed-off-by: David Lin <dtwlin@google.com>
2017-04-12 19:25:44 -07:00
TreeHugger Robot
97bfbcc96c Merge "Change drm/crypto service names to "default"" 2017-04-13 02:25:25 +00:00
Alex Klyubin
0a7d71babe Remove unnecessary sepolicy attributes
Test: mmm system/sepolicy
Bug: 34980020
Change-Id: Iefc2b9bbb32e91f8bb968aaad47d3512bf888a27
2017-04-12 18:52:16 -07:00