Commit graph

1097 commits

Author SHA1 Message Date
Ray Chi
b17381ae84 [DO NOT MERGE] gs201: usb: provide extcon and gadget state to monitorffs
Monitorffs needs to check the state of usb extcon and gadget state
to pull up USB gadget. Therefore, this patch provide extcon and gadget
state to monitorffs.

Bug: 263435622
Test: verified pass
Change-Id: Iceaade6ed0060e4006405a29a81af3c5a1ab1b8b
(cherry picked from commit bf79debcb2)
Merged-In: Iceaade6ed0060e4006405a29a81af3c5a1ab1b8b
2023-02-14 18:13:37 +00:00
Android Build Coastguard Worker
0cd9beb290 Merge cherrypicks of ['googleplex-android-review.googlesource.com/21326479', 'googleplex-android-review.googlesource.com/21326480'] into tm-qpr2-release.
Change-Id: Icd36a156db0f8e034a2ca638102effc5d0d1ba10
2023-02-11 17:28:06 +00:00
Junyu Lai
5cab7ffe1b Set config_networkAvoidBadWifi overlay on gs201 devices for Verizon
Currently, config_networkAvoidBadWifi is customized in aosp
for only 2 Verizon mccmncs: 310-004 and 311-480.

However, from TAM feedback, there are few mccmncs
which are not customized yet. Explicitly add them for gs201 devices.

Test: manual
Bug: 267489867
Change-Id: I46ec45354ae72a6a758aba2c2a31af92f1da4038
Merged-In: I46ec45354ae72a6a758aba2c2a31af92f1da4038
(cherry picked from commit cc270214ed)
(cherry picked from commit b6ad359353)
Merged-In: I46ec45354ae72a6a758aba2c2a31af92f1da4038
2023-02-11 17:26:41 +00:00
Junyu Lai
f9c809ee9c Set activelyPreferBadwifi config to 1 globally for gs201 devices
This flag will not take effect if the system is configured to
avoid bad wifis. Set it to 1 globally. Then it will sprint
into effect for all mcc/mncs where config_networkAvoidBadWifi is 0.

For carriers that don't need this behavior change but
config_networkAvoidBadWifi is 0, set activelyPreferBadwifi
to 0 for their mccmncs.

Test: manual
Bug: 267489867
Change-Id: I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3
Merged-In: I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3
(cherry picked from commit 3357b8cf94)
(cherry picked from commit 2a3281dc86)
Merged-In: I4b6fe4964e8fd5d61978f1433dcbbd9e9b10ffc3
2023-02-11 17:26:35 +00:00
Android Build Coastguard Worker
72a53c3b46 Snap for 9420665 from a4dc9b55bd to tm-qpr2-release
Change-Id: Ic98dac7975f26e7bd1782fb23d6e21d4ba0aa380
2022-12-20 00:12:31 +00:00
Wayne Lin
a4dc9b55bd DO NOT MERGE gps: update gps driver 147.20.23.557990
- Add more PLMNs for specificed carrier configuration
 - Add configuration to use full response time in SUPL NI session to
   benifit accuracy
 - Fix miscalculate TTFF and RSP problem due to unexpected stop command

Bug: 260996867
Bug: 260153806
Bug: 260795209

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

Change-Id: If9ccdfa44bc37e5ae8c73ccf96150f46b8723dc5
2022-12-19 08:40:14 +00:00
Android Build Coastguard Worker
2361e4d4f8 Snap for 9414670 from dab570b992 to tm-qpr2-release
Change-Id: Ifd8cdc429f643663c23ba7e4144def5e7d3ac0ce
2022-12-17 02:02:54 +00:00
Jörg Wagner
dab570b992 Install Vulkan 1.3 device properties
As the latest Mali DDK exposes a Vulkan 1.3 driver
also setup the device properties accordingly.

Bug: 259507479
Change-Id: Ic8d7ac82e72729268e5cabf9ad2c0309dcc1db8f
2022-12-16 07:16:18 +00:00
Android Build Coastguard Worker
77cb08a0cb Snap for 9406096 from a6120d0625 to tm-qpr2-release
Change-Id: I5da1984699dfe4ff9c646a03d2647be04396d8e2
2022-12-15 00:03:13 +00:00
Android Build Coastguard Worker
526067c3af Snap for 9401607 from 0ac69fbfc0 to tm-qpr2-release
Change-Id: I47829e14734e5f545e68092d1e7a36cad441414c
2022-12-14 00:07:57 +00:00
Mason Wang
a6120d0625 Dumpstate: Add golden mutual raw data for FST2 touch. [DO NOT MERGE]
Bug: 254201934
Test: The BR has the data of "Golden Mutual Raw Data.
Signed-off-by: Mason Wang <masonwang@google.com>
Change-Id: I017462d0cd6f2ed3032f0f775d078ef3f5790193
2022-12-13 23:52:03 +00:00
Jack Wu
0ac69fbfc0 init: enable dock-defend by default
dock-defend is enabled in kernel code.

Bug: 262322247
Test: dock-defend is enabled by default
Change-Id: Ib7c7381f9d7d6d818e034911115e8c9045d5d0b6
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-13 11:18:10 +08:00
Android Build Coastguard Worker
bf5b68b35a Snap for 9390188 from b35aecbd48 to tm-qpr2-release
Change-Id: If541027439906951fce8fdf380d716e6aac67ce3
2022-12-10 02:02:45 +00:00
Chungkai Mei
b35aecbd48 Remove UClamp Threshold setting
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-09 21:43:57 +00:00
Android Build Coastguard Worker
9892a9af2e Snap for 9385690 from 51e87c4f51 to tm-qpr2-release
Change-Id: I72192ed9ed2c885064a22b680cf6a5f136434c7a
2022-12-09 00:03:19 +00:00
Wasb Liu
51e87c4f51 init: fix permission for logbuffer
Move permissiion setting for logbuffer to eraly-boot to avoid timing
problem.

Bug: 260678111
Test: Ensure that the owner of necessary logbuffers is system/system
Change-Id: I6a3a48ce31e95b8b781c8a90237c10aa7a0c4210
Signed-off-by: Wasb Liu <wasbliu@google.com>
2022-12-08 18:14:29 +00:00
Android Build Coastguard Worker
102fa26f5c Snap for 9381392 from ebeab15ad7 to tm-qpr2-release
Change-Id: I8937214b049289ec162be5810e8f081a685a2068
2022-12-08 00:03:09 +00:00
kierancyphus
ebeab15ad7 Dumpstate: use new history dir and inc more files
Modify the logging mask file path to instead point to the new history
directory, as well as include more files (right now only logging mask
history and logging enabled history).

Bug: 259174982
Test: Manually build and inspect bugreport to make sure files are
included

Change-Id: Id87f381a4895399a035ea4fe55d132e31d5d796c
Merged-In: Id87f381a4895399a035ea4fe55d132e31d5d796c
2022-12-07 06:55:42 +00:00
Android Build Coastguard Worker
81e8ea367a Snap for 9376496 from d59bb0d1bf to tm-qpr2-release
Change-Id: I4f13f3bb86971fc8c4250c171e8b0deed9e62859
2022-12-07 00:02:59 +00:00
Jack Wu
d59bb0d1bf gs201: use CPU4 in charger mode
For charging efficiency certification swap CPU6 with CPU4 while in
off-mode charging.

Bug: 260019919
Test: measure power consumption in charger mode
Change-Id: Iffccde0c3161e3fa4768d5f7c7ec2212dbab1a73
Signed-off-by: Jack Wu <wjack@google.com>
2022-12-06 15:25:27 +08:00
Android Build Coastguard Worker
0f8a9b05e9 Snap for 9371302 from 17d9a89d34 to tm-qpr2-release
Change-Id: Ie1c8328583d25d449439d08b48ca01cfb8feda91
2022-12-06 00:03:06 +00:00
Wasb Liu
17d9a89d34 init: add battery persist folder am: 243d9332db am: 399b41622d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: If4e6611c4c3188ef3c9e67470e7d80bc6fe8cd6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 04:56:13 +00:00
Wasb Liu
399b41622d init: add battery persist folder am: 243d9332db
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/20615246

Change-Id: If52c930b8fea311ac91ec59c5216ec646da1439a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 03:51:19 +00:00
Android Build Coastguard Worker
b0b48e04cd Snap for 9364794 from d0586cdd4b to tm-qpr2-release
Change-Id: Icad63b51f8c3f0a0c907b21c34b775429475dc6a
2022-12-03 02:03:17 +00:00
George Lee
d0586cdd4b Enable BrownoutDetection only for debug build
Bug: 237287659
Test: Confirm its only debug build only has BrownoutDetection app
Merged-In: If80954497a75da0d41c8d75126e42eaae1330003
Change-Id: Ibc1102f779007692d41a423a30075f745129ea1b
Signed-off-by: George Lee <geolee@google.com>
2022-12-02 18:36:20 +00:00
George Lee
2a2ebf1d78 Battery Mitigation: Use Brownout Reason
Brownout Reason replaces startup_bugreport_requested.  Battery
Mitigation needs to be updated.

Bug: 237287659
Test: Ensure lastmeal.txt is properly generated.
Merged-In: If80954497a75da0d41c8d75126e42eaae1330003
Change-Id: Ie06da78b7b9435d134c99627de53d6292def58b1
Signed-off-by: George Lee <geolee@google.com>
2022-12-02 03:37:14 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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