Commit graph

2755 commits

Author SHA1 Message Date
Victor Liu
fd661e782a uwb: remove device name from gs101
Bug: 203746316
Change-Id: I0359a8d2047d39d61d68b32234bfeec5f3440236
2021-10-27 17:41:17 +00:00
Edwin Tung
4042442465 [DO NOT MERGE] gps: update gps driver 129.20.23.518574 am: 6728033aa3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16101543

Change-Id: If077d43a1f883db2e6486f179abee19fad1adf9b
Test: build pass
2021-10-27 23:00:50 +08:00
Edwin Tung
41a2f8b579 gps: update gps driver 129.20.23.518574
Report agnss position even no NLP location
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
Reporting PLMN (MCC+MNC) of SIM and Network
Fix GPS outage when OnChip/Host switching
Fix LPPe UBP issue
Fix gpsd crash issue

Bug: 202366527
Bug: 199818363
Bug: 199048681
Bug: 201582435
Bug: 199114573
Bug: 197716902
Bug: 195383842
Bug: 200107911
Bug: 203068978

Sanity Test: 203854792
Test: build pass

Change-Id: I7293145536cc89db417ba90ba7594da9bbade503
2021-10-27 14:45:13 +00:00
Edwin Tung
28f628e17c [DO NOT MERGE] gps: update gps driver 129.20.23.518574
Report agnss position even no NLP location
Fix to delete RTO too when delete all aiding received
Add mutex to protect malloc/free
Fix for the bug of power mode logging in ONCHIP_NMEA
Reporting PLMN (MCC+MNC) of SIM and Network
Fix GPS outage when OnChip/Host switching
Fix LPPe UBP issue
Fix gpsd crash issue

Bug: 202366527
Bug: 199818363
Bug: 199048681
Bug: 201582435
Bug: 199114573
Bug: 197716902
Bug: 195383842
Bug: 200107911
Bug: 203068978

Sanity Test: 203854792
Test: build pass

Change-Id: I27f314a4b2b5a82e27186a170f10b1041b7d0650
2021-10-27 14:09:08 +00:00
Jiyong Park
9b3f5efc5c [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 8907a4f4b9 -s ours am: c4b66a0cdb -s ours am: 9b304b8996 -s ours am: 9e0e3c2b65 -s ours
am skip reason: Merged-In I25ec19101c408cc29df38d127f284c7085fe1d1a with SHA-1 493c5f6adb is already in history

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

Change-Id: If13bbb4aa9aa7b51c17c56abb8aaef1986ffc025
2021-10-27 07:24:21 +00:00
Jiyong Park
78f51c670f [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 920293d589 -s ours am: acb8ef6316 -s ours am: 4b8694a86c -s ours am: 3ff76683d3 -s ours
am skip reason: Merged-In Iebc1c5d4c277e96cf7564d882aeecb084adc53ee with SHA-1 3428793114 is already in history

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

Change-Id: Ia3a00138137e88fb1f3e59609ca36afc585f2c4c
2021-10-27 07:24:20 +00:00
Jiyong Park
3ab3c1e1d6 [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 8907a4f4b9 -s ours am: c4b66a0cdb -s ours am: 9b304b8996 -s ours
am skip reason: Merged-In I25ec19101c408cc29df38d127f284c7085fe1d1a with SHA-1 493c5f6adb is already in history

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

Change-Id: Id25bf35019a1d0dab12fc70feb3d29fe0ae05842
2021-10-27 07:03:01 +00:00
Jiyong Park
64e9dd982e [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 920293d589 -s ours am: acb8ef6316 -s ours am: 4b8694a86c -s ours
am skip reason: Merged-In Iebc1c5d4c277e96cf7564d882aeecb084adc53ee with SHA-1 3428793114 is already in history

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

Change-Id: If689b4862242989347315ab242fb7199afbe7dcd
2021-10-27 07:02:59 +00:00
Jiyong Park
96c68d5a95 [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 8907a4f4b9 -s ours am: c4b66a0cdb -s ours
am skip reason: Merged-In I25ec19101c408cc29df38d127f284c7085fe1d1a with SHA-1 493c5f6adb is already in history

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

Change-Id: I4dbf8ae7ae219f3fd56c365e52943679a83dd19e
2021-10-27 06:46:16 +00:00
Jiyong Park
0fae191179 [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 920293d589 -s ours am: acb8ef6316 -s ours
am skip reason: Merged-In Iebc1c5d4c277e96cf7564d882aeecb084adc53ee with SHA-1 3428793114 is already in history

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

Change-Id: Icbc02cc8c61eb5769da905be939f52db3847091d
2021-10-27 06:46:15 +00:00
Jiyong Park
73ad7b32d0 [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 8907a4f4b9 -s ours
am skip reason: Merged-In I25ec19101c408cc29df38d127f284c7085fe1d1a with SHA-1 493c5f6adb is already in history

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

Change-Id: I6b10b89ad4dd7b73830f26d0f5d70e7645b5d19f
2021-10-27 06:27:14 +00:00
Jiyong Park
e30c8d7216 [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 920293d589 -s ours
am skip reason: Merged-In Iebc1c5d4c277e96cf7564d882aeecb084adc53ee with SHA-1 3428793114 is already in history

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

Change-Id: I23c6aa34149143db8d5f103604e606f7c4694b24
2021-10-27 06:27:12 +00:00
shawnlin
018c96c60f Remove resource overlays for system bar heights am: b13036e2d1 am: 8239bba15b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16044454

Change-Id: I6a3fc7d4f4c219a4b5a8c263f62f8c1f4f481f58
2021-10-27 05:56:44 +00:00
shawnlin
b2f60e5ee4 Remove resource overlays for system bar heights am: b13036e2d1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16044454

Change-Id: Ifa1b4fe25a9ecc450227fd8b096a3893a65351af
2021-10-27 05:27:19 +00:00
Jiyong Park
3e8d5f06fa [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 493c5f6adb am: c33a459eb2 am: 56763964e6 -s ours
am skip reason: Merged-In I25ec19101c408cc29df38d127f284c7085fe1d1a with SHA-1 0e4aa8b8a1 is already in history

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

Change-Id: Ide717b0ca23e3c77a700383a1944117f7ab8efd0
2021-10-27 05:18:36 +00:00
Jiyong Park
bb65fafcb7 [automerger skipped] Remove ndk_platform backend. Use the ndk backend. am: 3428793114 am: 7760ffc444 am: f93ae22884 -s ours
am skip reason: Merged-In Iebc1c5d4c277e96cf7564d882aeecb084adc53ee with SHA-1 25368375b1 is already in history

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

Change-Id: I1a77a7dfb4f8be6fb533a84cd02faab532b6620c
2021-10-27 05:18:34 +00:00
shawnlin
0aa99d3b57 Remove resource overlays for system bar heights
With the new added APIs, we don't need to overlay status_bar_height that
contains cutout size and quick_qs_offset_height anymore.

Bug: 186604541
Test: make
Change-Id: I474e7272c3240bbc36ddbb43f565e0eaed96b29e
2021-10-27 05:12:16 +00:00
Jiyong Park
97dbda85c0 Remove ndk_platform backend. Use the ndk backend. am: 493c5f6adb am: c33a459eb2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16126494

Merged-In: I25ec19101c408cc29df38d127f284c7085fe1d1a
Change-Id: Ibca1e00f1e410e88c231329cabe7ede131a20b7c
2021-10-27 12:29:09 +09:00
Jiyong Park
2cba9caeb1 Remove ndk_platform backend. Use the ndk backend. am: 3428793114 am: 7760ffc444
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16119649

Change-Id: Id83ed275af2699344d9eee747cbcd8c7e9333789
2021-10-27 03:17:32 +00:00
Jiyong Park
2ec7b3ed96 Remove ndk_platform backend. Use the ndk backend. am: 493c5f6adb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16119650

Merged-In: I25ec19101c408cc29df38d127f284c7085fe1d1a
Change-Id: I27e0477d8673dd78fd96a2ceddc597f8435372c5
2021-10-27 10:28:53 +09:00
Jiyong Park
a259a1db18 Remove ndk_platform backend. Use the ndk backend. am: 3428793114
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16119649

Change-Id: I2657a0f2342879a8897af8677b3ec665e3a723e4
2021-10-27 01:05:57 +00:00
Rick Yiu
b2d43fd497 Configure dex2oat group settings am: f3f1067a71 am: 57d784e822
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16101540

Change-Id: I96007b8a03923dcb146eab2566a691610bb6d68b
2021-10-26 07:40:41 +00:00
Rick Yiu
3b0eb42f09 Configure dex2oat group settings am: f3f1067a71
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16101540

Change-Id: I2880db844b2f9b00b8c391b39f70e505c6e5a768
2021-10-26 07:24:42 +00:00
Rick Yiu
1b06962002 Configure dex2oat group settings
Also associate with its vendor group.

Bug: 201223712
Test: build pass
Change-Id: I86a2e2eb628d2f412079e9c8321809f48b1e4be3
2021-10-26 07:09:27 +00:00
Jiyong Park
33a1aaa056 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The prebuilt files had a reference to
android.hardware.gnss-V1-ndk_platform.so. Change it to
android.hardware.gnss-V1-ndk.so by diretly editing the DT_NEEDED entry.

Bug: 161456198
Test: m
Merged-In: I25ec19101c408cc29df38d127f284c7085fe1d1a
Change-Id: I25ec19101c408cc29df38d127f284c7085fe1d1a
2021-10-26 15:39:21 +09:00
Jiyong Park
96a77be5a3 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
Change-Id: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
(cherry picked from commit 25368375b1759a13cacbfa1a9a183d4eee7381b2)
2021-10-26 15:36:47 +09:00
Jiyong Park
8df53b2407 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The prebuilt files had a reference to
android.hardware.gnss-V1-ndk_platform.so. Change it to
android.hardware.gnss-V1-ndk.so by diretly editing the DT_NEEDED entry.

Bug: 161456198
Test: m
Merged-In: I25ec19101c408cc29df38d127f284c7085fe1d1a
Change-Id: I25ec19101c408cc29df38d127f284c7085fe1d1a
(cherry picked from commit 0e4aa8b8a1a5184cdb8330aded181cd7f5fec256)
2021-10-26 14:58:39 +09:00
Jiyong Park
c77442bde5 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
Change-Id: Iebc1c5d4c277e96cf7564d882aeecb084adc53ee
(cherry picked from commit 25368375b1759a13cacbfa1a9a183d4eee7381b2)
2021-10-26 14:58:15 +09:00
Badhri Jagan Sridharan
d88821478b pixelstats: Filter "PRODUCT_TYPE" uevent for reporting VID/PID am: 5e2fc95ba6 am: 6b2eca1a27
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16009630

Change-Id: Iab6adcbf5424cf8ce5047dbdcb03926c77e67dde
2021-10-26 01:15:14 +00:00
Badhri Jagan Sridharan
d5d8e05ec2 pixelstats: Filter "PRODUCT_TYPE" uevent for reporting VID/PID am: 5e2fc95ba6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16009630

Change-Id: Ibd7b811421ccac5e5e6d15ab8e9fc08fad813f8b
2021-10-26 00:57:51 +00:00
Badhri Jagan Sridharan
a25b4d683b pixelstats: Filter "PRODUCT_TYPE" uevent for reporting VID/PID
gs101 has the kernel changes to report "PRODUCT_TYPE" upon plug-in.

Bug: 196104058
Test: adb shell cmd stats print-logs; adb logcat | grep 105011
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: Ia61a3b2a693d4f2b630409dd786342743e330ef2
2021-10-26 00:29:14 +00:00
Milo Sredkov
06c046b7e3 Add LOW_POWER_ hints for gs101 devices
Add LOW_POWER_LITTLE_CLUSTER_{50,60,70,80,90} and
LOW_POWER_CPU_{50,60,70,80,90} to match what is already present for
Pixel 3, 4 and 5.

Because of the presence of a MID cluster, we also add a new set of
hints LOW_POWER_MID_CLUSTER_{50,60,70,80,90}.

See go/powerbrain-cpu-gs101 for explanation on the selected
frequencies.

Bug: 151080800
Bug: 188770301
Test: Make and flash, use a dev version of Turbo to set a hint
Change-Id: I4594cdb6fd3d8f34a3ac84329c601bab07d1b9c6
2021-10-21 20:55:07 +00:00
Pierre-Clément Tosi
38cad31af0 gs101: Use AOSP build framework for pvmfw.img
Remove the definition for BOARD_PREBUILT_PVMFWIMAGE (which currently
points to the shared AOSP pre-built of pvmfw.img) to fall back to the
default behavior of the AOSP framework. Even though this will result in
the same pre-built being used (for now), not setting that variable still
partially modifies the overall behavior (e.g. for packaging) and allows
upcoming framework changes to be automatically picked up.

Bug: 199717422
Test: m
Change-Id: I7c3bbbee8c83d262b707f8582b5f43040bc25a06
2021-10-21 09:23:43 +00:00
Victor Liu
dbd736c3ee move uwb feature to system_ext am: 52317f994b am: ecc69f13a3 am: ff98b30ba9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: I9a7ecdbb327a32f54fba0b81c6a5802bdf335ced
2021-10-20 16:26:14 +00:00
Victor Liu
9f050449ca move uwb feature to system_ext am: 52317f994b am: e6b821f5ad am: a46b4a7a28
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: Ia5e4768df5c86881919e59989a250b6fe5b09715
2021-10-20 16:26:08 +00:00
Victor Liu
5cc6053624 move uwb feature to system_ext am: 52317f994b am: ecc69f13a3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: I4835db7f9a5771c7ffc9af97fad12c5964197db9
2021-10-20 16:06:08 +00:00
Victor Liu
b867055e6e move uwb feature to system_ext am: 52317f994b am: e6b821f5ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: I113067279cca53e231f020f4493778f099fedeac
2021-10-20 16:05:24 +00:00
Victor Liu
9b6c980301 move uwb feature to system_ext am: 52317f994b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: Ia69d419e290cd8782d417420b719cc93a406f2db
2021-10-20 15:49:50 +00:00
Victor Liu
8144b338f0 move uwb feature to system_ext am: 52317f994b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16088272

Change-Id: Ibdabb697d1e81d5380691e5422ee6e2ad49e7242
2021-10-20 15:49:49 +00:00
Jiyong Park
406cc98077 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

The prebuilt files had a reference to
android.hardware.gnss-V1-ndk_platform.so. Change it to
android.hardware.gnss-V1-ndk.so by diretly editing the DT_NEEDED entry.

Bug: 161456198
Test: m
Change-Id: I25ec19101c408cc29df38d127f284c7085fe1d1a
2021-10-20 01:46:26 +00:00
Michael Ayoubi
038cea4be3 Add SE State Changed Intents in EuiccSupportPixel am: 05be453db2 am: 196e6c5813
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15848920

Change-Id: I283036916fece665a9aa523fe2d536628a631702
2021-10-20 01:06:23 +00:00
Michael Ayoubi
2d6294bb61 Add SE State Changed Intents in EuiccSupportPixel am: 05be453db2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15848920

Change-Id: I3879b7dbe3571dd79f5bd16412dd5bbf185a98c1
2021-10-20 00:48:48 +00:00
Michael Ayoubi
a7f4ef05b5 Add SE State Changed Intents in EuiccSupportPixel
Needed to emit SE_STATE_CHANGED from Thales updater code to clients when
eOS or applets are being updated. Current clients are GMSCore and UWB
Service.

Bug: 189881206
Bug: 183606657

Test: Confirm overlay worked and intents were received.

Change-Id: Ia1106d6fad20797e72c49cfc1f790289d0da0963
2021-10-20 00:32:55 +00:00
Victor Liu
193c85c4ef move uwb feature to system_ext
this prevents the gsi device from starting uwb

Bug: 203052451
Test: nearby-share on uwb device
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: Iec21b82dfd79849b2d949f696e59d64f0487edad
2021-10-19 21:57:25 +00:00
Will McVicker
762fed8d57 gs101: recovery: add wait for dwc3 device to probe am: 7d57715be3 am: adcfd6f400
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16065807

Change-Id: Ia8a03d9f75b013658c05446072bfa30dee32b629
2021-10-19 17:41:11 +00:00
Will McVicker
fdb1375a0a gs101: recovery: add wait for dwc3 device to probe am: 7d57715be3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16065807

Change-Id: I7a2036746264efd31f6d425ed5351a351eea7e8f
2021-10-19 17:18:51 +00:00
Will McVicker
09f583f336 gs101: recovery: add wait for dwc3 device to probe
This patch adds a dependency on the dwc3 device probing before setting
the sys.usb.controller property. Without this, we have a race between
fastbootd starting and the dwc3 device probing. If fastbootd starts
before the dwc3 device probes, then the recovery init.rc will fail to
setup the USB gadget resulting in "fastboot devices" failing to detect
the device.

Bug: 202338035
Test: verify device is detected in fastbootd
Change-Id: I146451eae03f23dde915c00af3028681be41a8c1
(cherry picked from commit f31fad844a7b94ee7c6689afd0b563da00c29118)
2021-10-19 16:58:00 +00:00
Joseph Jang
473f1211f1 dumpstate: Add support to get GSC DEBUG DUMP
In order to get GSC DEBUG DUMP in bugreport zip file, we add a new
console command "./vendor/bin/hw/citadel_updater -D" to retrieve 1KB
GSC DEBUG DUMP for dumpstate.

If so, we could check GSC DEBUG DUMP in dumpstate_board.txt from bugreport.

File: dumpstate_board.txt
------ Citadel VERSION (vendor/bin/hw/citadel_updater -lv) ------
0.0.2/nugget_v0.0.1138-399621c+ 2021-10-07 08:53:24 josephjang
Chip:    Google Dauntless D2 (evt)
Board:   0
RO_A:    0.1.1/17af49b9 ok
RO_B:  * 0.1.1/b0de9d69 ok
RW_A:  * 0.0.2/nugget_v0.0.1138-399621c+ ok
RW_B:    Error

------ Citadel STATS (vendor/bin/hw/citadel_updater --stats) ------
hard_reset_count            1
time_since_hard_reset       335976980
wake_count                  5
time_at_last_wake           335920127
time_spent_awake            50563801
deep_sleep_count            4
time_at_last_deep_sleep     268360610
time_spent_in_deep_sleep    285413177
time_at_ap_reset            11401
time_at_ap_bootloader_done  10939493
PHONE_ON_L: 1
VOL_UP_L: 1
VOL_DN_L: 1
TEMP.RANGE: 39,39
------ GSC DEBUG DUMP (vendor/bin/hw/citadel_updater -D) ------
debug dump start
000007d70605 85 00 0174aa0d 00000000
000007f56df5 85 00 0174aa0d 00000000
0000080212cd 85 00 0174aa0d 00000000
00000b73fe80 85 00 0174aa0d 00000000
debug dump end

------ Section end: gsc ------

Bug: 194113345
Change-Id: I1c43c337cef49b2be4af27d2dc28797e29f0dc9a
2021-10-19 08:39:28 +00:00
Kyle Lin
c945c9a44f init.gs101.rc: adjust ratio_ceil am: e574d5e7dd am: 9552a03525 am: d3d3a01bde
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16074856

Change-Id: Ic61d083afe953c78aa29ab61c29d4fd5b30a6b30
2021-10-18 20:17:12 +00:00
Kyle Lin
5f1ce0943b init.gs101.rc: adjust ratio_ceil am: e574d5e7dd am: d2ecc1730b am: 10230b90f6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16074856

Change-Id: I20f0f67915eac09fdd122fb1112fa69ecb93e28a
2021-10-18 20:16:49 +00:00