Commit graph

1786 commits

Author SHA1 Message Date
Ray Chi
49a9b9f3dd tune usb irq (dwc3) in usb gadget hal
Since affinity permission is changed from root to system, original
permission change by script can't be used. Therefore, this patch
will move the functionality to usb gadget hal.

Bug: 220996010
Test: dwc3 irq could be located in medium/big cores after USB function switch
Change-Id: Id993db9fc303e85a9a6337a0e41b1dfd6fc9a86a
(cherry picked from commit f363704a92fd7611cf01c8b3bcaf6e8913255207)
2022-05-04 09:39:42 +08:00
Ray Chi
bc34b8944f usb: move the permission change to usb rc
Since permission change in hal rc may be late, gadget
hal would enable USB function failed. The solution will
change the permission before USB gadget hal starts.

Bug: 206902205
Test: build pass and verified pass
Change-Id: I45c1318f647220480fa03ba3b813a81b21393d71
(cherry picked from commit b30924e3599f2e92aeae498a6ae15d3b9a397930)
2022-05-04 09:39:29 +08:00
Sal Savage
e4a5a19b77 Merge "Use the ?= operator so BT properties can be overridden" 2022-05-02 23:35:28 +00:00
Sal Savage
0eea03d28a Use the ?= operator so BT properties can be overridden
System properties set with the "=" operator cannot be overriden. This
device is used elsewhere in the system and some of the properties need
to be overridden. The "?=" operator will use the assigned value if no
other values are assigned elsewhere, allowing for overrides.

Bug: 230638462
Test: adb shell getprop | grep bluetooth
Merged-In: I45b1786f5556ba3e7d493ea17dc955cd317a1156
Change-Id: I45b1786f5556ba3e7d493ea17dc955cd317a1156
2022-04-28 14:17:27 -07:00
Bob Badour
733255eb8a [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101
Added SPDX-license-identifier-Apache-2.0 to:
  usb/usb/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Ia02ed8b48bc532d6fbffc8bb5656be88634301c4
2022-04-28 11:32:33 -07:00
Treehugger Robot
798dbb39f5 Merge "Migrate IUsb implementation to AIDL" 2022-04-27 16:21:29 +00:00
Sal Savage
4e33220086 Update LE Audio profile properties to match spec and implementation
Bug: 217448211
Test: atest BluetoothInstrumentationTests
Merged-In: I5699914c673f4bdaeabef128ff94122bf1963f97
Change-Id: I5699914c673f4bdaeabef128ff94122bf1963f97
2022-04-22 22:59:25 +00:00
Sal Savage
3f9ed7fc84 Enable bluetooth profiles with product.prop
Bug: 217448211
Test: make -j
Merged-In: Id96e675bd0bc162329264c935d4418c0c6a52390
Change-Id: Id96e675bd0bc162329264c935d4418c0c6a52390
2022-04-12 13:06:22 -07:00
Badhri Jagan Sridharan
3604f56e5e Migrate IUsb implementation to AIDL
This change migrates IUsb implementation to AIDL.
Also, IUsb and IUsbGadget now run in its own processes
to improve stability and isolation.

Bug: 200993386
Bug: 199357330
Change-Id: I02753af4a41916b77ce110f9531504bf8c6a4691
Merged-In: I02753af4a41916b77ce110f9531504bf8c6a4691
(cherry picked from commit 3c97a6bb68)
2022-03-28 17:00:28 +08:00
Treehugger Robot
7dd7e93a03 Merge "powerstats: add AoC restart count stats" 2022-03-28 07:32:15 +00:00
Darren Hsu
668acb9fb6 powerstats: add AoC restart count stats
Bug: 226173008
Test: dump power stats and verify restart count increased
Change-Id: Ibfdea3bff33d79ad6a56a6eab9e109617ddb7f2d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-03-25 11:18:43 +08:00
Cole Faust
4293b68380 Remove usage of intermediates-dir-for
intermediates-dir-for relies on several variables that
haven't been set at the time the board configuration
runs. The board configuration got around that by using
deferred expansion, but deferred expansion is something
that starlark doesn't support. Remove intermediates-dir-for
by switching to TARGET_RECOVERY_FSTAB_GENRULE, which
accepts a genrule module to use instead of a file.

Bug: 201700692
Test: Presubmits
Change-Id: I6ebb75073abeebce71873f414129759789096b0f
2022-03-24 11:22:21 -07:00
Xin Li
77d235d6b9 Merge Android 12L
Bug: 222710654
Merged-In: I947ab15dae07501ee61edbd94cb937c2299f865b
Change-Id: I56878913a9985115efdac74dba665228cc244ee3
2022-03-08 00:15:27 +00:00
Bob Badour
38aba3e97b Declare license metadata for copied files. am: 445d07a51b
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1984509

Change-Id: I947ab15dae07501ee61edbd94cb937c2299f865b
2022-02-15 01:18:42 +00:00
Bob Badour
445d07a51b Declare license metadata for copied files.
Bug: 151177513

Test: m all dist reportmissinglicenses
Change-Id: I02597501691e2743971c93dabcd9fe00d25645d3
2022-02-14 12:38:48 -08:00
Xin Li
f4d329ec8a Merge SP2A.220305.012
Bug: 219523960
Merged-In: If597efa6bfc9d0a606a12bf09babb32e1ee3d3b4
Change-Id: If2ee6468bb8be7d4da2aa8843a2bb52c132fcf6a
2022-02-14 19:59:09 +00:00
Xin Li
6ea7e8b035 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Ife2ff971eaeda2b132658ca2704bf1edde6fd80a
Change-Id: Ic1617d8e3b1aac8c2acc2c483b1347431e911a1e
2022-02-11 07:10:27 +00:00
weichinweng
2eb5898ff5 Align ASHA prop with BluetoothProperties am: 33f00feec1
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1976974

Change-Id: If6cd9cfef74d8a171468217cbe1c3a39c7a55517
2022-02-11 02:08:26 +00:00
weichinweng
33f00feec1 Align ASHA prop with BluetoothProperties
* Modify bluetooth.profile.asha.central to
  bluetooth.profile.asha.central.enabled

Tag: #feature
Test: manual
Bug: 211570675
Bug: 218454632
Change-Id: I04be495b881bfa3ed5b7a3a05f50d33e83743e35
2022-02-10 15:16:41 +00:00
Kai Shi
e9e29ca22e Merge "Increase TCP wmem max size" am: 98ee53e52a
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960054

Change-Id: I3f012cfcd94e7e2ad2b301f9b87a391934e97b19
2022-01-27 20:35:27 +00:00
Kai Shi
98ee53e52a Merge "Increase TCP wmem max size" 2022-01-27 20:08:59 +00:00
Santiago Seifert
e1f7eee2a8 Unpin updatable-media from memory on gs101 am: 1b83520026
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1960760

Change-Id: Ie3cb4c1ee976628a89b10b8a5101498c9c792215
2022-01-26 10:41:52 +00:00
Santiago Seifert
1b83520026 Unpin updatable-media from memory on gs101
Bug: 214499288
Change-Id: Icb0ebe5a36e01941cc1318c95a7534c0f20ffa93
Test: Presubmit
2022-01-25 21:28:31 +00:00
Kai Shi
b877da7c69 Increase TCP wmem max size
Increase TCP wmem max size to allow high Tx throughput over wifi.

Bug: 213596972
Test: manual test to confirm TCP memory size is increased and wifi TCP throughput with default TCP window size can reach 700Mbps in HE80 mode.
Change-Id: I6058af03da756aaa63e89eddb674f5b054cecf33
2022-01-25 11:58:30 -08:00
Etienne Ruffieux
3059d2c5c5 Added new vendors for Bluetooth config migration am: 1307232779
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1956200

Change-Id: I599c36db804cd7bf5607a752804f9b0c8fa57303
2022-01-25 14:22:27 +00:00
Etienne Ruffieux
1307232779 Added new vendors for Bluetooth config migration
Tag: #feature
Test: manual
Bug: 211570675
Change-Id: I4e0c211b4a176fc9161b079d2799bfefbaf4651f
2022-01-25 09:47:04 +00:00
Ocean Chen
0f8abfe264 Pixelstats: add more UFS error count paths am: 71543928ef
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1948976

Change-Id: Ie1704ed6969a2d093d141cf05da91919bf63d070
2022-01-21 22:11:31 +00:00
Sasha Smundak
db090bdc82 Use soong_config_ macros to set Soong config variables. am: 454cb66a74
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1932105

Change-Id: Ie9f1878088786ac649d39a327062be470bd2a609
2022-01-21 22:11:16 +00:00
Sasha Smundak
d61bf9cd2b Simplify the check am: aab103264d
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1907731

Change-Id: I345f2d840499e6048b472cacaa666b7b7bbbacf1
2022-01-21 22:10:19 +00:00
Will McVicker
b62568becb gs101: recovery: add wait for dwc3 device to probe am: 04c94df116
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1881538

Change-Id: I9d2abf092a4a891857a12fae7c78b588f0d8c067
2022-01-21 22:09:59 +00:00
Bowgo Tsai
be59761ace Removing 'verity_update_state' am: e77021b4c4
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/1878153

Change-Id: I4b7c7518e5ea0755ebb9593566302b622785dcc5
2022-01-21 22:08:26 +00:00
Android Build Coastguard Worker
4c7cb50356 Merge cherrypicks of [16631483] into sc-v2-release.
Change-Id: I35243189d5e0d7f283b9bd629064d1b0091c1b55
2022-01-21 01:29:01 +00:00
Edwin Tung
dab6b3b89e [DO NOT MERGE] gps: update gps driver 129.20.23.524633
Fixed null pointer dereferencing while injectNLPError
Added SuplUseFwCellInfo (default:true) xml attribute
Fixed to block MDT location request when it is not granted by carrier location application

Bug: 210070896
Bug: 211381328
Bug: 210935899

Verify test: 214386315

Test: atest VtsHalGnssTargetTest
atest CtsLocationGnssTestCases
atest GtsLocationTestCases
atest PtsChreTestRunner

Change-Id: If597efa6bfc9d0a606a12bf09babb32e1ee3d3b4
(cherry picked from commit 42d7768c12)
Merged-In:If597efa6bfc9d0a606a12bf09babb32e1ee3d3b4
2022-01-21 01:27:53 +00:00
Android Build Coastguard Worker
e2798cef75 Snap for 8076550 from 676247423b to sc-v2-release
Change-Id: I247294ad9190bac15a90a0bc35c43063a2362714
2022-01-14 00:02:08 +00:00
Ocean Chen
71543928ef Pixelstats: add more UFS error count paths
The UFS resume flow also increase the reset count.
It makes the reset count cannot represent the real
error count. So we use other count instead of reset count

Bug: 199459367
Change-Id: I0249d806351a1037f7886368d4df1d22af4c0091
2022-01-13 17:17:49 +00:00
YiHo Cheng
f71383eb96 dumpstate: Add tmu register dump am: 676247423b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16569086

Change-Id: Ic03dc2ba0df3f6b2bdde2b5eeb1c7d633ae8b95f
2022-01-12 23:14:55 +00:00
YiHo Cheng
676247423b dumpstate: Add tmu register dump
Add tmu register dump in thermal section to get tmu status

Bug: 202736838
Test: check tmu register dump info in thermal dumpstate
Change-Id: Ife2ff971eaeda2b132658ca2704bf1edde6fd80a
2022-01-12 23:03:41 +00:00
Wei Wang
a8ed349039 powerhint.json: move display wake node earlier am: 8fdd6e65eb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16622384

Change-Id: Ia0324458cd2f41ce6516dcfc7b0e4560fcb831a5
2022-01-12 22:15:06 +00:00
Wei Wang
8fdd6e65eb powerhint.json: move display wake node earlier
Currently it is a KI the vendor group takes time to update through sysfs
node. This CL moves display wake earlier than TA boost while waiting for
the long term improvement in b/190236772.

Bug: 205261899
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ieb1eb62442e67602605e380b987fe28d1ad2bbd8
2022-01-12 16:29:26 +00:00
Android Build Coastguard Worker
e3a52e5627 Snap for 8068644 from f357b89684 to sc-v2-release
Change-Id: I5f4c31234c607e46090b5012f09fd3837eb7f92e
2022-01-12 00:01:18 +00:00
Wei Wang
907319bca5 powerhint.json: move display wake hint earlier am: f357b89684
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16586291

Change-Id: I603f8ce7f375f1cce72bca33226da8acddf02ed5
2022-01-11 19:24:44 +00:00
Wei Wang
f357b89684 powerhint.json: move display wake hint earlier
Currently it is a KI the vendor group takes time to update through sysfs
node. This CL moves display wake earlier than TA boost while waiting for
the long term improvement in b/190236772.

Bug: 205261899
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I55bc3b8ee0f48874dbd731f5f3d648adaacf6798
2022-01-11 16:49:17 +00:00
Android Build Coastguard Worker
dd29067bae Snap for 8036697 from 2b741a51c5 to sc-v2-release
Change-Id: Ib8dde7a03013982a6c5765f04f013a3c0eb16099
2021-12-31 00:01:14 +00:00
Martin Liu
a880d188d2 gs101: set readahead_size_kb=128 to vendor, product and system_ext am: 2b741a51c5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16549415

Change-Id: I8ea2cd6b153087f3cadd8359ece97d3c8aa6975a
2021-12-30 02:19:37 +00:00
Martin Liu
2b741a51c5 gs101: set readahead_size_kb=128 to vendor, product and system_ext
To avoid memory pressure

Bug: 181567573
Test: check readahead size
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0ef6456a96ef923fe681112560d2f49c514ff529
2021-12-30 02:05:39 +00:00
Android Build Coastguard Worker
31c2df8d7d Snap for 8035341 from 954576cc19 to sc-v2-release
Change-Id: If57764ef521404e7043195ecd90672cf4127c051
2021-12-30 00:01:43 +00:00
Edwin Tung
ef2d5b388b [automerger skipped] [DO NOT MERGE] gps: update gps driver 129.20.23.523968 am: 954576cc19 -s ours
am skip reason: Merged-In I235ea87c683051879ce160d0d41917328ca58e37 with SHA-1 e7c3814380 is already in history

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

Change-Id: Idcb4adcc9911e70404b1997d4db9d8eca5c06d83
2021-12-29 14:16:15 +00:00
Edwin Tung
954576cc19 [DO NOT MERGE] gps: update gps driver 129.20.23.523968
Request DBH while capability transaction.
Report location info without waiting for DBH.
Use gps location as DBH while timeout.
KDDI NI requires noPreference for suplPrefMethod.

Bug: 206754082
Bug: 207721798

Verify test: 212326933

Test: atest VtsHalGnssTargetTest
atest CtsLocationGnssTestCases
atest GtsLocationTestCases
atest PtsChreTestRunner

Change-Id: I235ea87c683051879ce160d0d41917328ca58e37
Merged-In: I235ea87c683051879ce160d0d41917328ca58e37
2021-12-29 07:44:49 +00:00
Edwin Tung
e7c3814380 gps: update gps driver 129.20.23.523968
Request DBH while capability transaction.
Report location info without waiting for DBH.
Use gps location as DBH while timeout.
KDDI NI requires noPreference for suplPrefMethod.

Bug: 206754082
Bug: 207721798

Verify test: 212326933

Test: atest VtsHalGnssTargetTest
atest CtsLocationGnssTestCases
atest GtsLocationTestCases
atest PtsChreTestRunner

Change-Id: I235ea87c683051879ce160d0d41917328ca58e37
2021-12-29 15:42:34 +08:00
Sasha Smundak
454cb66a74 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Change-Id: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
Merged-In: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
2021-12-22 14:33:16 -08:00