Commit Graph

1099 Commits

Author SHA1 Message Date
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
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
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
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
Haynes Mathew George
a5dee775a7 audio: Change deep buffer output profile bit width to 24 bit packed.
Change bit_width of the deep buffer output profiles to 24 bit

Test: test all audio paths
Bug: 62918461

Change-Id: Ie79f74fd4540749af0269da5f73143406e519d68
2017-07-06 15:58:23 -07:00
TreeHugger Robot
c0622b2134 Merge "libnfc-brcm.conf changes for NCI2.0" into oc-dr1-dev 2017-07-06 22:39:45 +00:00
Wei Wang
ac6bf2845b Merge "init.hardware.rc: shutdown ssr_setup early to avoid subsystem restart" into oc-dr1-dev 2017-07-06 22:36:46 +00:00
Siddharth Ray
078daa1c8b Wahoo sepolicy changes
Wahoo's sepolicy is changed merged to add Marlin permissions
based on compliance test needs. Marlin's sepolicy can be
found at device/google/marlin/sepolicy/hal_gnss_default.te

Bug: 37409476
Test: Boots with no avc denials or crashes. GNSS incl. post XTRA
delete runs well with no denials.

Change-Id: Id51197120d142850fe0d7c97f747818e23c178f8
2017-07-06 12:30:04 -07:00
Tao Bao
13c6400e11 Grant update_verifier sysfs access.
avc: denied { read } for pid=694 comm="update_verifier" name="block" dev="sysfs" ino=27770 scontext=u:r:update_verifier:s0 tcontext=u:object_r:sysfs:s0 tclass=dir
avc: denied { read } for pid=719 comm="update_verifier" name="name" dev="sysfs" ino=51336 scontext=u:r:update_verifier:s0 tcontext=u:object_r:sysfs:s0 tclass=file

update_verifier reads /sys/block/dm-X/dm/name to find the device-mapper
entries for system and vendor partitions.

Also remove the unneeded "block_device:dir r_dir_perms" permission.

Bug: 63146601
Test: As follows.
  a) Set up /data/ota_package/care_map.txt.
  b) Reset the slot boot-successful flag with fastboot set_active.
  c) Boot the device and check update_verifier successfully verifies
     the blocks.
Change-Id: I581136249e93ec2d4bd9ceda316590ee31148643
2017-07-06 12:04:45 -07:00
TreeHugger Robot
f5ed4d3d87 Merge changes I45a49628,Icf764bf3 into oc-dr1-dev
* changes:
  Fix netmgrd crash recovery denials
  sepolicy: Separate system partition sepolicy and hal macros from vendor partition
2017-07-06 16:11:19 +00:00
Lorenzo Colitti
7b9577e9b0 Merge "Device specific wakeup packet mark/mask" into oc-dr1-dev 2017-07-06 15:19:11 +00:00
TreeHugger Robot
e7d2b88004 Merge "sepolicy for mke2fs tools" into oc-dr1-dev 2017-07-06 14:24:05 +00:00
Jayachandran C
06f2fdfb7e Fix netmgrd crash recovery denials
This change fixes the following denials

auditd  : type=1400 audit(0.0:30032): avc: denied { unlink } for
comm="netmgrd" name="netmgr_connect_socket" dev="tmpfs" ino=31621
scontext=u:r:netmgrd:s0 tcontext=u:object_r:netmgrd_socket:s0
tclass=sock_file permissive=0

auditd  : type=1400 audit(0.0:35887): avc: denied { search } for
comm="netmgrd" name="diagchar" dev="sysfs" ino=26926
scontext=u:r:netmgrd:s0 tcontext=u:object_r:sysfs_diag:s0 tclass=dir
permissive=0

Test: Force crashed netmgrd and validated data working

Bug: 63360347
Change-Id: I45a49628b486cb264e07037cfa8397e381f72a00
2017-07-05 18:52:15 -07:00
Sunmeet Gill
28511cb3df sepolicy: Separate system partition sepolicy and hal macros from vendor partition
Test: VoLTE, VT & VoWiFi on Vzw and T-Mobile SIM cards

Bug: 62574674

Change-Id: Icf764bf353bbdfb7831f5ea8528414a271525c63
2017-07-05 16:24:33 -07:00
TreeHugger Robot
4e86a6c446 Merge "vndk: add ro.vendor.vndk.version" into oc-dr1-dev 2017-07-05 23:21:19 +00:00
TreeHugger Robot
555d3c7910 Merge "Disable snapshat timer" into oc-dr1-dev 2017-07-05 20:12:36 +00:00
TreeHugger Robot
7bfa327827 Merge "Revert "Copy libz.so to vndk-sp"" into oc-dr1-dev 2017-07-05 13:11:35 +00:00
Logan Chien
1b65c6d094 Revert "Copy libz.so to vndk-sp"
This reverts commit b5f9e31877.  This
commit removes libz.so from /system/lib[64]/vndk-sp.

We have to remove libz.so from vndk-sp because we don't have a good
mechanism to stop "classloader" linker namespace from loading
/system/lib[64]/vndk-sp/libz.so.  Other alternatives require significant
changes to dynamic linker or CTS test cases.

Let's temporarily revert the commit to fix b/62195853 for oc-dr1-dev.
The long-term solution will be discussed in b/37617391.

Bug: 62195853
Bug: 37617391
Test: Boot sailfish to home screen.
Change-Id: I8591c153a1159ccfce6591b6cdc75722364e564b
2017-07-05 11:17:31 +08:00
Erik Kline
924d8f36c6 Place non-mobile tethering upstream types first
Test: as follows
    - built
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - started USB tethering and switched upstreams between mobile and wifi
Bug: 63282480

Change-Id: I2b8cd7d56cfe5131df017ec0a437be01bab2b2d8
2017-07-04 20:06:19 +09:00
Jiyong Park
e332929400 vndk: add ro.vendor.vndk.version
The version of VNDK that the vendor is built against is recorded in the
vendor partition. The version will be used by the dynamic linker to load
the correct version of ld.config.txt to use.

Bug: 63130475
Test: taimen build and boots
Change-Id: Iee9a87340b90bf618c2d241820820f45f114b9f7
2017-07-04 10:02:25 +09:00
Sunny Kapdi
f128f5c538 Enable bt wcnss_filter to collect crash dumps
Bug: 37298084
Change-Id: Id67e4faf27ea6d59fdbcc2affcd1f2e6eb2ba3dd
2017-07-01 00:39:26 -07:00
Thierry Strudel
2af5bf9c49 Merge "system.prop: prefix QCOM properties with vendor." into oc-dr1-dev 2017-07-01 06:07:29 +00:00
TreeHugger Robot
9d015bae3b Merge "Move chmod of /dev/diag earlier for sensors access" into oc-dr1-dev 2017-07-01 01:19:36 +00:00
TreeHugger Robot
867145cecc Merge "Don't create /data/misc/sensors" into oc-dr1-dev 2017-07-01 01:13:27 +00:00
TreeHugger Robot
570b61e066 Merge "Add SPN override: Telstra 505-01" into oc-dr1-dev 2017-06-30 23:51:44 +00:00
Roopesh Rajashekharaiah Nataraja
739f448717 Add policies to remove System UID from time service
Bug: 62785008
Change-Id: I85cdaa618da7beddce88d4b67bd1b9d08c0a9c00
2017-06-30 23:16:39 +00:00
Wei Wang
454fc3e786 wahoo: time_daemon: use /persist to store offset to RTC
Also cleanup sepolicy files that was using /data/vendor as they are not
needed and /data is not ready by the time we start time_daemon

Bug: 62184939
Test: walleye boot with correct time in airplane mode
Change-Id: Ic7b025a8c795092a1dd4b1ab1d7497d1440c0a4b
2017-06-30 23:15:48 +00:00
Karthik Ravi Shankar
0a5b6c2310 Fix DVR cpusets for wahoo
The DVR cpusets was not updated for Wahoo. Update it based on the
configuration from Polaris device.

Bug: 37752074
Test: Flashed and tested a Taimen to observe that the changes are in
place -
$ adb shell cat /dev/cpuset/application/performance/effective_cpus
4-5

Change-Id: I47158ac2e75bbb713a651fd36927031b72296277
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
2017-06-30 16:02:59 -07:00
Mikhail Naganov
e5216684d4 Merge "Remove Broadcast Radio HAL impl library" into oc-dr1-dev 2017-06-30 22:46:42 +00:00
Thierry Strudel
8b09662508 system.prop: prefix QCOM properties with vendor.
Change-Id: Iee87c702cc6eaf832373f128ff3b6e395f5031f0
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-06-30 15:41:15 -07:00
TreeHugger Robot
51bb8f9e19 Merge "AOD: Enable binned brightness sensor" into oc-dr1-dev 2017-06-30 21:37:38 +00:00
Jayachandran C
7765618ee4 Disable snapshat timer
Test: Changed the mode using hidden menu multiple times and verified
      the device doesn't report roaming.

Bug: 62622461
Change-Id: I51aefef9d574faf3c46e19e07f8c4fe187bf29d2
2017-06-30 21:27:41 +00:00
Mikhail Naganov
4f3f9535d4 Remove Broadcast Radio HAL impl library
There is no support for FM radio on this line of devices.
Having this HAL impl in place was confusing VTS tests runner
as broadcast radio HAL was present in the output of 'lshal'.

Bug: 33050893
Test: audio works, no impl lib in /vendor/lib[64]/hw,
      no broadcastradio in lshal output

Change-Id: I35b4d6329de8b04032b456fb048b0b8728024a64
2017-06-30 10:36:21 -07:00