-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fedb86e
Showing
11 changed files
with
225 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
before_install: | ||
- docker pull surendrajat/twrp-builder:latest | ||
before_script: | ||
- cd $HOME && mkdir twrp | ||
- wget -q https://github.com/TwrpBuilder/twrp-sources/releases/download/omni_twrp-5.1.1-cleaned/omni_twrp-5.1.1_cleaned.tar.xz | ||
-O $HOME/twrp.tar.xz | ||
- tar -xJf twrp.tar.xz --directory $HOME/twrp/ && rm twrp.tar.xz | ||
script: | ||
- cd $HOME/twrp/ && git clone https://github.com/TwrpBuilder/android_device_samsung_j1pop3gjv.git device/samsung/j1pop3gjv | ||
- git clone https://github.com/TwrpBuilder/device_generic_twrpbuilder.git device/generic/twrpbuilder | ||
- git clone https://github.com/omnirom/android_bootable_recovery.git bootable/recovery --depth=1 | ||
- | | ||
docker run --rm -i -v "$(pwd):/root/twrp/:rw,z" surendrajat/twrp-builder bash << EOF | ||
cd /root/twrp/ | ||
source build/envsetup.sh && lunch omni_j1pop3gjv-eng && make -j16 recoveryimage | ||
exit | ||
EOF | ||
after_success: | ||
- export version=$(cat bootable/recovery/variables.h | grep "define TW_MAIN_VERSION_STR" | cut -d '"' -f2) | ||
- cp $HOME/twrp/out/target/product/j1pop3gjv/recovery.img $HOME/twrp/TWRP-$version-j1pop3gjv-$(date +"%Y%m%d").img | ||
|
||
deploy: | ||
skip_cleanup: true | ||
provider: releases | ||
api_key: "$GIT_OAUTH_TOKEN_TB" | ||
file_glob: true | ||
file: $HOME/twrp/*.img | ||
on: | ||
tags: false | ||
repo: TwrpBuilder/android_device_samsung_j1pop3gjv | ||
branch: master | ||
branches: | ||
except: | ||
- /^(?i:untagged)-.*$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
ifneq ($(filter j1pop3gjv,$(TARGET_DEVICE)),) | ||
|
||
LOCAL_PATH := device/samsung/j1pop3gjv/ | ||
|
||
include $(call all-makefiles-under,$(LOCAL_PATH)) | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# 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 := device/samsung/j1pop3gjv/ | ||
|
||
PRODUCT_MAKEFILES := $(LOCAL_PATH)/omni_j1pop3gjv.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# 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 := device/samsung/j1pop3gjv | ||
|
||
TARGET_BOARD_PLATFORM := SC7727S | ||
TARGET_BOOTLOADER_BOARD_NAME := j1pop3gjv | ||
|
||
# Recovery | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 9218048 | ||
BOARD_FLASH_BLOCK_SIZE := 0 | ||
BOARD_HAS_NO_REAL_SDCARD := true | ||
BOARD_HAS_NO_SELECT_BUTTON := true | ||
BOARD_SUPPRESS_SECURE_ERASE := true | ||
BOARD_HAS_NO_MISC_PARTITION := true | ||
BOARD_RECOVERY_SWIPE := true | ||
BOARD_USES_MMCUTILS := true | ||
BOARD_SUPPRESS_EMMC_WIPE := true | ||
TW_EXCLUDE_SUPERSU := true | ||
TW_INPUT_BLACKLIST := "hbtp_vm" | ||
TW_HAS_DOWNLOAD_MODE := true | ||
TW_NO_REBOOT_BOOTLOADER := true | ||
include $(LOCAL_PATH)/kernel.mk | ||
include device/generic/twrpbuilder/BoardConfig32.mk | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
# Kernel | ||
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel | ||
BOARD_KERNEL_CMDLINE := console=ttyS1,115200n8 androidboot.selinux=permissive | ||
BOARD_KERNEL_BASE := 0x00000000 | ||
BOARD_KERNEL_PAGESIZE := 2048 | ||
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dt $(LOCAL_PATH)/dt.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) | ||
PRODUCT_DEVICE := j1pop3gjv | ||
PRODUCT_NAME := omni_j1pop3gjv | ||
PRODUCT_BRAND := samsung | ||
PRODUCT_MODEL := SM-J110H | ||
PRODUCT_MANUFACTURER := samsung |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
/boot emmc /dev/block/platform/sprd-sdhci.3/by-name/KERNEL | ||
/data ext4 /dev/block/platform/sprd-sdhci.3/by-name/USERDATA | ||
/system ext4 /dev/block/platform/sprd-sdhci.3/by-name/SYSTEM | ||
/cache ext4 /dev/block/platform/sprd-sdhci.3/by-name/CSC | ||
/recovery emmc /dev/block/platform/sprd-sdhci.3/by-name/RECOVERY | ||
/external_sd auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable | ||
/usb-otg auto /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[defaults] | ||
base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr | ||
blocksize = 4096 | ||
inode_size = 256 | ||
inode_ratio = 16384 | ||
|
||
[fs_types] | ||
ext2 = { | ||
|
||
} | ||
ext3 = { | ||
features = has_journal | ||
} | ||
ext4 = { | ||
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize | ||
inode_size = 256 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# 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. | ||
# | ||
|
||
/boot emmc /dev/block/platform/sprd-sdhci.3/by-name/KERNEL | ||
/data ext4 /dev/block/platform/sprd-sdhci.3/by-name/USERDATA | ||
/system ext4 /dev/block/platform/sprd-sdhci.3/by-name/SYSTEM | ||
/cache ext4 /dev/block/platform/sprd-sdhci.3/by-name/CSC | ||
/recovery emmc /dev/block/platform/sprd-sdhci.3/by-name/RECOVERY | ||
/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable | ||
|