Commit graph

1052 commits

Author SHA1 Message Date
Darren Hsu
4c5bbfc702 powerstats: update GPU EnergyConsumer channels
GPU EnergyConsumer should include both S8S_VDD_G3D_L2 and
S2S_VDD_G3D channels.

Bug: 243455584
Test: verified both channels are included
Change-Id: Ia63c89ff5ba24d026a4f0b1e368141521e47b611
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-08-26 07:39:57 +00:00
Jeffrey Carlyle
63e9c666f2 Revert "dck: pick up recovery mode library for digital car key w..."
Revert "move digital car key wiping to gs-common"

Revert "clear secure element of Digital Car Keys during factory ..."

Revert "dck: switch to gs--common implementation of digital car ..."

Revert submission 19734547-b203234558-qpr1

Reason for revert: see b/243864778
Reverted Changes:
I53967a5e8:dck: pick up recovery mode library for digital car...
I8fd944c60:dck: switch to gs--common implementation of digita...
I6e8c80818:move digital car key wiping to gs-common
I60052ca58:Support calling WipeKeys with out a ui object
I459d81800:clear secure element of Digital Car Keys during fa...

Change-Id: Ic3f42d0d2c6c78be47cacf9794e7727e6ee5475f
2022-08-26 06:36:57 +00:00
Robb Glasser
21ffd5f188 Dump usf stats history in bugreports.
USF saves a stat buffer to the filesystem periodically. Dump this as
part of bugreports.

Bug: 242320914
Test: Stats are visible in a bugreport.
Change-Id: I2020f48026fcad19e41c8959e404e0a0783a2ef0
2022-08-25 02:47:58 +00:00
Jeffrey Carlyle
a3a42642f3 dck: pick up recovery mode library for digital car key wiping
This is done by pick optionally including a Makefile so that aosp builds
in which the library is not present will pass.

Bug: 203234558
Test: adb reboot recovery; wipe data via menu; verify keys removed
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I53967a5e8ea0327d6467623929902b90eb2c85da
2022-08-24 12:25:12 -07:00
Roger Fang
7447cd3664 pixelstats: add ams_rate sysfs for ATOM of VendorAudioHardwareStatsReported
Bug: 239508478
Test: manually test passed

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I94b57a757ec8c75ef62b5aa3c516002b905f6f15
2022-08-23 15:34:12 +00:00
David Chao
0d14937aef thermal: move charger thermal HAL setup into project
Move charger pixel-thermal-symlink from common to project folder
to prevent the GKI version dependencies from blocking init.

Bug: 240897207
Test: thermal_symlinks worked properly in charging mode
Change-Id: I46a4fe59fe62845f8197d3a59b18af0945a163f4
2022-08-22 19:54:12 +00:00
Wendly Li
08c526a578 dumpstate: Dump GTI touch information.
Dump the touch information and rawdata when bugreport is triggered.

Bug: 214118904
Test: adb bugreport
Change-Id: I08834cf0176be69359264189b703486e33925f2b
Signed-off-by: Wendly Li <wendlyli@google.com>
2022-08-19 08:23:35 +00:00
Darren Hsu
0f2d1bd801 powerstats: add specific combination of data providers
Bug: 242695004
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ibf689ae6a05a8b9f8c634d354bbcce6731825c0c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-08-17 16:12:30 +08:00
Darren Hsu
9411790fc5 powerstats: include Aurora state residency stats
Bug: 229410570
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I02a3d647575292ccbe64c41fede06261648cd1e2
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-08-16 20:18:41 +08:00
Rick Yiu
b0718b6702 Modify rt_uclamp_min value am: 97064d1b58
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19576151

Change-Id: I540f259d1da61ef8dda59978ce49a0c075993342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:42:01 +00:00
Rick Yiu
97064d1b58 Modify rt_uclamp_min value
Change the value so that it will map to 910 MHz on mid cores, which
aligns the result of P21.

Bug: 234561004
Test: build pass
Change-Id: I372462d240c5de295959878322c62cc3657cce7c
2022-08-10 17:07:21 +00:00
achigoliu
d6a9d8b6ec handheld_core_hardware.xml should be included at device specific layer.
Bug: 237110906
Test: Manual, verify build artifacts
Signed-off-by: achigoliu <achigoliu@google.com>
Change-Id: Iaf784d28c76b4754a0337250e1bca6c123acc940
Merged-In: I391dce558e1a8407a20789497461700a67dcb5ef
2022-08-10 02:47:02 +00:00
Roger Liao
1fa1cf5d87 Scale the flexibility for snesor features settings
Support to exclude baro, HIFI, prox sensor features

Bug: 240652154
Test: adb shell pm list features
Change-Id: Ia1a14acc208f04e2264d3ee03a1cef958fd829af
2022-08-09 18:41:01 +08:00
wenchangliu
856edb8471 update bitrate modes capability for video encoder
Bug: 236896946
Test: check support bitrate modes from getEncoderCapabilities()
Change-Id: I07f824df9f47d3476438604a7fb4e5ab4ee55870
2022-08-09 09:48:44 +00:00
TeYuan Wang
f14529ed67 thermal: allow system to overwrite the skin_therm's trip point
Bug: 236787614
Test: ls -al dev/thermal/tz-by-name/skin_therm/trip_point_0_*
Change-Id: I382214c4942a4f29ee13bf85c8900d131067ae39
2022-08-09 03:08:54 +00:00
GOOGLE\huangaustin
1e179afa61 [PixelLogger][P22] Update P22 Pixel_default.nprf to enable PAL-TraceAlert trace for Power team
bug: 238886084
Change-Id: I3c2c7350ab8301d4fe0c0110a3d6c65f3edafa8f
2022-08-08 15:39:21 +08:00
Randall Huang
a245c22458 Enable scsi error recovery log for debugging
Bug: 239451498
Test: run storage-qa pixel/039
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I4031bd245d8b22762a5fe5a678bc8568ff4eb0c5
2022-08-04 01:33:48 +00:00
Adam Shih
45c6492990 Remove IBluetoothCcc from common setting
Bug: 239658601
Test: vts-tradefed run vts -m vts_treble_vintf_vendor_test
Change-Id: I6debd45beb274321a055bba4d551f4646ebf0663
2022-08-03 09:21:49 +00:00
Edmond Chung
2b0b2ca387 Camera: Create video_bokeh_node folder at boot am: 38305941b6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19499376

Change-Id: I80d7754b6d6eaf90172bd923cad31a0ffb22314e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 00:50:49 +00:00
Edmond Chung
38305941b6 Camera: Create video_bokeh_node folder at boot
Bug: 241054363
Test: Build, run on user-build
Change-Id: I8403c58ed5e9fa6f9bb68012298855d84cfec23e
2022-08-03 00:03:32 +00:00
Ananth Raghavan Subramanian
423562d561 init: Change pm_freeze_timeout
Reduce /sys/power/pm_freeze_timeout to 1s from default of 20s.
Data shows that the 20s timeout is rarely hit before suspend is aborted
due to a wakeup/interrupt. Reducing the timeout will help with
diagnosing task freezing issues and will reduce time spent attempting
suspend.

Bug: 239743579
Test: Successfuly boot to home, verify change in node
Signed-off-by: Ananth Raghavan Subramanian <ananthrs@google.com>
Change-Id: I839764dd06ebd66110c11953baf13c06e598dd80
Merged-In: I839764dd06ebd66110c11953baf13c06e598dd80
(cherry picked from commit e84f3603d1)
2022-08-02 16:43:51 +00:00
Andrew Chant
20c32a2874 gs201: convert_to_ext4: copy .files, fix md5sum am: b108713200
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19399336

Change-Id: I5d452000eabacc5ee3ef3485d90c97911fcabc37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:31 +00:00
Jaegeuk Kim
74ff274895 Use EXT4 for /persist am: 83e0b84caf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19388119

Change-Id: Ic16b53341152a794ae2591e4a7fb25df26b41cd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:28 +00:00
Konstantin Vyshetsky
bab4345e6b gs201: add script to migrate persist to ext4 am: 214b76abd3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19391442

Change-Id: Ia821dfb32ba14e9610d63cc83653408fc80d20d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:17:27 +00:00
Andrew Chant
b108713200 gs201: convert_to_ext4: copy .files, fix md5sum
Copy files in persist/.*
Don't leave md5sums file in the persist folder.

Bug: 239632964
Signed-off-by: Andrew Chant <achant@google.com>
Change-Id: I7d351806f95ccc28fcfec4d45ecf3bda488e7e15
2022-08-01 18:00:49 +00:00
Jaegeuk Kim
83e0b84caf Use EXT4 for /persist
Bug: 239632964
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Idf41e3b71fec50029b77951550def1b8c750a42d
2022-08-01 18:00:49 +00:00
Konstantin Vyshetsky
214b76abd3 gs201: add script to migrate persist to ext4
Bug: 239632964
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: If3ac021dec5b25968e83f926518e2881c92d2275
2022-08-01 18:00:49 +00:00
Bruce Po
301ce08839 Add TARGET_PRODUCT variable to aoc daemon build
Add TARGET_PRODUCT variable to aoc daemon build. This will be useful for
including/excluding certain features depending on product type, e.g.
T6 hotword AP offload.

BUG: 240748763
Change-Id: I412309789279830e2380764bb475a9c65b39c355
2022-07-30 00:03:43 +00:00
Darren Hsu
46a0ab6018 powerstats: include WLAN data provider in PowerStatsHAL
The specific device uses QC solution on wifi. Include WLAN state
residency data provider in PowerStatsHAL for the device.

Bug: 231397821
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I268dd007c9998c9453107a7ff9507203aee0f87c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-07-29 03:34:51 +00:00
Stephane Lee
53dc3e39a6 Add device-specific support for GoogleBattery AIDL V1
Bug: 232461104
Test: Ensure Adaptive Charging/Battery health flags works as expected
Change-Id: I8266f622641ca42672685ce3869f03b433cadbe6
Merged-In: I8266f622641ca42672685ce3869f03b433cadbe6
2022-07-28 20:01:51 +00:00
Darren Hsu
19b932eb41 powerstats: remove bluetooth data provider on the specific device
The specific device uses QC solution on Bluetooth. Remove support
of Bluetooth state residency data provider in PowerStatsHAL on the
specific device.

Bug: 231395549
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ic94d9ca2ddefa5ac09bc83bf156a4972562506ea
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-07-27 07:56:02 +00:00
Roger Liao
bf885d8d52 gs201: exclude telephony.carrierlock feature if BOARD_WITHOUT_RADIO
Bug: 238702278
Test: build pass, boot successfully, adb shell pm list features
Change-Id: I16e25061ca63a9134a20db249e469e1a4b227657
2022-07-26 17:51:40 +08:00
Roger Liao
312ccd4c63 gs201: exclude vendor telephony code if BOARD_WITHOUT_RADIO
Bug: 235907512
Bug: 238702410
Bug: 238702413
Test: build pass, boot successfully, adb shell pm list features
Change-Id: Id2923e5b8ea0cce844a6436ce2a4b83a428c5b14
2022-07-26 17:51:40 +08:00
Roger Liao
424daa6932 Scale the flexibility for camera flash/autofocus settings
Let clients determine the configuration of camera flash/autofocus
features. Copy the rule by conditions:
- android.hardware.camera.xml for a non auto-focus camera.
- android.hardware.camera.flash-autofocus.xml for an auto-focus camera.

Bug: 239142680
Test: adb shell pm list features
Change-Id: I82fc7284743453712b6468efbb348c25b8c2ca88
2022-07-26 06:35:29 +00:00
Adam Shih
1334b20d50 Accelerate fetching trusty log am: b074658691
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19395411

Change-Id: I017794c4596b40cef0ad0b82059ae816fdd18a4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 00:34:12 +00:00
Adam Shih
b074658691 Accelerate fetching trusty log
Bug: 238980177
Test: vts-tradefed run vts -m VtsHalDumpstateTargetTest
Change-Id: Ib26f3c217ef4826495ee0d98a659503de2fb5ab2
2022-07-26 00:12:44 +00:00
Edwin Tung
41812d12e7 gps: update gps driver 143.20.23.545390 am: c73de44aea
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19378472

Change-Id: Ib4017742e6cb92a6d8005f1d69ea94aab90fda5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 07:23:06 +00:00
Jack Wu
ed1fa3ae48 init: disable dock-defend
User will enable/disable this feature from UI setting

Bug: 239889098
Test: dock-defend is disabled by default
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I1b0dd49208f345d4edeee81f9b07d2de93f97d45
2022-07-22 03:58:20 +00:00
badhri
7d34263bf9 Set powerBrickStatus to not connected when sourcing power
Bug: 239755044
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I7720bfaa5876c058643c52525b488ba22b3e5121
2022-07-22 02:31:35 +00:00
Edwin Tung
c73de44aea gps: update gps driver 143.20.23.545390
Fix SUPL SI/NI race condition issue

Bug: 211060538

Verify test: 239810703
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: I81c7a4f0887fe1a42074cd0a9f933b8c3e33c136
2022-07-21 22:01:08 +08:00
George Lee
713b995e29 logger: Change access right to lastmeal.txt
Bugreport cannot access lastmeal.txt due to access right.

Bug: 239709385
Test: confirm lastmeal.txt has system:system
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I50375ae10a7018b059245afbe571b6c0280ae808
2022-07-20 23:12:16 +00:00
Cheney Ni
a150e72f05 Bluetooth: correct logbuffer_btpower owner to Bluetooth
Bug: 229691092
Test: Pass file permission check
Change-Id: I62c0c32124859db36b530a861bcc554d9a9d6c33
2022-07-20 19:05:20 +00:00
Hsiu-Chang Chen
8e65c0cf8f wifi: Disable 6GHz channels on P2P
Bug: 236231546
Test: Run P2P ACTS Tests
Change-Id: I22fb7785a35425e41fafc5ffb127c9a4ab0d68e4
2022-07-19 12:52:38 +08:00
Christopher Ferris
e225662f04 Force build everything as 64 bit. am: f60ad6f3dd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19294720

Change-Id: I84d781d76542eb9dbcc7dbfab7af9553190e73ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-15 20:27:37 +00:00
Christopher Ferris
f60ad6f3dd Force build everything as 64 bit.
When building the 64 bit and the 32 bit executables, there
are a few targets that are prefer32. Using this option forces
those executables to be built as 64 bit.

Bug: 229787331

Test: With this option, drmserver/mediaserver are built as 64 bit.
Test: Without this option, drmserver/mediaserver are built as 32 bit.
Change-Id: Ie76ffe17f14b5157983796a616436bfa12987136
2022-07-15 20:06:52 +00:00
Robin Peng
6f754fdde9 init.gs201.rc: remove vendor.device.modules.ready from 'on init' section
1) for projects with device specific modules, this property should only
   be set while device modules been loaded.
2) also remove "wait_for_prop vendor.device.modules.ready 1" to prevent
   infinite wait
3) migrate vendor.all.modules.ready/vendor.all.devices.ready to
   init.insmod.<DEVICE>.cfg and set these proprieties while .cfg not
   exist

Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: Ie5a2b939191947c4fce154dde48859a28fe86329
2022-07-15 14:43:48 +00:00
TeYuan Wang
938a1692d5 thermal: allow system to overwrite the usb_pwr_therm2's trip point
Bug: 233003074
Test: ls -al /dev/thermal/tz-by-name/usb_pwr_therm2/
Change-Id: I2ac803d455ebd7240bedf70bbcf98ef3c9e1d8c3
2022-07-15 07:12:25 +00:00
wenchangliu
1af394158a update performance-point for media performance class 13 am: 0da7092027
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19272129

Change-Id: I823a999bb35ee8732c9860111fdffd60f88c0fd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 16:11:26 +00:00
wenchangliu
0da7092027 update performance-point for media performance class 13
Support 6 instances of hardware video encoder/decoder
sessions (AVC, HEVC, VP9 or AV1) in any codec combination
running concurrently at 1080p resolution@30fps.

Bug: 235188037
Test: CtsMediaPerformanceClassTestCases
Test: CtsMediaEncoderTestCases
Change-Id: Ie2f4cd437f57c4a011cfd3f332193eb3276c39a7
2022-07-14 15:46:42 +00:00
Christopher Ferris
93e0af1927 Enable 32 bit building, but only 64 bit zygote. am: 377294ed9d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19281764

Change-Id: I6ce6619ae26e7933572a0d17bc03344fb08da477
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 00:55:06 +00:00