Commit Graph

840 Commits

Author SHA1 Message Date
Chris Thornton
799cd15d38 Remove unused modules and decrease buffer size to reduce fragmentation risk.
Test: Script calling SoundTriggerTestApp with random load/unloads to try
and replicate memory failures.
Bug: 62376452

Change-Id: I1adee3b631f4d4ab3a447f21d80d86f6fbbcf5df
2017-06-11 17:43:08 -07:00
Jerry Zhang
2c9fbe2b75 Merge "Move mediaprovider domain to wahoo" into oc-dr1-dev 2017-06-10 00:03:13 +00:00
Amit Mahajan
797f28481a Merge "Adjust TODO bug numbers." into oc-dr1-dev 2017-06-09 21:58:25 +00:00
Amit Mahajan
b2a8e34a84 Adjust TODO bug numbers.
Test: none
Bug: 36613472
Bug: 36443535
Change-Id: I05fcab8784b30862b07eab304da63925000de719
2017-06-09 18:21:50 +00:00
Naveen Kalla
1227b8a3a2 pre-grant READ_PHONE_STATE permissions for embms middleware
Add READ_PHONE_STATE permissions to the embms middleware.
Embms middleware needs it to invoke telephony API such as
getDeviceId and getLine1Number

Bug: 38389469
Test: Load the build on the device and check the logs
      to make sure the READ_PHONE_STATE exceptions dont
      appear when we launch embms apps.

Change-Id: I3c70627910c8e8f65b1d8cc312f812aaf4ea41a1
(cherry picked from commit a039a2aeb8)
2017-06-09 05:07:27 +00:00
TreeHugger Robot
1770e4259e Merge "Revert "Disable bus dcvs"" into oc-dr1-dev 2017-06-09 02:39:39 +00:00
TreeHugger Robot
cbb9e26a76 Merge "Add PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE" into oc-dr1-dev 2017-06-09 00:46:20 +00:00
Chia-I Wu
0e086ad976 Copy vsync phase offsets from marlin
2ms/6ms is a better starting value than 1ms/1ms.

Bug: 62039896
Test: boots
Change-Id: I189d34d4204854980044546aa5c45498b979e2f9
(cherry picked from commit 14467ef106)
2017-06-08 19:12:07 +00:00
Nick Desaulniers
30faf26836 Merge "wahoo: sepolicy: remove libbinder rules for fingerprint" into oc-dr1-dev 2017-06-08 18:43:48 +00:00
Ajay Dudani
ebd777fc88 Revert "Disable bus dcvs"
Re-enable bus-dcvs and will continue looking for finer tunables within
bus-dcvs parameters to improve jank.

This reverts commit c218f23308.

Change-Id: I5e8dae591c13930ad18da12452a3518e8c379d7c
Test: Compile, boot on target; bus-dcvs is enabled.
Bug: 62358592
2017-06-08 18:18:56 +00:00
Yifan Hong
ce65f856a3 Add PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE
Test: m system_compatibility_matrix.xml -j; \
    grep -e"gatekeeper" -B1 $OUT/system/compatibility_matrix.xml; \
    grep -e"oemlock" -B1 $OUT/system/compatibility_matrix.xml
    (both exists)

Bug: 62136051
Change-Id: Iffcbac536f7768e4d3b8d4c04604132b29e81d56
2017-06-08 09:58:32 -07:00
Thierry Strudel
c707124156 PRODUCT_SHIPPING_API_LEVEL := 26
Bug: 62434384
Change-Id: I3e254413356460df77d5d9c5da2f13b4e9bda243
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-06-07 23:56:52 -07:00
Siyuan Zhou
c7b87dcbb6 Merge "wahoo: Add support for display debug data" into oc-dr1-dev 2017-06-08 01:21:48 +00:00
Jerry Zhang
442e6d64e5 Move mediaprovider domain to wahoo
mediaprovider cannot be in core policy due to O
compatability. Make it wahoo specific since it
is needed for MTP.

Bug: 62102757
Test: ps -eZ | grep mediaprovider, use MTP
Change-Id: Ieb46b596fd8b0558318d433a47f995ebf714d5f9
2017-06-07 18:21:18 -07:00
Nick Desaulniers
5363d06f07 wahoo: sepolicy: remove libbinder rules for fingerprint
Libbinder is just needed for dev/debug tools.  SELinux can be disabled
for those.

Test: enroll fingerprints, apply patch, can still authenticate/navigate
Change-Id: Ifa29bdb5cc393ed0c8e894ef76c0d4b5c58847e2
Fixes: 36686751
Bug: 37755263
2017-06-07 16:43:27 -07:00
Wei Wang
e9bed2b908 Use mke2fs to create ext4 images
Set TARGET_USES_MKE2FS := true to use new EXT4 tool chain

Bug: 62421233
Test: walleye boots with new parition
Change-Id: Id6e5c68b2d7854e5330ad87443b974361a4bff9d
2017-06-07 14:06:47 -07:00
Naseer Ahmed
1b59b229c5 wahoo: Add support for display debug data
* Saves display debugfs data in /data/vendor/display
* Update the dumpstate xlog to print the saved data

Bug: 38496103
Change-Id: Ibc3bd97657b9faa74894ad50b01f373403871c94

 Author:    Naseer Ahmed <naseer@codeaurora.org>
 Date:      Tue May 30 17:51:24 2017 -0400
2017-06-07 10:59:14 -07:00
Jayachandran Chinnakkannu
e59d10875c Merge "Allow radio to find uce service" 2017-06-07 06:54:01 +00:00
TreeHugger Robot
df94ed1014 Merge "Add soc serial number to bugreport" 2017-06-07 06:35:39 +00:00
Thierry Strudel
af1273f82a Merge "wifi: set default country code" 2017-06-07 04:53:53 +00:00
Jayachandran C
bc0c83e66e Allow radio to find uce service
This fixes the following denials

avc:  denied  { find } for service=uce pid=2729 uid=1001
scontext=u:r:radio:s0 tcontext=u:object_r:uce_service:s0
tclass=service_manager permissive=1

Bug: 37434935

Change-Id: I0bc3f74fdfbdc25759c38edbe1289fdfd68443f2
2017-06-07 02:40:41 +00:00
TreeHugger Robot
3a22f72d37 Merge "Set default saturation boost to 10%" 2017-06-07 02:36:19 +00:00
Dante Russo
4179f3921c Move location files from /data/ to /data/vendor/
Runtime files and sockets used by location modules
are moved to vendor partiion from /data/misc/location
to /data/vendor/location

And additional SE policy

CRs-fixed: 2046657
Bug: 38137902
Test: Build, boot, GPS works, XTRA works, no new avc denials

Change-Id: If56a053ff3c478473c08aeef079d119b5b8847d7
2017-06-06 14:46:16 -07:00
Gabriel Taubman
1a7bb91754 Merge "[Default permission exception] Google - Pixel Ambient Services (com.google.intelligence.sense)" 2017-06-06 20:16:57 +00:00
Ahmed ElArabawy
e758626c5d Merge "Re-introduce of POWER HAL API 1.1 impl for Wahoo" 2017-06-06 16:01:55 +00:00
TreeHugger Robot
6b5ae30f59 Merge "haptics: implements vibrator 1.1 HAL" 2017-06-06 03:11:24 +00:00
Romain Guy
ff0ce689c4 Set default saturation boost to 10%
Bug: 62238038
Test: Manual
Change-Id: I8a87dd4903e66a48c6e1e58b9664c3e66717183c
2017-06-05 19:35:04 -07:00
Chris Thornton
efdcea0da5 Merge "Update sound_trigger_platform_info.xml to use new graphite IDs, and add DND module." 2017-06-06 01:25:25 +00:00
Chris Thornton
439e4c6b7b Update sound_trigger_platform_info.xml to use new graphite IDs, and add
DND module.

Test: Run on device with new firmware with everything still working.
Change-Id: Ieb8e4ad41c89d53eb080600bbf0a5f079b50a34e
2017-06-05 16:23:09 -07:00
David Lin
e2ac78d27f haptics: implements vibrator 1.1 HAL
Obtain tick/click effect duration from system property and implement the
new perform 1.1 function for supporting tick effect.

Bug: 62176703
Test: VtsHalVibratorV1_1TargetTest
Change-Id: Icbd50c2e7d05fd520aeda4511ba95151dde2a5ed
Signed-off-by: David Lin <dtwlin@google.com>
2017-06-05 16:21:17 -07:00
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
Siyuan Zhou
365ebdfa91 Merge "Modified boardconfig to have different offset for kasan kernel." 2017-06-05 20:51:39 +00:00
TreeHugger Robot
78bc6840e9 Merge "Remove net_raw and net_admin group access for imsdatadaemon" 2017-06-05 19:46:34 +00:00
Siyuan Zhou
745d38a07e Modified boardconfig to have different offset for kasan kernel.
Change-Id: I5590b4cc2a135cd2c130bf647df5388aaf791311
2017-06-05 11:05:50 -07:00
Eric Laurent
ec88c470cb Merge "audio: Add profile for hifi record" 2017-06-05 17:54:22 +00:00
Jayachandran C
401c1f30b1 Remove net_raw and net_admin group access for imsdatadaemon
Test: VoLTE/VT and verified no ims denials
Bug: 37652052
Change-Id: Ia552f0a3adf8878f36cf2aec148470e6041164ca
2017-06-05 16:54:16 +00:00
Ecco Park
631a5a35c9 wifi: set default country code
It should be world mode for global SKU.
Bug: 38429299

Change-Id: I503a5a004c7ba455bbb4d3239f22d6b17b96aa37
Signed-off-by: Ecco Park <eccopark@google.com>
2017-06-04 11:55:34 -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
Ajay Dudani
132939e579 Add soc serial number to bugreport
Test: Verified serial number is present in bugreport
Bug: 62305405
Change-Id: Ie06f1a93af1fd3006d57a46c9e6e5fad85433fe1
2017-06-02 19:30:53 -07: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
Haynes Mathew George
7561cf7d4d audio: Add profile for hifi record
Add profile to support hifi capture from USB

Test: test playback and capture with and without USB headset

Change-Id: I43a21961eaa64ff27614978ebc53a1d9ca3dbf26
2017-06-02 20:59:53 +00:00