• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

bluetooth/14-Jan-2024-234

dummy_arm/14-Jan-2024-246

dummy_arm64/14-Jan-2024-4215

dummy_x86/14-Jan-2024-224

dummy_x86_64/14-Jan-2024-267

mgsi/15-Dec-2024-615176

overlays/14-Jan-2024-10142

Android.bpD14-Jan-20241,018 3027

AndroidProducts.mkD15-Dec-20241 KiB3013

METADATAD14-Jan-202439 43

OWNERSD14-Jan-202439 32

README.mdD14-Jan-20241.9 KiB5438

gsi_arm.mkD14-Jan-20241.5 KiB5510

gsi_arm64.mkD14-Jan-20241.7 KiB5912

gsi_product.mkD14-Jan-20241.3 KiB3914

gsi_system_ext.mkD15-Dec-20241.6 KiB4515

gsi_x86.mkD14-Jan-20241.5 KiB5111

gsi_x86_64.mkD14-Jan-20241.7 KiB5513

README.md

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