Commit graph

1003 commits

Author SHA1 Message Date
Santos Cordon
96e2b4eec4 Adjust Doze default value to accomodate HBM. am: bfb3168639 am: d7fcbd91db
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15897167

Change-Id: Icab22cead7dc07317a4a5dc0ffdecb18adf66e9e
2021-09-27 13:45:35 +00:00
Santos Cordon
60f0f582c5 Adjust Doze default value to accomodate HBM. am: bfb3168639
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15897167

Change-Id: Ie5a0ed3d863794a9eeb12c36131c090d105a54a9
2021-09-27 13:30:33 +00:00
Shinru Han
bd41d508db gps: Reduce gps log in bugreport
Since the lhd traffic log is disabled, currently the GPS log in
bugreport can record ~45 min ( (1.5 min per file) * 30 ) GPS track,
which is 15 min longer than expected.

To get smaller bugreport, we reduce the log count to 20.
(~= 30 min GPS track)

Bug: 200916523
Test: adb bugreport and check gps log count
Change-Id: Ic3969949968a30a77a4c6092eeea73d5053f906b
2021-09-27 07:22:28 +00:00
Jimmy Shiu
16610baab7 powerhint: fine tune non-ADPF boost am: 85ed2f1b95
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15841941

Change-Id: I7047280c472341fcf52a9d560b9fe5af56f07782
2021-09-25 01:16:09 +00:00
Jimmy Shiu
131cf4b76b powerhint: fine tune non-ADPF boost
For 120FPS, lower the uclmap.min from 185 to 157
For 90FPS, lower the uclmap.min from 123 to 107
For 60FPS, lower the uclmap.min from 62 to 42

Bug: 198723106
Test: Running PtsUiBench with disabling ADPF.
      http://sheets/1UbUVo0pxg1Bz0MKPIkv5d1XO1iVppU0P3YVQjivoP8Q#gid=1963167952
Change-Id: I311acbcf352ed0f5bb8fe2d176c48edd003eaf31
2021-09-25 01:01:36 +00:00
Jack Nudelman
2f52513a60 pregrant COARSE_LOCATION to cbrsnetworkmonitor
as per https://developer.android.com/about/versions/12/approximate-location If your app targets Android 12 and you request the ACCESS_FINE_LOCATION permission, you must also request the ACCESS_COARSE_LOCATION permission.

Pregrant also given in cl/396867561.

Bug: 189868097
Bug: 123422575

Test: b/199306063

Change-Id: I541ad113d43015101a41492409f62b88f6a993ba
2021-09-24 21:15:18 +00:00
Jack Nudelman
695ef0553f pregrant coarse and background location permission to scone
CBRS is ramping up so we need to make sure the necessary location permissions are granted before it launches

Bug: 188832088

Bug: 123422575

Test: b/199306063
Change-Id: I0fbb20b3e0ea7555300d84ed750ae465fe144da9
2021-09-24 21:13:18 +00:00
Rex Lin
b29cde0538 uwb: update country conf file
Bug: 196073172

Signed-off-by: Rex Lin <rexcylin@google.com>
Change-Id: I94b3e5af2f3a7faaf43061ba7a008c36cb64a575
2021-09-23 17:02:16 +00:00
Rex Lin
c459ef54d8 uwb: add uwb country conf script
This script is used to generate uwb conuntry configuration file,
and the PRODUCT_COPY_FILES list in uwb.mk based on uwb_country.conf.

Bug: 196073172

Signed-off-by: Rex Lin <rexcylin@google.com>
Change-Id: I98adc915956c95623e30370ce5c0ccb13f30ec32
2021-09-23 17:02:16 +00:00
Santos Cordon
18bb9722da Adjust Doze default value to accomodate HBM.
HBM changes moved the normal max, so we should adjust the doze
default value by same scale.

Bug: 194972547
Test: Manual, verify behavior is similar to Android R.
Change-Id: I953b8f68f3ad0d9369d6fb0466e178ce366fdbc4
2021-09-23 14:05:29 +00:00
Badhri Jagan Sridharan
eac22f2c6f dumpstate: Dump TCPC registers and attributes am: 7372d2275b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534

Change-Id: Ifc7f9c69859f7e8514e2e27ee0cb5f1a6233c699
2021-09-23 05:53:43 +00:00
Badhri Jagan Sridharan
aa0a8e1b7d dumpstate: Dump TCPC registers and attributes
debugfs not accessible in user builds. Hence dumping through
sysfs.

Bug: 200313640
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I5e42d1cd9b53c0989dbbb35bf580271d15cd8db3
2021-09-23 05:38:36 +00:00
Shinru Han
eeada35907 gps: Rename secondary config am: ddcd06372a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15880048

Change-Id: I49550a2965dd5a35369d3278e1f3097bb63c94fa
2021-09-23 02:29:59 +00:00
Shinru Han
8108f9d080 gps: Rename secondary config
Bug: 200255075
Test: on device
Change-Id: If151b8c215e775de24d3c74d3e46b10ab24f6f4e
2021-09-22 14:51:33 +08:00
Brad Ebinger
51b245f1d2 Adds an overlay for radio power off delay due to IMS deregistration
Adds a 3 second delay after radio power off is triggered for the
device to complete IMS deregistration before triggering power off
on the radio in response to events such as APM and power off.

Bug: 195304068
Test: manual; atest FrameworksTelephonyTests:ServiceStateTrackerTest
Change-Id: Ib1e28ee07459f1770d3c199d0d94ac147a667528
2021-09-17 23:01:24 +00:00
Edwin Tung
204e9c8f8d [automerger skipped] [DO NOT MERGE] gps: update gps driver 129.20.23.514871 am: 06041ffe05 am: 054b896a76 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib271b8b3452e04fcd30c91f16dfcce07fa17c0c7
2021-09-17 03:33:30 +00:00
Edwin Tung
207478ee2b [DO NOT MERGE] gps: update gps driver 129.20.23.514871 am: 06041ffe05
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15824553

Change-Id: I01e526453e584d992b9734a9f6c8da0486bdea52
2021-09-17 03:17:52 +00:00
Edwin Tung
fb0dd13ec3 [DO NOT MERGE] gps: update gps driver 129.20.23.514871
Restore carrier config after gps crashing
Fix incorrect altitude encoding of LPPe DBH

Bug: 198261454
Bug: 199677624

Sanity Test: 199977515
Test: build pass

Change-Id: I2b75b35a256cbbbd1c94ada0d46974d9c9838976
2021-09-16 09:34:38 +00:00
Edwin Tung
ec9cd4d883 gps: Enable power save mode am: 73fd0b54c2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15811307

Change-Id: I7a5fe4ca7502f7858b6c32262a2467de1a2b6969
2021-09-15 15:03:32 +00:00
Edwin Tung
96332941f9 gps: Enable power save mode
Bug: 192866284
Test: Enter power duty-cycle
Change-Id: I245e52023c5484e6d9fd4dcba75b5523600598b0
2021-09-15 14:51:02 +00:00
Shinru Han
b70aa1274d gps: Configuration split am: 358a032dcb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15786019

Change-Id: I526eda2c56aeb0b96b9fe5b9653eab54b865d881
2021-09-15 13:38:26 +00:00
Shinru Han
a575391d96 gps: Configuration split
Split configuration for different build variants.

  user:
  gps_user.xml*, lhd_user.conf, scd_user.conf

  userdebug & eng:
  gps.xml.*, lhd.conf, scd.conf

Bug: 197586294
Test: on devices
Change-Id: Icddd6be30dfe2c1eb2dca5f9a61c1b9f43867cc6
2021-09-15 13:20:14 +00:00
Ocean Chen
8d40d3cf8b Pixelstats: add more UFS error count paths am: 8d1e58c978
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15811325

Change-Id: Ie737983246c64668860ff049bc936c4f3396784f
2021-09-14 18:10:23 +00:00
Ocean Chen
dd652a2ccd 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
Test: run storage-qa pixel/022
Change-Id: I853bd5da410b78a0f9a76beee2e4745f68ddba59
Merged-In: I853bd5da410b78a0f9a76beee2e4745f68ddba59
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-09-14 17:46:22 +00:00
joeshih
c7c9de6a21 [DO NOT MERGE][FactoryOta Unbundling]Specify the path to FactoryOtaPrebuilt
Bug: 197603311
Test: E2E with Forrest build pass
Change-Id: I8172f4f74e85f013b898e37fb19276411ab34ac3
2021-09-14 07:33:34 +00:00
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