Commit graph

6523 commits

Author SHA1 Message Date
Jenny Ho
7766f6743c Adjust bd_state to system for read
Bug: 316432531
Change-Id: I07aa6aa400acc7db718e0201e61fa6a4f8e4eebb
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2023-12-19 03:24:22 +00:00
kierancyphus
414213dd66 logmasklibrary: update version info and freeze api
The versions were originally not specified in the device manifest and
compatibility matrices. This is changed here to fix the broken vts
tests.

Bug: 310109332
Test: atest vts_treble_vintf_vendor_test -- --abi arm64-v8a
Change-Id: I12751f1d037ee9de477285a56bc411f9c6085752
2023-12-15 22:46:17 +00:00
Kuen-Han Tsai
93d9eb0a8f usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the
device when the SD card is inserted or removed.

To support SD card hotplugging, this patch enables in-kernel
media-presence polling, which will check the SD card status every 2
seconds after a SD card reader is attached.

Bug: 186479576
Test: SD card insertion/removal and data copy (see b/301566595)
Change-Id: I29c352696cd9d31168a8eac8c58d23adb484f5d0
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2023-12-12 14:07:27 +08:00
Xin Li
1819593a37 [automerger skipped] Merge Android 14 QPR1 am: 94bc87a6f2 -s ours am: f8305476c5 -s ours am: 60bc6152e2 -s ours
am skip reason: Merged-In I7a1fec0331c5bddabd4f9edabcfda9b137f7a452 with SHA-1 7f9f6cac0b is already in history

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

Change-Id: Ib957f8b989a6b4bc06355a7a2edbdf4f6184fe81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:58:03 +00:00
Xin Li
60bc6152e2 [automerger skipped] Merge Android 14 QPR1 am: 94bc87a6f2 -s ours am: f8305476c5 -s ours
am skip reason: Merged-In I7a1fec0331c5bddabd4f9edabcfda9b137f7a452 with SHA-1 7f9f6cac0b is already in history

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

Change-Id: Ia9d7abe61db0f878fae42ac3d54398c1565fbdf2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 22:02:50 +00:00
Xin Li
f8305476c5 [automerger skipped] Merge Android 14 QPR1 am: 94bc87a6f2 -s ours
am skip reason: Merged-In I7a1fec0331c5bddabd4f9edabcfda9b137f7a452 with SHA-1 7f9f6cac0b is already in history

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

Change-Id: Ife929c160acf3251b7fd850fffcdbc979ba85351
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-11 21:17:01 +00:00
Roy Luo
bedb8beca9 Revert^2 "usb: introduce UsbDataSessionMonitor class"
1aad6b6b31

Bug: 297224564
Bug: 296119135
Change-Id: I9ecf85f4e4b22d7d3bf2402c7f7299b38582bde9
2023-12-09 00:22:03 +00:00
Xin Li
94bc87a6f2 Merge Android 14 QPR1
Merged-In: I7a1fec0331c5bddabd4f9edabcfda9b137f7a452
Bug: 315507370
Change-Id: I91520d419d9d0913b5d73b842edde3f375c202b2
2023-12-08 13:13:24 -08:00
Xin Li
008c695964 [automerger skipped] Merge UQ1A.231205.015 am: 7f9f6cac0b -s ours am: 0fa2dbcfc4 -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 1bc693d338 is already in history

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

Change-Id: I841ac5f99314ee04c4361cbf8ea167c4d93e5914
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:51:04 +00:00
Xin Li
0fa2dbcfc4 [automerger skipped] Merge UQ1A.231205.015 am: 7f9f6cac0b -s ours
am skip reason: Merged-In I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe with SHA-1 1bc693d338 is already in history

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

Change-Id: I16ed09997d031be1351614aea139fc2d728452b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-08 08:21:16 +00:00
Xin Li
7f9f6cac0b Merge UQ1A.231205.015
Bug: 308969284
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I7a1fec0331c5bddabd4f9edabcfda9b137f7a452
2023-12-07 15:47:12 -08:00
Jason Chiu
a2074a4363 gs101: use android.hardware.boot aidl interface
Bug: 314215524
Change-Id: Ie66c1d5288cfa363ac41d578fd7c03a95eee361e
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:48:41 +00:00
Jason Chiu
b1b74c03c2 gs101: update manifest HAL android.hardware.boot from hidl 1.2 to aidl
Bug: 314215524
Change-Id: Iddc2b2822ece025cb915ad39ab52f18cf0d5889a
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-06 02:48:41 +00:00
Qian-Hao Huang
1aad6b6b31 Revert "usb: introduce UsbDataSessionMonitor class"
Revert submission 25524752-usbDataSessionMonitor

Reason for revert: Test for gs101/gs201 boot blocking issue (b/314904288)

Reverted changes: /q/submissionid:25524752-usbDataSessionMonitor

Change-Id: I6070b8bf441cc84e0744e2f0ecf454d4245cb686
2023-12-05 17:13:31 +00:00
Jason Chiu
845ec9cfb5 gs101: include bootctrl_hidl_1.2.mk from gs-common
Bug: 265063384
Change-Id: I53db48880aa384afba9e1e48fb49f04a8af0e1fb
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Jason Chiu
0561656a79 gs101: move bootctrl service declaration to gs-common
Bug: 265063384
Change-Id: I426977fd0a8e0b0e65f74c12c35668cb8c530c31
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Jason Chiu
38f6d0fb94 gs101: move bootctrl hal to gs-common
Bug: 265063384
Change-Id: Ie4f850c684a2e871aebad8599f88ebf6f1024beb
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2023-12-05 02:30:54 +00:00
Hiroshi Akiyama
0c4376b098 bcl: adjust heavy clk divider ratios
Bug: 314168856
Test: TBD
Change-Id: I40627648d01161bfbeb873f92ec1a3f22318285a
Signed-off-by: Hiroshi Akiyama <hiroshiakiyama@google.com>
2023-12-04 21:52:04 +00:00
Roy Luo
67556c182a usb: introduce UsbDataSessionMonitor class
Migrate the usb data session event functions to the class with the
following additional functionalities;
- Support detecting gadget soft pulldown (usually done during configfs
  function switch) and report usb data session correctly.
- Support reporting usb data compliance warnings to the class USB
  by providing getDataComplianceWarnings call.
- Use boot_clock instead of steady_clock to measure time correctly in
  the case of system suspend.

UsbDataSessionMonitor is self-contained and can be migrated to pixel usb
library after feature maturation.

Bug: 297224564
Bug: 296119135
Test: usb data session upload in device and host mode
Change-Id: Iba001933e193935d64cf5fd0a1257d02a4274fb1
(cherry picked from commit ea65ca11f6fbb6f13b89ef9ed03015f47ec1cedb)
2023-12-01 16:43:41 +00:00
Peter Lin
acf42185fd Update default color temperature for night light
Bug: 302396607
Test: adb shell dumpsys color_display | grep "Color temp"
Change-Id: I7c88ccacbfeda6446788e0e0bf4f7a3f72d85b3a
2023-11-30 07:48:50 +00:00
Edgar Arriaga
eae154f7fd Add webview pinning for gs101 devices
Bug: 307594624
Change-Id: I1e4e120840d757a9397ea07b9b3087a1f662cc63
2023-11-27 18:04:49 +00:00
Jerry Huang
4c082b94ba gs101: add c2.android.av1-dav1d.decoder in media_codecs_performance_c2.xml
c2.android.av1-dav1d.decoder is based on dav1d implementation.
This dav1d-based sw av1 decoder provides better decoding throughput
than the default gav1-based av1 decoder on mid-to-low-tier devices.
c2.android.av1.decoder will be deprecate eventually before that we keep
both decoders.

Bug: 309412792
Test: run cts -m CtsMediaDecoderTestCases -t android.media.decoder.cts.VideoDecoderPerfTest --module-arg CtsMediaDecoderTestCases:instrumentation-arg:codec-prefix:=c2.android.av1.decoder
Change-Id: I0d2d7e8727452d4c6dd64a45c22be5463cf21571
2023-11-16 12:21:59 +00:00
Roy Luo
725438e40e usb: update usb hal version to v3
Bug: 308700954
Test: atest vts_treble_vintf_vendor_test
Change-Id: Ifa30881c9c2ed3a4d0064511a955edec3f7c5fe6
2023-11-14 20:44:30 +00:00
Jack Wu
ad57c8b744 gs101: update AIDL IGoogleBattery manifest version to 3
Bug: 309518527
Test: TH
Change-Id: Idbbc257f52995590713ef3cd2b28c4e3a781328a
Signed-off-by: Jack Wu <wjack@google.com>
2023-11-13 06:57:57 +00:00
Herbert Xue
626fcde723 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: f6b542fe4c am: eb5d18f620
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: I3c8b35be62c1b4af12be894f2347bad23266323d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:42:11 +00:00
Herbert Xue
be65dcf77f Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: d5c2b9a3b5 am: cefaf4b342
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: Id3b2a4e2aa967b519815800388240e5d8e5b94ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:39:48 +00:00
Herbert Xue
eb5d18f620 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: f6b542fe4c
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: I64f34525f3baa94d2a348ed2715f5022f18f8745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:10:12 +00:00
Herbert Xue
cefaf4b342 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e am: d5c2b9a3b5
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: Iba255699c04607f8dad3c7ed1e9a2f897adcf914
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 04:07:19 +00:00
Herbert Xue
d5c2b9a3b5 Remove unused Android.mk under device/google/gs101 am: 5d6726b88e
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: I7326f4159f637a5ea70d6cc4c58ec64ebd6628fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 03:20:37 +00:00
Herbert Xue
f6b542fe4c Remove unused Android.mk under device/google/gs101 am: 5d6726b88e
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2825810

Change-Id: Id79c8e62b20836185e84b4113de14a7306ac3fd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-13 03:20:37 +00:00
Herbert Xue
5d6726b88e Remove unused Android.mk under device/google/gs101
The license declaration can't be handled in Android.bp currently.
So keep them in Android.bp.

Bug: 310058310
Test: NA
Change-Id: I3e25fa07f6b3e1bffaf585d69e342c651b50f6ef
2023-11-10 14:48:33 +08:00
Roy Luo
f23c69b257 usb: update incompatible charger warning reason
Report COMPLIANCE_WARNING_INPUT_POWER_LIMITED instead of
COMPLIANCE_WARNING_OTHER to flag incompatible chargers. The underlying
logic that generates the warning remains the same, what's changed is
the enum that's being used.
The purpose of the change is to have a warning type that better
represents what actually happens and free up COMPLIANCE_WARNING_OTHER
that was intended to act as a fallback reason code.
The flag enable_input_power_limited_warning controls whether to switch
to the new enum, while the flag enable_usb_data_compliance_warning
controls the new enums that are added as FlaggedApi in the framework.
Both flags need to be on to enable the change.

Bug: 308700954
Test: manual tests with local flag override
Change-Id: I6595706d1b83d533fc2d3e29086773270e045ede
2023-11-09 22:55:07 +00:00
Will McVicker
d7be6ca6d3 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 am: b812cda10e -s ours am: c5a742158e -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: I1f546f53b63b7db94cd7443650688027c61e185b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:59:48 +00:00
Will McVicker
a59784f545 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 -s ours am: 59ceb7c081 -s ours am: 7b8fda4678 -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: I254534a8ec4b951fdc7a5aa8d731f84dda03e900
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:55:56 +00:00
Will McVicker
c5a742158e [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 am: b812cda10e -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: Ia2839d3e016de4ee45b4323a790ad42abb48c0d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:12:47 +00:00
Will McVicker
7b8fda4678 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 -s ours am: 59ceb7c081 -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: I5bbe3a94b51939ec0d8050ef32292ec1fb8020ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 03:10:12 +00:00
Will McVicker
b812cda10e fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2819677

Change-Id: I9bfa1496b06b72c51b5b07e8d1ede70d43b43e30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 02:41:10 +00:00
Will McVicker
59ceb7c081 [automerger skipped] fstab: allow unlocked devices to boot with AVB test key am: df9ca7c4e1 -s ours
am skip reason: Merged-In Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b with SHA-1 662e1bc915 is already in history

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

Change-Id: Ibae31049dc107670bbc5d13bfac967ebf19c8e55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-09 02:38:25 +00:00
Devika Krishnadas
0a894f5d0d Revert^2 "Use graphics allocator 2"
900e7f1a45

Bug: 287353739
Test: VtsHalGraphicsMapperV4_0TargetTest

Change-Id: Iec05757e26a5d16a3315188cd29821377d21b9d8
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2023-11-08 23:21:06 +00:00
Will McVicker
df9ca7c4e1 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
to allow booting unlocked devices with a custom kernel. This allows a
few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
Merged-In: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
2023-11-08 19:22:45 +00:00
Will McVicker
4bec6c0bf4 fstab: allow unlocked devices to boot with AVB test key am: 662e1bc915 am: 4fa15052cf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25300777

Change-Id: Ib1293b9afe7a948d840e3377bf574c3f7e05979e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 05:58:24 +00:00
Will McVicker
4fa15052cf fstab: allow unlocked devices to boot with AVB test key am: 662e1bc915
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25300777

Change-Id: Ia3c31a8e2894d75a9408e5a7afb1e71060f59cef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-08 05:14:30 +00:00
Will McVicker
662e1bc915 fstab: allow unlocked devices to boot with AVB test key
Set `avb_keys=no_such_key` for the vendor_dlkm dynamic kernel partition
to allow booting unlocked devices with a custom kernel. This allows a
few things:

1) Dogfooders can flash a custom kernel without wiping their device.
   This can help developers track down hard-to-reproduce bugs without
   rolling out a patch to the whole dogfooder population.
2) Developers can uprev their device's kernel without wiping their
   device or packaging the kernel with an Android platform build.

Note: we are using "no_such_key" to ensure an AVB keys file doesn't
accidentally get created.

Test: Flash CI build. Then flash custom kernel on top.
Bug: 274825778
Change-Id: Iee542cf5ab4973ee9cb2c1fe66d00b642fdf525b
2023-11-07 10:15:11 -08:00
Jeff Chang
533c98a59c Update default allow list for VRR small dirty detection
The feature will be enabled by the feature flag

Bug: 308742727
Test: Build
Change-Id: I4acb218f88eb2da95c7b184297650947d2164adb
2023-11-02 10:48:19 +00:00
Jasmine Cha
c2f9f91066 audio: remove prescale for BT absolute volume
Bug: 302553525
Test: build pass

Change-Id: Ic6001a99d297ac030158ddea76d0f19907e98049
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-11-01 06:02:04 +00:00
mincheli
2d1201d13a gs101 includes TTS voice packs from gs-common/device.mk
And it removes the duplicated voice packs in gs101/tts

Bug: 140145973
Test: manual test
Change-Id: Id6cdf33e7670120e9e1f7cc39ecc9ff620fa8c9a
2023-10-31 06:17:07 +00:00
Will Song
d489eba3dc PREUPLOAD: Enforce jsonlint in preupload
Checks syntax and simple brace balances for all JSON files.

Test: Edit any json file and try upload
Bug: 127794899
Change-Id: I70ad38f73a4fea908442b4411e3aa7ffbaeb7d88
2023-10-29 05:49:27 +00:00
Android Build Coastguard Worker
0a3e2b2a12 Merge cherrypicks of ['googleplex-android-review.googlesource.com/25163335'] into udc-qpr1-release.
Change-Id: I10e137f6ba5819ad76af42ab597ce4d31508bc14
2023-10-27 03:36:05 +00:00
Paul Lawrence
9f697c42f5 Run fsck to resolve possible data corruption
Trigger fsck on mount of /data if the value of ro.preventative_fsck is
not equal to the contents of /metadata/vold/preventative_fsck, then set
the file to the property to prevent future runs

See b/305658663 for context

Bug: 305658663
Test: Make sure fsck run after first boot and not after second
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1bc693d338e8d26307d51bb6731d8e94f1df33f9)
Merged-In: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
Change-Id: I1263d2d55fe22d994ae8c8654b1e75ad9e4ddafe
2023-10-27 03:31:52 +00:00
Paul Lawrence
f4f8ef741b Run fsck to resolve possible data corruption am: 1bc693d338 am: 0087b3ac91 am: 0a23de535b am: 3b9ccc0113
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/25163335

Change-Id: I95a9fed08d96324945d975db084cb373b05663cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:00:19 +00:00