Skip to content

Commit

Permalink
tree: convert to z3s
Browse files Browse the repository at this point in the history
Signed-off-by: corsicanu <[email protected]>
  • Loading branch information
corsicanu committed Mar 11, 2022
1 parent cfdcbfd commit fdcb1ff
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ifneq ($(filter y2s,$(TARGET_DEVICE)),)
ifneq ($(filter z3s,$(TARGET_DEVICE)),)

LOCAL_PATH := $(call my-dir)

Expand Down
4 changes: 2 additions & 2 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/twrp_y2s.mk
$(LOCAL_DIR)/twrp_z3s.mk

COMMON_LUNCH_CHOICES := twrp_y2s-eng
COMMON_LUNCH_CHOICES := twrp_z3s-eng

2 changes: 1 addition & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Platform
DEVICE_CODENAME := y2s
DEVICE_CODENAME := z3s
DEVICE_PATH := device/samsung/$(DEVICE_CODENAME)
BOARD_VENDOR := samsung
TARGET_BOARD_PLATFORM := exynos990
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TWRP device tree for Samsung S20+ aka y2s
# TWRP device tree for Samsung S20 Ultra aka z3s

## Kernel source
Available at https://github.com/corsicanu/android_kernel_samsung_universal9830
Expand All @@ -8,10 +8,10 @@ This was tested and it's fully compatible with [minimal manifest twrp](https://g
1. Set up the build environment following instructions from [here](https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp/blob/twrp-11/README.md#getting-started)
2. In the root folder of cloned repo you need to clone the device tree:
```bash
git clone -b android-11.0 https://github.com/TeamWin/android_device_samsung_y2s.git device/samsung/y2s
git clone -b android-11.0 https://github.com/TeamWin/android_device_samsung_z3s.git device/samsung/z3s
```
3. To build:
```bash
export ALLOW_MISSING_DEPENDENCIES=true && . build/envsetup.sh && lunch twrp_y2s-eng && mka recoveryimage -j128
export ALLOW_MISSING_DEPENDENCIES=true && . build/envsetup.sh && lunch twrp_z3s-eng && mka recoveryimage -j128
```

12 changes: 6 additions & 6 deletions twrp_y2s.mk → twrp_z3s.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
$(call inherit-product, vendor/twrp/config/common.mk)

# Inherit device configuration
$(call inherit-product, device/samsung/y2s/device.mk)
$(call inherit-product, device/samsung/z3s/device.mk)

# Charger
PRODUCT_PACKAGES += \
charger_res_images

PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,device/samsung/y2s/recovery/root,recovery/root)
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,device/samsung/z3s/recovery/root,recovery/root)

# Device identifier
PRODUCT_RELEASE_NAME := y2s
PRODUCT_DEVICE := y2s
PRODUCT_NAME := twrp_y2s
PRODUCT_RELEASE_NAME := z3s
PRODUCT_DEVICE := z3s
PRODUCT_NAME := twrp_z3s
PRODUCT_BRAND := Samsung
PRODUCT_MODEL := Galaxy S20+
PRODUCT_MODEL := Galaxy S20 Ultra
PRODUCT_MANUFACTURER := samsung

0 comments on commit fdcb1ff

Please sign in to comment.