diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-09 17:15:12 +0200 |
---|---|---|
committer | Joonas Kylmälä <joonas.kylmala@iki.fi> | 2019-06-12 16:49:32 -0400 |
commit | c8d7ac5a4ecf62b7000a1f324372e18d363e32d0 (patch) | |
tree | c6709dee33dd3a04bf285222e6f97528542fa983 | |
parent | a184e9093d0c169ab313b8551fc243c8da4d6136 (diff) | |
download | device_samsung_i9305-c8d7ac5a4ecf62b7000a1f324372e18d363e32d0.tar.gz device_samsung_i9305-c8d7ac5a4ecf62b7000a1f324372e18d363e32d0.tar.bz2 device_samsung_i9305-c8d7ac5a4ecf62b7000a1f324372e18d363e32d0.zip |
Move to System-as-root
This is required as part of the project Trebble and it also has
several technical advantages over the older solutions like the
ability to use bigger kernel images.
See the following documentation for more details on system as root:
https://source.android.com/devices/bootloader/system-as-root
The cache partition is also not used anymore:
# ls -ld /cache
lrw-r--r-- 1 root root 11 2008-12-31 23:00 /cache -> /data/cache
There is more information on that here:
https://source.android.com/devices/tech/ota/ab/ab_faqs
As for the EFS removal: since / is now read-only it's not possible
anymore to create an /efs directory from the init.smdk4x12.rc, so
we remove it for now. Ideally we'd need to find a way, from this
device repository, to tell build/make to create that directory.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | BoardConfig.mk | 5 | ||||
-rw-r--r-- | aosp_i9305.mk | 3 | ||||
-rw-r--r-- | fstab.smdk4x12 | 8 |
3 files changed, 13 insertions, 3 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 970ee54..48f0ed6 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -31,7 +31,10 @@ TARGET_KERNEL_SOURCE := kernel/replicant/linux TARGET_KERNEL_CONFIG := replicant_i9305_defconfig BOARD_KERNEL_IMAGE_NAME := zImage-dtb +# Recover TARGET_RECOVERY_FSTAB := device/samsung/i9305/fstab.smdk4x12 +BOARD_USES_FULL_RECOVERY_IMAGE := false +BOARD_USES_RECOVERY_AS_BOOT := false TARGET_USERIMAGES_USE_EXT4 := true @@ -55,6 +58,6 @@ BOARD_USES_DRM_HWCOMPOSER := true BOARD_GPU_DRIVERS := swrast TARGET_USES_64_BIT_BINDER := true -BOARD_BUILD_SYSTEM_ROOT_IMAGE := false +BOARD_BUILD_SYSTEM_ROOT_IMAGE := true DEVICE_MANIFEST_FILE := device/samsung/i9305/manifest.xml diff --git a/aosp_i9305.mk b/aosp_i9305.mk index 9af963d..4a67c97 100644 --- a/aosp_i9305.mk +++ b/aosp_i9305.mk @@ -23,3 +23,6 @@ PRODUCT_DEVICE := i9305 PRODUCT_BRAND := Putti PRODUCT_MODEL := AOSP on i9305 PRODUCT_MANUFACTURER := Putti + +# Disable A/B update +AB_OTA_UPDATER := false diff --git a/fstab.smdk4x12 b/fstab.smdk4x12 index 2f5ce1f..ccb65ca 100644 --- a/fstab.smdk4x12 +++ b/fstab.smdk4x12 @@ -14,5 +14,9 @@ # limitations under the License. # -/dev/block/platform/soc/12550000.mmc/by-name/EFS /efs ext4 ro,noatime wait -/dev/block/platform/soc/12550000.mmc/by-name/USERDATA /data ext4 rw,noatime wait +/dev/block/platform/soc/12550000.mmc/by-name/SYSTEM / ext4 ro,noatime wait +/dev/block/platform/soc/12550000.mmc/by-name/USERDATA /data ext4 rw,noatime wait + +# Recovery +/dev/block/platform/soc/12550000.mmc/by-name/BOOT /boot emmc defaults recoveryonly +/dev/block/platform/soc/12550000.mmc/by-name/RECOVERY /recovery emmc defaults recoveryonly |