Skip to content

Commit

Permalink
Revert "sdm845-common: Retrofit dynamic partitions"
Browse files Browse the repository at this point in the history
This reverts commit fb2072c.
  • Loading branch information
RahulGorai0206 committed Feb 15, 2024
1 parent 80f2a88 commit fc29e6f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
24 changes: 5 additions & 19 deletions BoardConfigCommon.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2018-2023 The LineageOS Project
# Copyright (C) 2018-2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
Expand Down Expand Up @@ -70,35 +70,21 @@ TARGET_LMKD_STATS_LOG := true

# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 67092480
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
BOARD_USERDATAIMAGE_PARTITION_SIZE := 57453555712

BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEM_EXTIMAGE_PARTITION_SIZE := 872415232
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_PARTITION_SIZE := 1073741824
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4

BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)

BOARD_SUPER_PARTITION_BLOCK_DEVICES := system vendor cust
BOARD_SUPER_PARTITION_METADATA_DEVICE := system
BOARD_SUPER_PARTITION_SIZE := 5167382528
BOARD_SUPER_PARTITION_CUST_DEVICE_SIZE := 872415232
BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE := 3221225472
BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE := 1073741824

BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 5163188224 # (BOARD_SUPER_PARTITION_SIZE - 4194304) 4MiB overhead

TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false

TARGET_COPY_OUT_ODM := odm
TARGET_COPY_OUT_PRODUCT := product
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
TARGET_COPY_OUT_VENDOR := vendor

Expand Down
3 changes: 0 additions & 3 deletions sdm845.mk
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
[email protected]

# Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true

# Perfd (dummy)
PRODUCT_PACKAGES += \
libqti-perfd-client
Expand Down
2 changes: 0 additions & 2 deletions sepolicy/vendor/device.te
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
typeattribute system_block_device super_block_device_type;

type fingerprint_device, dev_type;

type gps_device, dev_type;
Expand Down
5 changes: 0 additions & 5 deletions sepolicy/vendor/file_contexts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Audio devices
/dev/elliptic(.*)? u:object_r:sound_device:s0

# Block devices
/dev/block/platform/soc/1d84000\.ufshc/by-name/cust u:object_r:system_block_device:s0
/dev/block/platform/soc/1d84000\.ufshc/by-name/system u:object_r:system_block_device:s0
/dev/block/platform/soc/1d84000\.ufshc/by-name/vendor u:object_r:system_block_device:s0

# Camera
/(vendor|system/vendor)/bin/remosaic_daemon u:object_r:remosaic_daemon_exec:s0

Expand Down

0 comments on commit fc29e6f

Please sign in to comment.