Commit graph

455 commits

Author SHA1 Message Date
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
Shawn Willden
dc854af286 Revert "Enable deleteAllKeys from vold"
Revert "Detect factory reset and deleteAllKeys"

Revert "Add deleteAllKeys to IKeystoreMaintenance"

Revert "Enable deleteAllKeys from vold"

Revert "Allow vold to deleteAllKeys in Keystore"

Revert submission 15521094-vold-deleteAllKeys

Reason for revert: Causes infinite loop in Trusty KeyMint
Reverted Changes:
I9c5c54714:Detect factory reset and deleteAllKeys
I2fb0e94db:Allow vold to deleteAllKeys in Keystore
Id23f25c69:Add deleteAllKeys to IKeystoreMaintenance
Ife779307d:Enable deleteAllKeys from vold
I4312b9a11:Enable deleteAllKeys from vold

Bug: 187105270
Change-Id: I0a236e0308b9b8354e669b9261fc22a88a01f743
2021-08-12 01:17:10 +00:00
[6;7~
824d15d2cf Enable deleteAllKeys from vold am: 5c25ee1a12 am: c66ee2ce63 am: 5efd12681f am: 3dcc0b0e22
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15534113

Change-Id: Idf2dfc23f8681b64fa009afd88eac73faa97c082
2021-08-11 23:36:59 +00:00
[6;7~
6c444eebdf Enable deleteAllKeys from vold
If vold detects when setting up metadata encryption that there has been
a factory reset, call deleteAllKeys on Keystore to delete old user data.

Bug: 187105270
Test: booted Oriole twice
Change-Id: Ife779307db0fe161c8889f7aaab34e2899a6c9e6
2021-08-11 21:41:16 +00:00
Chris Fries
1327d710cc device.mk: Freeze vendor security patch 2021-09-05 am: 97a63828db am: 4888035eb4 am: 3118548a67 am: 3ef3d23073
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15520496

Change-Id: I2604de2b881a653b544aeb7048a2d162a7fa4365
2021-08-11 15:37:39 +00:00
Chris Fries
f89fbc87d7 device.mk: Freeze vendor security patch 2021-09-05
(stopship hack) Freeze the SPL so that we can test more
rollback cases in testing before launch.

Bug: 187105270
Change-Id: Icb475d6c3331d26a6b5314cbb0cdf2cbe1428a27
2021-08-11 14:37:57 +00:00
Jidong Sun
2e1da318f3 mfc_fw: Update to use unsigned FW binary am: e710ba9192 am: 760196efdf am: 336023fdd1 am: ddb6b4c862
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15486694

Change-Id: I3575cb89493198bafa76083fabe03b7083e5e011
2021-08-10 00:56:11 +00:00
Jidong Sun
777118c5fe mfc_fw: Update to use unsigned FW binary
Bug: 195214116
Signed-off-by: Jidong Sun <jidong@google.com>
Change-Id: Ic7b065dd65d813cac7792725b31bb7958d1fa76b
2021-08-09 23:50:27 +00:00
Ankit Goyal
b2c092a884 Include memtrack in product packages am: 77e2cdea93 am: 6490f5cb3e am: daa9628056
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15268977

Change-Id: I9ee57bf77d1b968cdb53720aa09f889d90f09bd7
2021-07-23 22:00:46 +00:00
Ankit Goyal
099ff5167b Include memtrack in product packages
Bug: 191966412
Test: adb shell dumpsys meminfo
Change-Id: Ie521d242274502d70d228faeab0727abee5284b4
2021-07-23 20:52:52 +00:00
Meng Wang
fbb1a572a1 Move CDMA feature XML inclusion to device specific mk files
So devices not supporting CDMA don't include the feature by mistake.

Bug: 194307361
Test: inspect build artifacts - telephony.cdma.xml is included
Change-Id: I0fe3a3624d2cda2b57347402d62e8a16513174e5
Merged-In: I0fe3a3624d2cda2b57347402d62e8a16513174e5
(cherry picked from commit d808d99ce089ca4c7ff4e2abe8ee76b4eeb38a64)
2021-07-23 17:50:41 +00:00
Devika Krishnadas
57b55e291a Update late duration am: 9eee175664 am: 3b3f8bb0dc am: 369a9a27d0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15337090

Change-Id: I727a5300248db2f2c1851f1ddb71c38c1ed59b6b
2021-07-23 14:17:25 +00:00