Commit Graph

1108 Commits

Author SHA1 Message Date
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
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
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
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