Commit Graph

156 Commits

Author SHA1 Message Date
Steve Pfetsch
fee56b7311 wahoo: toggle special touch mode when VR mode is active
Bug: 37515573
Change-Id: I5b741323f97f7d4713636a1688f50c9459d2764f
2017-08-02 02:02:32 -07:00
TreeHugger Robot
ab0968ecf6 Merge "msm_irqbalance: disable irq-balancing due to jank regressions" into oc-dr1-dev 2017-08-02 01:38:50 +00:00
John Dias
4ff2440530 msm_irqbalance: disable irq-balancing due to jank regressions
Bug: 64251375
Test: boot, verify msm_irqbalance not running, run jank test
Change-Id: I5a325d43263ddda3b61f16b528cccf9c78848a71
2017-08-01 16:33:41 -07:00
Vineeta Srivastava
e2b1042d54 Merge "wahoo: init: ensure sensor registry directory is available" into oc-dr1-dev 2017-08-01 18:13:49 +00:00
TreeHugger Robot
ca62fc7d12 Merge "haptics: enable low-power trigger mode for edge sense" into oc-dr1-dev 2017-08-01 16:42:33 +00:00
Max Shi
f4a04d5c3d wahoo: init: ensure sensor registry directory is available
Test: remove /persist/sensors directory from device
Test: flash image with this change
Test: verify that sensor stack recovers
Bug: 64065874
Change-Id: Ib7efdb44512badbf3d1f443aecb1993359dba402
2017-07-31 21:09:25 -07:00
Patrick Tjin
5ff203223c Change owner and permissions on pstore entries
Bug: 37554629
Bug: 37553996
Test: Walleye/Taimen able to post to dropbox
Change-Id: Ifdefd1164a42b79dcee691f21d96bda2c9628950
2017-08-01 00:27:02 +00:00
David Lin
2dc836a07b haptics: enable low-power trigger mode for edge sense
This patch enables the low-power trigger mode for drv2624 to allow the
SLPI to trigger the leading edge of a gesture while AP is in suspend
mode.

Bug: 62658365
Test: manually toggle the trigger gpio to verity
Change-Id: Icb795867355dda9bb6987a78eb93c8af1dfb0577
2017-07-31 14:02:40 -07:00
John Dias
1a78d72187 irqbalance: add msm_irqbalance to wahoo
Bug: 63632610
Test: boot, verify that irqs are pinned
Change-Id: I9a2132523f59b8a0a91c846174ce259b1d0f1e7f
2017-07-31 09:57:36 -07:00
Stuart Scott
77f8984cf8 Merge "Add SEPolicy for collecting battery counters" into oc-dr1-dev 2017-07-28 18:45:21 +00:00
Pat Tjin
7b6dde6c64 Merge "Add ramoops decryption" into oc-dr1-dev 2017-07-28 03:03:42 +00:00
Patrick Tjin
fe4a14cc0d Add ramoops decryption
Bug: 37554629
Bug: 37553996
Test: Walleye/Taimen able to decrypt ramoops
Change-Id: I834460a0d8dc878aef511ebac47335eb30e53980
Merged-In: I834460a0d8dc878aef511ebac47335eb30e53980
2017-07-27 21:57:06 +00:00
Stuart Scott
e1c91d450a Add SEPolicy for collecting battery counters
Bug: 63841211
Test: pts-tradefed run pts -m PtsHardwareInfo
Change-Id: I59f25fed1775eddb6f91c68b74f04b41b5777095
2017-07-27 11:46:14 -07:00
Yueyao Zhu
dd7d14380c Set port type to sink in charger mode
Bug: 62212404
Change-Id: Ib45f4877b6a06cb7a549cc45fec6b815dbd28950
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-07-26 22:54:48 -07:00
TreeHugger Robot
93788d1c87 Merge "init.hardware.rc: fix UFS device in charger" into oc-dr1-dev 2017-07-26 23:52:35 +00:00
Wei Wang
24fa372e83 init.hardware.rc: fix UFS device in charger
Bug: 64072712
Bug: 64022845
Test: boot from charger and check last kmsg
Change-Id: I8c890c55c9b578ae9e43be7f041dc2cbd4c80c15
2017-07-26 23:47:20 +00:00
TreeHugger Robot
32046c2c3d Merge "more vendor services to shutdown critical" into oc-dr1-dev 2017-07-26 07:08:27 +00:00
TreeHugger Robot
6149ab3aea Merge "dumpstate: Add battery cycle count to bugreport" into oc-dr1-dev 2017-07-26 04:37:23 +00:00
Ajay Dudani
38ef8d7082 dumpstate: Add battery cycle count to bugreport
Bug: 63841211
Test: Verify cycle count metrics are present in bugreport
Change-Id: I7c6a3af3ef687c99f88de5ee1c4d7433b618772e
2017-07-25 19:20:13 -07:00
Keun-young Park
116bc29ce1 more vendor services to shutdown critical
- Shutting down these services lead into close call blocked
  ,which can lead into blocking fput of the whole system and
  thus blocking file system umount / shutdown.
- Just keep them during shutdown as long as they do not access /data,
  /persist

bug: 37737296
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 100 -f -e 11 -w 30 -m boot_fs_shutdown=5000 -v and check if boot_fs_shutdown time exceeds 5 secs.

Change-Id: Ib42b1d840ee861730c82ecde9e08b288d3aae931
2017-07-26 01:17:32 +00:00
TreeHugger Robot
c31d2f638f Merge "Add touch sensor readings to Dumpstate" into oc-dr1-dev 2017-07-25 00:41:45 +00:00
Steve Pfetsch
71dc781941 Add touch sensor readings to Dumpstate
Bug: 63854271
Change-Id: Ibaa42bd977acdd0e68e4fc76db77a0c6023dc2a9
2017-07-24 15:18:59 -07:00
TreeHugger Robot
64e0268253 Merge "init.hardware.rc: disable bus-dcvs during boot" into oc-dr1-dev 2017-07-22 08:14:36 +00:00
Wei Wang
1dcf62a310 init.hardware.rc: disable bus-dcvs during boot
This CL will save 100ms towards system_server_ready and 200ms towards
BootComplete,  and also reduces the fluctuation per experiment.

- Enable powersaving in charger mode
- Enable bus-dcvs in boot_complete but not during boot
- Start perfd after init.power.sh completes
- Enable powerhint after perfd is started

Before
starting_zygote               : 3.4446  0.24937
nonencrypted                  : 3.678   0.23805
SystemServer_start            : 4.8719  0.25874
SystemUi_start                : 6.3992  0.36695
system_server_ready           : 6.7353  0.34765
BootAnimStopRequest           : 7.5966  0.3806
BootAnimEnd                   : 9.5259  0.399
BootComplete                  : 9.6221  0.42225

After:
starting_zygote               : 3.4261  0.22712
nonencrypted                  : 3.665   0.22334
SystemServer_start            : 4.8406  0.23445
SystemUi_start                : 6.2765  0.23754
system_server_ready           : 6.6392  0.23679
BootAnimStopRequest           : 7.7449  0.25752
BootAnimEnd                   : 9.2631  0.43299
BootComplete                  : 9.409   0.44021

Bug: 63644084
Test: 10 boot with packages/services/Car/tools/bootanalyze/bootanalyze.py
Change-Id: I975974dedea0cce23f74f15d842e7308e9797868
2017-07-21 22:23:54 -07:00
TreeHugger Robot
5cf711293d Merge "Run sensors daemon as system user instead of root" into oc-dr1-dev 2017-07-21 21:11:25 +00:00
Brian Duddie
b04b13e976 Run sensors daemon as system user instead of root
Grant capabilities and change file permissions to allow the sensors.qcom
daemon to start up as the system user/group, rather than running as
root.

Fixes: 63775281
Test: monitor logcat after reboot, confirm no file open errors. Run
QSensorTest, confirm all sensors provide sane data. Confirm that
IMU calibration can read + write its saved settings. Run sensors CTS.
Change-Id: Ib80ea21900d6af6cd34c82c4a63f50c7e0ac18ff
2017-07-21 11:49:42 -07:00
Jeff Vander Stoep
a7f3c18a08 init.hardware.rc: Fix file permissions in persist
The following files are new and need their permissions fixed up:
/persist/rfs/msm/slpi
/persist/rfs/mdm/slpi
/persist/rfs/mdm/tn

Addresses:
avc: denied { dac_override } for comm="tftp_server" capability=1
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability
avc: denied { dac_read_search } for comm="tftp_server" capability=2
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability
avc: denied { dac_override } for comm="tftp_server" capability=1
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability
avc: denied { dac_read_search } for comm="tftp_server" capability=2
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability
avc: denied { dac_override } for comm="tftp_server" capability=1
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability
avc: denied { dac_read_search } for comm="tftp_server" capability=2
scontext=u:r:rfs_access:s0 tcontext=u:r:rfs_access:s0 tclass=capability

Bug: 63921446
Test: Build and flash. Verify file permissions are correct now.
Change-Id: Id4cbafc345c9019530ce3c6fe4147186947c5c76
2017-07-21 10:32:53 -07:00
TreeHugger Robot
4e3275a9b7 Merge "init.hardware.rc: set ioprio to realtime for rmt_storage" into oc-dr1-dev 2017-07-21 03:49:40 +00:00
Jeff Vander Stoep
64f5ed4100 init.hardware.rc: set ioprio to realtime for rmt_storage
Setting ioprio to realtime within rmt_stroage requires unnecessarily
granting CAP_SYS_ADMIN, which is a highly privileged superuser
capability.

Having init set ioprio at service launch removes the need for
granting this capability and keeps rmt_storage unprivileged.

Addresses the following errors:
07-20dd 14:21:03.867   824   824 W rmt_storage: type=1400 audit(0.0:4):
avc: denied { sys_admin } for capability=21 scontext=u:r:rmt_storage:s0
tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0
07-20 14:21:03.874   824   824 E rmt_storage: Error setting io priority
to CLASS_RT (1)

Test 1 and 2 below verify that my change results in the intended
behavior. Test 3 is a sanity check to show the state without
granting CAP_SYS_ADMIN and to demonstrate that my change results
in the intended state.

Test: original code with CAP_SYS_ADMIN granted
    # ionice -p <rmt_storage pid>
    Realtime: prio 0
Test: ioprio_set moved to init.rc script
    # ionice -p <rmt_storage pid>
    Realtime: prio 0
Test: original code without CAP_SYS_ADMIN granted (sanity check)
    # ionice -p <rmt_storage pid>
    unknown: prio 0

Bug: 63074582
Change-Id: I9bc660aaca72f3df562e8010bc23c9731f648a9e
2017-07-20 08:17:34 -07:00
Jayachandran C
9882d1d7a6 AU293 drop rebase for IMS and radio related changes
1) Explicitly specify uid, gid and groups needed for cnd Add
CAP_BLOCK_SUSPEND
2) Move sys.ims properties to vendor.ims
3) Remove imscmservice from init as its not used on Pixel

Bug: 63850865
Bug: 63804057
Change-Id: Ie8f0eefa96a21605a63ae5a73e59270866704ed7
2017-07-19 23:49:55 -07:00
Nick Desaulniers
fd52eb310c Revert "init: restart qseecomd once /data is mounted"
This reverts commit 134f509da1.

I'm not sure if the start time of qseecomd has been moving around, but
it seems that this is no longer necessary.

Bug: 37589340
Test: enroll new fingerprints and authenticate with them. FDR should not
  have problems upon reboot.
Change-Id: I0b817143de5f3aa13ac5baabfe3c8a59f0341710
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2017-07-20 06:31:43 +00:00
Brian Duddie
27efdfcceb Run CHRE daemon as system user instead of root
Bug: 63818298
Test: confirm CHRE starts up, and HAL can communicate with it via
monitoring logcat and running lshal debug
Change-Id: I72f74d66f98266ba1bcd417e5ec61ace4ddb780c
2017-07-18 16:24:14 -07:00
TreeHugger Robot
ac31ae9116 Merge "add atfwd service and related policy." into oc-dr1-dev 2017-07-18 14:54:03 +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
Thierry Strudel
c09b928dd2 add atfwd service and related policy.
Bug: 37168913
Test: No more atfwd errors at boot
Change-Id: I8b05bbc33c8d393a9dcaabf4fd554fdfab126989
Signed-off-by: Thierry Strudel <tstrudel@google.com>
(cherry picked from commit a75d65362c8baef5c66e97c79d2840b00ce21bfe)
2017-07-13 15:39:30 +02: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
e9ae784048 Merge "Revert "configstore: applied uprev of configstore"" into oc-dr1-dev 2017-07-12 02:18:15 +00: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
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
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
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
Sunny Kapdi
f128f5c538 Enable bt wcnss_filter to collect crash dumps
Bug: 37298084
Change-Id: Id67e4faf27ea6d59fdbcc2affcd1f2e6eb2ba3dd
2017-07-01 00:39:26 -07:00
TreeHugger Robot
867145cecc Merge "Don't create /data/misc/sensors" into oc-dr1-dev 2017-07-01 01:13:27 +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
Brian Duddie
fba8eebc74 Don't create /data/misc/sensors
This folder is used for storing QC slang scripts, which are not used on
this device.

Bug: 38425697
Test: load, sanity check sensors
Change-Id: Ie40e356c57e98355117833df05f59e26c4754e74
2017-06-29 16:36:38 -07:00