Skip to content

Commit

Permalink
Hi, I'm Xiaomi Redmi Note 8 (ginkgo)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauronofrio committed Nov 4, 2019
1 parent eec1b22 commit 9642e18
Show file tree
Hide file tree
Showing 53 changed files with 169 additions and 419 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LOCAL_PATH := $(call my-dir)

ifeq ($(TARGET_DEVICE),cepheus)
ifeq ($(TARGET_DEVICE),ginkgo)
include $(call all-subdir-makefiles,$(LOCAL_PATH))
endif
2 changes: 1 addition & 1 deletion AndroidBoard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

LOCAL_PATH := $(call my-dir)

ifneq ($(filter cepheus,$(TARGET_DEVICE)),)
ifneq ($(filter ginkgo,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif
2 changes: 1 addition & 1 deletion AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/omni_cepheus.mk
$(LOCAL_DIR)/omni_ginkgo.mk
11 changes: 6 additions & 5 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

DEVICE_PATH := device/xiaomi/cepheus
DEVICE_PATH := device/xiaomi/ginkgo

# Architecture
TARGET_ARCH := arm64
Expand All @@ -34,12 +34,12 @@ ENABLE_CPUSETS := true
ENABLE_SCHEDBOOST := true

# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := msmnile
TARGET_BOOTLOADER_BOARD_NAME := trinket
TARGET_NO_BOOTLOADER := true
TARGET_USES_UEFI := true

# Platform
TARGET_BOARD_PLATFORM := msmnile
TARGET_BOARD_PLATFORM := trinket
TARGET_BOARD_PLATFORM_GPU := qcom-adreno640

# Kernel
Expand All @@ -63,7 +63,7 @@ BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
#TARGET_USE_SDCLANG := true

# Assert
TARGET_OTA_ASSERT_DEVICE := cepheus
TARGET_OTA_ASSERT_DEVICE := ginkgo

# Avb
BOARD_AVB_ENABLE := true
Expand Down Expand Up @@ -115,11 +115,12 @@ TW_MAX_BRIGHTNESS := 2047
TW_DEFAULT_BRIGHTNESS := 1200
TW_Y_OFFSET := 80
TW_H_OFFSET := -80
TW_SCREEN_BLANK_ON_BOOT := true
#TW_SCREEN_BLANK_ON_BOOT := true
TWRP_INCLUDE_LOGCAT := true
TARGET_USES_LOGD := true
TARGET_USES_MKE2FS := true
TW_EXCLUDE_TWRPAPP := true
TW_NO_SCREEN_TIMEOUT := true

# Hack: prevent anti rollback
PLATFORM_SECURITY_PATCH := 2099-12-31
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# android_device_xiaomi_cepheus
For building TWRP for Xiaomi Mi 9
# android_device_xiaomi_ginkgo
For building TWRP for Xiaomi Redmi Note 8

TWRP device tree for Xiaomi Mi 9
TWRP device tree for Xiaomi Redmi Note 8

## Features

Expand All @@ -15,7 +15,6 @@ Works:
- Flashing (opengapps, roms, images and so on)
- Backup/Restore (Needs more testing)
- USB OTG
- Android Q Support

TO-DO:

Expand All @@ -33,26 +32,26 @@ repo sync
Then add these projects to .repo/manifest.xml:

```xml
<project path="device/xiaomi/cepheus" name="mauronofrio/android_device_xiaomi_cepheus" remote="github" revision="android-9.0" />
<project path="device/xiaomi/ginkgo" name="mauronofrio/android_device_xiaomi_ginkgo" remote="github" revision="android-9.0" />
```

Finally execute these:

```
. build/envsetup.sh
lunch omni_cepheus-eng
lunch omni_ginkgo-eng
mka recoveryimage ALLOW_MISSING_DEPENDENCIES=true # Only if you use minimal twrp tree.
```

To test it:

```
fastboot boot out/target/product/cepheus/recovery.img
fastboot boot out/target/product/ginkgo/recovery.img
```

## Other Sources

https://github.com/LasagnaTeam/TWRP_Kernel_Cepheus
Using precompiled stock kernel.

## Thanks

Expand Down
67 changes: 0 additions & 67 deletions extract-files.sh

This file was deleted.

8 changes: 4 additions & 4 deletions omni_cepheus.mk → omni_ginkgo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
#

# Release name
PRODUCT_RELEASE_NAME := cepheus
PRODUCT_RELEASE_NAME := ginkgo

$(call inherit-product, build/target/product/embedded.mk)

# Inherit from our custom product configuration
$(call inherit-product, vendor/omni/config/common.mk)

## Device identifier. This must come after all inclusions
PRODUCT_DEVICE := cepheus
PRODUCT_NAME := omni_cepheus
PRODUCT_DEVICE := ginkgo
PRODUCT_NAME := omni_ginkgo
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Xiaomi Mi 9
PRODUCT_MODEL := Xiaomi Redmi Note 8
PRODUCT_MANUFACTURER := Xiaomi

# HACK: Set vendor patch level
Expand Down
Binary file modified prebuilt/Image.gz-dtb
Binary file not shown.
Binary file modified prebuilt/dtbo.img
Binary file not shown.
168 changes: 0 additions & 168 deletions proprietary-files.txt

This file was deleted.

Loading

0 comments on commit 9642e18

Please sign in to comment.