Commit Graph

1128 Commits

Author SHA1 Message Date
Philip Cuadra
8d99d9fce3 Merge "Add powerHintAsync functionality" into oc-dr1-dev 2017-07-14 17:02:21 +00:00
Sunny Kapdi
0c2b5e803d Bluetooth: Allow wakelock access to wcnss_filter
Bluetooth driver needs to hold a wakelock while receiving
packets from the UART to make sure that no bytes are lost.

Test: Bluetooth on/off
Bug: 63628397
Change-Id: I8cd6a13921cdc2777c64b0624f544a9548292522
2017-07-13 15:53:04 -07:00
TreeHugger Robot
2e5de1e053 Merge "init.hardware.rc: boost UFS during boot" into oc-dr1-dev 2017-07-13 22:30:03 +00:00
Wei Wang
26b8c377a6 init.hardware.rc: boost UFS during boot
Before:
SystemServer_start            : 4.963   0.14877
SystemUi_start                : 6.4789  0.17614
system_server_ready           : 6.8311  0.17777

After:
SystemServer_start            : 4.8848  0.13089
SystemUi_start                : 6.2907  0.14558
system_server_ready           : 6.6286  0.14705

Bug: 63644084
Test: 50 boot with packages/services/Car/tools/bootanalyze/bootanalyze.py
Change-Id: Icebc7a2e5b223c4749adb6575c52a99ef6c5faa0
2017-07-13 10:19:20 -07:00
Adrian Roos
8b6d1c00f3 Merge "wahoo: Enable long-press on AOD to launch Assistant" into oc-dr1-dev 2017-07-13 12:01:45 +00:00
TreeHugger Robot
c0de0213de Merge "suppress denial logspam" into oc-dr1-dev 2017-07-13 07:16:19 +00:00
Jeff Vander Stoep
7fcf5a1a62 suppress denial logspam
These denials are not causing app bugs but the underlying code needs
to be fixed. In the meantime, remove them from the logs.

avc: denied { read } for name="/" dev="tmpfs" ino=19039
scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:device:s0
tclass=dir
avc: denied { read } for name="interrupts" dev="proc" ino=4026532104
scontext=u:r:priv_app:s0:c512,c768
tcontext=u:object_r:proc_interrupts:s0 tclass=file
avc: denied { read } for name="modules" dev="proc" ino=4026532153
scontext=u:r:priv_app:s0:c512,c768
tcontext=u:object_r:proc_modules:s0 tclass=filea

avc: denied { search } for name="zram0" dev="sysfs" ino=37069
scontext=u:r:untrusted_app:s0:c512,c768
tcontext=u:object_r:sysfs_zram:s0 tclass=dir

Bug: 63631799
Test: Build and flash, verify denials are gone.
Change-Id: I6ddc91aa792b771e2c4190b211588347cc4119ea
2017-07-13 05:19:54 +00:00
TreeHugger Robot
121ad8516c Merge "Remove USE_SENSOR_MULTI_HAL for wahoo." into oc-dr1-dev 2017-07-13 04:34:40 +00:00
Ecco Park
08407f9b8e Merge "wifi: change the tcp tune parameters for max Tx/Rx tputs" into oc-dr1-dev 2017-07-13 02:44:44 +00:00
Vineeta Srivastava
abe32c07d6 Remove USE_SENSOR_MULTI_HAL for wahoo.
Bug: 62973052
Test: verified on a device
Change-Id: Ib0780be3916b97e11278118f6231dc1aa9323495
2017-07-12 18:13:30 -07:00
TreeHugger Robot
e209cf7c30 Merge "haptics: add customized haptic boot patterns" into oc-dr1-dev 2017-07-13 01:02:25 +00:00
TreeHugger Robot
74d7e77ea5 Merge "Allow collection of Bluetooth firmware dumps in bugreports (1/3)" into oc-dr1-dev 2017-07-13 00:15:21 +00:00
Ecco Park
a9ff1cc53d wifi: change the tcp tune parameters for max Tx/Rx tputs
Increase the tcp socket write buffer size.
Bug: 63351644

Change-Id: I1429f8aa49d55b3253401e6131349c55eb72da8a
Signed-off-by: Ecco Park <eccopark@google.com>
2017-07-12 22:12:09 +00:00
TreeHugger Robot
fb037a5a96 Merge "tango_core.te: Allow audioserver and mediaserver find" into oc-dr1-dev 2017-07-12 21:55:30 +00:00
TreeHugger Robot
7a7af08804 Merge "remove cameraHAL to perfd interface" into oc-dr1-dev 2017-07-12 21:13:54 +00:00
Philip Cuadra
3a91edbc6c Add powerHintAsync functionality
Add an async version of powerHint called powerHintAsync.

Bug: 62377008
Test:  Take systrace, confirm powerHint is an async HIDL transaction

Change-Id: I481d74e02c51756306400cc19000db644fce6559
2017-07-12 12:14:26 -07:00
David Lin
d1efba3884 haptics: add customized haptic boot patterns
Add customized "two times of heart beat" haptic patterns for
bootanimation.

Bug: 62207090
Test: boot and verify the patterns
Change-Id: If88d45b482b3f927165efc9e28ecb6734694c336
Signed-off-by: David Lin <dtwlin@google.com>
2017-07-12 12:02:03 -07:00
Wei Wang
5e53c868af remove cameraHAL to perfd interface
This CL removed cameraHAL to perfd interface
Also changed some powerHAL logging level

Bug: 63589458
Test: Build
Change-Id: I4725f45b22bf3a3787dc5d77fc9c6b22a66a21aa
2017-07-12 12:01:19 -07:00
Ajay Panicker
a89c11643c Allow collection of Bluetooth firmware dumps in bugreports (1/3)
This patch is temporary and should be removed once the bug is resolved

Bug: 63390057
Test: Force a hci_timeout and collect a bugreport
Change-Id: I29d3f19462c152e785eec0291f06ed4c004b623f
2017-07-12 11:18:23 -07:00
Adrian Roos
5d81c9963f wahoo: Enable long-press on AOD to launch Assistant
Bug: 37684244
Test: adb shell settings put secure doze_pulse_on_long_press 1, then Long-press while device is on AOD or off, observe that assistant is launched.
Change-Id: I0cf101331c042e9b59e811b59e209d5476019b23
2017-07-12 13:52:01 +00:00
Lorenzo Colitti
4293069bf3 Merge "Device SELinux policy for secure persistent netd storage" into oc-dr1-dev 2017-07-12 07:57:42 +00:00
TreeHugger Robot
6544bd52b8 Merge "ueventd: remove redundant rules" into oc-dr1-dev 2017-07-12 05:33:36 +00:00
Jayachandran Chinnakkannu
338e14671f Merge "Set persist.radio.always_send_plmn to true" into oc-dr1-dev 2017-07-12 05:14:48 +00:00
TreeHugger Robot
e9ae784048 Merge "Revert "configstore: applied uprev of configstore"" into oc-dr1-dev 2017-07-12 02:18:15 +00:00
Jayachandran C
2be5177493 Set persist.radio.always_send_plmn to true
Set persist.radio.always_send_plmn to true to force read PLMN
name instead of standard EONS(SPN) for manual network search.

This change is needed to avoid duplicate entries shown in
manual network selection result.

Side effect:
If a MVNO SIM card is inserted, manual network search will list
actual network name instead of virtual operator name.

Test: Verified manual selection doesn't display duplicate entries

Bug: 62925374
Change-Id: Id1d308c74e5bc878169911068743afce61ad3d10
2017-07-11 18:40:44 -07:00
TreeHugger Robot
3283943836 Merge "Power: Fix interaction boost calculation" into oc-dr1-dev 2017-07-11 23:43:49 +00:00
TreeHugger Robot
2bcf425fd5 Merge "audio: Change deep buffer output profile bit width to 24 bit packed." into oc-dr1-dev 2017-07-11 21:08:56 +00:00
Adrian Salido
a09dac5dad Power: Fix interaction boost calculation
Interaction handler has a check to ignore duplicate interaction requests
if previous covers current one. However the previous request could
finish early if idle is detected, need to account for this condition.

Bug: 63116225
Change-Id: I1a128eb8fe3c2a3daa7f48bc73cd5f07d5b1ae5b
2017-07-11 14:02:30 -07:00
Ranjith Kagathi Ananda
3bcf11716c tango_core.te: Allow audioserver and mediaserver find
Denial log:
avc:  denied  { find } for service=media.audio_flinger pid=12405
uid=10142 scontext=u:r:tango_core:s0:c512,c768
tcontext=u:object_r:audioserver_service:s0 tclass=service_manager
permissive=0

avc:  denied  { find } for service=media.player pid=4881 uid=10131
scontext=u:r:tango_core:s0:c512,c768
tcontext=u:object_r:mediaserver_service:s0 tclass=service_manager
permissive=1

BUG=63115272
Test: Basic sanity

Change-Id: I88fb12e89d75eab6b69c5f2ec453e18c05fd6f6c
2017-07-11 19:50:23 +00:00
Jeff Vander Stoep
33e9c267ca ueventd: remove redundant rules
Ueventd is now granted write access to all files in /sys
in core policy.

avc:  denied  { write } for  pid=790 comm="ueventd" name="uevent"
dev="sysfs" ino=52014 scontext=u:r:ueventd:s0
tcontext=u:object_r:sysfs_usb_device:s0 tclass=file

Bug: 63147833
Test: build
Change-Id: I61f742a6151fe37ec99654bda6074f055a84a163
2017-07-11 07:55:12 -07:00
Michael Wright
2f3b0f2af3 Allow system_server to load input device configurations
Test: flash and use PointerLocation to observe size
Bug: 62871286
Change-Id: I5588b7b1a4d948446b0e1e9e8d5b32c9aabc1e42
2017-07-11 14:06:08 +00:00
David Lin
13c1c216b2 Merge "audio: enable adsp subsys restart" into oc-dr1-dev 2017-07-11 01:44:03 +00:00
David Lin
a55866365b audio: enable adsp subsys restart
This patch enables subsys restart feature for adsp.

Bug: 63314860
Test: QXDM send_data 75 37 03 48
Change-Id: I4e0e337238ee765294b591270165d8d707d349e0
Signed-off-by: David Lin <dtwlin@google.com>
2017-07-11 01:43:01 +00:00
Lorenzo Colitti
77e8a62770 Device SELinux policy for secure persistent netd storage
This is used to persist RFC 7217 stable secrets across device reboots.
For now this is device-specific; in future releases it will be moved
to public sepolicy.

Bug: 17613910
Test: stable_secret is generated on first use and persists across reboots
Test: "adb shell getprop persist.netd.stable_secret" doesn't work after "adb unroot"
Change-Id: I0a609c724799a15b1926e62534c16810d34f2275
2017-07-11 10:27:51 +09:00
Wei Wang
b02fb17265 Merge "Enable Encoder hint for camera powersaving" into oc-dr1-dev 2017-07-10 22:51:47 +00:00
Wei Wang
3b189d337f Enable Encoder hint for camera powersaving
- Hook up Encoder hint with CameraHal
- Remove dead code for EAS kernel for decoder hint and camera preview

This CL will enable powerhint for CameraHal to cap Big CPU
Cluster max freq to 1.958 Ghz.

Bug: 38000354
Bug: 62354242
Bug: 63039461
Test: Build and test camera preview on
Change-Id: I13e93915499f6cc83335b72ab2076d90bc9edfcc
2017-07-10 13:13:04 -07:00
TreeHugger Robot
4dc9960c82 Merge "Fix DVR cpusets for wahoo" into oc-dr1-dev 2017-07-10 19:16:33 +00:00
Sundong Ahn
6f9719e2a4 Revert "configstore: applied uprev of configstore"
This reverts commit aee1b828f7.

Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in dr1 will be down
revisioned to 1.0.

Bug: 63440035
Test: build & run
Change-Id: I5713c6f38a18b2669eb9514f7f7c84359e736e52
Merged-In: I64930ca7dfceb66a1cf7a52b43fd378810ff8dad
2017-07-10 15:36:42 +09:00
Sooraj Sasindran
09e618ae3a Merge "Do not drop packets" into oc-dr1-dev 2017-07-07 23:05:55 +00:00
jiwon912.choi
98a24a3603 liblight: Change method to get LP mode brightness
Bug : 62663757

If sys.display.low_persistence_mode_brightness is set, get brightness
from sys.display.low_persistence_mode_brightness.

Change-Id: I21a7583f535f8797300bab738cc4c8805ca06b90
2017-07-07 13:29:59 -07:00
Tao Bao
81cec4011b Merge "Grant update_verifier sysfs access." into oc-dr1-dev 2017-07-07 17:28:35 +00:00
Sooraj Sasindran
d0e8fe363c Do not drop packets
Do not drop packets based upon enqueue sequence
to avoid freeze.

Bug=63274801

Change-Id: I064dfc2775be104096566dff0c1638ac04cd7fc4
2017-07-07 10:12:23 -07:00
TreeHugger Robot
8014ac1c9a Merge changes from topic 'elabel' into oc-dr1-dev
* changes:
  Add copy from /persist/elabel to /data/misc/elabel
  Add permissions for elabel data access
2017-07-07 15:39:47 +00:00
Patrick Tjin
4402ccfb27 Add copy from /persist/elabel to /data/misc/elabel
Bug: 62837579
Test: place test files in /persist/elabel, check that they are copied to /data/misc/elabel on boot
Change-Id: Id29e7c7c01ed54bf4d2f488cfa6dba51046bc5bf
Merged-In: Id29e7c7c01ed54bf4d2f488cfa6dba51046bc5bf
2017-07-07 03:04:46 +00:00
Jeff Vander Stoep
0e1346c32c Add permissions for elabel data access
Allow init to copy elabel data from /persist/elabel to
/data/misc/elabel. Allow settings app to access elabel data
from /data/misc/elabel.

Bug: 62837579
Change-Id: Ie2241abe8c2384a537b001a90830a3f42c566748
Merged-In: Ie2241abe8c2384a537b001a90830a3f42c566748
2017-07-07 03:03:52 +00:00
TreeHugger Robot
f00d7ba646 Merge "Enable ramdump on debug.htc.ramdump.crash" into oc-dr1-dev 2017-07-07 02:39:23 +00:00
TreeHugger Robot
92f59e7bf0 Merge "add rmt_storage to "shutdown critical"" into oc-dr1-dev 2017-07-07 02:11:43 +00:00
TreeHugger Robot
271fd0c603 Merge "Wahoo sepolicy changes" into oc-dr1-dev 2017-07-07 02:09:47 +00:00
Andrew Chant
dceb04a94f Enable ramdump on debug.htc.ramdump.crash
Enable ramdump on a live system by enabling the
property debug.htc.ramdump.crash.

This property is protected by selinux policy
with the label ramdump_prop.

Bug: 62437259
Test: forced ramdump from Ramdump Uploader app.
Change-Id: Ifa9b7cf22749c0686e7d01ca2a4fc10dbd4b729c
2017-07-06 17:43:43 -07:00
Keun-young Park
fca9e0cc79 add rmt_storage to "shutdown critical"
- should be kept to write modem data befure shutdown.

bug: 37626581
Test: build only

Change-Id: I8ce1c590a84fb0ad04a93c135c1b1f86bc59a69f
2017-07-06 22:58:41 +00:00