Commit graph

316 commits

Author SHA1 Message Date
Adlai Holler
35230cc1af Remove redundant build property for reduceOpsTaskSplitting
This flag is true for everyone now. No need for it here. Change has no effect.

Bug: 183612348
Bug: 185920634
Change-Id: Ia264cfceb5cea4230a1c459fbd3c3f8c99a35bdf
(cherry picked from commit 8661e6ae13af04eb4aa299327134d7185b563e24)
2021-12-15 08:16:49 +00:00
matthuang
db2723b1b5 Don't copy unsupported sensor xml.
Use findstring to filter the factory target.

Bug: 209918222
Test: Verify the unsupported  xml files are not in the device.
Change-Id: I1383b18825ad06e88dedc9b4950bc5e5f676ecb8
2021-12-14 17:20:08 +00:00
Ocean Chen
c9cde396de gs101: create fstab.modem for project with modem
Non-modem project does't inlucde the fstab.modem
It can avoid long boot time from fs_mgr mount fail

Bug: 209694809
Test: reboot test

Change-Id: I3f1499f0c3767ba61895699e618856e41844b4bf
Signed-off-by: Ocean Chen <oceanchen@google.com>
2021-12-13 22:24:16 +00:00
Alex Hong
c2c3cc6240 Update PRODUCT_SHIPPING_API_LEVEL for gs101 devices
ueventd.rc now can only placed to /vendor/etc when
PRODUCT_SHIPPING_API_LEVEL equals to 32.
Now correct the destination path of ueventd.rc.

Test: adb shell getprop ro.product.first_api_level
Bug: 202921268
Change-Id: I1dcda5472278c03c546f3cf1eec26c92d138f2bb
Signed-off-by: Alex Hong <rurumihong@google.com>
2021-12-10 11:28:55 +08:00
Alex Hong
70ee94b740 [DO NOT MERGE] Update PRODUCT_SHIPPING_API_LEVEL for gs101 devices
ueventd.rc now can only placed to /vendor/etc when
PRODUCT_SHIPPING_API_LEVEL equals to 32.
Now correct the destination path of ueventd.rc.

Test: adb shell getprop ro.product.first_api_level
Bug: 202921268
Change-Id: I1dcda5472278c03c546f3cf1eec26c92d138f2bb
Signed-off-by: Alex Hong <rurumihong@google.com>
2021-12-09 17:33:12 +00:00
neoyu
8b443b6912 Remove cdma feature because not all gs101 based devices support it am: e6bb2caf47 am: 001cf7c36e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16373218

Change-Id: I2c27550a1528767da8f4af4bd145a3f2312f97c4
2021-12-02 05:42:10 +00:00
neoyu
e6bb2caf47 Remove cdma feature because not all gs101 based devices support it
Bug: 207398695
Test: inspect build artifacts - result is expected
Change-Id: Ic8098e036d5e58ec1b1cd0fcd13ef64a4d12b668
2021-12-02 05:06:33 +00:00
Carter Hsu
5cc978ea98 audio: run audio hardware as 64bit
Bug: 205240941
Test: regression test is passed. (b/207432169)
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ieb6ff80aa61108e18fed65ad02f9754f59a2812c
2021-12-01 08:19:52 +00:00
Alice Kuo
29c5d3a71a Default disable LE audio policy in gs101
Bug: 205514628
Test: connect with the LE audio headset, play music
Change-Id: I711898a6b3443a29d354edd1b0424b9864dc4dd8
2021-11-29 00:21:06 +00:00
Jakub Pawlowski
cfda47b843 Use bluetooth audio policy with LE Audio on gs101
Bug: 205103681
Test: play music using LE Audio device
Change-Id: I3e2787251c6aa3d59a18e945fbb6b82b79485d81
2021-11-05 00:39:32 +00:00
Krzysztof Kosiński
1be9cf8a51 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
Merged-In: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
2021-11-04 21:58:06 +00:00
Krzysztof Kosiński
c846e4cc66 Add Lyric camera IQ tuning configuration.
Bug: 200221875
Test: build and check camera HAL APEX content for affected devices
Change-Id: Ic3b9c50fa63b656f7e5a42d2687f4e6775720e55
2021-11-04 07:41:04 +00:00
Andrew Scull
4e18aa73ea Start the pKVM experiment
Reflect the pKVM experiment status from the property into the misc
partition so the bootloader can apply it next boot. This is only done on
builds that don't have pKVM enabled by default by pkvm_enabler.

Bug: 192819132
Test: set property and observe change in pKVM state at reboot
Change-Id: Ief85fa196f630867d0a0ced7fa4744f0241d41ea
2021-11-02 11:37:17 +00:00
David Brazdil
ae3c59fc0b Revert^2: pKVM: Include pvmfw and virt APEX in gs101 builds
Support for pKVM is being added to all gs101 builds starting with T,
disabled by default. So far, the userspace components have been included
only in special _pkvm builds. Include them unconditionally.

Also move BOARD_* variables specifying location and partition size of
pvmfw from vendor board config file here.

This adds 89MB to the size of the system image.

Bug: 192819132
Test: build a gs101 target, check /apex/com.android.virt exists
Change-Id: Ie46b0ad5f45bd4757570b72cb275d002df7b4616
2021-10-12 16:12:39 +00:00
David Brazdil
efcaa740ad Revert "pKVM: Include pvmfw and virt APEX in gs101 builds"
Revert "Include pvmfw variables in all gs101 builds"

Revert submission 16007088-pkvm-apex-gs101

Reason for revert: Fails on checkouts without vendor
Reverted Changes:
I238181780:Include pvmfw variables in all gs101 builds
Iefd7e1dc5:pKVM: Include pvmfw and virt APEX in gs101 builds

Bug: 202827425
Bug: 192819132
Change-Id: I08b0b2ac09f68847ad9bfabc39423de408fa6632
2021-10-12 13:21:18 +00:00
David Brazdil
625b010c8a pKVM: Include pvmfw and virt APEX in gs101 builds
Support for pKVM is being added to all gs101 builds starting with T,
disabled by default. So far, the userspace components have been included
only in special _pkvm builds. Include them unconditionally.

This adds 89MB to the size of the system image.

Bug: 192819132
Test: flash, check /apex/com.android.virt exists
Change-Id: Iefd7e1dc5e0c1f23ff66e8b282c94a3b85f7cc3e
2021-10-12 09:31:30 +00:00
David Brazdil
c439f780ee Enable hypervisor on pKVM builds
gs101 builds are getting experimental support for pKVM which can be
enabled either using fastboot or with misc_writer. For _pkvm builds we
want the device to automatically enable pKVM for testing. This patch
adds a new early-init service which checks for the presence of /dev/kvm
and if not found, writes to /misc and forces a reboot.

Bug: 192819132
Bug: 202484976
Test: flash a _pkvm build, observe double-reboot, check /dev/kvm exists
Change-Id: I3834b3e4c6118b3f6e4093ce52d5b94117eca29c
2021-10-08 11:20:14 +00:00
Pierre-Clément Tosi
b7662784fc gs101: 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: I47713648b795fd7e0f4c0d5a868a1abafea47588
2021-10-07 08:40:15 +00:00
Bill Lin
97f9208e1b Revert "Add support One-handed mode in B3" am: 61d08f043f am: 98a2ef085f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15987855

Change-Id: I753eeea4487a647f0aa15154f5ee74b01beecf7d
2021-10-06 06:49:00 +00:00
Bill Lin
b5f66163aa Revert "Add support One-handed mode in B3"
Note : We should customize in specific device for B3, instead of
override gs101

This reverts commit d326059d567690c4b2ffbaaf3e5c3fd51e5a69aa.

Reason for revert: 201962520

Change-Id: I2be3f5bebf52ee4be4b7bf8c0ce50bb83380f8ee
2021-10-06 06:08:44 +00:00
Adam Shih
a588f06652 centralize wifi_ext config
Bug: 201599426
Test: boot with wifi_ext started
Change-Id: I5da62a4972dcabd66336ff3a6ca05c28c90ae8a0
2021-10-05 01:38:45 +00:00
Jason Chang
95b1d93b75 Add support One-handed mode in B3 am: d326059d56 am: 9af9305080
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15919524

Change-Id: I2b5eb2a12d23b97b374b84387aaaf914a9ead446
2021-09-29 07:29:47 +00:00
Jason Chang
6a1ecb3ed2 Add support One-handed mode in B3
Add support One-handed mode system properties flag to enable B3
project.

Bug: 200899897

Test: Build a new ROM build to manually test
Change-Id: Ia511f9a298f76589780f258daf657d36c666e206
2021-09-29 06:59:55 +00:00
Arthur Ishiguro
74a3de7bcc Use Context Hub AIDL for gs101
Bug: 194285834
Test: Load on device + verify PTS/CHQTS pass
Change-Id: Ia3cc38c40c890361899a354b4c180675c1552c7d
2021-09-23 17:14:53 +00:00
yawensu
5cdf77b850 gs101: Remove pktrouter from shared makefile.
Bug: 197503236
Test: Build.
Change-Id: I5af23f03a00384bb19393f50cc339b79ba8f5e98
2021-09-14 07:01:07 +00:00
matthuang
74cf6c19ce Tangotron: Don't copy baro, prox and hifi sensor xml files.
Bug: 192802921
Test: Verify these 3 xml files are not in the device.
Change-Id: I7f773eae4cdaaf66d76624ba2281ccc9d6173877
2021-09-13 16:26:36 +00:00
Petri Gynther
5460a9cd2a gs101: clean up kernel variables am: 17f6b03738 am: f276caad32 am: 9ad38e7941
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15746361

Change-Id: I4578b811d14a6c984a5591089ea2e29cc3f09dc1
2021-09-03 13:34:14 +00:00
Petri Gynther
24d9c3647b gs101: clean up kernel variables am: 17f6b03738 am: f276caad32
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15746361

Change-Id: I6f866d6a6cd5cf4b11a551a49fae601298ac5999
2021-09-03 13:13:54 +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
Eric Biggers
de02adef74 Generate a separate fstab file for FIPS mode am: 08c8bc2e40 am: 0f66842f06 am: 2d9800dfe4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: Ic5e11c21dd6f2ef3eb506da6514f61029bf99533
2021-08-30 23:39:28 +00:00
Eric Biggers
9b9ac62ffe Generate a separate fstab file for FIPS mode am: 08c8bc2e40 am: 0f66842f06
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15522272

Change-Id: Ic20ecc63d7254ec7cdbddacb489ac42e993f2156
2021-08-30 23:26:24 +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
Wayne Lin
3aef4a21aa Disable gps module
Bug: 195719618
Test: Build test, also lunch different platform to check mkfile
Change-Id: I90b43645d0a7d54281e2ed483a5c980b08638c78
2021-08-20 04:28:41 +00:00
Chris Fries
ff5264be98 Revert "device.mk: Freeze vendor security patch 2021-09-0x" am: 376fb1a2fe am: b51eb8ef23 am: dce184bf8e am: a540acabe2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15520497

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

Change-Id: I15a32f2a3487fea12762cd64423f4815e4979efd
2021-08-19 20:23:29 +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
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
Chris Fries
a430c2f093 device.mk: Freeze vendor security patch 2021-09-07 am: c2c594926f am: 18e85dbcb0 am: 97c3544804 am: abdf8bcf43
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15613533

Change-Id: Icd4ec0176cd5b81b6fd0d29c9d1ec70d45a50107
2021-08-18 20:56:23 +00:00
Chris Fries
6d42117462 device.mk: Freeze vendor security patch 2021-09-07
(stopship hack) Roll forward the SPL so that we can test
rollback cases in testing before launch.

Bug: 187105270
Change-Id: Ic0bdb7e3ece264aa42af1965421a485a8f16980b
2021-08-18 12:51:30 -05:00
George Chang
00338d64ed Remove NFC/SE settings from common gs101
Bug: 196825539
Test: build pass
Change-Id: I1833e3206403f1fce30377daaf942e617ed499b7
2021-08-18 11:47:31 +00:00
Chris Fries
22f8c52158 device.mk: Freeze vendor security patch 2021-09-06 am: ead2bd66e1 am: ab0b191a30 am: bece1b1c01 am: 25fb9f95eb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15580480

Change-Id: I7aea9dbd46d4a4d5bdb9cb94b0be10a5046575fe
2021-08-17 00:51:15 +00:00
Chris Fries
44b49fdcab device.mk: Freeze vendor security patch 2021-09-06
(stopship hack) Roll forward the SPL so that we can test
rollback cases in testing before launch.

    Bug: 187105270

Change-Id: Ia6e75f0b6699f7967d4b92ef973f5ca6af1b5e6a
2021-08-16 15:29:32 -05:00
Paul Crowley
5fde4a0628 Revert^2 "Enable deleteAllKeys from vold" am: a380060b2e am: 51207a8dd7 am: bf12eb7421 am: 486d28b331
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15547745

Change-Id: I4524f5cb5f5204a6a2b73feca0f03a4ab28c4321
2021-08-13 23:36:12 +00:00
Paul Crowley
80db0638d7 Revert^2 "Enable deleteAllKeys from vold"
Revert of cac9588d7ee8d3e5bfa684cd0bb92db80ac3bac4
aka I0a236e0308b9b8354e669b9261fc22a88a01f743
re-landing change Ife779307db0fe161c8889f7aaab34e2899a6c9e6

Bug: 187105270
Change-Id: I2981420841f2ecdc67a36f9a8c7b81bad00bfe96
2021-08-13 22:23:33 +00:00
Daniel Solomon
831b89d075 display: make set_idle_timer_ms optional am: 6f1cd42f6a am: 9ee9b341ab am: 574af7d902 am: 01dd4129b8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15483380

Change-Id: Ie0dd828636af9ba1a5ae24ad24146523c86d57e7
2021-08-13 22:05:03 +00:00
Shawn Willden
c9b21cde68 Revert "Enable deleteAllKeys from vold" am: cac9588d7e am: 3363ea0d66 am: 34ad4cdc0a am: 2fb8db984c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15536479

Change-Id: I1b328b15225366e9974314dbb2bd79d6a02a2d72
2021-08-13 22:01:48 +00:00
Daniel Solomon
454748016f display: make set_idle_timer_ms optional
Allow ro.surface_flinger.set_idle_timer_ms to be overridden by device
makefiles.

Bug: 195699802
Change-Id: Ic4d036a85b4e5705c9c549af9e5a0c17c82f4077
2021-08-13 05:26:26 +00:00