Skip to content

Commit

Permalink
main branch merged rel branch
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-yucheng committed Aug 31, 2022
2 parents 0cfefda + e3e5999 commit cb55ddb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
7 changes: 4 additions & 3 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
DISABLE_ARTIFACT_PATH_REQUIREMENTS := true

# TWRP specific build flags
TW_DEVICE_VERSION := 3_afaneh92
TW_DEVICE_VERSION := 2-3_afaneh92-gts8-yliu-patch
TW_THEME := portrait_hdpi
RECOVERY_TOUCHSCREEN_SWAP_XY := true
RECOVERY_TOUCHSCREEN_FLIP_Y := true
RECOVERY_TOUCHSCREEN_SWAP_XY := false
RECOVERY_TOUCHSCREEN_FLIP_X := false
RECOVERY_TOUCHSCREEN_FLIP_Y := false
RECOVERY_SDCARD_ON_DATA := true
TARGET_RECOVERY_QCOM_RTC_FIX := true
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
Expand Down
36 changes: 31 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
## Recovery Device Tree for the Samsung Galaxy Tab S8 5G (Snapdragon)
## TWRP Device Tree

## How-to compile it:
- For Samsung Galaxy Tab S8.
- Branch `main` is for Android 12.1.
- Tested on models: X700 (WiFi version, CSC: CHN).

```sh
## Compilation Preparation

- Open a terminal and `mkdir` a compilation directory.
- `cd` to the compilation directory.
- Run exactly the following commands in the terminal.

```bash
repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
repo sync
mkdir ./device/samsung
mkdir ./device/samsung/gts8
```

- `cd` to the `./device/samsung/gts8` directory.
- Clone this GitHub repository by running `git clone <link-to-this-repository>`.
- Now, the compilation directory is ready for the compilation.

## Compilation

- Open a terminal and `cd` to the compliation directory.
- Run exactly the following commands in the terminal.

```bash
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
. ./build/envsetup.sh
lunch twrp_gts8-eng
make recoveryimage
```

Kernel source:
- Find the compiled recovery images in the `./out/target/product/gts8` directory.

# Kernel Source
https://github.com/mohammad92/android_kernel_samsung_sm8450

0 comments on commit cb55ddb

Please sign in to comment.