commit 8176cad9526560fce184ecd881a17715befda422 Author: LuK1337 Date: Thu Jan 19 00:17:43 2017 +0100 gts210vewifi: Initial commit diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..1a51143 --- /dev/null +++ b/AndroidBoard.mk @@ -0,0 +1,32 @@ +# +# Copyright 2016 The Android 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. +# + +# This contains the module build definitions for the hardware-specific +# components for this device. +# +# As much as possible, those components should be built unconditionally, +# with device-specific names to avoid collisions, to avoid device-specific +# bitrot and build breakages. Building a component unconditionally does +# *not* include it on all devices, so it is safe even with hardware-specific +# components. + +ifneq ($(filter gts210vewifi,$(TARGET_DEVICE)),) + +LOCAL_PATH := $(call my-dir) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..658d377 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright 2016 The Android 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. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/omni_gts210vewifi.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..dec7661 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,84 @@ +# +# Copyright 2016 The Android 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. +# + +# This contains the module build definitions for the hardware-specific +# components for this device. +# +# As much as possible, those components should be built unconditionally, +# with device-specific names to avoid collisions, to avoid device-specific +# bitrot and build breakages. Building a component unconditionally does +# *not* include it on all devices, so it is safe even with hardware-specific +# components. + +# Bootloader +TARGET_NO_BOOTLOADER := true +TARGET_BOOTLOADER_BOARD_NAME := msm8952 + +# Platform +TARGET_BOARD_PLATFORM := msm8952 +TARGET_BOARD_PLATFORM_GPU := qcom-adreno510 +TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ + +# Flags +TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp +TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp +COMMON_GLOBAL_CFLAGS += -DREFRESH_RATE=60 + +# Architecture +TARGET_ARCH := arm64 +TARGET_ARCH_VARIANT := armv8-a +TARGET_CPU_ABI := arm64-v8a +TARGET_CPU_ABI2 := +TARGET_CPU_VARIANT := generic + +TARGET_2ND_ARCH := arm +TARGET_2ND_ARCH_VARIANT := armv7-a-neon +TARGET_2ND_CPU_ABI := armeabi-v7a +TARGET_2ND_CPU_ABI2 := armeabi +TARGET_2ND_CPU_VARIANT := cortex-a53.a57 + +# Kernel Prebuilt +TARGET_PREBUILT_KERNEL := device/samsung/gts210vewifi/kernel +BOARD_CUSTOM_BOOTIMG_MK := device/samsung/gts210vewifi/mkbootimg.mk +BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive +BOARD_KERNEL_PAGESIZE := 2048 +BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x80000000 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --board FPRPG21W000KU --dt device/samsung/gts210vewifi/dt.img + +# Crypto +TARGET_HW_DISK_ENCRYPTION := true + +# Recovery +RECOVERY_VARIANT := twrp +TARGET_USERIMAGES_USE_EXT4 := true + +# Partitions +BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432 +BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200 +BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432 +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 33554432 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 4404019200 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 26268905472 +BOARD_FLASH_BLOCK_SIZE := 131072 + +# TWRP +BOARD_SUPPRESS_SECURE_ERASE := true +RECOVERY_SDCARD_ON_DATA := true +TARGET_RECOVERY_QCOM_RTC_FIX := true +TW_DEFAULT_EXTERNAL_STORAGE := true +TW_HAS_DOWNLOAD_MODE := true +TW_INCLUDE_CRYPTO := true +TW_INPUT_BLACKLIST := "hbtp_vm" +TW_THEME := portrait_hdpi diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..2fb8c6d --- /dev/null +++ b/cm.mk @@ -0,0 +1,26 @@ +# +# Copyright 2016 The Android 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. +# + +# Sample: This is where we'd set a backup provider if we had one +# $(call inherit-product, device/sample/products/backup_overlay.mk) + +# Inherit from the common Open Source product configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +PRODUCT_NAME := cm_gts210vewifi +PRODUCT_DEVICE := gts210vewifi +PRODUCT_BRAND := Samsung +PRODUCT_MANUFACTURER := Samsung diff --git a/dt.img b/dt.img new file mode 100644 index 0000000..7b7f4a1 Binary files /dev/null and b/dt.img differ diff --git a/kernel b/kernel new file mode 100755 index 0000000..6637d1e Binary files /dev/null and b/kernel differ diff --git a/mkbootimg.mk b/mkbootimg.mk new file mode 100644 index 0000000..8e3db70 --- /dev/null +++ b/mkbootimg.mk @@ -0,0 +1,38 @@ +# +# Copyright 2016 The Android 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 := $(call my-dir) + +PREBUILT_DTIMAGE_TARGET := $(LOCAL_PATH)/dt.img +LZMA_RAMDISK := $(PRODUCT_OUT)/ramdisk-recovery-lzma.img +LZMA_BIN := $(shell which lzma) + +$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(PREBUILT_DTIMAGE_TARGET) + $(call pretty,"Target boot image: $@") + $(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ + $(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw) + @echo -e ${CL_CYN}"Made boot image: $@"${CL_RST} + +$(LZMA_RAMDISK): $(recovery_ramdisk) + $(hide) gunzip -f < $(recovery_ramdisk) | $(LZMA_BIN) > $@ + +$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(PREBUILT_DTIMAGE_TARGET) \ + $(LZMA_RAMDISK) \ + $(recovery_kernel) + @echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST} + $(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ --ramdisk $(LZMA_RAMDISK) + $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) + @echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST} diff --git a/omni_gts210vewifi.mk b/omni_gts210vewifi.mk new file mode 100644 index 0000000..28b866c --- /dev/null +++ b/omni_gts210vewifi.mk @@ -0,0 +1,26 @@ +# +# Copyright 2016 The Android 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. +# + +# Sample: This is where we'd set a backup provider if we had one +# $(call inherit-product, device/sample/products/backup_overlay.mk) + +# Inherit from the common Open Source product configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +PRODUCT_NAME := omni_gts210vewifi +PRODUCT_DEVICE := gts210vewifi +PRODUCT_BRAND := Samsung +PRODUCT_MANUFACTURER := Samsung diff --git a/recovery/root/etc/twrp.fstab b/recovery/root/etc/twrp.fstab new file mode 100644 index 0000000..712bb1b --- /dev/null +++ b/recovery/root/etc/twrp.fstab @@ -0,0 +1,14 @@ +# mount_point fstype device flags +/system ext4 /dev/block/bootdevice/by-name/system +/data ext4 /dev/block/bootdevice/by-name/userdata flags=length=-16384 +/cache ext4 /dev/block/bootdevice/by-name/cache +/boot emmc /dev/block/bootdevice/by-name/boot +/misc emmc /dev/block/bootdevice/by-name/misc + +/firmware vfat /dev/block/bootdevice/by-name/modem flags=display="Firmware";mounttodecrypt +/efs ext4 /dev/block/bootdevice/by-name/efs flags=display="EFS";backup=1 +/persist ext4 /dev/block/bootdevice/by-name/persist flags=display="Persist";backup=1 + +/sdcard1 auto /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="MicroSD";storage;wipeingui;removable +/usb-otg auto /dev/block/sda1 /dev/block/sda flags=display="USB OTG";storage;wipeingui;removable + diff --git a/recovery/root/init.recovery.qcom.rc b/recovery/root/init.recovery.qcom.rc new file mode 100644 index 0000000..ba60a4e --- /dev/null +++ b/recovery/root/init.recovery.qcom.rc @@ -0,0 +1,11 @@ +on init + wait /dev/ion + wait /dev/qseecom + + chown system system /dev/ion + chown system drmrpc /dev/qseecom + + start qseecomd + +service qseecomd /sbin/qseecomd + disabled diff --git a/recovery/root/sbin/libdiag.so b/recovery/root/sbin/libdiag.so new file mode 100644 index 0000000..04c908b Binary files /dev/null and b/recovery/root/sbin/libdiag.so differ diff --git a/recovery/root/sbin/libdrmfs.so b/recovery/root/sbin/libdrmfs.so new file mode 100644 index 0000000..cb46567 Binary files /dev/null and b/recovery/root/sbin/libdrmfs.so differ diff --git a/recovery/root/sbin/libdrmtime.so b/recovery/root/sbin/libdrmtime.so new file mode 100644 index 0000000..1148252 Binary files /dev/null and b/recovery/root/sbin/libdrmtime.so differ diff --git a/recovery/root/sbin/librpmb.so b/recovery/root/sbin/librpmb.so new file mode 100644 index 0000000..7f0fb8e Binary files /dev/null and b/recovery/root/sbin/librpmb.so differ diff --git a/recovery/root/sbin/libssd.so b/recovery/root/sbin/libssd.so new file mode 100644 index 0000000..0921d8c Binary files /dev/null and b/recovery/root/sbin/libssd.so differ diff --git a/recovery/root/sbin/qseecomd b/recovery/root/sbin/qseecomd new file mode 100755 index 0000000..6b70c21 Binary files /dev/null and b/recovery/root/sbin/qseecomd differ diff --git a/recovery/root/vendor/lib64/hw/keystore.msm8952.so b/recovery/root/vendor/lib64/hw/keystore.msm8952.so new file mode 100644 index 0000000..541dbe9 Binary files /dev/null and b/recovery/root/vendor/lib64/hw/keystore.msm8952.so differ diff --git a/recovery/root/vendor/lib64/libQSEEComAPI.so b/recovery/root/vendor/lib64/libQSEEComAPI.so new file mode 100644 index 0000000..ea6ea02 Binary files /dev/null and b/recovery/root/vendor/lib64/libQSEEComAPI.so differ