Commit graph

3165 commits

Author SHA1 Message Date
Wasb Liu
a573337875 init: add battery persist folder
add persist battery folder for BatteryDefender

Bug: 258535661
Test: confirm the BatteryDefenter feature works fine
Change-Id: I5e2925d4fe188e0a104f2b20e7b230d60d7f8039
Signed-off-by: Wasb Liu <wasbliu@google.com>
2022-11-30 09:44:34 +00:00
Android Build Coastguard Worker
6af93ac85a Snap for 9348344 from 0cdf324421 to tm-qpr2-release
Change-Id: I01c196749fbf5913ce3b918fbcd4163816c53c2d
2022-11-30 00:03:26 +00:00
Xin Li
0079ea5877 Merge TQ1A.221205.012
Bug: 255404110

Merged-In: Ia58fd269e611e8eda8d7abfce25f906f9f9e4f18
Change-Id: I7d2519c93ce8c11b8eb45a47fac9a3fc16145138
2022-11-29 15:18:13 -08:00
Mason Wang
88d6fccbd1 [automerger skipped] Dumpstate: Avoid to dumps on invalid file node [DO NOT MERGE] am: 0cdf324421 am: aecc127679 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20400885

Change-Id: Ib55fe3fbdb163b6b722e65805b486e7788bdbaa7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29 08:39:04 +00:00
Mason Wang
aecc127679 Dumpstate: Avoid to dumps on invalid file node [DO NOT MERGE] am: 0cdf324421
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20400885

Change-Id: I761f6de142652d33925a18ae1efd049c41ba25ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29 08:06:53 +00:00
Adam Shih
5382b6adb3 move touch dump to gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: Ic13dc189eccd1a5f4f204326b1e93303b9492f69
2022-11-29 04:47:15 +00:00
Ziyi Cui
f96a1b8ad0 gs201:use gs-common pixel_metrics dump
Bug: 227809911
Bug: 232541623
Test: Test: "adb bugreport" includes metrics capture.
Change-Id: Ie1e6078713a969c490cba67ad64aac8328ac62df
Signed-off-by: Ziyi Cui <ziyic@google.com>
2022-11-29 01:02:45 +00:00
Ziyi Cui
a67765d834 gs201: pixelstats: add pixel perf stats paths
Add pixel perf metrics paths in sysfs paths list

Bug: 232541623
Test: Tested resume latency metrics
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: I7301e3ba53497906ad523dd9f02ccfe796b5c2de
2022-11-29 01:02:45 +00:00
Mason Wang
0cdf324421 Dumpstate: Avoid to dumps on invalid file node [DO NOT MERGE]
Bug: 226475119
Test: Verify pass by touch dump data in bugreport.
Change-Id: I9088ca44a9111ae36462f340da57dfe27d4b86ec
2022-11-28 11:51:37 +08:00
Nicole Lee
5e4a977ba3 Update pixel stability logging mask am: ef3195940e am: bb6391f06b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20567678

Change-Id: If0b2e35022991e7babd44042ceeb2e4931f6fff6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 02:51:53 +00:00
Nicole Lee
bb6391f06b Update pixel stability logging mask am: ef3195940e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20567678

Change-Id: I2db00135ba10b3dcb4144a57132a4d5ca6051350
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 02:23:22 +00:00
Android Build Coastguard Worker
7affa733ab Snap for 9339220 from ef3195940e to tm-qpr2-release
Change-Id: If3b20cccc1372c0dd4791e7281955be9a4d7cc6c
2022-11-28 02:02:52 +00:00
Nicole Lee
ef3195940e Update pixel stability logging mask
- Enable COMMON_HAL, PAL_PWR

Bug: 260304925
Change-Id: I7a78616ee045aadece5cac370839c7544e39f240
2022-11-25 17:30:16 +08:00
Puma Hsu
6c7e5cc70c usb: modify the initial_descriptor_timeout to 500ms am: 0c3dc78fb9 am: 360258f4c0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20543177

Change-Id: Ifcd90540366282cf936add885f8567eed145583a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-25 02:47:45 +00:00
Kieran Cyphus
a7abfe801b Dumpstate: include LoggingMaskHistory.csv on bugreport am: fef314ea8a am: be98ee5556
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20335689

Change-Id: I5755190c4644be3b321fcbde163e11f1d0b2293e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-25 02:47:26 +00:00
Android Build Coastguard Worker
01a5eaa103 Snap for 9330113 from 0c3dc78fb9 to tm-qpr2-release
Change-Id: I7dc3b9fbc7e61908875db536a4b7f766ee7d9476
2022-11-25 00:03:01 +00:00
Puma Hsu
360258f4c0 usb: modify the initial_descriptor_timeout to 500ms am: 0c3dc78fb9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20543177

Change-Id: I632cdcbff310653d210cf81f910265d229ac33ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-24 14:10:52 +00:00
Puma Hsu
0c3dc78fb9 usb: modify the initial_descriptor_timeout to 500ms
Since retry times of kernel driver are 24 during USB enumeration,
the total time of bad USB enumeration will waste 48 seconds.

This patch will reduce the timeout from 2 seconds to 500ms, so the
total time is changed to 12 seconds.

(cherry-pick from commit dd9bb5578cd197b44f32c0c19aca79610b5bdd54)

Bug: 256100001
Test: the timeout value is 500
Change-Id: I6c30e3c9168242f5c22443cbd5622892617e0520
Signed-off-by: Puma Hsu <pumahsu@google.com>
2022-11-24 13:34:14 +00:00
Ziyi Cui
68cf879bb1 gs201: pixelstats: add pixel temperature residency stats paths
Add pixel temperature residency  metrics paths in sysfs paths list for gs201

Bug: 246799997
Test: Verified the existence of atom and correctness of atom stats
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: Ib0788756eb77490e257145bd90c9b8041149ede0
2022-11-24 00:11:30 +00:00
Android Build Coastguard Worker
64147f2fdb Snap for 9325773 from fef314ea8a to tm-qpr2-release
Change-Id: I796f727c377fe095c0d5a5abe414f4fde094a06d
2022-11-24 00:04:00 +00:00
Kieran Cyphus
be98ee5556 Dumpstate: include LoggingMaskHistory.csv on bugreport am: fef314ea8a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20335689

Change-Id: Idd9b5560df3a01dfdbf22bc1d73061d4306ff2bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23 07:58:09 +00:00
Kieran Cyphus
fef314ea8a Dumpstate: include LoggingMaskHistory.csv on bugreport
Bug: 241739027
Test: trigger bugreport with `adb bugreport` and inspect the
logs to to make sure it is copying over LoggingMaskHistory and
including it in the tar file at the end.

Change-Id: I93ad2655193c57a0782c1535dc1cde3d0db1aeec
2022-11-23 07:27:30 +00:00
Adam Shih
4b1a772fa3 use gs-common thermal dump
Bug: 257880034
Test: adb bugreport
Change-Id: Ie4855d54999266b4a33b80b2e44f5f956438b99c
2022-11-23 14:35:57 +08:00
Adam Shih
76ce23c5d2 move gti0 dump to gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: I17aeb8cf5065a24cbacea73b65e0bc53aa0c498d
2022-11-23 05:30:53 +00:00
Android Build Coastguard Worker
6eb2c5dbf1 Snap for 9321341 from 945f9e6cd5 to tm-qpr2-release
Change-Id: Ia33be37bf56e6fea774f5e4a0aedc028d4d60d23
2022-11-23 00:07:04 +00:00
Vaibhav Devmurari
0f9dcda519 Allow system server to access sysfs node of led lights.
To support input device lights manager feature in frameworks, provide
sysfs node access to system server process.
DD: go/pk_backlight_control (For keyboard backlight control for external
keyboards)

Similar CL: ag/20102346

Kernel provides a standardized LED interface to expose LED controls
over sysfs: https://docs.kernel.org/leds/leds-class.html
The feature will be provided for devices with kernel sysfs class led
support and vendor kernel driver for input controllers that do have
lights. The kernel sysfs class led support is a kernel config option
(LEDS_CLASS), and an input device driver will create the sysfs class
node interface.
By giving system_server the access to these sysfs nodes, the feature
will work on devices with the kernel option and kernel input/hid driver
support. We do use CTS tests to enforce the kernel options and the
input device drivers.

What's already supported:
- We already expose paths for UHID based LED nodes which covers all
bluetooth based peripherals that have custom vendor drivers to expose
LED sysfs nodes. (see CL aosp/1546377)

What's included in this CL:
- Exposing paths for sysfs nodes for external USB based devices that
expose LED nodes using vendor specific drivers using standard LED
interface provided by Kernel
- We are using specific paths for USB devices instead of
/sys/class/leds to avoid giving access to system LED nodes that would
also appear under /sys/class/leds (see discussion in aosp/1546377)

NOTE: Light HAL should never touch the HID device sysfs light, as the
light HAL only defines a number of lights supported
(https://android.googlesource.com/platform/hardware/interfaces/+/master/light/2.0/types.hal)
but not include input device lights, so we shouldn't have conflict
for managing these lights.

NOTE: External keyboard backlight is different for HAL light type
KEYBOARD which is for devices with attached keyboards.

Test: manual
Bug: 245506418
Change-Id: I17031179b7c1e56b0e841d4047859006d005fd21
2022-11-22 15:14:57 +00:00
Cynthia Wasonga
4e3f62823d Prevent preinstallation of AOSP apps on gs201 for clone profile
Bug: 238970256
Test: build
Change-Id: Ie275257ce334d914437125afdc4a7e9350208266
2022-11-22 13:39:04 +00:00
Hua Cheng
9b16140c57 Revert "[Steadiface] Disable landmark inference dsp usage." am: 945f9e6cd5 am: 7cb4c9e728
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20456650

Change-Id: Ic0902e3deb827cb39e7c8a8c2a201667bd39ee76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-22 07:52:50 +00:00
Hua Cheng
7cb4c9e728 Revert "[Steadiface] Disable landmark inference dsp usage." am: 945f9e6cd5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20456650

Change-Id: I1ec4757d0eb4644a065e8c57f9221cb6accbc5a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-22 07:17:25 +00:00
Hua Cheng
945f9e6cd5 Revert "[Steadiface] Disable landmark inference dsp usage."
This reverts commit f7f4d8e84f.

Reason for revert: The issue b/255244818 caused by cl/476717338 is fixed in cl/477452462 on QPR2.

Bug: 257660234
Test: CTS
Test: Check DSP-TPU landmark is enabled.

Change-Id: I122b3d786cf670515fc471baa043fdd4ccdf0d72
2022-11-22 07:00:30 +00:00
Adam Shih
3303ba1a10 remove panther touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: If56e6edad81ac16f8570d40668e6b1d6579c8cb6
2022-11-21 02:45:42 +00:00
Android Build Coastguard Worker
a5c93081f8 [coastguard skipped] Merge sparse cherrypicks from sparse-9293603-L15900000957431128 into tm-qpr2-release.
Change-Id: I98e81a756eaf58d4e26af8a34fb2a7b989ad5641
2022-11-18 19:05:58 +00:00
Android Build Coastguard Worker
6d5e249969 Merge cherrypicks of [20468986] into sparse-9293603-L15900000957431128.
Change-Id: I75d1303e25b6148466861ac9ff6f8d236627fd0e
2022-11-18 19:01:39 +00:00
George Lee
df5d63896d battery_mitigation: Add BrownoutDetection app [DO NOT MERGE]
This app files bugreport for user-debug build with reboot reason = ocp
or uvlo.  Removed the dependency on BetterBug.

Bug: 237287659
Test: Ensure bugreport is generated under user-debug build with reboot
reason = ocp or uvlo.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I267f077e9c6c856b038b008397c0b465d209d9c3
(cherry picked from commit d0d71a7ce8)
Merged-In: I267f077e9c6c856b038b008397c0b465d209d9c3
2022-11-18 19:01:28 +00:00
Android Build Coastguard Worker
e08504d22e Snap for 9305793 from 1d398c55be to tm-qpr2-release
Change-Id: Ia02db11183c9bb1884d03a5c333e53e5a383caee
2022-11-18 00:06:58 +00:00
Wayne Lin
891c3b97a1 [automerger skipped] DO NOT MERGE gps: update gps driver 147.20.23.554803 am: 1d398c55be am: 8f9e541ac3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20456649

Change-Id: I9987e661dca74c59b3ce34b9e1b59a5873a63060
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 08:41:48 +00:00
Wayne Lin
8f9e541ac3 DO NOT MERGE gps: update gps driver 147.20.23.554803 am: 1d398c55be
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20456649

Change-Id: I62b831e6f6ba5a83292bba571a639a0fe7528612
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 08:13:43 +00:00
Wayne Lin
1d398c55be DO NOT MERGE gps: update gps driver 147.20.23.554803
- Fix GLONASS Notch Filter Center issue
 - Support RILC_UNSOL_GPS_LOCK_MODE to send GPS LOCK MODE to CP
 - Fix IGnssMeasurement#setCallback twice issue
 - Fix the issues related to LTE filter

Bug: 210132268
Bug: 241880444
Bug: 254195220
Bug: 254202512

Verify test: b/259015778
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: I7c4c92b16a176c86c7239db3381cf246169ebbe1
2022-11-17 07:45:19 +00:00
Adam Shih
96e1ee4f25 move cheetah touch dump to gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: I87f223d78b64bd69a092299fe41c96820e5ce446
2022-11-17 10:34:23 +08:00
Android Build Coastguard Worker
0b8c767ddf Snap for 9301146 from d0d71a7ce8 to tm-qpr2-release
Change-Id: I5675ec91c180a4391b0ea94375439c41fc49978e
2022-11-17 00:07:01 +00:00
Christopher Ferris
3a2abe3626 Merge "Switch to IGNORE_PREFER32_ON_DEVICE." am: 9c2cdd2219 am: 566efdc77c am: 9bb722f0a2
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2303576

Change-Id: I0f5140bc7e6a68ae645b91626fed7172ef9f5154
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 23:49:35 +00:00
Christopher Ferris
9bb722f0a2 Merge "Switch to IGNORE_PREFER32_ON_DEVICE." am: 9c2cdd2219 am: 566efdc77c
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2303576

Change-Id: Iccbffa5eefffbec4eacc995140fc2753760446e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 23:02:47 +00:00
Christopher Ferris
566efdc77c Merge "Switch to IGNORE_PREFER32_ON_DEVICE." am: 9c2cdd2219
Original change: https://android-review.googlesource.com/c/device/google/gs201/+/2303576

Change-Id: Ie362b2c64fd8fe8fc27aac9e0e547357392b3339
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 21:45:46 +00:00
Christopher Ferris
9c2cdd2219 Merge "Switch to IGNORE_PREFER32_ON_DEVICE." 2022-11-16 20:54:16 +00:00
George Lee
af6680dec5 [automerger skipped] battery_mitigation: Add BrownoutDetection app [DO NOT MERGE] am: d0d71a7ce8 am: f09c0017be -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20468986

Change-Id: Idefb21ae88fb651cbb97f1c355196011362ecb18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 19:53:13 +00:00
George Lee
f09c0017be battery_mitigation: Add BrownoutDetection app [DO NOT MERGE] am: d0d71a7ce8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20468986

Change-Id: I28683ff582e0dc2b13ff0846d7f23eacbbba3204
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 18:34:53 +00:00
George Lee
d0d71a7ce8 battery_mitigation: Add BrownoutDetection app [DO NOT MERGE]
This app files bugreport for user-debug build with reboot reason = ocp
or uvlo.  Removed the dependency on BetterBug.

Bug: 237287659
Test: Ensure bugreport is generated under user-debug build with reboot
reason = ocp or uvlo.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I267f077e9c6c856b038b008397c0b465d209d9c3
2022-11-16 18:20:57 +00:00
Adam Shih
eed4e34113 remove raven touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: If7d45e4bb4c78101bf5221ee858cbea15ba6327d
2022-11-16 07:42:22 +00:00
Christopher Ferris
7a257f0090 Switch to IGNORE_PREFER32_ON_DEVICE.
In aosp, the name of the variable changed from
FORCE_MULTILIB_FIRST_ON_DEVICE to IGNORE_PREFER32_ON_DEVICE.

So actually modify this so the new devices don't have 32 bit
servers.

Test: Verified that drmserver/mediaserver are 64 bit processes.
Change-Id: I282f5129bcc91d99e924f514b01fc4e7e37e9ea9
2022-11-15 18:49:05 -08:00
Sophia Wang
54eea43433 Revert "gs201:conf Add memlat CPU idle awareness settings"
This reverts commit 0b1a579e9b.

Reason for revert: High perf regression

Change-Id: I626b353bf4fd8f85e648112f45d6c818a67d193c
2022-11-15 21:20:52 +00:00