Commit graph

4194 commits

Author SHA1 Message Date
Andrew Reardon
43b8bedd21 [Camera 3A Tuning] Update LOCAL_TARGET_PRODUCT for gs201 to pancheetah device names
Bug: 200878689
Test: Compilation.

Change-Id: Iab2b213a0b37520f0d44dc4822fc26577efca9b6
2021-11-02 20:22:51 +00:00
Thierry Strudel
29aa1e225f vendor_dlkm.blocklist: add gxp driver preventing device suspend
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: Iee61dc96514f23d4b718a46926447779ee327743
2021-11-02 12:09:58 -07:00
Michael Eastwood
54862e27b5 Save .cpa files generated when camera HAL is killed by the watchdog thread.
Bug: 197979923
Test: m -j
Change-Id: Ifbf22dbd9f5fe58d69e27ec157c10fafde4b18e3
2021-11-01 22:58:37 +00:00
millerliang
47153227a4 gs201: Enable AAudio support
Enable the realted property and the needed files
for MMAP use cases.

Bug: 202810406
Test: Oboetester
Change-Id: Ie851dc0152589f405558c744b0101115d9f1d9b0
2021-11-01 08:24:12 +00:00
Tommy Chiu
3a041b7055 Set boot security patch level for gs201
Bug: 201946955
Test: Build and see if the AVB property has the field
Change-Id: If2aa32ed689271dd553bcc18cb0ec309a2051ae0
2021-11-01 02:35:51 +00:00
Rex Lin
3d43409602 uwb: add uwb configuration file
- use P7 config file as first draft
- add uwb country conf script
- add country config file (b/196073172)

Signed-off-by: Rex Lin <rexcylin@google.com>

Bug: 201232020

Test: ranging works with local build
Change-Id: I8c912becaa5b04f5656ff5b182028c02cc07fe06
2021-10-29 06:25:17 +00:00
joeshih
96f0d28a31 [P22]Phase in FactoryOtaPrebuilt
- Phase in FactoryOtaPrebuilt to P22

Bug: 204401723
Test: Forrest build
Change-Id: Id139e9b8159583bd5917676a0c256f8e33092657
2021-10-29 02:39:13 +00:00
Donghui Han
4f0140b954 Lyric: Set conditional variable device for Lyric
Bug: 203651233
Test: P21/P22 build
Change-Id: Ifc1d4970f8e81c2254e77792cf57a2c2bbaf4ef1
2021-10-28 23:57:02 +00:00
Peter Csaszar
71a2c8287a init.debug.rc: Change owner/group of SJTAG files
On userdebug & eng builds, change the owner/group of SJTAG sysfs files
that need to be written to 'system', so that BetterBug is able to write
these files.

Bug: 204381544

Test: Ensure that the writable files in the following directories have
'system' as their owner & group:

  /sys/devices/platform/sjtag_ap/interface/
  /sys/devices/platform/sjtag_gsa/interface/

Signed-off-by: Peter Csaszar <pcsaszar@google.com>
Change-Id: I1fd61f702960a266bc8a2f84d1a1358ccefe3c9c
2021-10-28 16:02:13 +00:00
Kris Chen
e6d10041e9 gs201: set permission for UDFPS factory apk to control HBM
Bug: 204142361
Test: Perform UDFPS calibration.
Change-Id: Ie60ddbea72ebe6c3c3998e7cdb8a5809ec47ffd2
2021-10-28 08:43:12 +00:00
Max Kogan
56ea9bfc5b dumpstate: merge AoC gs101 dumpstate
Bug: 203827311
Change-Id: Icb7a925445992d534cae86625b249b46952d9d53
2021-10-28 05:14:06 +00:00
Jing Wang
e4d7cfdbf0 Revert "gps: update gps driver 129.20.23.518727"
This reverts commit 1c28b9b29f.

Bug: 204332282

Test: presubmit P27107402 boots fine on my device.

Signed-off-by: Jing Wang <jwangh@google.com>
Change-Id: Iea0e1a5eeff048659721981de0e81045a8dfa5f2
2021-10-28 04:37:45 +00:00
Wayne Lin
1c28b9b29f gps: update gps driver 129.20.23.518727
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
[GNSS] Enable CHPP for P22
Reporting PLMN (MCC+MNC) of SIM and Network
[O6] 5s GPS outage when OnChip/Host switching
5G E911 AGPS implementation
Please clarify gnss error message
[SQ1A] [O6] Native crash - AID_GPS - signal 6 (SIGABRT)../gpsd (BrcmGpsHalLogJava::Log)

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

Verify Test: 203751055
Test: build pass and GNSS verify test pass

Change-Id: I09c78b6a452f611a7d738d17e8e0d474fadb31a4
2021-10-27 03:20:09 +00:00
Dai Li
183de2a96e Remove mfc_fw.bin in original path for gs201
Modify device.mk mfc_fw.bin path according to new release in prebuilts

Bug: 197018291
Test: N/A
Change-Id: I0e34b266536238d214d9722d22432fbdc0e6c51a
2021-10-26 16:34:00 +00:00
Dai Li
74579f987a Change mfc_fw.bin path to bootloader prebuilt bins
Work together with change in bootloader build.sh
go/ppar/41146

Bug: 197018291
Test: N/A
Change-Id: I862aba3c5c251953928a3d3a67c5b9059d699af3
2021-10-26 16:34:00 +00:00
Jiyong Park
4f427b5c2b 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: Ib682bad5acefeb2e3ed27cd372a359c92ef5165a
2021-10-20 01:05:45 +00:00
Joseph Jang
24b6c9320a 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: I48feabac2bf2b42f8f0b10a396ea066ace67b694
2021-10-18 14:49:38 +00:00
Jiyong Park
46dae6074b 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
Change-Id: Id17572137091b295457dc98fdd1742da0983e738
2021-10-15 18:41:12 +09:00
Jaegeuk Kim
d1a44fd9c4 gs201: convert /modem_userdata to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ib2ce2692e321fdb4d594336feb6f582b1fcbffc9
2021-10-14 21:15:21 +00:00
Jaegeuk Kim
aef1f11fa6 gs201: switch /modem_userdata to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ic0add0848e062774030ecf0dd23140cfaf6ab35c
2021-10-14 21:15:21 +00:00
Jaegeuk Kim
5720048e25 gs201: convert /efs_backup to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ied79a3b2c96f1123996e3e98e9d7ba77d901e74c
2021-10-14 21:15:21 +00:00
Jaegeuk Kim
c688b6214a gs201: switch /efs_backup to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I1d0c66d97eef384cd2d85c912bce4a939245b5e6
2021-10-14 21:15:21 +00:00
Ocean Chen
2095b04e76 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: 201503046
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Ocean Chen <oceanchen@google.com>
Change-Id: I827538be0801cd8abc26b095df56849fd2ff141a
2021-10-14 16:51:44 +00:00
Wayne Lin
b8633e8cdd gps: refine gps module in gs201
- Update gps driver to 129.20.23.516938
 - Build gps module separably

Bug: 202919589
Test: build pass and standalone GPS pass
Change-Id: I451837f2e783ab2e8890e212eb7d3897c9854ca5
2021-10-14 04:07:11 +00:00
Jaegeuk Kim
e9a8cfaf7c gs201: switch /efs to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I308b4a8d806c968b5b03b6d41285113f3086502c
2021-10-13 15:03:26 -07:00
Jaegeuk Kim
7ba733f58b gs201: convert /efs to f2fs
Bug: 201348703
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Ibe766941e09205b7431f2149856f8f0998743af6
2021-10-13 15:03:25 -07:00
Konstantin Vyshetsky
7b4f21e81d gs201: add script to convert persist to f2fs
Currently the persist partition is formatted as ext4. In order to
convert the partition to f2fs without losing data, add a script which
will copy the partition contents out, format the partition as f2fs and
then copy the contents back.

Bug: 202511062
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I89502694d1e02261902525c11ac875dd7756721b
2021-10-13 14:05:17 -07:00
Jaegeuk Kim
e8d42059e6 Deprecated ext4 for RW partitions: /persist
Bug: 200853457
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I64bfce98dfa4565dff9a6fbfd6e2d843583e5e66
2021-10-07 18:50:12 -07:00
Jaegeuk Kim
d28744874b Deprecate ext4 for RW partitions: /metadata
Bug: 200853457
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Icd85b8f12cadd756fac4aded0db3b08021d644c3
2021-10-07 18:50:12 -07:00
Pierre-Clément Tosi
4dae22c494 gs201: Build pvmfw.img through the Android framework
Enable building pvmfw.img through PRODUCT_BUILD_PVMFW_IMAGE for products
that currently enable pKVM. Note that the board-provided
BOARD_PREBUILT_PVMFWIMAGE may still overshadow that flag.

Bug: 199831815
Test: m ${ANDROID_PRODUCT_OUT}/pvmfw.img
Change-Id: Iefd5fcf1ce04b14b37ff9555db9acabffb010cff
2021-10-07 08:40:15 +00:00
Grace Chen
5a75515a09 Config overlay to set slot 0 as non-removable eUICC.
Bug: 197252913
Test: Confirm non-removable eUICC config.
Change-Id: I01a75250943578ee7c9fd667d5ab9a659964fa40
2021-10-06 07:54:32 -07:00
Adam Shih
ad214bed2a centralize wifi_ext config
Bug: 201599426
Test: boot with wifi_ext started
Change-Id: I9a266fbb0e50326b882dc1acdbec0b8c20fe0194
2021-09-30 14:17:27 +08:00
Adam Shih
f9427b2355 use gs101 neuralnetwork armnn
Bug: 196916111
Test: boot with armnn started
Change-Id: I1c8c113621314525c46bf6572b4c5b6a613dbfef
2021-09-27 23:54:37 +00:00
Roger Fang
0d2cf52ae0 device: gs201: add speaker health stats
Add the sysfs that required by the new ATOM of VendorSpeakerStatsReported.
Copy the file sysfs from ag/15659556

Bug: 201250553
Test: Manually test with ATOM

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: Ic98d26ebb384e567f7016868777f951f00a0b27d
2021-09-27 15:21:37 +08:00
Roger Fang
328c3f7c98 device: google: gs201: IAudioMetricExt hidl manifest settings
Porting IAudioMetricExt manifests from ag/14281931

Bug: 201099654
Test: N/A

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I1977b88230244a1c59d333dbd076e69231130507
2021-09-27 15:11:53 +08:00
Albert Wang
3773ce8687 usb: support both rndis and ncm, but not rndis + ncm
A cherry pick from 49a13bf for gs101

Bug: 199252036
Test: Boot to home and usb hal bring up normally
Change-Id: Ia4e344aa9cf7762b71cbfe35ff9cbcccb4474b11
2021-09-24 03:44:56 +00:00
Arthur Ishiguro
210475ce59 Use Context Hub AIDL for gs201
Bug: 194285834
Test: Load on device
Change-Id: If81c1eda860b931533afaf0447ae2e7fc99532d5
2021-09-23 10:21:40 -07:00
Kevin DuBois
5875d29f23 powerhint.json: update GPU node.
GPU node was not using the correct level-lock (should be using the hint one).
a0 and a1 jsons did not have correct frequencies, correct this.

Test: check camera hints work.
Change-Id: I79263bcb0fe3f264c021e2838aac3839081b7de7
2021-09-17 21:53:28 +00:00
Ocean Chen
954b427911 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: I7eabf238bb0963af9430b47c9ffa92bb3ad3b6fc
2021-09-14 09:13:16 +00:00
Kris Chen
a90972ed73 gs201: remove the redundant config_biometric_sensors
Bug: 199760755
Test: boot on ravenclaw-userdebug
Change-Id: Ifa08e35bcb6f15d14e42d6b6f3d9e42fcaa67a73
2021-09-14 07:19:18 +00:00
chloedai
2b5427334a Remove NFC/SE settings from common gs201
Bug: 199236672
Test: Build pass
Change-Id: Ie6a6c90946bb51b2c0e8d644c2c9372b4fc9c357
2021-09-13 10:49:47 +00:00
Rex Lin
6306cd9715 uwb: add uwb diag modules into the dlkm blocklist
Bug: 199529362

Test: verified pass with local build

Signed-off-by: Rex Lin <rexcylin@google.com>
Change-Id: I580a666236163e3888eeed1f7d4bbb82a9000139
2021-09-11 06:51:57 +00:00
Krzysztof Kosiński
6b82c37c4c Use the correct GPU device path for gs201.
gs201 uses 28000000.mali instead of 1c500000.mali.

Bug: 196866904
Test: verified that libperfmgr logspam is gone on dev board.
Change-Id: I7e00bb67f06960bcedc29d4e98422676a651bd05
2021-09-10 21:56:31 +00:00
Adam Shih
c7d07e27e0 modularize drm
Bug: 199232842
Test: boot with drm modules started
Change-Id: I6d91d411cf2b9354d4d1cefc3184e8fefa8a9ea7
2021-09-10 01:16:19 +00:00
weichinweng
1c94ce30ef gs201: migrate Bluetooth HAL service setting to project dependent make files
Bug: 189727579
Test: Manually
Change-Id: I97e9e4b764ccf3b7896904590d00633ae206b729
2021-09-10 00:47:03 +00:00
Grace Chen
a8ddf739a5 Merge "Config overlay to support 2 physical slots" 2021-09-08 19:07:52 +00:00
Sasha Smundak
af1d890dd7 Simplify the check.
Fixes: 198503238
Test: treehugger
Change-Id: Ibebbd199391aa4c207a3cd622791008aa412828c
2021-09-03 17:55:36 -07:00
Grace Chen
eec347d23f Config overlay to support 2 physical slots
Bug: 197989438
Test: Confirm sim configuration.
Change-Id: I3972e0456d8034517cc4224ef786a9292439a8b9
2021-09-03 00:59:11 -07:00
TreeHugger Robot
22067f611c Merge "dumpstate: dump logbuffer tcpm logs in bugreport" 2021-09-03 05:58:53 +00:00
Petri Gynther
e3c25c230c gs201: clean up kernel variables
1) remove TARGET_BOARD_KERNEL_HEADERS
2) remove TARGET_PREBUILT_KERNEL

Bug: 198654765
Change-Id: I3efff472e46be435fc0b845bf9b09b7d7a6311f1
2021-09-02 12:08:57 -07:00