Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Add support for Samsung Galaxy A5 2017 Exynos #1351

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
sudo: required

services:
- docker

before_install:
# Clone DualBootPatcher Repository
- git clone --recursive https://github.com/Simon1511/DualBootPatcher -b master DualBootPatcher/
# Pull docker images
- docker pull yshalsager/dualbootpatcher:9.3.0-7-base
- docker pull yshalsager/dualbootpatcher:9.3.0-7-android
- docker pull yshalsager/dualbootpatcher:9.3.0-7-linux
script:
# Make work directories
- mkdir $HOME/.android
- mkdir -p ${TRAVIS_BUILD_DIR}/DualBootPatcher/builder/ && cd ${TRAVIS_BUILD_DIR}/DualBootPatcher/
# Build APK
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/builder/DualBootPatcher:rw,z" -v "${HOME}/.android:/builder/.android:rw,z" yshalsager/dualbootpatcher:9.3.0-7-android bash << EOF
cd DualBootPatcher/builder && cmake .. -DMBP_BUILD_TARGET=android -DMBP_BUILD_TYPE=debug && make -j16 && rm -rf assets && cpack && make apk -j16
make android-system_armeabi-v7a -j16 && make -C data/devices -j16
exit
EOF
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/builder/DualBootPatcher:rw,z" -v "${HOME}/.android:/builder/.android:rw,z" yshalsager/dualbootpatcher:9.3.0-7-linux bash << EOF
# Build Utilities Zip
cd ~/DualBootPatcher/builder && ./utilities/create.sh
# Build Linux
cmake .. -DMBP_BUILD_TARGET=desktop -DMBP_PORTABLE=ON && make -j16 && cpack
exit
EOF
after_success:
- export TRAVIS_CURRENT_DATE=$(date +"%d%m%y-%Hh%Mm")
# Check output & md5sum
- ls -l ${TRAVIS_BUILD_DIR}/DualBootPatcher/Android_GUI/build/outputs/apk/debug/Android_GUI-debug.apk
- md5sum ${TRAVIS_BUILD_DIR}/DualBootPatcher/Android_GUI/build/outputs/apk/debug/Android_GUI-debug.apk
- ls -l ${TRAVIS_BUILD_DIR}/DualBootPatcher/builder/utilities/DualBootUtilities-9.3.0.zip
- md5sum ${TRAVIS_BUILD_DIR}/DualBootPatcher/builder/utilities/DualBootUtilities-9.3.0.zip
- ls -l ${TRAVIS_BUILD_DIR}/DualBootPatcher/builder/DualBootPatcher-9.3.0-Linux.zip
- md5sum ${TRAVIS_BUILD_DIR}/DualBootPatcher/builder/DualBootPatcher-9.3.0-Linux.zip
# Upload to transfer.sh
- cd ${TRAVIS_BUILD_DIR}/DualBootPatcher/Android_GUI/build/outputs/apk/debug/ && curl --upload-file ./Android_GUI-debug.apk https://transfer.sh/Android_GUI-debug-${TRAVIS_CURRENT_DATE}.apk
- cd ${TRAVIS_BUILD_DIR}//DualBootPatcher/builder/utilities/ && curl --upload-file ./DualBootUtilities-9.3.0.zip https://transfer.sh/DualBootUtilities-9.3.0-${TRAVIS_CURRENT_DATE}.zip
- cd ${TRAVIS_BUILD_DIR}/DualBootPatcher/builder/ && curl --upload-file ./DualBootPatcher-9.3.0-Linux.zip https://transfer.sh/DualBootPatcher-9.3.0-${TRAVIS_CURRENT_DATE}-Linux.zip
43 changes: 43 additions & 0 deletions data/devices/samsung/02_galaxy_a_j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -677,3 +677,46 @@
default_brightness: 162
pixel_format: RGBX_8888
theme: portrait_hdpi


- name: Samsung Galaxy A5 (2017)(Exynos)
id: a5y17lte
codenames:
- a5y17lte
- a5y17ltexx
- SM-A520F
architecture: arm64-v8a

block_devs:
base_dirs:
- /dev/block/platform/13540000.dwmmc0/by-name
- /dev/block/bootdevice/by-name
system:
- /dev/block/platform/13540000.dwmmc0/by-name/system
- /dev/block/bootdevice/by-name/system
- /dev/block/mmcblk0p19
cache:
- /dev/block/platform/13540000.dwmmc0/by-name/cache
- /dev/block/bootdevice/by-name/cache
- /dev/block/mmcblk0p20
data:
- /dev/block/platform/13540000.dwmmc0/by-name/data
- /dev/block/bootdevice/by-name/data
- /dev/block/mmcblk0p25
boot:
- /dev/block/platform/13540000.dwmmc0/by-name/boot
- /dev/block/bootdevice/by-name/boot
- /dev/block/mmcblk0p10
recovery:
- /dev/block/platform/13540000.dwmmc0/by-name/recovery
- /dev/block/bootdevice/by-name/recovery
- /dev/block/mmcblk0p11

boot_ui:
supported: true
flags:
- TW_HAS_DOWNLOAD_MODE
max_brightness: 255
graphics_backends:
- fbdev
theme: portrait_hdpi