Commit graph

3189 commits

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

Bug: 258535661
Bug: 260878511
Test: confirm the BatteryDefenter feature works fine
Change-Id: I5e2925d4fe188e0a104f2b20e7b230d60d7f8039
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
(cherry picked from commit a573337875)
2022-12-02 01:59:46 +00:00
Android Build Coastguard Worker
1bab20376d Snap for 9358956 from 4a94625bce to tm-qpr2-release
Change-Id: Icaab3d2965610b38598f6976437344c62dd46719
2022-12-02 00:03:24 +00:00
Wayne Lin
06f2ec2632 [automerger skipped] DO NOT MERGE gps: update gps driver 147.20.23.556285 am: 4a94625bce am: 1f65c08f61 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If80954497a75da0d41c8d75126e42eaae1330003
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 09:41:44 +00:00
Wayne Lin
1f65c08f61 DO NOT MERGE gps: update gps driver 147.20.23.556285 am: 4a94625bce
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20585787

Change-Id: I9c2e094ede7f0ca4fe3539897c291843c42608a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 09:10:11 +00:00
Wayne Lin
4a94625bce DO NOT MERGE gps: update gps driver 147.20.23.556285
- Fix no GPGSV information in CP LPP session
 - Implement SIT_IND_GPS_NFW_MODE to make modem request NFW status from gpsd
 - Fix the high EA issue caused by last known position
 - Use network PLMN to determine carrier configuration when SIM PLMN is
   not available

Bug: 248476067
Bug: 252972119
Bug: 243358812
Bug: 258355692

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

Change-Id: Ibe886b3559405bd7e8732aab9c023351c9629ee6
2022-12-01 08:53:42 +00:00
Ziyi Cui
38c8dc479d [automerger skipped] [DO NOT MERGE] gs201:dumpstate: Dump long irq metrics, resume latency metrics at bugreport am: ead189b0f8 am: 7eb65a1c13 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6217d11791b8c1539f2c922213fbd7cc23a0fb3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 07:29:50 +00:00
Ziyi Cui
97666c9b02 gs201: pixelstats: add pixel perf stats paths am: 87cb8256a3 am: 204068aff1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20003195

Change-Id: I9e91cc0d83f9b2488bd29de51a3278b6489602ac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 07:29:44 +00:00
Ziyi Cui
3f28917392 [automerger skipped] [DO NOT MERGE] dumpstate: Dump Temperature Residency at bugreport am: 78f9096a34 am: 0301fce581 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0acf0b294949a4733d0a1820cd3ad2928e99077a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 07:28:39 +00:00
Ziyi Cui
afd02b35ff [automerger skipped] gs201: pixelstats: add pixel temperature residency stats paths am: 980362e77d am: a53b4e6b88 -s ours
am skip reason: Merged-In Ib0788756eb77490e257145bd90c9b8041149ede0 with SHA-1 68cf879bb1 is already in history

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

Change-Id: Ic8910d40cc0c4ff4fdc1e8f03923af73c07b55f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 07:28:30 +00:00
Ziyi Cui
7eb65a1c13 [DO NOT MERGE] gs201:dumpstate: Dump long irq metrics, resume latency metrics at bugreport am: ead189b0f8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20474141

Change-Id: I68d5f482975fdb93dd384615d6c0c1683857803e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 07:03:18 +00:00
Ziyi Cui
204068aff1 gs201: pixelstats: add pixel perf stats paths am: 87cb8256a3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20003195

Change-Id: I6099f7cc1f186d495d0011ab82f86b4c6c91fa80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 07:03:10 +00:00
Ziyi Cui
0301fce581 [DO NOT MERGE] dumpstate: Dump Temperature Residency at bugreport am: 78f9096a34
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20470229

Change-Id: I7dec3ecc4eb587ae04ea3ec0516b991defdcdf25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 06:59:44 +00:00
Ziyi Cui
a53b4e6b88 gs201: pixelstats: add pixel temperature residency stats paths am: 980362e77d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20429745

Change-Id: I3a53a5f52bfa9aaa83325e77c338a0d620ffda2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 06:59:37 +00:00
Ziyi Cui
ead189b0f8 [DO NOT MERGE] gs201:dumpstate: Dump long irq metrics, resume latency metrics at bugreport
At the bugreport, capture long irq metrics and resume latency metrics

Bug: 227809911
Bug: 232541623
Test: "adb bugreport" includes metrics capture.
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: I8dc3330da3b9274be24534b52db86f0b3d01a482
2022-12-01 06:31:01 +00:00
Ziyi Cui
87cb8256a3 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-12-01 06:30:27 +00:00
Ziyi Cui
78f9096a34 [DO NOT MERGE] dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics

Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Signed-off-by: Ziyi Cui <ziyic@google.com>
Merged-In: I49ffdcadce89e3dc8859819576998df56928a75a
Change-Id: I360b7d26c94556f43945a0c3c0e942fb0c48fa5d
2022-12-01 06:27:22 +00:00
Ziyi Cui
980362e77d gs201: pixelstats: add pixel temperature residency stats paths
Add pixel temperature residency  metrics paths in sysfs paths list for gs201

Bug: 246799997
Test: Tested temperature residency metrics
Signed-off-by: Ziyi Cui <ziyic@google.com>
Merged-In: Ib0788756eb77490e257145bd90c9b8041149ede0
Change-Id: Ib0788756eb77490e257145bd90c9b8041149ede0
2022-12-01 06:27:22 +00:00
Mason Wang
16dc8a2f68 [automerger skipped] Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE] am: 758d4f22fe am: e394da1a62 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4a020c5237170e2e3108bab5b05a6860efad5478
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 00:19:58 +00:00
Android Build Coastguard Worker
e8042a872f Snap for 9354090 from a573337875 to tm-qpr2-release
Change-Id: I5de5c28ba8c0afdb7fdcaadd317ce88a5f704ce5
2022-12-01 00:03:21 +00:00
Mason Wang
e394da1a62 Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE] am: 758d4f22fe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20585803

Change-Id: Ied9169de78ce5cf906b77ef6d66ad2c792351711
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 23:50:22 +00:00
Mason Wang
758d4f22fe Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE]
Bug: 226475119
Test: Dumps of outer panel is in bugreport.
Change-Id: I1e6e59e1709715306671df9536685d9b3a9e34d6
2022-11-30 23:04:01 +00:00
Gabriel Biren
60d255a641 Update gs201 compatibility matrix to use the
AIDL wifi_ext service.

Bug: 205044134
Test: Presubmit tests
Change-Id: Iedb220ec749664c2e529b704f8dfccdce45aaf8c
2022-11-30 22:47:08 +00:00
Wasb Liu
ce5f36cfa7 init: add battery persist folder am: a573337875 am: ab7efdbdbb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20473347

Change-Id: Ie6197d8f9a879c7dfcddc57d887321ea7660f167
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 10:31:38 +00:00
Wasb Liu
ab7efdbdbb init: add battery persist folder am: a573337875
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20473347

Change-Id: Idb29c38ddfa36a59029e07776e98a46bfe395274
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 09:59:32 +00:00
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