• Home
Name
Date
Size
#Lines
LOC

..--

bluetooth/03-May-2024-234

dummy_arm/03-May-2024-246

dummy_arm64/03-May-2024-4215

dummy_x86/03-May-2024-224

dummy_x86_64/03-May-2024-267

gki419_arm64/03-May-2024-4521

gki_arm64/03-May-2024-5331

gki_x86_64/03-May-2024-4320

mgsi/03-May-2024-612174

overlays/03-May-2024-10142

Android.bpD03-May-20241,018 3027

AndroidProducts.mkD03-May-20241.1 KiB3316

BoardConfigGkiCommon.mkD03-May-20241.9 KiB5322

METADATAD03-May-202439 43

OWNERSD03-May-202439 32

README.mdD03-May-20241.9 KiB5438

gki419_arm64.mkD03-May-20241.7 KiB5019

gki_arm64.mkD03-May-20242.4 KiB5827

gki_common.mkD03-May-20241.4 KiB4321

gki_x86_64.mkD03-May-20241.8 KiB5119

gsi_arm.mkD03-May-20241.5 KiB5510

gsi_arm64.mkD03-May-20241.7 KiB5912

gsi_product.mkD03-May-20241.3 KiB3914

gsi_system_ext.mkD03-May-20241.3 KiB3811

gsi_x86.mkD03-May-20241.5 KiB5111

gsi_x86_64.mkD03-May-20241.7 KiB5513

README.md

1 # GSI
2 
3 This document introduces special GSI settings for facilitating xTS-on-GSI with
4 a single image.
5 
6 ### Support system_dlkm partition
7 
8 ```
9 [BoardConfigGsiCommon.mk]
10 
11 BOARD_USES_SYSTEM_DLKMIMAGE := true
12 BOARD_SYSTEM_DLKMIMAGE_FILE_SYSTEM_TYPE := ext4
13 TARGET_COPY_OUT_SYSTEM_DLKM := system_dlkm
14 
15 [gsi_release.mk]
16 
17 PRODUCT_BUILD_SYSTEM_DLKM_IMAGE := false
18 ```
19 
20 Starting from Android 13, all devices must include a [system_dlkm partition].
21 GSI enables system_dlkm to support the devices with system_dlkm partition,
22 and be compatible with old devices without a system_dlkm partition.
23 
24 With these configurations, `/system/system_dlkm` would not be created.
25 Instead, a `/system/lib/modules` -> `/system_dlkm/lib/modules` symlink is
26 created.
27 
28 For device without system_dlkm partition, the symlink would be dangling.
29 The dangling symlink shouldn't be followed anyway because the device doesn't
30 use system_dlkm.
31 
32 For device with system_dlkm, they can load modules via that path normally like
33 when they are using their original system image.
34 
35 [system_dlkm partition]: https://source.android.com/docs/core/architecture/bootloader/partitions/gki-partitions
36 
37 ### SystemUI overlays
38 
39 Some devices access the private android framework resource by `@*android:`
40 while overlaying their SystemUI setting `status_bar_header_height_keyguard`.
41 However, referencing private framework resource IDs from RRO packages in the
42 vendor partition crashes on these devices when GSI is used. This is because
43 private framework resource don't have a stable ID, and these vendor RRO
44 packages would be referencing to dangling resource references after GSI is
45 used (b/245806899).
46 
47 In order to prevent SystemUI crash, GSI adds a runtime resource overlay in
48 the system_ext partition, which have higher overlay precedence than RROs on
49 vendor partition, so the problematic vendor RROs would be overridden.
50 
51 Lifetime of this package:
52 * Starts at: Android 14.
53 * Deprecation plan: TBD, depends on b/254581880.
54