zuma: Disable Euicc when GMS and GSF are not installed

* This avoids EuiccGoogle / GoogleCarrierServices crashing, taking the
  whole telephony stack with them when no GMS or GSF is installed.
* Compared to change 274251, this approach is no-op when GAPPS add-on is
  flashed before the first boot, and thus should not cause issues with
  eSIM when GAPPS is flashed.
* With microG, this also works after installing the microG GMS & GSF
  packages and rebooting, although manual activation of the eSIM is
  needed via Settings - Network.
* The only downside is that users will still see one or two crashes
  during the first boot because our application only starts after the
  device is booted.

Change-Id: I4a11c93e855978abbf8d84fdbe4ffc8b2aedc27c
This commit is contained in:
Peter Cai 2020-12-25 19:00:13 +08:00 committed by Michael Bestas
parent fbc4a55c4e
commit ff57b774d2
No known key found for this signature in database
6 changed files with 181 additions and 0 deletions

View file

@ -22,5 +22,9 @@ include hardware/google/pixel/lineage_health/device.mk
PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS += \
device/google/zumapro/linker.config.json
# Parts
PRODUCT_PACKAGES += \
GoogleParts
# Touch
include hardware/google/pixel/touch/device.mk