-
Notifications
You must be signed in to change notification settings - Fork 1
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
GauthamAsir
committed
Oct 28, 2018
0 parents
commit ed6e758
Showing
11 changed files
with
236 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_lge_vs995.git device/lge/vs995 | ||
- git clone https://github.com/TwrpBuilder/android_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_vs995-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/vs995/recovery.img $HOME/twrp/TWRP-$version-vs995-$(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_lge_vs995 | ||
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 vs995,$(TARGET_DEVICE)),) | ||
|
||
LOCAL_PATH := device/lge/vs995/ | ||
|
||
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/lge/vs995/ | ||
|
||
PRODUCT_MAKEFILES := $(LOCAL_PATH)/omni_vs995.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,36 @@ | ||
# | ||
# 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/lge/vs995 | ||
|
||
TARGET_BOARD_PLATFORM := msm8996 | ||
TARGET_BOOTLOADER_BOARD_NAME := vs995 | ||
|
||
# Recovery | ||
TARGET_USERIMAGES_USE_EXT4 := true | ||
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 42467328 | ||
BOARD_FLASH_BLOCK_SIZE := 0 | ||
BOARD_HAS_NO_REAL_SDCARD := 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_INPUT_BLACKLIST := "hbtp_vm" | ||
TW_INCLUDE_CRYPTO := true | ||
include $(LOCAL_PATH)/kernel.mk | ||
include device/generic/twrpbuilder/BoardConfig64.mk | ||
|
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=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 user_debug=31 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.hardware=elsa androidboot.bootdevice=624000.ufshc androidboot.selinux=permissive buildvariant=eng | ||
BOARD_KERNEL_BASE := 0x80000000 | ||
BOARD_KERNEL_PAGESIZE := 4096 | ||
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02200000 --tags_offset 0x00000100 |
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 := vs995 | ||
PRODUCT_NAME := omni_vs995 | ||
PRODUCT_BRAND := lge | ||
PRODUCT_MODEL := LG-VS995 | ||
PRODUCT_MANUFACTURER := lge |
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,20 @@ | ||
/boot emmc /dev/block/bootdevice/by-name/boot | ||
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1 | ||
/system ext4 /dev/block/bootdevice/by-name/system | ||
/system_image emmc /dev/block/bootdevice/by-name/system | ||
/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=/dev/block/bootdevice/by-name/encrypt | ||
/data_image emmc /dev/block/bootdevice/by-name/userdata flags=backup=1;display="Beta:Data Image w/ storage"; | ||
/cache ext4 /dev/block/bootdevice/by-name/cache | ||
#Added misc to fix OTAs | ||
/misc emmc /dev/block/bootdevice/by-name/misc | ||
/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display="EFS" | ||
/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1 | ||
/efsg emmc /dev/block/bootdevice/by-name/fsg flags=backup=1;subpartitionof=/efs1 | ||
/firmware vfat /dev/block/bootdevice/by-name/modem flags=backup=1;display="Firmware";mounttodecrypt;fsflags=context=u:object_r:firmware_file:s0 | ||
/laf emmc /dev/block/bootdevice/by-name/laf flags=backup=1;display="LAF/Download Mode";flashimg | ||
# /modem and /persist are added for flashing OTA files | ||
/modem emmc /dev/block/bootdevice/by-name/modem flags=display="Modem";flashimg | ||
/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";flashimg | ||
/external_sd vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0 flags=storage;wipeingui;removable;encryptable=/dev/block/bootdevice/by-name/encrypt | ||
/usb-otg vfat /dev/block/sdh* /dev/block/sdh flags=storage;wipeingui;removable | ||
#/vendor ext4 /dev/block/bootdevice/by-name/vendor |
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,20 @@ | ||
/boot emmc /dev/block/bootdevice/by-name/boot | ||
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1 | ||
/system ext4 /dev/block/bootdevice/by-name/system | ||
/system_image emmc /dev/block/bootdevice/by-name/system | ||
/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=/dev/block/bootdevice/by-name/encrypt | ||
/data_image emmc /dev/block/bootdevice/by-name/userdata flags=backup=1;display="Beta:Data Image w/ storage"; | ||
/cache ext4 /dev/block/bootdevice/by-name/cache | ||
#Added misc to fix OTAs | ||
/misc emmc /dev/block/bootdevice/by-name/misc | ||
/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display="EFS" | ||
/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1 | ||
/efsg emmc /dev/block/bootdevice/by-name/fsg flags=backup=1;subpartitionof=/efs1 | ||
/firmware vfat /dev/block/bootdevice/by-name/modem flags=backup=1;display="Firmware";mounttodecrypt;fsflags=context=u:object_r:firmware_file:s0 | ||
/laf emmc /dev/block/bootdevice/by-name/laf flags=backup=1;display="LAF/Download Mode";flashimg | ||
# /modem and /persist are added for flashing OTA files | ||
/modem emmc /dev/block/bootdevice/by-name/modem flags=display="Modem";flashimg | ||
/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";flashimg | ||
/external_sd vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0 flags=storage;wipeingui;removable;encryptable=/dev/block/bootdevice/by-name/encrypt | ||
/usb-otg vfat /dev/block/sdh* /dev/block/sdh flags=storage;wipeingui;removable | ||
#/vendor ext4 /dev/block/bootdevice/by-name/vendor |
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,20 @@ | ||
/boot emmc /dev/block/bootdevice/by-name/boot | ||
/recovery emmc /dev/block/bootdevice/by-name/recovery flags=backup=1 | ||
/system ext4 /dev/block/bootdevice/by-name/system | ||
/system_image emmc /dev/block/bootdevice/by-name/system | ||
/data ext4 /dev/block/bootdevice/by-name/userdata flags=encryptable=/dev/block/bootdevice/by-name/encrypt | ||
/data_image emmc /dev/block/bootdevice/by-name/userdata flags=backup=1;display="Beta:Data Image w/ storage"; | ||
/cache ext4 /dev/block/bootdevice/by-name/cache | ||
#Added misc to fix OTAs | ||
/misc emmc /dev/block/bootdevice/by-name/misc | ||
/efs1 emmc /dev/block/bootdevice/by-name/modemst1 flags=backup=1;display="EFS" | ||
/efs2 emmc /dev/block/bootdevice/by-name/modemst2 flags=backup=1;subpartitionof=/efs1 | ||
/efsg emmc /dev/block/bootdevice/by-name/fsg flags=backup=1;subpartitionof=/efs1 | ||
/firmware vfat /dev/block/bootdevice/by-name/modem flags=backup=1;display="Firmware";mounttodecrypt;fsflags=context=u:object_r:firmware_file:s0 | ||
/laf emmc /dev/block/bootdevice/by-name/laf flags=backup=1;display="LAF/Download Mode";flashimg | ||
# /modem and /persist are added for flashing OTA files | ||
/modem emmc /dev/block/bootdevice/by-name/modem flags=display="Modem";flashimg | ||
/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";flashimg | ||
/external_sd vfat /dev/block/mmcblk0p1 /dev/block/mmcblk0 flags=storage;wipeingui;removable;encryptable=/dev/block/bootdevice/by-name/encrypt | ||
/usb-otg vfat /dev/block/sdh* /dev/block/sdh flags=storage;wipeingui;removable | ||
#/vendor ext4 /dev/block/bootdevice/by-name/vendor |