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

Commit f92d5158 authored by Astrako's avatar Astrako Committed by Alejandro
Browse files

j5y17lte: skyhawk changes

parent 62e36d10
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@ 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
+21 −18
Original line number Diff line number Diff line
The Samsung A3 2017 (codenamed _"a3y17lte"_) are a mid-range smartphone from Samsung.
# SkyHawk Recovery Project for the Samsung Galaxy J5 2017

It was announced and released in January 2017.
### How to build ###

## Device specifications
```bash
# Create dirs
$ mkdir shrp ; cd shrp

| 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                                               |
# Init repo
$ repo init --depth=1 -u git://github.com/SKYHAWK-Recovery-Project/platform_manifest_twrp_omni.git -b android-9.0

## Device picture
# Clone my local repo
$ git clone https://github.com/samsungexynos7870/android_manifest_samsung_j5y17lte.git -b skyhawk .repo/local_manifests

![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)
# Sync
$ repo sync --no-repo-verify -c --force-sync --no-clone-bundle --no-tags --optimized-fetch --prune -j`nproc`

# Build
$ mv device/samsung/j5y17lte/build_skyhawk.sh .
$ . build_skyhawk.sh j5y17lte
```
## Credits
2019 @Astrako

## Contact
Telegram support group: https://t.me/joinchat/D1Jk_VbieGBXOWZt2y8O7A

build_ofox.sh

deleted100644 → 0
+0 −54
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
#

build_skyhawk.sh

0 → 100644
+46 −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 TARGET_DEVICE="$i"
    export SHRP_PATH="device/samsung/$i"
    export SHRP_DEVICE_CODE="$i"
    export SHRP_MAINTAINER=Astrako
    export SHRP_EDL_MODE=0
    export SHRP_EXTERNAL="/sdcard1"
    export SHRP_INTERNAL="/storage"
    export SHRP_OTG="/usb-otg"
    export SHRP_FLASH=1
    export SHRP_CUSTOM_FLASHLIGHT=true
    export SHRP_FONP_1="/sys/class/camera/flash/rear_torch_flash"
    export SHRP_FLASH_MAX_BRIGHTNESS=255
    export SHRP_REC="/dev/block/platform/13540000.dwmmc0/by-name/RECOVERY"
    export SHRP_AB=false
    export SHRP_REC_TYPE=Treble
    export SHRP_DEVICE_TYPE=A/B
    export SHRP_STATUSBAR_RIGHT_PADDING=40
    export SHRP_STATUSBAR_LEFT_PADDING=40
    export SHRP_EXPRESS=true
    export LZMA_RAMDISK_TARGETS="recovery"

}

# build the project
do_build() {
  Default_Settings

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

# --- main --- #
do_build
#
+2 −2
Original line number Diff line number Diff line
@@ -31,5 +31,5 @@
/storage        ext4   	/data/media/0                  		     		        flags=display="Internal Storage";usermrf;backup=1;fsflags="bind";removable

# Removable storage
/sdcard1	    vfat	/dev/block/mmcblk1p1    /dev/block/mmcblk1              flags=fsflags=utf8;display="MicroSD";storage;wipeingui;removable
/usb-otg	    vfat	/dev/block/sda1         /dev/block/sda				    flags=fsflags=utf8;display="USB-Storage";storage;wipeingui;removable
/sdcard1	    auto	/dev/block/mmcblk1p1    /dev/block/mmcblk1              flags=fsflags=utf8;display="MicroSD";storage;wipeingui;removable
/usb-otg	    auto	/dev/block/sda1         /dev/block/sda				    flags=fsflags=utf8;display="USB-Storage";storage;wipeingui;removable