commit 1523d76bd0897e773bf3fb44bfa1b842a3144b8b Author: Surendra kumar Date: Sat Jun 30 14:17:38 2018 +0530 Initial commit diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..60ee739 --- /dev/null +++ b/.travis.yml @@ -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_mondrianwifi.git device/samsung/mondrianwifi + - 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_mondrianwifi-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/mondrianwifi/recovery.img $HOME/twrp/TWRP-$version-mondrianwifi-$(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_mondrianwifi + branch: master +branches: + except: + - /^(?i:untagged)-.*$/ diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..8c2ab78 --- /dev/null +++ b/Android.mk @@ -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 mondrianwifi,$(TARGET_DEVICE)),) + +LOCAL_PATH := device/samsung/mondrianwifi/ + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..ad05873 --- /dev/null +++ b/AndroidProducts.mk @@ -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/mondrianwifi/ + +PRODUCT_MAKEFILES := $(LOCAL_PATH)/omni_mondrianwifi.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..6b2713c --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,37 @@ +# +# 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/mondrianwifi + +TARGET_BOARD_PLATFORM := msm8974 +TARGET_BOOTLOADER_BOARD_NAME := mondrianwifi + +# Recovery +TARGET_USERIMAGES_USE_EXT4 := true +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 13631488 +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" +include $(LOCAL_PATH)/kernel.mk +include device/generic/twrpbuilder/BoardConfig32.mk + diff --git a/dt.img b/dt.img new file mode 100644 index 0000000..dfaac18 Binary files /dev/null and b/dt.img differ diff --git a/kernel b/kernel new file mode 100644 index 0000000..a7abaf1 Binary files /dev/null and b/kernel differ diff --git a/kernel.mk b/kernel.mk new file mode 100644 index 0000000..043dd29 --- /dev/null +++ b/kernel.mk @@ -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. +# + +# Kernel +TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel +BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F androidboot.selinux=permissive +BOARD_KERNEL_BASE := 0x00008000 +BOARD_KERNEL_PAGESIZE := 2048 +BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01e00000 --dt $(LOCAL_PATH)/dt.img +BOARD_NEEDS_LZMA_MINIGZIP := true diff --git a/omni_mondrianwifi.mk b/omni_mondrianwifi.mk new file mode 100644 index 0000000..115950d --- /dev/null +++ b/omni_mondrianwifi.mk @@ -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 := mondrianwifi +PRODUCT_NAME := omni_mondrianwifi +PRODUCT_BRAND := samsung +PRODUCT_MODEL := SM-T320 +PRODUCT_MANUFACTURER := samsung diff --git a/recovery.fstab b/recovery.fstab new file mode 100644 index 0000000..dc8a615 --- /dev/null +++ b/recovery.fstab @@ -0,0 +1,25 @@ +# +# 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/msm_sdcc.1/by-name/boot +/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata +/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system +/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache +/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery +/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable +/efs emmc /dev/block/platform/msm_sdcc.1/by-name/efs +/modem emmc /dev/block/platform/msm_sdcc.1/by-name/modem +/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable diff --git a/stock/mke2fs.conf b/stock/mke2fs.conf new file mode 100644 index 0000000..e231d7c --- /dev/null +++ b/stock/mke2fs.conf @@ -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 + } diff --git a/stock/recovery.fstab b/stock/recovery.fstab new file mode 100644 index 0000000..d67f33d --- /dev/null +++ b/stock/recovery.fstab @@ -0,0 +1,9 @@ +/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot +/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache +/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata length=-16384 flags=encryptable=footer +/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery +/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system +/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 +/efs emmc /dev/block/platform/msm_sdcc.1/by-name/efs +/modem emmc /dev/block/platform/msm_sdcc.1/by-name/modem +/usb-otg vfat /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable