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

please add support to OE106 , thank you very much! #1422

Open
wants to merge 5 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/gfzhy/DualBootPatcher -b master ${TRAVIS_BUILD_DIR}/DualBootPatcher/
# Pull docker images
- docker pull yshalsager/dualbootpatcher:9.3.0-4-base
- docker pull yshalsager/dualbootpatcher:9.3.0-4-android
- docker pull yshalsager/dualbootpatcher:9.3.0-4-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-4-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-4-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
107 changes: 82 additions & 25 deletions data/devices/SAMPLE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,117 @@


# Human readable device name (required)
- name: Samsung Galaxy S 4 (Qcom)
- name: OE106
# Device ID (required). Must be unique, but can be any string. It is good
# practice to set this value similar to the device's codename if possible.
id: jflte
id: ocean

# List of device codenames (required). The codename is the value of
# 'ro.product.device' or 'ro.build.product' in the /system/build.prop file.
# WARNING: All of the devices listed MUST have the same partition table.
# Otherwise, there's a chance of hard-bricking the device.
codenames:
- jflte
- jfltetmo
- jfltexx
- ocean


# Device architecture (required). For example, armeabi-v7a, arm64-v8a, or x86.
architecture: armeabi-v7a
architecture: arm64-v8a

# Block device paths section (required).
block_devs:
# Base directories (optional). This is a list of the 'by-name' directories
# in /dev/ that contain the partition block devices.
base_dirs:
- /dev/block/platform/msm_sdcc.1/by-name
- /dev/block/bootdevice/by-name
- /dev/block/

# System partition block device paths (required).
system:
- /dev/block/platform/msm_sdcc.1/by-name/system
- /dev/block/mmcblk0p16
- /dev/block/bootdevice/by-name/system
- /dev/block/mmcblk0p49

# Cache partition block device paths (required).
cache:
- /dev/block/platform/msm_sdcc.1/by-name/cache
- /dev/block/mmcblk0p18
- /dev/block/bootdevice/by-name/cache
- /dev/block/mmcblk0p15

# Data partition block device paths (required).
data:
- /dev/block/platform/msm_sdcc.1/by-name/userdata
- /dev/block/mmcblk0p29
- /dev/block/logic_data
- /dev/block/dm-0

# Boot partition block device paths (required).
boot:
- /dev/block/platform/msm_sdcc.1/by-name/boot
- /dev/block/mmcblk0p20
- /dev/block/bootdevice/by-name/boot
- /dev/block/mmcblk0p13

# Recovery partition block device paths (required).
recovery:
- /dev/block/platform/msm_sdcc.1/by-name/recovery
- /dev/block/mmcblk0p21
- /dev/block/bootdevice/by-name/recovery
- /dev/block/mmcblk0p16

# Extra block device paths (optional). This is a list of block devices that
# will be available during the flashing process. Any block devices not
# listed here cannot be touched by a ROM's installer.
extra:
- /dev/block/platform/msm_sdcc.1/by-name/aboot
# - /dev/block/platform/msm_sdcc.1/by-name/aboot

- /dev/block/platform/soc/7c4000.sdhci/by-name/abl
- /dev/block/platform/soc/7c4000.sdhci/by-name/alterable
- /dev/block/platform/soc/7c4000.sdhci/by-name/aop
- /dev/block/platform/soc/7c4000.sdhci/by-name/apdp
- /dev/block/platform/soc/7c4000.sdhci/by-name/bluetooth
- /dev/block/platform/soc/7c4000.sdhci/by-name/boot
- /dev/block/platform/soc/7c4000.sdhci/by-name/cache
- /dev/block/platform/soc/7c4000.sdhci/by-name/cmnlib
- /dev/block/platform/soc/7c4000.sdhci/by-name/cmnlib64
- /dev/block/platform/soc/7c4000.sdhci/by-name/ddr
- /dev/block/platform/soc/7c4000.sdhci/by-name/devcfg
- /dev/block/platform/soc/7c4000.sdhci/by-name/devinfo
- /dev/block/platform/soc/7c4000.sdhci/by-name/dip
- /dev/block/platform/soc/7c4000.sdhci/by-name/dpo
- /dev/block/platform/soc/7c4000.sdhci/by-name/dsp
- /dev/block/platform/soc/7c4000.sdhci/by-name/dtbo
- /dev/block/platform/soc/7c4000.sdhci/by-name/factory
- /dev/block/platform/soc/7c4000.sdhci/by-name/factory_bak
- /dev/block/platform/soc/7c4000.sdhci/by-name/frp
- /dev/block/platform/soc/7c4000.sdhci/by-name/fsc
- /dev/block/platform/soc/7c4000.sdhci/by-name/fsg
- /dev/block/platform/soc/7c4000.sdhci/by-name/fsg1
- /dev/block/platform/soc/7c4000.sdhci/by-name/fsg2
- /dev/block/platform/soc/7c4000.sdhci/by-name/hyp
- /dev/block/platform/soc/7c4000.sdhci/by-name/keymaster
- /dev/block/platform/soc/7c4000.sdhci/by-name/keystore
- /dev/block/platform/soc/7c4000.sdhci/by-name/klogdump
- /dev/block/platform/soc/7c4000.sdhci/by-name/limits
- /dev/block/platform/soc/7c4000.sdhci/by-name/logdump
- /dev/block/platform/soc/7c4000.sdhci/by-name/logfs
- /dev/block/platform/soc/7c4000.sdhci/by-name/misc
- /dev/block/platform/soc/7c4000.sdhci/by-name/modem
- /dev/block/platform/soc/7c4000.sdhci/by-name/modemst1
- /dev/block/platform/soc/7c4000.sdhci/by-name/modemst2
- /dev/block/platform/soc/7c4000.sdhci/by-name/msadp
- /dev/block/platform/soc/7c4000.sdhci/by-name/persist
- /dev/block/platform/soc/7c4000.sdhci/by-name/qupfw
- /dev/block/platform/soc/7c4000.sdhci/by-name/ramdump
- /dev/block/platform/soc/7c4000.sdhci/by-name/rawdump
- /dev/block/platform/soc/7c4000.sdhci/by-name/recovery
- /dev/block/platform/soc/7c4000.sdhci/by-name/sec
- /dev/block/platform/soc/7c4000.sdhci/by-name/splash
- /dev/block/platform/soc/7c4000.sdhci/by-name/spunvm
- /dev/block/platform/soc/7c4000.sdhci/by-name/ssd
- /dev/block/platform/soc/7c4000.sdhci/by-name/sti
- /dev/block/platform/soc/7c4000.sdhci/by-name/storsec
- /dev/block/platform/soc/7c4000.sdhci/by-name/system
- /dev/block/platform/soc/7c4000.sdhci/by-name/toolsfv
- /dev/block/platform/soc/7c4000.sdhci/by-name/tz
- /dev/block/platform/soc/7c4000.sdhci/by-name/userdata
- /dev/block/platform/soc/7c4000.sdhci/by-name/vbmeta
- /dev/block/platform/soc/7c4000.sdhci/by-name/vendor
- /dev/block/platform/soc/7c4000.sdhci/by-name/xbl
- /dev/block/platform/soc/7c4000.sdhci/by-name/xbl_config



# Boot UI section (optional).
boot_ui:
Expand Down Expand Up @@ -102,7 +159,7 @@
# - RGBX_8888
# - BGRA_8888
# - RGBA_8888
pixel_format: DEFAULT
pixel_format: RGBA_8888

# TWRP force pixel format (optional).
#
Expand All @@ -121,10 +178,10 @@
default_y_offset: 0

# TWRP brightness sysfs path (optional).
brightness_path: '/sys/...'
brightness_path: '/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/backlight/panel0-backlight/brightness'

# TWRP secondary brightness sysfs path (optional).
secondary_brightness_path: '/sys/...'
#secondary_brightness_path: '/sys/...'

# TWRP max brightness (optional).
max_brightness: 255
Expand All @@ -133,16 +190,16 @@
default_brightness: 128

# TWRP battery sysfs path (optional).
battery_path: '/sys/...'
# battery_path: '/sys/...'

# TWRP CPU temperature sys path (optional).
cpu_temp_path: '/sys/...'
# cpu_temp_path: '/sys/...'

# TWRP input device blacklist (optional).
input_blacklist: ''
# input_blacklist: ''

# TWRP input device whitelist (optional).
input_whitelist: ''
# input_whitelist: ''

# TWRP graphics backend list (required).
#
Expand Down