Compare commits
15 Commits
Author | SHA1 | Date |
---|---|---|
Simon1511 | 71f9aae3e6 | 6 months ago |
Jenna | e6f3a83643 | 6 months ago |
Simon1511 | d9b0fbf5f9 | 9 months ago |
Simon1511 | 0f7eeb4f8a | 10 months ago |
Simon1511 | 47b94c89d4 | 11 months ago |
Tim Zimmermann | a807384551 | 11 months ago |
Simon1511 | 3730084bd5 | 2 years ago |
Simon1511 | bfa0208316 | 2 years ago |
Simon1511 | 03323993d0 | 2 years ago |
LuK1337 | 970349981e | 2 years ago |
Sal Savage | 98761a2706 | 2 years ago |
Simon1511 | 9ee70e2659 | 2 years ago |
Simon1511 | 6ec48526c1 | 2 years ago |
Simon1511 | 6cd48d7567 | 2 years ago |
Simon1511 | d0227342e8 | 2 years ago |
@ -1,63 +1,21 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Copyright (C) 2018-2020 The LineageOS Project |
# Copyright (C) 2016 The CyanogenMod Project |
||||||
|
# Copyright (C) 2017-2023 The LineageOS Project |
||||||
# |
# |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
# |
# |
||||||
|
|
||||||
set -e |
# If we're being sourced by the common script that we called, |
||||||
|
# stop right here. No need to go down the rabbit hole. |
||||||
DEVICE_COMMON=a52q |
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then |
||||||
VENDOR=samsung |
return |
||||||
|
|
||||||
# Load extractutils and do some sanity checks |
|
||||||
MY_DIR="${BASH_SOURCE%/*}" |
|
||||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi |
|
||||||
|
|
||||||
ANDROID_ROOT="${MY_DIR}/../../.." |
|
||||||
|
|
||||||
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" |
|
||||||
if [ ! -f "${HELPER}" ]; then |
|
||||||
echo "Unable to find helper script at ${HELPER}" |
|
||||||
exit 1 |
|
||||||
fi |
|
||||||
source "${HELPER}" |
|
||||||
|
|
||||||
# Default to sanitizing the vendor folder before extraction |
|
||||||
CLEAN_VENDOR=true |
|
||||||
|
|
||||||
KANG= |
|
||||||
SECTION= |
|
||||||
|
|
||||||
while [ "${#}" -gt 0 ]; do |
|
||||||
case "${1}" in |
|
||||||
-n | --no-cleanup ) |
|
||||||
CLEAN_VENDOR=false |
|
||||||
;; |
|
||||||
-k | --kang ) |
|
||||||
KANG="--kang" |
|
||||||
;; |
|
||||||
-s | --section ) |
|
||||||
SECTION="${2}"; shift |
|
||||||
CLEAN_VENDOR=false |
|
||||||
;; |
|
||||||
* ) |
|
||||||
SRC="${1}" |
|
||||||
;; |
|
||||||
esac |
|
||||||
shift |
|
||||||
done |
|
||||||
|
|
||||||
if [ -z "${SRC}" ]; then |
|
||||||
SRC="adb" |
|
||||||
fi |
fi |
||||||
|
|
||||||
# Initialize the helper |
set -e |
||||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}" |
|
||||||
|
|
||||||
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" |
|
||||||
|
|
||||||
# Fix proprietary blobs |
export DEVICE=a52q |
||||||
BLOB_ROOT="$ANDROID_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary |
export DEVICE_COMMON=sm7125-common |
||||||
|
export VENDOR=samsung |
||||||
|
|
||||||
"${MY_DIR}/setup-makefiles.sh" |
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" |
||||||
|
@ -0,0 +1,22 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<!-- |
||||||
|
/** |
||||||
|
* Copyright (c) 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. |
||||||
|
*/ |
||||||
|
--> |
||||||
|
<resources> |
||||||
|
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL--> |
||||||
|
<string name="def_device_name_simple">Galaxy A52 4G</string> |
||||||
|
</resources> |
@ -1,44 +1,21 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Copyright (C) 2017-2021 The LineageOS Project |
# Copyright (C) 2016 The CyanogenMod Project |
||||||
|
# Copyright (C) 2017-2023 The LineageOS Project |
||||||
# |
# |
||||||
# SPDX-License-Identifier: Apache-2.0 |
# SPDX-License-Identifier: Apache-2.0 |
||||||
# |
# |
||||||
|
|
||||||
set -e |
# If we're being sourced by the common script that we called, |
||||||
|
# stop right here. No need to go down the rabbit hole. |
||||||
DEVICE_COMMON=a52q |
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then |
||||||
VENDOR=samsung |
return |
||||||
|
|
||||||
# Load extractutils and do some sanity checks |
|
||||||
MY_DIR="${BASH_SOURCE%/*}" |
|
||||||
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi |
|
||||||
|
|
||||||
ANDROID_ROOT="${MY_DIR}/../../.." |
|
||||||
|
|
||||||
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" |
|
||||||
if [ ! -f "${HELPER}" ]; then |
|
||||||
echo "Unable to find helper script at ${HELPER}" |
|
||||||
exit 1 |
|
||||||
fi |
fi |
||||||
source "${HELPER}" |
|
||||||
|
|
||||||
# Initialize the helper |
set -e |
||||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true |
|
||||||
|
|
||||||
# Warning headers and guards |
|
||||||
write_headers "a52q" |
|
||||||
|
|
||||||
write_makefiles "${MY_DIR}/proprietary-files.txt" true |
|
||||||
|
|
||||||
################################################################################################### |
|
||||||
# CUSTOM PART START # |
|
||||||
################################################################################################### |
|
||||||
|
|
||||||
OUTDIR=vendor/$VENDOR/$DEVICE_COMMON |
export DEVICE=a52q |
||||||
|
export DEVICE_COMMON=sm7125-common |
||||||
|
export VENDOR=samsung |
||||||
|
|
||||||
################################################################################################### |
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" |
||||||
# CUSTOM PART END # |
|
||||||
################################################################################################### |
|
||||||
# Done |
|
||||||
write_footers |
|
||||||
|
@ -0,0 +1,5 @@ |
|||||||
|
# Bluetooth |
||||||
|
bluetooth.device.default_name=Galaxy A52 4G |
||||||
|
|
||||||
|
# Fingerprint |
||||||
|
ro.vendor.fingerprint.sensor_location=540|2137|119 |
Loading…
Reference in new issue