Commit graph

978 commits

Author SHA1 Message Date
Daeho Jeong
a368fcc6d7 init.rc: change the ownership of gc segment info sysfs nodes am: e6c2780ebe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15819243

Change-Id: I7add7e01fb652b51793196ecda9cca89ca4efea0
2021-09-14 04:20:40 +00:00
Daeho Jeong
8fc873c415 init.rc: change the ownership of gc segment info sysfs nodes
Changed the ownership of gc segment info sysfs nodes for Pixelstats
to access these values.

Test: check the ownership of
/dev/sys/fs/by-name/userdata/<gc_segment_mode|gc_reclaimed_segments>
Bug: 182708936
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I444350d6f4898920b6036558eebdb11cf18ddee5
2021-09-13 22:08:12 +00:00
Quang Luong
144fdd0832 WifiCoex: Add default channel 11 for band 40 am: f05dc37315
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15786766

Change-Id: Ie1cc742a972ceff8c1ffdac2a4b71d49afb7ea4c
2021-09-08 18:02:49 +00:00
Quang Luong
5d1433762e WifiCoex: Add default channel 11 for band 40
Use default wifi channel 11 if interference from band 40
renders all 2.4GHz wifi channels unsafe for coex.

Bug: 198345384
Test: adb shell cmd wifi set-coex-cell-channels lte 40 2400000 200000 -1
0, verify that coex log does not contain unsafe channel 11

Change-Id: Ifd90ed1846bc9897a88244b5fdc964143c00d702
(cherry picked from commit 9a0d4f1f94da0cf96aaefb59cf9fba7228268672)
Merged-In: Ifd90ed1846bc9897a88244b5fdc964143c00d702
2021-09-08 15:02:49 +00:00
leohsieh
eb221fd967 Remove UDFPS HIDL from udfps_common.mk
Bug: 199054557
Bug: 196017212
Change-Id: If7aea875c2a212d4245164debc07ea39db8c11bb
2021-09-08 20:51:08 +08:00
leohsieh
200ab12edf Enable both AIDL and HIDL UDFPS HALs
Bug: 199050181
Bug: 196017212
Test: Both binaries are installed on device
Change-Id: Ide7735eece4057fe3a28058c8c302763c5bf9a25
2021-09-08 20:50:32 +08:00
Jenny Ho
1dfbc241a0 dumpstate: dump battery maxfg monitor log
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-07 14:00:21 +00:00
leohsieh
bd92067116 Include the Soong namespace of the UDFPS HAL
Bug: 197219547
Test: build pass
Change-Id: Ia3a769a8db711794fc5867ab30f14d6b8219ca20
2021-09-07 07:36:55 +00:00
Roger Fang
9ad5484339 device: gs101: add speaker health stats am: c6bf998960
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659556

Change-Id: I03e60f6be6675fed45596bf346d4a55bc5664733
2021-09-07 03:38:02 +00:00
Roger Fang
a555dec81e device: gs101: add speaker health stats
Add the sysfs that required by the new ATOM of VendorSpeakerStatsReported.

Bug: 175736081
Test: Manually test with ATOM

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I61a47ff963d7c9ed75d9c636b171c791f7ae7c38
2021-09-07 03:19:32 +00:00
Vince Leung
58180f0c16 gs101: add haptics actuator model config
Actuator models can vary across devices. Actuator models can have
different characteristics that need to be handled appropriately. Add
support to define the actuator model used in Soong makefiles.

Bug: 195894512
Test: verified that different actuator model configs are used on
different targets

Change-Id: Ic7fd5f52c3bfed252fa3956f3e926c90c1632013
2021-09-03 23:44:04 +00:00
Bob Badour
aac9a16253 [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101
Added SPDX-license-identifier-Apache-2.0 to:
  conf/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ia8212a8ed3a205d74c7af8a29b89033a6ec9a023
2021-09-03 19:39:07 +00:00
Victor Liu
8792fe583d uwb: enable low power
Bug: 187840615
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: Ib790e9e129e2613362566b888569407e8a32a808
2021-09-03 19:13:27 +00:00
Petri Gynther
b5474eb289 gs101: clean up kernel variables am: 17f6b03738
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15746361

Change-Id: Ic6e3d962e0e54df7d0880bc412295432f54b9df2
2021-09-03 12:58:42 +00:00
Petri Gynther
299ca16835 gs101: clean up kernel variables
1) remove TARGET_BOARD_KERNEL_HEADERS
2) remove TARGET_PREBUILT_KERNEL

Bug: 198682676
Change-Id: I9ab161ee75dc33e135ad87e084b3373350ca0c93
2021-09-03 12:35:16 +00:00
Edwin Tung
347f033019 gps: update gps driver 129.20.23.513912 am: 63d85c21e8 am: 9eb6778a29
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15743517

Change-Id: I9c6020023d9ef1a9fb56d311a5b70328aae960be
2021-09-03 08:35:44 +00:00
Edwin Tung
d80cf7415e gps: update gps driver 129.20.23.513912 am: 63d85c21e8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15743517

Change-Id: I3b068cf749a96b1b52287115d19e3638e07140f3
2021-09-03 08:18:41 +00:00
Ted Lin
ac572156d8 dumpstate: move the dump registers from regmap to each driver am: 79d4aa8404
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15583885

Change-Id: Iec8d71029d9843d7df79e1d43c44dfdce9e8466f
2021-09-03 06:01:09 +00:00
Ted Lin
2b86da4352 dumpstate: move the dump registers from regmap to each driver
dumpstate availible to dump data with below 2 permission:
-r--r--r-- 1 root root
-r--r----- 1 system system
but /d/regmap permission is -r-------- 1 root root
1. we cannot change root to system with chown if the file node is root
2. we cannot change to read with chmod if the file node is root
3. try change permission in vendor_init causes sepolicy build fail with
   message rule neverallow

Base on above results, we added new file node in kernel with available
permission to dump needed data and dump it.

Bug: 194941806
Test: adb bugreport
Change-Id: Ieeb1adfb0351ceb33bf817cbef3663d41cdb8645
Signed-off-by: Ted Lin <tedlin@google.com>
2021-09-03 05:44:37 +00:00
Edwin Tung
16e8a27f52 gps: update gps driver 129.20.23.513912
Fixed a bug of missing ref location in ME switching
Fixed to report velocity type correctly
Increased PGLOR,6,PWR nmea sentence buffer and GLL will print the error log if the sentence is longer than expected
Added a ring buffer for malloc/free debugging with dump
Fixed ESW patch download issue

Bug: 197716902
Bug: 197711819
Bug: 197620911
Bug: 196499748
Bug: 197916943

Sanity Test: 198605012
Test: build pass

Change-Id: I06e25376c194058404e5d65e463086d3d1e2f1d9
2021-09-02 21:02:27 +08:00
Jack Wu
6908766de0 gs101: separate WirelessCharger from device_framework_matrix_product
Bug: 198221475
Test: WirelessCharger can run
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I7120f5f5338dc95ca19a977ad0028b54a410c80a
2021-09-01 13:07:58 +00:00
leohsieh
0385e708a6 Remove project info from udfps_common.mk
Move GOODIX_CONFIG_BUILD_VERSION to device mk.
Fixes "There is no fp HAL on factory build".

Bug: 197213960
Test: lunch oriole-userdebug
Test: lunch factory_oriole-userdebug
Test: lunch oriole_hwasan-userdebug

Change-Id: I39ba0675eb3046d7d8229a996f3d728aedc59b02
2021-08-31 11:23:29 +00:00
Eric Biggers
f8622be0fd Generate a separate fstab file for FIPS mode am: 08c8bc2e40
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: I989dad797866cc82ad11cf2bca3e705370689517
2021-08-30 23:16:38 +00:00
Eric Biggers
f739cf68c0 Generate a separate fstab file for FIPS mode
Add a file "fstab.gs101-fips" alongside the existing "fstab.gs101" in
order to specify different encryption settings in FIPS mode.

"androidboot.fstab_suffix=gs101-fips" on the kernel command line will be
used to select the FIPS fstab when needed.

As the two fstabs should be otherwise identical, generate them from a
template file so that they will stay in sync.

Note that generating the fstabs requires that they be installed as build
system modules rather than via PRODUCT_COPY_FILES, which results in the
vendor_ramdisk copy of the fstabs being installed to system/etc rather
than /.  This shouldn't cause any problem, now that Android has been
updated to look for the fstab in this location too.

Bug: 191417025
Change-Id: I1d115e014df8ba2fb83046ac0b9b791597364846
2021-08-30 14:09:06 -07:00
Puma Hsu
f723d1535f usb: fix the naming for uwb mode am: af3face69d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15706017

Change-Id: Ifc461cbcaee2802e8e7a7dce499565cd172a3b2c
2021-08-30 02:24:22 +00:00
Puma Hsu
c798852213 usb: fix the naming for uwb mode
In previous we created a new bootmode "uwb" which will enable
the ACM port, but the name was wrong. Rename it as "usbuwb"

Bug: 187877902
Test: ACM port can be enabled
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: Id27930c4c34e7272cebf1825b6aa68f526e84112
2021-08-29 22:21:30 +08:00
Victor Liu
d85344a3c2 Bug: 192233033
Signed-off-by: Victor Liu <victorliu@google.com>
Change-Id: I3db1a5b6860956290e46909c0900442947da4125
2021-08-28 17:33:14 +00:00
Bob Badour
a63bb9d513 [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs101
Added SPDX-license-identifier-Apache-2.0 to:
  fingerprint/fpc1540/fp_tool/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I82ead6a8a6fdef70712d5193174e8652e785a7d4
2021-08-26 12:06:55 -07:00
eddielan
ffb00dfe09 fingerprint: Add performance configuration
Bug: 195999248
Test: Build Pass & perform authentication on device
Test: The latency is reduced from 352ms to 133ms
Change-Id: Id0c4e34fb98aa50995449ff66ffe894a37a1bdeb
2021-08-26 11:42:59 +00:00
Puma Hsu
273d9467ae usb: create new functions for uwb am: 563421fa4f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659566

Change-Id: I24928bb50356d01199ba7de2a331e425b9884b93
2021-08-26 06:53:40 +00:00
Puma Hsu
fbcb7ad5dc usb: create new functions for uwb
uwb needs ACM port, create this function combination.

Bug: 187877902
Test: ACM port can be enabled.
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: I14c6af95bbd5e9e0b2c4a17a1fffb6e04def2c9b
2021-08-26 06:37:39 +00:00
Rex Lin
45b4d2d89b uwb: add uwb diag modules into the dlkm blocklist
Bug: 191339300, 192638358

Test: verified pass with local build
Change-Id: I24cfe8b490bee6b8872111cfb4f9d77de3e603a2
2021-08-26 03:11:54 +00:00
Edwin Tung
65df057316 gps: update gps driver 129.20.23.512827 am: b4ee393e13 am: e02fb18427
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659562

Change-Id: Ifcbf931bff6d12968da59af73b433ed485f7cef7

Fix automerge conflict

Bug: 197717433
Change-Id: Id1983d386ae72310d1556588f56bdf9745403ff7
Merged-In: I0cf86bd1f3b304d7f0855c65a5e0d85c0493732d
Merged-In: I5095172b5c38aa93ddd2ecc4f75e7bed7aeeaf73
2021-08-25 13:32:24 +00:00
Edwin Tung
31cf630527 gps: update gps driver 129.20.23.512827 am: b4ee393e13
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15659562

Change-Id: If37d23febac5921bb090fadf74ffeb1a4f482985
2021-08-25 09:21:00 +00:00
Edwin Tung
09ea2fd293 gps: update gps driver 129.20.23.512827
Set minimum interval 1000ms for CHRE request
Fix position gap in scheduling request
URA value should not be divided by sqrt of 2 regardless of position source
Enable SvPvt logic even the period is less than 1s
Fixed Native crash: Additional check before using gyro mean as VDR measurement.

Bug: 196499748
Bug: 196927451
Bug: 197141478
Bug: 196851941
Bug: 197061041

Sanity Test: 197583040
Test: build pass

Change-Id: I1409f75e50a7b8402c967957fa4148823d22caea
2021-08-25 09:08:11 +00:00
Petri Gynther
6bda769bb0 Revert "gs101: use prebuilt GKI boot.img for production builds" am: 314ca8bcf6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15629452

Change-Id: I9841d73cdd95db3fc1391aba1ce28a7d706aeaea
2021-08-23 19:46:36 +00:00
Petri Gynther
ccbd2c7431 Revert "gs101: use prebuilt GKI boot.img for production builds"
This reverts commit 96007d8f9cab5f6028cb4a1b15e30c6ffe8bf5dd.

Temporarily revert prebuilt boot.img usage on sc-qpr1-dev
until we have official signed GKI boot images available.

Bug: 188095549
Bug: 191417025
Change-Id: I2f9907d3674f8a8869aac3c926994e116c76a91b
2021-08-23 19:20:43 +00:00
Oleg Matcovschi
ca48019151 bootctrl: enforce synchronous write operation am: 354f3c6d2e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15641057

Change-Id: I268eb006ee3ba4d479317fb00c233a3f5101ae58
2021-08-21 06:52:23 +00:00
Oleg Matcovschi
95f4b9ccb7 bootctrl: enforce synchronous write operation
Bug: 197104397
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Change-Id: Ifbc612fc40847395ccb751463b1bb15bd3f20657
2021-08-20 17:16:35 +00:00
SongFerngWang
b55cbdf42f Enable the Connectivity helper Settings UI am: f3c254dd05 am: 52d09f5d1c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15337099

Change-Id: I3b272d7ceb0bf13667bbb1dc1a1c16ee5adc002b
2021-08-20 17:05:25 +00:00
SongFerngWang
a07c71c4c7 Enable the Connectivity helper Settings UI am: f3c254dd05
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15337099

Change-Id: I3438eac67e7dc2ec085975fe7d2c430ff585e02f
2021-08-20 16:44:15 +00:00
SongFerngWang
b296e9a28d Enable the Connectivity helper Settings UI
Bug: 190018497
Bug: 190017996
Test: build pass
Change-Id: I0970be731d37a25d73ee0cc7e5c147627567b4ed
2021-08-20 16:29:31 +00:00
AleX Pelosi
ac171ac32d gs101: use CPU4 in charger mode am: 5ac742b9fc am: 3fb606c6a6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15631479

Change-Id: I006252fa85755ec29f808dd682b124b8ec606e24
2021-08-20 00:28:16 +00:00
AleX Pelosi
115455b772 gs101: use CPU4 in charger mode am: 5ac742b9fc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15631479

Change-Id: I5d918af95f3a8f6587cebe65ea806468d04c286e
2021-08-20 00:11:10 +00:00
AleX Pelosi
41fcd9e444 gs101: use CPU4 in charger mode
For charging efficiency certification swap CPU6 with CPU4 while in
off-mode charging.

Bug: 194146139
Signed-off-by: AleX Pelosi <apelosi@google.com>
Change-Id: Ib2bee00b952df65d60534342e20f5d331b839e4c
Merged-In: Ib2bee00b952df65d60534342e20f5d331b839e4c
2021-08-19 23:49:43 +00:00
Chris Fries
cad92233b5 Revert "device.mk: Freeze vendor security patch 2021-09-0x" am: 376fb1a2fe am: b51eb8ef23
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15520497

Change-Id: I9a14bb0b04fd7e347aae95d098cb5294b2ef26c2
2021-08-19 20:09:28 +00:00
Chris Fries
43348d59a2 Revert "device.mk: Freeze vendor security patch 2021-09-0x" am: 376fb1a2fe
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15520497

Change-Id: Iac2bb7179bb324642674651b27d3be3262d4533e
2021-08-19 19:56:15 +00:00
Chris Fries
ad0409f917 Revert "device.mk: Freeze vendor security patch 2021-09-0x"
Undo this temp hack before launch.

Bug: 187105270
Change-Id: Ieb210d1c713aa4434748af8d6848574f5da7f798
2021-08-19 11:15:06 -05:00
George Chang
957e03aca2 Remove NFC/SE settings from common gs101
Bug: 196825539
Test: build pass
Merged-In: I1833e3206403f1fce30377daaf942e617ed499b7
Change-Id: I1833e3206403f1fce30377daaf942e617ed499b7
2021-08-19 07:22:04 +00:00
Taehwan Kim
5047fbee2d firmware: mfc: update release MFC F/W(21/08/13) am: 632f404d83 am: 773ff8ebff
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15580548

Change-Id: Iae0e74be596ea86322487a10c98e3c393ef393c3
2021-08-18 22:01:09 +00:00