Commit Graph

801 Commits

Author SHA1 Message Date
Ahmed ElArabawy
f3e845ce21 Re-introduce of POWER HAL API 1.1 impl for Wahoo
Power HAL 1.1 support for wahoo based devices was initially introduced in CL
ag/2098359
However, this caused a regression in application startup times due
to a bug in passing parameters for power hints on application launch
Hence, that CL was reverted in CL ag/2270791

This commit brings back the support of the Power Hal 1.1
to wahoo based devices. This includes the changes of the original CL
as will as a fix for the app startup time regression

The fix is similar to that in ag/1767023 (done for power HAL 1.0 default
implementation)
where a NULL is passed to the powerHint function when the passed data is
Zero
(instead of passing a pointer to the data). This enable the App Launch
power hints to work properly

The commit has been tested not to cause that regression

Bug: 62040325
Test: Performance Tests along with other tests

Change-Id: I29ce38b2de92c2b9ad878b0076288b689695b8a0
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-06-05 15:44:43 -07:00
Chia-kai Liang
d2dd945f9e Merge "Diable gzoom to fix the power regression at various video modes." 2017-06-04 05:08:34 +00:00
Chia-Kai Liang
60d978ef51 Diable gzoom to fix the power regression at various video modes.
Change-Id: I321ca5427087faef3e3cc01d7b2659a8188d02b6
2017-06-03 19:58:52 -07:00
Jayachandran Chinnakkannu
d6864b43a3 Merge "Remove net_raw capability from ims" 2017-06-03 17:42:49 +00:00
Jayachandran Chinnakkannu
5e96377eaa Merge "Fix radio logs not included in bugreport" 2017-06-03 17:42:33 +00:00
Jayachandran C
6030720f1e Fix radio logs not included in bugreport
Made hal_dumpstate_impl to use vendor executables as per treble guidelines

Test: Bugreport and verified radio logs included and no new denials

Bug: 62291820
Change-Id: I4f9f46cd76600e4b083ee6de5c52d495cc17729b
2017-06-02 19:56:36 -07:00
Ajay Dudani
c218f23308 Disable bus dcvs
Revisit this, once we run through additional performance tests

Bug: 62039896
Test: Compile & boot
Change-Id: I1624285f9d1ee4d39c98553e648a4cd4327bd6f3
2017-06-03 02:37:47 +00:00
TreeHugger Robot
459298d237 Merge "update the rtpservice name" 2017-06-03 01:39:33 +00:00
Jayachandran C
b726f55f53 Remove net_raw capability from ims
net_raw was added to make IMS registration work in enforced mode

Currently ims is in permissive mode so any denials will not block
the functionality or lab testing

This change will enable QC to catch denials and fix in their prebuilts

Test: Basic telephony sanity

Bug: 37652052
Change-Id: I942a267464b83f60ef6274e47f1ae6a493230c1f
2017-06-02 18:28:18 -07:00
TreeHugger Robot
c432ddbc04 Merge "Add BOARD_PLAT_[PUBLIC|PRIVATE]_SEPOLICY_DIR" 2017-06-03 00:44:55 +00:00
Sooraj Sasindran
0c6efa8cbe update the rtpservice name
update the rtpservice name

Test: Verified that VT is working
Change-Id: I3fc57252e81900161a9c7ba7126ec9711bcbd6c1
2017-06-02 16:56:49 -07:00
Grace Chen
7689816258 Set default cdma subscription to RUIM
Bug: 62155937
Test: Confirmed property
Change-Id: I4f5f286c8b19c8b24151b8ef8d815fd01ccc5c87
2017-06-02 15:30:19 -07:00
Dan Cashman
051bcb3713 Add BOARD_PLAT_[PUBLIC|PRIVATE]_SEPOLICY_DIR
Move vendor policy to vendor and add a place for system extensions.
Also add such an extension: a labeling of the qti.ims.ext service.

Bug: 38151691
Bug: 62041272
Test: Policy binary identical before and after, except plat_service_contexts
has new service added.
Change-Id: Ie4e8527649787dcf2391b326daa80cf1c9bd9d2f
2017-06-02 13:45:16 -07:00
TreeHugger Robot
5e1732d8ea Merge "haptics: update effect waveform" 2017-06-02 18:50:38 +00:00
Max Bires
674eef0942 Merge "Fixing ramdump and removing it from permissive mode" 2017-06-02 18:16:33 +00:00
Jesse Hall
925fc47943 Merge "Move gfx driver property to vendor makefile" 2017-06-02 17:15:44 +00:00
TreeHugger Robot
f95d9ae8c3 Merge "Move lowi.conf to vendor" 2017-06-02 11:15:25 +00:00
SzuWei Lin
8333cc4fb8 Move lowi.conf to vendor
Bug: 62283103
Bug: 37927875
Test: check the files in folder vendor/etc
Test: test gps by test app
Change-Id: I57c08e4257ba650293e9731431933b355953c214
2017-06-02 08:30:37 +00:00
TreeHugger Robot
a366c64f90 Merge "Revert "Removing ims from enforcing and into permissive"" 2017-06-02 03:47:33 +00:00
Naveen Kalla
24320b58bd Revert "Removing ims from enforcing and into permissive"
This reverts commit 8c3abb9323.

Test: Manual - Make VT calls
Change-Id: I931e7f20c9e924a1fc37e18c0b65475e1f27404c
2017-06-01 19:03:34 -07:00
Jesse Hall
b48d6040ff Move gfx driver property to vendor makefile
See vendor/google_devices/wahoo/proprietary/device-vendor.mk

Bug: 37323602
Test: Maps, vulkanGears
Change-Id: Ib9fdd15cec7c053731b72847f0c11081aab29bc2
2017-06-01 18:03:04 -07:00
Etan Cohen
7f30c4c172 Merge "[AWARE] Enable Wi-Fi Aware feature support" 2017-06-01 23:45:26 +00:00
Sen Jiang
216fcd9947 Add libz to PRODUCT_STATIC_BOOT_CONTROL_HAL.
libgptutils should include its own dependencies.
Also removed libsparse since it's not needed anymore.

Test: mma in update_engine
Change-Id: I2c2c77bf7409590a3d5f622225d2ed794004311f
2017-06-01 14:40:33 -07:00
David Lin
89b4aa84af haptics: update effect waveform
EFFECT_CLICK
- Walleye: On resonance (f1=155 Hz), square wave full amplitude
  (A1=127), auto-brake, duration T1=6ms.
- Taimen: On resonance (f1=155 Hz), square wave full amplitude
  (A1=127), auto-brake, duration T1=10 ms.

EFFECT_DOUBLE_CLICK
- Two actuations T1=25 ms, A1=63, T3=100ms, T2=10 ms, A2=127

LONG_PRESS
- Walleye: 8ms duration with full amplitude
- Taimen: 12ms duration with full amplitude

Bug: 62176703
Test: VTS 1.0
Change-Id: Idf728ad793b3dd64f52d1ea95e8ea2cf3085a72a
Signed-off-by: David Lin <dtwlin@google.com>
2017-06-01 13:32:11 -07:00
TreeHugger Robot
f299894af9 Merge "sepolicy: bridge oemlock hal and bootctl HAL" 2017-06-01 18:44:34 +00:00
TreeHugger Robot
da2ace7e7c Merge "fix audio policy configuration" 2017-06-01 18:12:34 +00:00
Max Bires
ae47a637e7 Merge "Removing ims from enforcing and into permissive" 2017-06-01 16:46:43 +00:00
Will Drewry
eb483f8f0a sepolicy: bridge oemlock hal and bootctl HAL
Enable the oemlock-bridge to provide access to
a reserved region in misc used by bootctl and the
vendor bootloader.

Test: oemlock hal integration tests work with oemlock-bridge and the
oemlock hal service running.
Bug: 62052545
Change-Id: I19c311917ccb95846e2136e858f2b862fe5390bb
2017-06-01 02:44:26 -05:00
Eric Laurent
a809761a6a fix audio policy configuration
Test: verify playback and capture use cases
Change-Id: I37850d671f74ccde2193ce87a74106a6c2b89147
2017-05-31 18:32:08 -07:00
TreeHugger Robot
b959e44a49 Merge "Moving a debugfs label from file_contexts to genfs" 2017-05-31 21:53:26 +00:00
Max Bires
74f6eb8c73 Moving a debugfs label from file_contexts to genfs
debug_suspend wasn't being properly labeled in file_contexts, moving it
to genfs_contexts fixes this issue.

Bug: 62219388
Test: init can write to debug_suspend
Change-Id: Iea30051da9b18a7e4f35ad1600b3ced1f7625c23
2017-05-31 12:56:08 -07:00
Max Bires
13bdd9e7e8 Fixing ramdump and removing it from permissive mode
denied { search } for pid=699 comm="ramdump" name="block" dev="tmpfs"
ino=20656 scontext=u:r:ramdump:s0 tcontext=u:object_r:block_device:s0
tclass=dir

denied  { set } for property=debug.htc.ramdump_new_directory pid=690
uid=0 gid=0 scontext=u:r:ramdump:s0 tcontext=u:object_r:debug_prop:s0
tclass=property_service

Bug: 34784662
Bug: 38261729
Test: ramdump functions in enforcing mode
Change-Id: Iceb7043d97f0f7c393075c565a65105b72aa570d
2017-05-31 11:09:56 -07:00
TreeHugger Robot
ef91df2ac5 Merge "Allow dataservice to access system files" 2017-05-31 18:04:41 +00:00
Etan Cohen
2a30014ecc [AWARE] Enable Wi-Fi Aware feature support
Enable Wi-Fi Aware feature support and system service.

Bug: 37674519
Test: unit tests, integration test suite
This reverts commit 7cef570f79.

Change-Id: I045ad95fac178cbdda3c0343fde7c6c76bcd1ffc
2017-05-31 08:56:33 -07:00
Jaesoo Lee
9127ae4ff6 Revert "vndk: remove vndk/Android.mk"
This reverts commit 1362a69046.

Test: Built sailfish and boots
Change-Id: I3a92adcd40e5dc1354744903000baea69868fe3d
2017-05-31 17:23:42 +09:00
Jaesoo Lee
8aca4bd37f Merge "vndk: remove vndk/Android.mk" 2017-05-31 05:34:29 +00:00
Jayachandran C
8d9d9c3cce Allow dataservice to access system files
This change fixes the following denials

auditd  : type=1400 audit(0.0:320): avc: denied { search } for
comm=".dataservices" name="com.quicinc.cne.CNEService" dev="sda10"
ino=3465228 scontext=u:r:dataservice_app:s0
tcontext=u:object_r:system_app_data_file:s0 tclass=dir permissive=0

Bug: 62121277
Change-Id: I00453e9e070e439c6f87472764b8b6806501105b
2017-05-30 23:50:38 +00:00
TreeHugger Robot
9d1f66e361 Merge "Remove thermal shutdown config" 2017-05-30 20:50:24 +00:00
TreeHugger Robot
c1d0811708 Merge "device: build ipacm" 2017-05-30 20:31:46 +00:00
Wei Wang
a6d882e981 Remove thermal shutdown config
Config has been moved to derived products

Bug: 37711924
Test: Build
Change-Id: I4eb5252a81fcc7ea84d5d426ff46347e9a0dab06
2017-05-30 11:57:55 -07:00
TreeHugger Robot
d34711b35c Merge "Add permission to use mapper." 2017-05-30 18:37:50 +00:00
Thierry Strudel
21bbdefcac device: build ipacm
Change-Id: Id5e082afde375a62fbb07a5bf96699a0bdbb5c77
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-30 18:19:44 +00:00
TreeHugger Robot
19057ffcac Merge "Add sepolicies OemLock HAL." 2017-05-27 01:53:11 +00:00
Jayachandran C
213f27d29e Make cnd permissive for VT to work
This change will be reverted after all cnd denials
are fixed as part of b38253858

Currently all QC propriatery modules are going through a major
re-architecture so keeping this in permissive mode will help
unblock the lab conformance test.

The current denials which will be ignored with this change

cnd     : type=1400 audit(0.0:453): avc: denied { net_raw } for
capability=13 scontext=u:r:cnd:s0 tcontext=u:r:cnd:s0 tclass=capability
permissive=1
cnd     : type=1400 audit(0.0:455): avc: denied { dac_override } for
capability=1 scontext=u:r:cnd:s0 tcontext=u:r:cnd:s0 tclass=capability
permissive=1
cnd     : type=1400 audit(0.0:456): avc: denied { read write } for
name="wake_lock" dev="sysfs" ino=18727 scontext=u:r:cnd:s0
tcontext=u:object_r:sysfs_wake_lock:s0 tclass=file permissive=1
cnd     : type=1400 audit(0.0:457): avc: denied { open } for
path="/sys/power/wake_lock" dev="sysfs" ino=18727 scontext=u:r:cnd:s0
tcontext=u:object_r:sysfs_wake_lock:s0 tclass=file permissive=1
cnd     : type=1400 audit(0.0:458): avc: denied { block_suspend } for
capability=36 scontext=u:r:cnd:s0 tcontext=u:r:cnd:s0 tclass=capability2
permissive=1

Change-Id: I9c0a7a38a0b61f3819f90f0178ab16e59da9e65f
2017-05-27 01:42:46 +00:00
Chia-Kai Liang
479abd5212 Add permission to use mapper.
For allocating the buffer for the direct sensor API to use.

Bug: 37423054
Change-Id: I8f973a0d7b06640650a9a61428ebd97afc780ec0
2017-05-26 16:50:22 -07:00
TreeHugger Robot
69ceaada22 Merge "Fix manifest instance for Uce HAL" 2017-05-26 22:45:05 +00:00
Naveen Kalla
def4e0a092 Fix manifest instance for Uce HAL
Update UCE Hal instance definition

Bug: 38388637
Test: manual - Ensure that Presence finds the UCE Stack in logs
Change-Id: I3b08f1f4864ddb3d8dc36c604d3e94cebe38d262
2017-05-26 13:44:10 -07:00
Max Bires
be88e38b38 Merge "Fixing taimen OTAs" 2017-05-26 20:23:15 +00:00
Max Bires
9e36e709a9 Fixing taimen OTAs
Bug: 62127933
Test: OTAs work
Change-Id: I66fb3ed5e4e88172dffe90627a7d3ddbc03eac11
2017-05-26 11:34:01 -07:00
Andrew Scull
83cb7dd73c Add sepolicies OemLock HAL.
This HAL is no longer implemented with the SE but, instead, communicates
with the bootloader.

Bug: 62052545
Test: Build and boot
Change-Id: I929f184019a782372c09dd6264e6ccec0f822f0f
2017-05-26 18:59:38 +01:00