From c0cb5b1167ae6a67fd252fc8a75dbfbc9eb866fc Mon Sep 17 00:00:00 2001 From: ggow Date: Wed, 24 Apr 2019 20:18:12 +0100 Subject: [PATCH] Initial commit --- Android.mk | 9 ++++++ AndroidProducts.mk | 2 ++ BoardConfig.mk | 17 +++++++++++ cm.mk | 13 ++++++++ device.mk | 9 ++++++ extract-files.sh | 56 ++++++++++++++++++++++++++++++++++ full_austin.mk | 13 ++++++++ proprietary-files.txt | 20 ++++++++++++ recovery.fstab | 12 ++++++++ setup-makefiles.sh | 44 +++++++++++++++++++++++++++ system.prop | 71 +++++++++++++++++++++++++++++++++++++++++++ vendorsetup.sh | 1 + 12 files changed, 267 insertions(+) create mode 100644 Android.mk create mode 100644 AndroidProducts.mk create mode 100755 BoardConfig.mk create mode 100644 cm.mk create mode 100755 device.mk create mode 100755 extract-files.sh create mode 100644 full_austin.mk create mode 100644 proprietary-files.txt create mode 100644 recovery.fstab create mode 100755 setup-makefiles.sh create mode 100644 system.prop create mode 100644 vendorsetup.sh diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..055723d --- /dev/null +++ b/Android.mk @@ -0,0 +1,9 @@ +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),austin) + +ifneq ($(TARGET_SIMULATOR),true) +include $(call first-makefiles-under,$(LOCAL_PATH)) +endif + +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..74d4623 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/full_austin.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100755 index 0000000..d6a96a0 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,17 @@ +# Kernel +TARGET_KERNEL_CONFIG := austin_defconfig +BOARD_KERNEL_CMDLINE := androidboot.selinux=permissive + +# inherit from common mt8127 +-include device/amazon/mt8127-common/BoardConfigCommon.mk + +# inherit from the proprietary version +-include vendor/amazon/mt8127-common/BoardConfigVendor.mk + +# Assert +TARGET_OTA_ASSERT_DEVICE := austin + +TARGET_BOOTLOADER_BOARD_NAME := austin + +# TWRP +DEVICE_RESOLUTION := 600x1024 diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..cdc9436 --- /dev/null +++ b/cm.mk @@ -0,0 +1,13 @@ +# Inherit device configuration for mt8127-common +$(call inherit-product, device/amazon/mt8127-common/cm.mk) + +# Inherit device configuration +$(call inherit-product, device/amazon/austin/full_austin.mk) + +PRODUCT_CHARACTERISTICS := tablet + +TARGET_SCREEN_WIDTH := 600 +TARGET_SCREEN_HEIGHT := 1024 + +PRODUCT_NAME := cm_austin +PRODUCT_RELEASE_NAME := austin diff --git a/device.mk b/device.mk new file mode 100755 index 0000000..00604bc --- /dev/null +++ b/device.mk @@ -0,0 +1,9 @@ +$(call inherit-product, device/amazon/mt8127-common/mt8127-common.mk) + +$(call inherit-product-if-exists, vendor/amazon/austin/austin-vendor.mk) + + + + + + diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..8767f58 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,56 @@ +#!/bin/bash +# +# Copyright (C) 2018 The LineageOS 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. + +set -e + +VENDOR=amazon +DEVICE_COMMON=austin + +# Load extractutils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi + +LINEAGE_ROOT="$MY_DIR"/../../.. + +HELPER="$LINEAGE_ROOT"/vendor/cm/build/tools/extract_utils.sh +if [ ! -f "$HELPER" ]; then + echo "Unable to find helper script at $HELPER" + exit 1 +fi +. "$HELPER" + +if [ $# -eq 0 ]; then + SRC=adb +else + if [ $# -eq 1 ]; then + SRC=$1 + else + echo "$0: bad number of arguments" + echo "" + echo "usage: $0 [PATH_TO_EXPANDED_ROM]" + echo "" + echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from" + echo "the device using adb pull." + exit 1 + fi +fi + +# Initialize the helper +setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true + +extract "$MY_DIR"/proprietary-files.txt "$SRC" + +"$MY_DIR"/setup-makefiles.sh diff --git a/full_austin.mk b/full_austin.mk new file mode 100644 index 0000000..8186557 --- /dev/null +++ b/full_austin.mk @@ -0,0 +1,13 @@ +# Inherit from hardware-specific part of the product configuration +$(call inherit-product, device/amazon/austin/device.mk) + +# Inherit from the common Open Source product configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) + +PRODUCT_DEVICE := austin +PRODUCT_NAME := full_austin +PRODUCT_BRAND := google +PRODUCT_MODEL := Fire +PRODUCT_MANUFACTURER := amzn +PRODUCT_RESTRICT_VENDOR_FILES := false + diff --git a/proprietary-files.txt b/proprietary-files.txt new file mode 100644 index 0000000..c786a18 --- /dev/null +++ b/proprietary-files.txt @@ -0,0 +1,20 @@ +etc/.tp/thermal.policy.conf +lib/libasp.so +lib/libcjson.so +vendor/etc/audio-algorithms/AFE.cfg +vendor/etc/audio-algorithms/coefs_FilterBank.cfg +vendor/etc/audio-algorithms/EQ_2048.cfg +vendor/etc/audio-algorithms/MBCL.cfg +vendor/smartvolume/austin/anlg_dock_headset.csv +vendor/smartvolume/austin/aux_digital.csv +vendor/smartvolume/austin/bt_a2dp_headphones.csv +vendor/smartvolume/austin/bt_a2dp_speaker.csv +vendor/smartvolume/austin/bt_a2dp.csv +vendor/smartvolume/austin/bt_sco_carkit.csv +vendor/smartvolume/austin/bt_sco_headset.csv +vendor/smartvolume/austin/bt_sco.csv +vendor/smartvolume/austin/default.csv +vendor/smartvolume/austin/dgtl_dock_headeset.csv +vendor/smartvolume/austin/speaker.csv +vendor/smartvolume/austin/wired_headphone.csv +vendor/smartvolume/austin/wired_headset.csv diff --git a/recovery.fstab b/recovery.fstab new file mode 100644 index 0000000..9a0ae4c --- /dev/null +++ b/recovery.fstab @@ -0,0 +1,12 @@ +# mount point fstype device [device2] + +/dev/block/platform/mtk-msdc.0/by-name/boot /boot emmc defaults defaults +/dev/block/platform/mtk-msdc.0/by-name/UBOOT /UBOOT emmc defaults defaults +/dev/block/platform/mtk-msdc.0/by-name/TEE1 /TEE1 emmc defaults defaults +/dev/block/platform/mtk-msdc.0/by-name/cache /cache ext4 defaults defaults +/dev/block/platform/mtk-msdc.0/by-name/userdata /data ext4 defaults defaults,length=-16385 +/dev/block/platform/mtk-msdc.0/by-name/MISC /misc emmc defaults defaults +/dev/block/platform/mtk-msdc.0/by-name/recovery /recovery emmc defaults defaults +/dev/block/mmcblk0boot0 /boot0 emmc defaults defaults +/dev/block/platform/mtk-msdc.0/by-name/system /system ext4 defaults defaults + diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..872a6a0 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# Copyright (C) 2017 The LineageOS 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. + +set -e + +VENDOR=amazon +DEVICE_COMMON=austin + +# Load extractutils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi + +LINEAGE_ROOT="$MY_DIR"/../../.. + +HELPER="$LINEAGE_ROOT"/vendor/cm/build/tools/extract_utils.sh +if [ ! -f "$HELPER" ]; then + echo "Unable to find helper script at $HELPER" + exit 1 +fi +. "$HELPER" + +# Initialize the helper +setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true + +# Copyright headers and guards +write_headers "austin" + +# The standard blobs +write_makefiles "$MY_DIR"/proprietary-files.txt + +# Done +write_footers diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..12d13c0 --- /dev/null +++ b/system.prop @@ -0,0 +1,71 @@ +ro.sf.lcd_density=160 + +#ADB on recovery +service.adb.root=1 + +#support opengles 2.0 3.0 is 196608 +ro.opengles.version=131072 + +ro.audio.silent=0 + +# MTK, Infinity, 20090720 { +wifi.interface=wlan0 +# MTK, Infinity, 20090720 } + +# MTK, mtk03034, 20101210 { +ro.mediatek.wlan.wsc=1 +# MTK, mtk03034 20101210} +# MTK, mtk03034, 20110318 { +ro.mediatek.wlan.p2p=1 +# MTK, mtk03034 20110318} + +# MTK, mtk03034, 20101213 { +mediatek.wlan.ctia=0 +# MTK, mtk03034 20101213} + +# +wifi.tethering.interface=ap0 +# + +wifi.direct.interface=p2p0 + +# Switching Menu of Mass storage and MTP +ro.sys.usb.storage.type=mtp,mass_storage + +# USB BICR function +ro.sys.usb.bicr=yes + +# USB Charge only function +ro.sys.usb.charging.only=yes + +# smartvolume +ro.smartvolume.config=/system/vendor/smartvolume/austin/ +ro.config.notification_sound=Verso.ogg + +ro.sf.hwrotation=0 + +# maximum backup size for factory reset whitelist in kB +ro.recovery.wl.maxstore=524288 + +# uart kernel log +persist.sys.uart.klog.enable=n + +# Audio Rotation +ro.audio.monitorRotation=true + +# wifi rssi->bar thresholds +persist.wifi.rssi.thresholds=-92,-77,-68,-63 + +# no RIL +keyguard.no_require_sim=1 +ro.radio.use-ppp=no +ro.config.nocheckin=yes +ro.radio.noril=1 +ro.carrier=wifi-only +persist.radio.noril=1 + +# set default USB configuration +persist.sys.usb.config=mtp,adb + +# add support for USB storage type +persist.sys.isUsbOtgEnabled=1 diff --git a/vendorsetup.sh b/vendorsetup.sh new file mode 100644 index 0000000..cfb5ab9 --- /dev/null +++ b/vendorsetup.sh @@ -0,0 +1 @@ +add_lunch_combo cm_austin-userdebug