mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: Merge common thing and cleanup
Change-Id: I05c133732980792d49e0495c343e39f8a58b11f9 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
56c3102c14
commit
6fb48f8f49
55 changed files with 38 additions and 1715 deletions
|
|
@ -1,7 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
ifneq ($(filter a20, $(TARGET_DEVICE)),)
|
||||
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
|
||||
endif
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.keymaster</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>4.0</version>
|
||||
<interface>
|
||||
<name>IKeymasterDevice</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
||||
|
|
@ -1,123 +0,0 @@
|
|||
## --------------- Part-I : Configuration for Phone HW ----------------------------##
|
||||
####################################################################################
|
||||
# I-1) Clock Source Information (AP direct 26MHz)
|
||||
####################################################################################
|
||||
## Clock option for 26MHz PLL (0x12)
|
||||
## Clock option for 19.2MHz PLL (0x11)
|
||||
FW_CFG_CLK_SPEED=0x12
|
||||
####################################################################################
|
||||
|
||||
|
||||
## --------------- Part-II : Configuration for Chip / FW -------------------------##
|
||||
####################################################################################
|
||||
# II-1) FW base address :
|
||||
####################################################################################
|
||||
## FW Base Address for SEN82 (0x2000)
|
||||
FW_BASE_ADDRESS=0x2000
|
||||
####################################################################################
|
||||
# II-2) Timing parameter
|
||||
####################################################################################
|
||||
# WAKEUP_DELAY for eSE Model
|
||||
# (Old F/W) 20ms : UICC, 80ms : eSE
|
||||
# (After Star Model) 20ms : UICC, 20ms : eSE
|
||||
#WAKEUP_DELAY=20
|
||||
####################################################################################
|
||||
# II-3) Firmware path
|
||||
####################################################################################
|
||||
## F/W image for S3NRN82
|
||||
#FW_IMAGE="/vendor/firmware/nfc/sec_s3nrn82_firmware.bin"
|
||||
|
||||
# for single SKU
|
||||
FW_DIR_PATH="/vendor/firmware/nfc/"
|
||||
FW_FILE_NAME="sec_s3nrn82_firmware.bin"
|
||||
|
||||
####################################################################################
|
||||
# II-4) RF Register path
|
||||
####################################################################################
|
||||
## RF Register for S3NRN82
|
||||
#RFREG_FILE="/vendor/etc/nfc/sec_s3nrn82_rfreg.bin"
|
||||
|
||||
RF_DIR_PATH="/vendor/etc/nfc/"
|
||||
RF_FILE_NAME="sec_s3nrn82_rfreg.bin"
|
||||
## --------------- Part-III : Configuration for MW --------------------------------##
|
||||
####################################################################################
|
||||
# III-1) Driver path
|
||||
####################################################################################
|
||||
## Power driver
|
||||
POWER_DRIVER="/dev/sec-nfc"
|
||||
## Transport driver
|
||||
TRANS_DRIVER="/dev/sec-nfc"
|
||||
|
||||
|
||||
####################################################################################
|
||||
# III-2) Trace Level
|
||||
####################################################################################
|
||||
## TRACE_LEVEL (0: only err, 1: and debug, 2: trace also)
|
||||
## DATA TRACE level (0: not display, 1: simply, 2: all of data trace)
|
||||
TRACE_LEVEL=2
|
||||
DATA_TRACE=2
|
||||
|
||||
####################################################################################
|
||||
# III-3) NFC Sleep Timing
|
||||
####################################################################################
|
||||
# Set wait time to enter CLF sleep mode
|
||||
SLEEP_TIMEOUT=1000
|
||||
|
||||
|
||||
####################################################################################
|
||||
# III-4) F/W Update Option
|
||||
# F/W Update Option
|
||||
# 0 : Download for different version
|
||||
# 1 : Download for upper version
|
||||
# 2 : Force Download
|
||||
####################################################################################
|
||||
# 0 : Default value is "Download for different version"
|
||||
FW_UPDATE_MODE=0
|
||||
####################################################################################
|
||||
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Configure the default NfcA/IsoDep techology and protocol route. Can be
|
||||
# either a secure element (e.g. 0x02) or the host (0x00)
|
||||
DEFAULT_ROUTE=0x03
|
||||
###############################################################################
|
||||
# Configure the single default SE to use. The default is to use the first
|
||||
# SE that is detected by the stack. This value might be used when the phone
|
||||
# supports multiple SE but you want to force it to use one of them
|
||||
DEFAULT_OFFHOST_ROUTE=0x02
|
||||
|
||||
###############################################################################
|
||||
# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1.
|
||||
# PRESENCE_CHECK_ALGORITHM=0 : [default] Automatic select for below 4 method.
|
||||
# PRESENCE_CHECK_ALGORITHM=1 : Read Empty I block.
|
||||
# PRESENCE_CHECK_ALGORITHM=2 : Sleep/Wakeup Command
|
||||
# PRESENCE_CHECK_ALGORITHM=3 : Read binary for CH0(K version method)
|
||||
# PRESENCE_CHECK_ALGORITHM=4 : Read binary for CH3
|
||||
# PRESENCE_CHECK_ALGORITHM=5 : ACK/NACK
|
||||
# Default : No use (AUTO)
|
||||
# For China Region : Use Method 3
|
||||
###############################################################################
|
||||
PRESENCE_CHECK_ALGORITHM=5
|
||||
|
||||
###############################################################################
|
||||
# Vendor Specific Proprietary Protocol & Discovery Configuration
|
||||
# Set to 0xFF if unsupported
|
||||
# byte[0] NCI_PROTOCOL_18092_ACTIVE
|
||||
# byte[1] NCI_PROTOCOL_B_PRIME
|
||||
# byte[2] NCI_PROTOCOL_DUAL
|
||||
# byte[3] NCI_PROTOCOL_15693
|
||||
# byte[4] NCI_PROTOCOL_KOVIO
|
||||
# byte[5] NCI_PROTOCOL_MIFARE
|
||||
# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
|
||||
# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
|
||||
# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
|
||||
NFA_PROPRIETARY_CFG={00, 81, 82, 80, 8A, 81, 70, 74, F4}
|
||||
###############################################################################
|
||||
# Extended APDU length for ISO_DEP. If not supported default length is 261
|
||||
# CHECK in VTS Test case
|
||||
# ISO_DEP_MAX_TRANSCEIVE=0xFEFF
|
||||
ISO_DEP_MAX_TRANSCEIVE=261
|
||||
|
||||
############### end of config ##############################
|
||||
|
|
@ -5,25 +5,9 @@ $(call inherit-product, device/samsung/universal7885-common/universal7885-common
|
|||
|
||||
$(call inherit-product, vendor/samsung/a20/a20-vendor.mk)
|
||||
|
||||
# Keymaster
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.keymaster@4.0-service.samsung \
|
||||
libkeymaster4_1support.vendor
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/android.hardware.keymaster@4.0-service.samsung.xml:$(TARGET_COPY_OUT_VENDOR)/etc/vintf/manifest/android.hardware.keymaster@4.0-service.samsung.xml
|
||||
|
||||
# Image
|
||||
#TARGET_PREBUILT_KERNEL := device/samsung/a20e/Image
|
||||
#PRODUCT_COPY_FILES += \
|
||||
$(TARGET_PREBUILT_KERNEL):kernel
|
||||
|
||||
# NFC
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-sec-vendor.conf
|
||||
|
||||
# Rootdir
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.exynos7884B \
|
||||
init.target.rc \
|
||||
init.baseband.rc
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2019 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.
|
||||
#
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
set -e
|
||||
|
||||
export DEVICE=a20
|
||||
export DEVICE_COMMON=universal7885-common
|
||||
export VENDOR=samsung
|
||||
|
||||
export DEVICE_BRINGUP_YEAR=2020
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
||||
|
|
@ -16,11 +16,3 @@ PRODUCT_NAME := full_a20
|
|||
PRODUCT_MODEL := SM-A205F
|
||||
PRODUCT_BRAND := samsung
|
||||
PRODUCT_MANUFACTURER := samsung
|
||||
|
||||
PRODUCT_GMS_CLIENTID_BASE := android-samsung
|
||||
|
||||
# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop
|
||||
BUILD_FINGERPRINT := "google/redfin/redfin:11/RQ3A.210805.001.A1/7474174:user/release-keys"
|
||||
|
||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
PRIVATE_BUILD_DESC="redfin-user 11 RQ3A.210805.001.A1 7474174 release-keys"
|
||||
|
|
|
|||
|
|
@ -40,6 +40,12 @@
|
|||
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">@*android:string/config_mainBuiltInDisplayCutout</string>
|
||||
<!-- If supported, are dreams enabled? (by default) -->
|
||||
<bool name="config_dreamsEnabledByDefault">false</bool>
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
<bool name="config_displayBlanksAfterDoze">false</bool>
|
||||
<bool name="config_dozePulsePickup">true</bool>
|
||||
<bool name="config_supportDoubleTapWake">true</bool>
|
||||
<bool name="config_enableBurnInProtection">true</bool>
|
||||
<bool name="config_allowAutoBrightnessWhileDozing">true</bool>
|
||||
|
||||
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
|
||||
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
/dev/block/platform/13500000.dwmmc0/by-name/system /system ext4 ro,errors=panic wait,recoveryonly
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/vendor /vendor ext4 ro,errors=panic wait,recoveryonly
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier,reserve_root=32768,resgid=5678 wait,check,forceencrypt=footer,quota,reservedsize=128m,length=-20480
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/recovery /recovery emmc defaults defaults
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,nofail
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/misc /misc emmc defaults defaults
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/hidden /preload ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic voldmanaged=preload:auto,check
|
||||
/devices/platform/13550000.dwmmc2/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard:auto
|
||||
/devices/platform/13600000.usb/13600000.dwc3* auto auto defaults voldmanaged=usb:auto
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := fstab.exynos7884B
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.target.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.baseband.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/$(LOCAL_MODULE)
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init
|
||||
include $(BUILD_PREBUILT)
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
# system and vendor partition will be early-mounted by kernel
|
||||
# /dev/block/platform/13500000.dwmmc0/by-name/system /system ext4 ro wait
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check,encryptable=footer,quota,reservedsize=128M,length=-20480
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/efs /mnt/vendor/efs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic wait,check
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/misc /misc emmc defaults defaults
|
||||
|
||||
# VOLD :: fstab.a20e
|
||||
/dev/block/platform/13500000.dwmmc0/by-name/hidden /preload ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic voldmanaged=preload:auto,check
|
||||
/devices/platform/13550000.dwmmc2/mmc_host/mmc1* auto vfat defaults voldmanaged=sdcard:auto
|
||||
/devices/platform/13600000.usb/13600000.dwc3* auto auto defaults voldmanaged=usb:auto
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
on early-init
|
||||
mkdir /mnt/vendor/cpefs 0771 radio system
|
||||
|
||||
on init
|
||||
symlink /dev/block/platform/13500000.dwmmc0/by-name/radio /dev/mbin0
|
||||
restorecon /dev/mbin0
|
||||
|
||||
write /proc/sys/net/core/netdev_max_backlog 5000
|
||||
|
||||
write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 6
|
||||
write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 6
|
||||
|
||||
on fs && property:ro.boot.cpefs_wp=0
|
||||
wait /dev/block/platform/13500000.dwmmc0/by-name/cpefs
|
||||
mount ext4 /dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic
|
||||
mount none /mnt/vendor/cpefs /cpefs bind
|
||||
restorecon_recursive /mnt/vendor/cpefs
|
||||
chown radio system /mnt/vendor/cpefs
|
||||
chmod 0771 /mnt/vendor/cpefs
|
||||
|
||||
on fs && property:ro.boot.cpefs_wp=1
|
||||
wait /dev/block/platform/13500000.dwmmc0/by-name/cpefs
|
||||
mount ext4 /dev/block/platform/13500000.dwmmc0/by-name/cpefs /mnt/vendor/cpefs ro nosuid nodev noatime noauto_da_alloc,discard,journal_checksum,data=ordered,errors=panic
|
||||
mount none /mnt/vendor/cpefs /cpefs bind
|
||||
restorecon_recursive /mnt/vendor/cpefs
|
||||
chown radio system /mnt/vendor/cpefs
|
||||
chmod 0771 /mnt/vendor/cpefs
|
||||
|
||||
on post-fs-data
|
||||
chown radio radio sys/devices/virtual/misc/multipdp/waketime
|
||||
chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state
|
||||
chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state
|
||||
|
||||
# /efs/factory.prop for Dual / Single SIM settings
|
||||
chown radio radio /mnt/vendor/efs/factory.prop
|
||||
chmod 0600 /mnt/vendor/efs/factory.prop
|
||||
|
||||
# Modem boot daemon
|
||||
service cpboot-daemon /vendor/bin/cbd -d -tss310 -bm -mm -P platform/13500000.dwmmc0/by-name/radio
|
||||
class main
|
||||
user root
|
||||
group radio cache inet misc audio sdcard_rw log sdcard_r shell system
|
||||
seclabel u:r:cbd:s0
|
||||
|
||||
on property:ril.clatd.v4-rmnet0=up
|
||||
write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet0/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet1=up
|
||||
write /sys/class/net/rmnet1/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet1/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet2=up
|
||||
write /sys/class/net/rmnet2/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet2/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet3=up
|
||||
write /sys/class/net/rmnet3/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet3/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet4=up
|
||||
write /sys/class/net/rmnet4/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet4/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet5=up
|
||||
write /sys/class/net/rmnet5/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet5/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet6=up
|
||||
write /sys/class/net/rmnet6/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet6/queues/rx-0/rps_cpus 2
|
||||
|
||||
on property:ril.clatd.v4-rmnet7=up
|
||||
write /sys/class/net/rmnet7/queues/rx-0/rps_cpus 4
|
||||
write /sys/class/net/v4-rmnet7/queues/rx-0/rps_cpus 2
|
||||
|
||||
# SS/DS configuration
|
||||
on property:ro.vendor.multisim.simslotcount=*
|
||||
write /sys/module/modem_ctrl_ss310ap/parameters/ds_detect ${ro.vendor.multisim.simslotcount}
|
||||
|
||||
on property:ro.vendor.multisim.simslotcount=1
|
||||
setprop persist.radio.multisim.config ss
|
||||
|
||||
on property:ro.vendor.multisim.simslotcount=2
|
||||
setprop persist.radio.multisim.config dsds
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
service bootlogd /system/bin/logcat -b all -f /cache/boot.log
|
||||
user root
|
||||
group root
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on early-init
|
||||
rm /cache/boot.log
|
||||
start bootlogd
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
stop bootlogd
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
on init
|
||||
# Reactivation Lock
|
||||
symlink /dev/block/platform/13500000.dwmmc0/by-name/steady /dev/block/steady
|
||||
|
||||
# Google FRP solution
|
||||
symlink /dev/block/platform/13500000.dwmmc0/by-name/persistent /dev/block/persistent
|
||||
|
||||
on boot
|
||||
# Permissions for NAD
|
||||
symlink /dev/block/platform/13500000.dwmmc0/by-name/nad_refer /dev/block/NAD_REFER
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2019 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
|
||||
|
||||
# Required!
|
||||
export DEVICE=a20e
|
||||
export DEVICE_COMMON=universal7885-common
|
||||
export VENDOR=samsung
|
||||
|
||||
export DEVICE_BRINGUP_YEAR=2020
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
VENDOR=$(cat device/samsung/universal7885-common/vendor_name)
|
||||
|
||||
if [ ! VENDOR ]; then
|
||||
exit 1;
|
||||
fi
|
||||
# Generate AndroidProducts.mk
|
||||
echo "# Auto-Generated by device/samsung/a20/setup.sh" > device/samsung/a20/AndroidProducts.mk
|
||||
echo "PRODUCT_MAKEFILES += \$(LOCAL_DIR)/"$VENDOR"_a20.mk" >> device/samsung/a20/AndroidProducts.mk
|
||||
|
|
|
|||
Loading…
Reference in a new issue