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

Commit 2ccff53e authored by Astrako's avatar Astrako
Browse files

Initial j5y17lte orangefox device tree

parents
Loading
Loading
Loading
Loading

Android.mk

0 → 100644
+25 −0
Original line number Diff line number Diff line
#
# Copyright (C) 2018 The TwrpBuilder 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),j5y17lte)

include $(call all-makefiles-under,$(LOCAL_PATH))

include $(CLEAR_VARS)

endif

AndroidProducts.mk

0 → 100644
+20 −0
Original line number Diff line number Diff line
#
# Copyright 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 := device/samsung/j5y17lte/

include $(call all-makefiles-under,$(LOCAL_PATH))
PRODUCT_MAKEFILES := $(LOCAL_PATH)/omni_j5y17lte.mk

BoardConfig.mk

0 → 100644
+114 −0
Original line number Diff line number Diff line
#
# Copyright 2017 The Android Open Source Project
#
# Copyright (C) 2018-2020 OrangeFox Recovery 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.
#

DEVICE_PATH := device/samsung/j5y17lte

# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := cortex-a53
TARGET_CPU_VARIANT_RUNTIME := cortex-a53

TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv8-a
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a53
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a53

TARGET_USES_64_BIT_BINDER := true

# Bootloader
BOARD_VENDOR := samsung
TARGET_BOARD_PLATFORM := exynos5
TARGET_SOC := exynos7870
TARGET_BOOTLOADER_BOARD_NAME := universal7870
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true

# Crypto
TARGET_CRYPTFS_HW_PATH := vendor/qcom/opensource/commonsys/cryptfs_hw
TARGET_HW_DISK_ENCRYPTION := true
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO_FBE := true
TW_INCLUDE_FBE := true

# Kernel
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_HEADER_ARCH := arm64
TARGET_KERNEL_CONFIG := exynos7870-j5y17lte_defconfig
TARGET_KERNEL_SOURCE := kernel/samsung/exynos7870

# Extracted with libbootimg
BOARD_CUSTOM_BOOTIMG := true
BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/dtbhtool/mkbootimg.mk
BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_IMAGE_NAME := Image
BOARD_KERNEL_SEPARATED_DT := true
TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos

# File systems
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true

# LZMA support
LZMA_RAMDISK_TARGETS := recovery

TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery.fstab

# Recovery
TARGET_RECOVERY_PIXEL_FORMAT := "ABGR_8888"
AB_OTA_UPDATER := false

# TWRP specific build flags
TARGET_OTA_ASSERT_DEVICE := j5y17lte
RECOVERY_SDCARD_ON_DATA := true
TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel/brightness"
TW_EXCLUDE_DEFAULT_USB_INIT := true
TW_EXTRA_LANGUAGES := true
TW_DEFAULT_LANGUAGE := en
TW_INCLUDE_NTFS_3G := true
TW_INPUT_BLACKLIST := "hbtp_vm"
TW_MAX_BRIGHTNESS := 255
TW_DEFAULT_BRIGHTNESS := 162
TW_THEME := portrait_hdpi
TW_SCREEN_BLANK_ON_BOOT := true
TWRP_INCLUDE_LOGCAT := true
TARGET_USES_LOGD := true

# exFAT FS Support
TW_INCLUDE_FUSE_EXFAT := true

# NTFS Support
TW_INCLUDE_FUSE_NTFS := true

# Vendor separation
TARGET_COPY_OUT_VENDOR := vendor

# Android Verified Boot
BOARD_AVB_ENABLE := false
BOARD_BUILD_DISABLED_VBMETAIMAGE := true

# Include
TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/dtbhtool/include

README.md

0 → 100644
+23 −0
Original line number Diff line number Diff line
The Samsung A3 2017 (codenamed _"a3y17lte"_) are a mid-range smartphone from Samsung.

It was announced and released in January 2017.

## Device specifications

| Device       | Samsung Galaxy A3 2017                             |
| -----------: | :----------------------------------------------    |
| SoC          | Samsung Exynos 7870                                |
| CPU          | Octa-core, 1600 MHz, ARM Cortex-A53, 64-bit, 14 nm |
| GPU          | Mali-T830                                          |
| Memory       | 2GB (LPDDR3X)                                      |
| Shipped Android version | 6.0.1                                   |
| Storage      | 16GB eMMC 5.1 flash storage                        |
| Battery      | Non-removable Li-Po 2350 mAh                       |
| Dimensions   | 135.4 x 66.2 x 7.9 mm                              |
| Display      | 1280 x 720 (16:9), 4.7  inch                       |
| Rear camera 1 | 13MP, f/1.9                                       |
| Front camera  | 8MP                                               |

## Device picture

![Samsung A3 2017](https://www.maxmovil.com/media/catalog/product/cache/1/thumbnail/600x/17f82f742ffe127f42dca9de82fb58b1/c/o/comprar_samsung_galaxy_a3_2017_negro_2.jpg)

build_ofox.sh

0 → 100644
+54 −0
Original line number Diff line number Diff line
#!/bin/bash

# what device are we building for?
TARGET_DEVICE="$1"

# configure some default settings for the build
Default_Settings() {
	export ALLOW_MISSING_DEPENDENCIES=true
    export FOX_RECOVERY_INSTALL_PARTITION="/dev/block/platform/13540000.dwmmc0/by-name/RECOVERY"
	export FOX_REPLACE_BUSYBOX_PS="1"
	export FOX_USE_BASH_SHELL="1"
    export FOX_USE_LZMA_COMPRESSION="1"
	export FOX_USE_NANO_EDITOR="1"
	export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER="1"
    export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
	export LC_ALL="C"
    export OF_DISABLE_MIUI_SPECIFIC_FEATURES="1"
	export OF_DONT_PATCH_ENCRYPTED_DEVICE="1"
    export OF_FL_PATH1="/sys/class/camera/flash/rear_torch_flash"
    export OF_MAINTAINER="Astrako"
    export OF_NO_TREBLE_COMPATIBILITY_CHECK="1"
	export OF_OTA_RES_DECRYPT="1"
  	export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES="1"
    export OF_USE_NEW_MAGISKBOOT="1"
	export TARGET_ARCH="arm64"
	export TW_DEFAULT_LANGUAGE="en"
    export TW_DEVICE_VERSION="R10.1"
	export USE_CCACHE="1"

  	# lzma
  	[ "$FOX_USE_LZMA_COMPRESSION" = "1" ] && export LZMA_RAMDISK_TARGETS="recovery"

  	# A/B devices
  	[ "$OF_AB_DEVICE" = "1" ] && export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES="1"

  	# magiskboot
  	[ "$OF_USE_MAGISKBOOT_FOR_ALL_PATCHES" = "1" ] && export OF_USE_MAGISKBOOT="1"
}

# build the project
do_build() {
  Default_Settings

  # compile it
  . build/envsetup.sh
  
  lunch omni_"$TARGET_DEVICE"-eng
  
  mka recoveryimage -j`nproc`
}

# --- main --- #
do_build
#