Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit ebbe2b75 authored by derfelot's avatar derfelot
Browse files

lilac: Initial commit

parents
Loading
Loading
Loading
Loading

Android.mk

0 → 100644
+21 −0
Original line number Diff line number Diff line
#
# Copyright (C) 2017 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),lilac)
include $(call all-subdir-makefiles,$(LOCAL_PATH))
endif

AndroidProducts.mk

0 → 100644
+18 −0
Original line number Diff line number Diff line
#
# Copyright (C) 2017 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

PRODUCT_MAKEFILES := \
    $(LOCAL_DIR)/omni_lilac.mk

BoardConfig.mk

0 → 100644
+57 −0
Original line number Diff line number Diff line
#
# Copyright (C) 2017 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

### INHERIT FROM YOSHINO-COMMON
include device/sony/yoshino-common/BoardConfigPlatform.mk

DEVICE_PATH := device/sony/lilac

PRODUCT_PLATFORM := yoshino

### BOOTLOADER
TARGET_BOOTLOADER_BOARD_NAME := G8441

### KERNEL
BOARD_KERNEL_CMDLINE += androidboot.hardware=lilac
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/Image.gz-dtb

### PARTITIONS
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_CACHEIMAGE_PARTITION_SIZE := 398458880
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 5242880000
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
# Reserve space for data encryption (23753875456-16384)
BOARD_USERDATAIMAGE_PARTITION_SIZE := 23753842688

# VENDOR
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_VENDORIMAGE_PARTITION_SIZE := 1610612736
TARGET_COPY_OUT_VENDOR := vendor

### DISPLAY
TARGET_SCREEN_DENSITY := 320

### TWRP

## FILE BASED ENCRYPTION
TW_INCLUDE_CRYPTO_FBE := true

## FSTAB
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/twrp.fstab

## VERSION
TW_DEVICE_VERSION := 1

README.md

0 → 100644
+44 −0
Original line number Diff line number Diff line
Device configuration for Sony Xperia XZ1 Compact (lilac)
========================================================

Description
-----------

This repository is for TWRP on Sony Xperia XZ1 Compact (lilac).

How to build TWRP
----------------------

* Make a workspace:

        mkdir -p ~/twrp
        cd ~/twrp

* Initialize the minimal repo:

        repo init -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0

* Create a local manifest:

        vim .repo/local_manifests/roomservice.xml

        <?xml version="1.0" encoding="UTF-8"?>
        <manifest>
            <project name="whatawurst/android_device_sony_yoshino-common" path="device/sony/yoshino-common" remote="github" revision="android-9.0" />
            <project name="whatawurst/android_device_sony_lilac" path="device/sony/lilac" remote="github" revision="android-9.0" />
        </manifest>

* Sync the repo:

        repo sync

* Setup the environment

        export ALLOW_MISSING_DEPENDENCIES=true

        source build/envsetup.sh
        lunch omni_lilac-userdebug

* Build TWRP

        make -j7 recoveryimage

omni.dependencies

0 → 100644
+8 −0
Original line number Diff line number Diff line
[
  {
    "remote": "github",
    "repository": "whatawurst/android_device_sony_yoshino-common",
    "target_path": "device/sony/yoshino-common",
    "revision": "android-9.0"
  }
]