Commit graph

451 commits

Author SHA1 Message Date
Gillian Lin
579543db80 cts: VerifiedBootTest#testVerifiedBootSupport
android.software.verified_boot.xml should be copied to TARGET_COPY_OUT_VENDOR instead of TARGET_COPY_OUT_PRODUCT

Bug: 190401885
Test: run cts-on-gsi -m CtsSecurityTestCases -t android.security.cts.VerifiedBootTest#testVerifiedBootSupport
Change-Id: Id17176f07e6ae8843f71b10ad9d01b18640fe675
2021-06-16 09:24:24 +00:00
Adam Shih
3e058b1e5c remove vcd from user ROM
Bug: 190331325
Test: build all ROM variants with only user ROM without vcd
Change-Id: I0732f80c2adc663c807963b84c70080665212bb2
2021-06-16 06:40:27 +00:00
Edwin Tung
3bbde56bae gps: update gps driver 129.20.23.504156
Integrated CHPP- chpp-20210524-39bf8f5.zip
Adjust the noise table for GPS
False L5 SNR removed by adding valid peak check to L5 CN0
Fixed for SyncIn request to time out within 3 seconds
Support multiple measurement requests
Estimated better accuracy uncertainty in GLNS Only fix
Request UTC time from framework even if the request type is BREADCRUMB
Fixed Reset checking timer for default value of CpResetInvalidateSec to properly work

Bug: 188843280
Bug: 189793458
Bug: 188857474
Bug: 188127870
Bug: 188737899
Bug: 185200717
Bug: 184770261
Bug: 185884684

Sanity test: 190960119
Test: build pass

Change-Id: I969b3ce240583d726f28e93da76c74f1c369a505
2021-06-16 01:52:00 +00:00
Ahmed ElArabawy
0c6ba84d72 WiFi: Modify OWNERS files
Replace kumaranand@ with arabawy@ in OWNERS files

Bug: 191158491
Test: None
Change-Id: Iefc7343bc311f5642b165d24217ea8d264918ea2
2021-06-15 23:35:50 +00:00
Wei Wang
2fee52bbf5 Relax SurfaceFlinger cpuset and adding uclamp.min for RenderEngine
SurfaceFlinger IPC improved with mid and big cores, relaxing cpuset will
help improve its efficiency. For render engine, we set uclamp.min to
skip scheduling on little cores.

FWIW, we let the RT scheduler figure out what is good for perf/power.

Bug: 170507315
Bug: 191054286
Test: Build and boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I880cf549e33a3a2f629e8260366c4ce8c34c3ae6
2021-06-15 19:15:18 +00:00
Armelle Laine
e81847c70d ueventd.gs101.rc add /dev/trusty-log0
Specify ownership to system and r/w permissions to user/group.
Allows dumpstate to access /dev/trusty-log0.

Bug: 188285071
Test: lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default trusty
Change-Id: I935cb9dd11d1e0968ab0e2c9d7349de336502e7c
2021-06-15 14:35:43 +00:00
Armelle Laine
fbbe7e36c7 dumpstate: dump trusty log
Dump trusty log buffer

Bug: 188285071
Test: adb bugreport
Change-Id: Ic44816fe1df21e97ec87ec58cbc2f84abf0e6a98
2021-06-15 14:35:43 +00:00
samou
c1cf9f84b5 powerstats: Fill in P21 TPU power profile number
Bug: 189249509
Change-Id: I134f3c005ec0eb17e97b829627ba22d552b7bfdb
2021-06-15 11:23:02 +00:00
Tai Kuo
ca8a4cc11d dumpstate: show touch HDM debug info
Bug: 187174041
Test: trigger a bug report.
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I0bd8329f087391c95447e015be6f576a4ecbb3e2
2021-06-15 10:04:29 +00:00
Fiona Campbell
283a690993 Revert "usb: set sys.usb.mtp.batchcancel to true"
Revert "Add sys.usb.mtp.batchcancel to usb_config_prop"

Revert submission 14910151-mtp_cancel-sc-dev

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_sc-dev&target=cf_x86_64_phone-userdebug&lkgb=7458085&lkbb=7458560&fkbb=7458104, bug b/191120942

Reverted Changes:
I44b2d9c36:Add sys.usb.mtp.batchcancel to usb_config_prop
I4e172fa62:MTP: add a new parameter for cancelEvents function...
Iad744e27e:usb: set sys.usb.mtp.batchcancel to true

Change-Id: I3189b76db2837f3c17b1cf42eaaed8da8cfb81ac
2021-06-15 08:52:16 +00:00
Ray Chi
739399aed2 usb: set sys.usb.mtp.batchcancel to true
The cancelling behavior in MTP has two behaviors.
1. cancel requests one by one
2. batch cancel all requests

This patch will set the property to true to enable
batch cancel all requests.

Bug: 181729410
Test: build pass
Change-Id: Iad744e27e6f843ae22fc499efbb803be51e1b820
2021-06-15 05:16:02 +00:00
Super Liu
69c195292b dumpstate: add touch #19 data type
Bug: 174189876
Test: check bugreport for #19 data.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I288d8079528f99834a1867ab973535d4e7b383b6
2021-06-15 04:55:54 +00:00
ChengYou Ho
ca32deaaf1 Report Verified Boot support
Bug: 187375216
Test: CtsSecurityTestCases
Change-Id: I26304f48019a4c5df7aa683eb19236125ddb5cd3
2021-06-15 03:41:30 +00:00
Ted Lin
0671df09b8 Remove the attribute set from init.rc for debugfs
[    2.993897] audit: type=1400 audit(1623037840.652:4): avc:  denied  { setattr } for
pid=374 comm="init" name="registers" dev="debugfs" ino=9 scontext=u:r:vendor_init:s0
tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

[    3.079941] audit: type=1400 audit(1623037840.740:7): avc:  denied  { setattr } for  pid=374 comm="init" name="fg_model" dev="debugfs" ino=18 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_maxfg_debugfs:s0 tclass=file permissive=0

Bug: 190337297
Test: check bugreport
Change-Id: Ia6d33d6192b230be763e52298b86a21b632ffa90
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-15 02:37:45 +00:00
Jimmy Shiu
16934c353f ADPF: add ADPF_DISABLE_TA_BOOST for powerhint
Add ADPF_DISABLE_TA_BOOST hint for masking TA boost when ADPF is active

Test: build, boot to home
Test: adb shell cat /sys/kernel/vendor_sched/ta_uclamp_min
Bug: 177493042
Change-Id: I6bbeebf80fe4ba7b1e957cde5ed0d4202a2da818
2021-06-14 17:09:07 +00:00
Wei Wang
4b696faee6 Enable ADPF hint
Test: build, boot and trace
Bug: 177493042
Change-Id: I05bc6b879506934ad35521ae21e2b3a33740f268
2021-06-14 17:09:07 +00:00
Ruslan Tkhakokhov
0947a2b506 [gs101] Swap Pixelmigrate for Restore APK in default-permissions
Bug: 186731327
Test: atest DefaultPermissionGrantPolicyTest
Change-Id: I5d63d1cf918dead3c6fa6db6c131404e37f91232
2021-06-14 11:14:57 +00:00
Martin Liu
c739bbe115 device-common: include Pixel common MM mk file
This will enable zram and Pixel common config

Test: confirmed first writeback work via dumpsys jobscheduler | grep Zram
      check watermark_boost_factor
Bug: 190571517
Bug: 189938926
Bug: 190732106
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I1a475ea5481d21c7f9fa14eb5f01c6d6802def72
2021-06-14 07:43:37 +00:00
Minchan Kim
c255722fe9 enable zram writeback job scheduling
Test: Confirmed the initial write working with console  log
Bug: 190571517
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Idb9f800455c62251bad333a015385cb5bd5029cc
2021-06-14 03:14:53 +00:00
Sung-fang Tsai
27528a54d8 Add GCA_CAMERA_SHOT power hint.
GCA need intensive processing for camera shot and need to tune the
system performance to speed up the processing time. Adds
GCA_CAMERA_SHOT_{BIGCPU/BIGMIDCPU/ALLCPU} power hints to enable GCA to do
adequate power hint for this situation.

Bug: 187373665
Test: On device with GCA: b/187373665#comment8 with forrest.
Change-Id: Ife75e52a60de4d67369280998b193fe3ca7f8173
2021-06-13 09:30:22 +00:00
Kelly Rossmoyer
eba0f4ff66 Adaptive Suspend: configure first param set
This CL configures the first set of experimental parameters for Adaptive
Suspend on targeted devices, including:
* dropping the max backoff from default 60 seconds down to 40
* changing the break-even threshold from 5 seconds (which was just for
  collecting data) to 2
* enabling backoff on short suspends

BUG: 171433995
Test: ran on test device and observed suspend behavior
Change-Id: Icebf50aeade713591f1641664df11570d184d352
2021-06-13 00:34:09 +00:00
Kris Chen
71391a0cec Add power hint for fingerprint
Boost frequency of CPUBigCluster when running fingerprint algorithm.

Bug: 185893477
Test: Observe from systrace that the CPU frequency is boosted when
      running fingerprint algorithm.
Change-Id: I9e8e727a61f9a2679fc2a00d6e2a1dd4a6c9de99
2021-06-12 10:08:33 +00:00
Jimmy Shiu
c87b3df93e Remove little core hard freq boost for the INTERACTION
Set SF uclamp.min instead of a min floor

Bug: 190145608
Test: Manual Test
Change-Id: Ie54be008739ea2555fcf8eb7878593d4bdddb89b
2021-06-12 06:05:29 +00:00
Jimmy Shiu
e209e8fbe9 Enable SF main thread boost with uclamp.min=30
Bug: 190137562
Test: boot and check uclamp.min of SF
Change-Id: Ifd6ad8d67fb0a3ecd2464540b670839cea1e867b
2021-06-12 06:05:29 +00:00
Kyle Lin
dc29ed3477 init.gs101.rc: adjust memlat settings
Bug: 170479348
Test: build, boot and check the values
Change-Id: I4d2463dbb377074916ac1d5fe2f4b8880fa58da0
2021-06-11 00:06:23 +00:00
Peter Liu
2abc122f88 camera power hint: add prefer high cap and prefer idle = 0 to top app
Prefer high cap and prefer idle is to optimize power and
trade off with scheduling latency.
Applying to app side does has no regression on frame drops.
And we can not apply prefer idle to hal process as it impact performance.

Bug: 190127212

Test:
1080p60: 20mW power saving, 59fps no regression
slow-mo 240fps: 239+fps

Change-Id: I548becbd2d6ccac8b576cfe54f9021bbf30b4801
2021-06-10 19:40:32 +00:00
Taehwan Kim
2599bb6d29 firmware: update MFC F/W(21/05/31)
- Modified HEVC decoder error handling which
    copy the nearest reference frame to current frame when error is detected.
- Implemented so that SBWC can be off/on during decoding when SBWC is enabled.
- Fix the max I frame size calculation bug when RC mode is CBR_VT. (RC_MODE = 3)
- Modified so that H.264/HEVC decoder can consumed AUD NAL type stream
    when AUD is added at the end of frame.

Bug: 176415285
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
Change-Id: I6ceb2cdc2544a40dc505772fb50b5bd1ccd720bd
2021-06-10 10:18:18 +00:00
Yu(Swim) Chih Ren
acfa6b834f Remove clock boost configuration for MIF,TNR,CAMINT when CAMERA_LAUNCH in powerhint.json
Reason for remove: face enroll fail

Bug: 168654554
Bug: 187759712

Test: check ISP clock freq no change on local device
Change-Id: I7d70c1fdd7e5d067db1941cced69a375b66ebc89
2021-06-10 09:28:08 +00:00
Adam Shih
cdc350b5e6 reorganize trusty_metricsd settings
Bug: 190331503
Test: build ROM and see the file and sepolicy settings are still there
Change-Id: I212df916799b8acf831158153209bd2a1f7dfc5f
2021-06-10 05:52:40 +00:00
Rick Yiu
7e195263bf gs101: Refine vendor_sched parameters
Also set 512 to bg_group_throttle.

Bug: 170508405
Test: value set correctly
Change-Id: I5ff0a9630b459b8783f358106da4ca2a20154636
2021-06-10 04:16:44 +00:00
Adam Shih
a169c37d9d organize EdgeTPU modules and sepolicy
Bug: 190331327
Bug: 190331548
Bug: 189895600
Bug: 190331108
Bug: 182524105
Bug: 183935302
Test: build ROM and check if the modules and sepolicy are still there
Change-Id: Id28ac2094e14051defe0401055d862c6353194f7
2021-06-10 02:53:28 +00:00
David Chao
851357462f powerhint: thermal: Support powerhint to change tmu control-temp
Bug: 188579571
Test: powerhint changed control-temp properly.
Change-Id: I7d57ab3b3895d2f358d0bd1911224325ede9dd51
Signed-off-by: David Chao <davidchao@google.com>
2021-06-09 14:31:39 +08:00
chened
a5afec518c camera: disable partial result by default for factory build
Test: build pass
Bug: 190228974
Bug: 190250102
Change-Id: I92c6d3f9e85a3b9d04a48b5c6d8cd5bdde7a63c0
2021-06-09 05:22:44 +00:00
Yu(Swim) Chih Ren
09706755b6 Use powerhint to increase mem, intcam, tnr clock when camera lunch to
improve camera start performace

Bug: 168654554

Test: 1. check clock freq related file when camera start
      2. P21 camera checklist

Change-Id: I3447a6028846cc873e9c7195826c470bceaf03c8
2021-06-09 04:18:05 +00:00
Adam Shih
e89080c7a6 modulize hal_neuralnetwork_armnn
Bug: 189895314
Bug: 171160755
Bug: 171670122
Bug: 180858476
Test: make sure all affected devices' armnn module has the right label
Change-Id: Ie618a5477b4e447774b20a58c9f091ae9fe529d6
2021-06-08 23:03:04 +00:00
Daniel Mentz
c37a73b74f gs101: migrate to bootimg header v4 (second attempt)
We migrate to bootimg header v4 and build the following two vendor
ramdisk fragments.

Type: Platform, Name: "", Contents: Everything but kernel modules
Type: DLKM, Name: "dlkm", Contents: Kernel modules (incl. modules.load etc.)

Bug: 183237066
Change-Id: I626cb87ba8111d0615b80cf981ebc288893a0624
2021-06-08 22:29:48 +00:00
Lucas Dupin
d8f101ad4c Enable blurs
Bug: 181092919
Test: manual; performance scripts
Change-Id: I5875a99167e80ddd5b79fc245f988d8a6ac167be
2021-06-08 16:38:30 +00:00
Cyan Hsieh
88218211cc Revert "Set audio.camerasound.force for JP devices"
This reverts commit b6c4f766b748af81d502cf031c75b2c6c4c7cf09.

Reason for revert: switch to use ro.boot.hardware.sku for judgement

Bug: 188396079
Change-Id: I012b2d32d9b7245fd1d1be5a00c5e922a1f52d19
2021-06-08 16:50:31 +08:00
David Li
4e9ad88e66 audio: upgrade audio.usb.default from v1 to v2
Bug: 187912470
Test: make -j128
Test: deep buffer and compress offload via speaker, USB headset, BT
earphone
Test: phone call via handset
Test: hotword detection

Change-Id: I0385873c7087660d03ccc582f31825a901ae1b8e
2021-06-08 06:14:43 +00:00
linpeter
cc1a0db348 init: set LHBM node permission before start hwcompower
Give local_hbm_mode node sutiable permission to allow
hwcomposer to set local_hbm_mode to display driver.

Bug: 184768835
test: check file node permission
Change-Id: I2e5dcd87ba27a1ccf8de14a12472ba806833ed12
2021-06-08 05:30:43 +00:00
Adam Shih
fa935b0795 remove obsolete module
Bug: 190330778
Test: build the ROM with the module gone
Change-Id: I38b604e2ee5be017b5eccf98d405ee896b5e6ea4
2021-06-08 03:25:59 +00:00
Isaac Chiou
206366eb0a config: Override disable firmware roaming via HAL API
ag/13790852 provides a solution to disable fw roaming if the connection
is triggered with a specific bssid.
We set config_wifiUseHalApiToDisableFwRoaming to true to enable this
feature.

Bug: 178398607
Test: Build Pass
Test: Make sure HAL api wifi_enable_firmware_roaming can disable roaming
Change-Id: Ia4b6cf80aefbce76c994532175693f38a0698a5a
2021-06-08 02:34:05 +00:00
Maciej Żenczykowski
0fc8c4d49f remove dead code - property:sys.usb.configfs is never 1
Bug: 172793258
Test: built and booted on oriole, tethering still works
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Iff304938e57e28b3a62784fbd0b226a20e0f53cc
2021-06-08 02:14:33 +00:00
Yan-De Chen
06c8aadc14 Revert "Camera: Enable LTM for factory builds"
This reverts commit d72626741ce5faa6404f52e61408d3ce93690fa3.

Reason for revert: disable ltm to improve camera stability

Test: build pass
Bug: 189934073
Change-Id: I2a23823b8d0c5a6686e6a675f575cf8a0bbd49de
2021-06-07 04:42:37 +00:00
Edwin Tung
d07bdce1e7 gps: update gps driver 128.20.23.502791
Fixed an issue to count valid L5 measurements in the L5 bias estimation process
Fixed wrong context detection issue when the first fix is made
Set group readable permission to esw-crash-dump
Added SIT_SET_GPS_STATUS IPC to inform of gps running state to modem
Fixed crash issue at ProvideLppeCapabilities() while KDDI testing
Fixed issue that gpsd send release connection request upon receiving NI message
Fixed gpsd busy loop after OnTcpConnect happend when it fails to SSL_connect() with SSL_ERROR_SYSCALL
Fixed Reset checking timer for default value of CpResetInvalidateSec to properly work

Bug: 189063756
Bug: 185203617
Bug: 189711389
Bug: 185545476
Bug: 189715043
Bug: 189730213
Bug: 188870406
Bug: 185884684

Sanity test: 190014066
Test: build pass
Change-Id: I99b7173c9f28ed5f6a05a272709f6caa4748aed1
2021-06-07 02:17:34 +00:00
Nicole Lee
2148f02c08 dumpstate: stop modem always-on logging only
Dumpstate will only collect always-on modem logs,
should only stop modem logging when it is always-on

Bug: 189441741
Change-Id: Icc4e1940aab774d56e51e966248985dda539890c
2021-06-07 02:14:16 +00:00
Wei Wang
6181c3ef5e Remove mid/big core min boost for touch boost
We have TA uclamp.min for top app, keep min boost for SF.

Bug: 190145608
Test: UiBench
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I5f307cc7fa53c28a0ac64be83fe2234c2e04ff12
2021-06-04 13:27:36 -07:00
Albert Wang
a902992f64 Correct the file permission for usb data on/off
Bug: 180711938
Test: access nodes normally
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: I12e3357e675a77f3beb5f9fd6d3ada4378e10693
2021-06-04 08:36:17 +00:00
Aaron Ding
49c8f94192 Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds
Bug: 186500818
Change-Id: Ic8534da52b093fc3278abd2f243a506d87196b1e
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:01:50 +00:00
Aaron Ding
aa420345a9 do not mount the debugfs on userdebug builds
Bug: 186500818
Change-Id: Ic22af74fa850b1072c3dc781a3b49ae95a9156ba
Signed-off-by: Aaron Ding <aaronding@google.com>
2021-06-04 04:00:00 +00:00