Commit graph

210 commits

Author SHA1 Message Date
Darren Hsu
88f8c4b2b4 powerstats: remove common data providers in specific directory
The common data providers will be moved to gs common directory. So
I removed them in this directory and used gs common library to get
the APIs.

Bug: 206576142
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I81e7a957490fb563fdf25a6434aaf5e886456c5d
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-01-04 06:14:51 +00:00
Terry Huang
af37ee214a [s5300][device] Change vendor telephony code path
Add extra folder for different platforms

Bug: 199954706
Test: Build pass
Change-Id: I4a88242ceb108e642c5f818cdc6aa24d8644fd0a
2022-01-04 01:36:35 +00:00
Sasha Smundak
9cbef8afd5 Use soong_config_ macros to set Soong config variables.
Bug: 198503843
Test: treehugger
Merged-In: Ifd1aed04267d952a13cfd9b93933e500ba07dbad
Change-Id: I4fa1d4f3e1c5a965696f78244bcf58360e0ce1c7
2021-12-29 18:31:41 +00:00
Siddharth Kapoor
f310a6d205 gs201: Enable AGI support
Add build target for libgpudataproducer for AGI support

Bug: 208165749
Test: libgpudataproducer can build for gs201 builds

Signed-off-by: Siddharth Kapoor <ksiddharth@google.com>
Change-Id: I4c16f28267e4a5733e84faf9ce3496dff244f25f
2021-12-28 18:01:21 +00:00
Albert Wang
16bdd47ccd device.mk: usb: remove redundant property
This property is found no used and causes a SELinux avc denial error,
so remove it accordingly.

auditd  : type=1107 audit(0.0:4): uid=0 auid=4294967295 ses=4294967295
subj=u:r:init:s0 msg='avc: denied { set } for
property=dev.usbsetting.embedded pid=1 uid=0 gid=0

Bug: 184103246
Test: forrest test build
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Ic077ae729cdf0a0f04aeec2e04aecdfe7011b52a
2021-12-23 07:23:25 +00:00
diverj
470a34f78c gs201: Enable gpu profiler support
Test: Boot to home, AGI validation
Bug: 199279836
Signed-off-by: diverj <diverj@google.com>
Change-Id: Ic7d30aebc6519cb0d88533af0f10908ee40ba8b4
2021-12-23 06:44:39 +00:00
Cyan_Hsieh
38d81bc2c7 Include gs common in makefile build flow
Bug: 211723080
Change-Id: I8e1cefa396d494e73634da8620153c7a9a5693ee
2021-12-22 11:30:36 +00:00
Rios Kao
ddd4fb00c6 soundtrigger: add support for SoundTriggerHal
Bug: 206523344
Test: Build Pass
Change-Id: I686064c8b898e002ded55d0e99d73942bb1a4844
2021-12-21 06:59:20 +00:00
Nicole Lee
53b694ec76 device.mk: enable modem always on logging by default
Bug: 205420203
Bug: 208845456
Test: Confirm PCIe can sleep with Lassen 1130 radio
      adb shell cat /sys/bus/platform/devices/cpif/s5100_wake_lock
Change-Id: I42f7efa3fff84cad849ce77bebce4dcf35b43d1f
2021-12-14 02:21:20 +00:00
Jaegeuk Kim
554e90c439 use erofs for RO partitions
Bug: 201348439
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I8607cff388ea13000b1002ef9cc52717a9a00469
2021-12-09 18:38:54 +00:00
Nicole Lee
35a79d9a44 Revert "device.mk: enable modem always on logging by default"
This reverts commit 11475b1588.

Reason for revert: b/208845456 disable modem logs until PCIe can sleep correctly

Change-Id: I86df81c96685c571a3deb478b3b24141f89e0e22
2021-12-06 04:24:44 +00:00
neoyu
f1a8827375 Remove CDMA feature because modem doesn't support it
Bug: 209031150
Test: inspect build artifacts - result is expected
Change-Id: I859fd4b2b6d08eba2cb39b51c163c61a0ce4a8ec
2021-12-06 02:30:10 +00:00
Robin Peng
c6332d87fc Move mfc_fw.bin into vendor/google_devices/<DEVICE>/prebuilts
firmware/mfc/mfc_fw.bin

Bug: 207727668
Change-Id: Ic7a078db0884ffce1c3c2f9b3e3da145da6bf02c
2021-12-03 17:15:42 +00:00
Carter Hsu
0405e0e58e Revert "audio: run audio hardware as 64bit"
This reverts commit 578aabc8cc.

Reason for revert: <Cirrus HAL module fails to start deep-buffer>

Change-Id: Iab95567ec1dcad66f82c144c992ff66f7e2e6f13
2021-12-03 05:53:19 +00:00
Carter Hsu
578aabc8cc audio: run audio hardware as 64bit
Bug: 205240941
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I1e5d6d8bf410e5cf8af51abc0d364c35aa82e8c7
2021-12-03 05:16:57 +00:00
Cyan_Hsieh
43584efad2 update device folder path
Bug: 198128551
Change-Id: I24358a4b1918ce87b0b1c892e2bf0e823fc0b683
2021-11-25 19:26:59 +08:00
Roger Wang
197e2a096b wifi: move configuration to project specific
In this commit, I remove project specific content.
For example, I remove p2p interface property,
supplicant service definition and board configurations.

Bug: 203635329
Test: check functionality and output as follows
$ adb shell ifconfig
Output: p2p-wlan0-0 Link encap:Ethernet

$ adb shell getprop wifi.direct.interface
p2p-dev-wlan0

Log output:
wl_cfgvendor_set_hal_started, HAL version: BCMDHD vendor HAL
wpa_supplicant: Configuration file '/data/vendor/wifi/wpa/wpa_supplicant.conf' -> '/data/vendor/wifi/wpa/wpa_supplicant.conf'
wpa_supplicant: Reading configuration file '/data/vendor/wifi/wpa/wpa_supplicant.conf'
wpa_supplicant: update_config=1
wpa_supplicant: eapol_version=1
wpa_supplicant: ap_scan=1
wpa_supplicant: fast_reauth=1
wpa_supplicant: pmf=1
wpa_supplicant: p2p_add_cli_chan=1
wpa_supplicant: oce=1
wpa_supplicant: sae_pwe=2
wpa_supplicant: Reading configuration file '/vendor/etc/wifi/wpa_supplicant_overlay.conf'
wpa_supplicant: sae_pwe=2
wpa_supplicant: driver_param='use_p2p_group_interface=1p2p_device=1'
wpa_supplicant: disable_scan_offload=1
wpa_supplicant: wowlan_triggers='any'

Change-Id: If18f13e7c4c8fc13fb68e50145cc407c91d3fa60
2021-11-15 09:20:32 +00:00
Long Ling
91d7dd17d2 upgrade to hwc3
Bug: 201321174
Change-Id: Ifa12a2174d82547b6708021a24a6e9cee6b66fd5
2021-11-12 04:39:24 +00:00
Alec Mouri
4ef29314fd Set renderengine backend to skiaglthreaded
gles isn't going to be the final device configuration anywhere

Bug: 206036423
Test: builds
Change-Id: Ie66e2db85e68ef267534fafa2b67a49d3231cf04
2021-11-12 00:19:10 +00:00
neoyu
34cd74d651 Enable RIL audio client implementation for P22
Enable RIL audio client implementation for P22

Bug: 202831948
Test: manual
Change-Id: Ie9ad605e2d6f80504d26211c3f77e479344ce44d
2021-11-11 06:12:34 +00:00
Konstantin Vyshetsky
067512ec32 Generate a separate fstab file for FIPS mode
Add a file "fstab.gs201-fips" alongside the existing "fstab.gs201" in
order to specify different encryption settings in FIPS mode.

"androidboot.fstab_suffix=gs201-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.

(cherry-pick from device/google/gs101)
Test: Boot to home screen with/without fips mode
Bug: 202417706
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Change-Id: I8fdc1c9a91399816fa2d4c53f282d63e988ce7d5
2021-11-11 05:04:50 +00:00
Nicole Lee
11475b1588 device.mk: enable modem always on logging by default
Bug: 205420203
Change-Id: I7a4af69d93f0c5b64dbf69ac93ca1a10b06c0c63
2021-11-11 03:39:51 +00:00
Roger Wang
95c9b5b2a6 gs201: remove WiFiOverlay
In this commit, I remove WiFiOverlay and will add it into project
folder.

Bug: 204946036
Test: overlay configuration works as expected.
Change-Id: Iac69ff8749de7c2f43117f8e136bbfd0bd9a719d
2021-11-05 20:20:31 +08:00
Krzysztof Kosiński
373e520a92 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: I441a158231fd1c8fb950e2c1c0d1539cea1af70c
2021-11-04 07:41:04 +00:00
Andrew Reardon
0cf06f4a7f [WAR] Fix Ravenclaw build by Defaulting gs201 to slider
- This fixes ravenclaw build by continuing to use slider as
target_device for camera tuning.
- Can be updated in the future by properly providing ravenclaw
target_device throughout 3A.

Bug: 204945921
Test: Compiles.

Change-Id: Icb010127eedde87e2c2e0f59d6061d52f53e3ec5
2021-11-03 19:38:17 +00:00
Krzysztof Kosiński
7b8cce3974 Rename Lyric configuration "device" to "soc".
The current name is confusing, as "device" normally refers to the
product name, not the SOC name.

Bug: 203283069
Test: build and flash affected devices
Change-Id: I51014a3316dec4509e0113280b723efb95d26fad
2021-11-02 19:50:06 -07:00
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
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
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
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
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
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
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
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
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
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
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
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
Adam Shih
ff12044f71 Merge "gs201: use sscoredump common device.mk" 2021-09-02 04:21:47 +00:00
Adam Shih
8ef36172cc gs201: use sscoredump common device.mk
Bug: 198365717
Test: boot with sscoredump started
Change-Id: If5c881a873971f4e238b7357e6e2802c55db6029
2021-09-02 01:24:23 +00:00
Robert Lee
b693d60c7f device.mk: enable cs35l41 related module for gs201
Bug: 198260805
Test: Builds pass
Change-Id: I56f2b7d1c786ac3c821194dced16e2f43a85f2b1
Signed-off-by: Robert Lee <lerobert@google.com>
2021-08-31 11:50:42 +00:00
Adam Shih
f67eea1947 make sepolicy available in aosp targets
Bug: 198214600
Test: build pass
Change-Id: I113d1855f8d71b3d837a3f02974079e12ed5ddec
2021-08-31 09:12:17 +08:00
Adam Shih
76f8e12e56 modularize scd
Bug: 197914244
Test: boot with scd started
Change-Id: I5cfede43239c5d49e271bdd981be2e781c5a05ba
2021-08-27 11:17:46 +08:00
Adam Shih
0f853db94c modularize aocd
Bug: 197585437
Test: boot with aoc started
Change-Id: I61560751a5d81816b7ecdc2e1be0eaae025a29e3
2021-08-24 11:48:00 +08:00
Adam Shih
d653791dd6 Merge "reuse gs101 confirmation UI" 2021-08-23 06:40:19 +00:00
Adam Shih
00a3bf0a8b Merge "reuse gs101 pktrouter" 2021-08-23 06:40:06 +00:00