aboutsummaryrefslogtreecommitdiff
path: root/regen-vendor.sh
blob: 472be4a81540043e5e90a10ff940506ad2a0d48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/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.
#

_output_file=$2
function header() {
    sed -i "1s|^|$1\n|" $_output_file
}

BUILD_FINGERPRINT=$(grep BUILD_FINGERPRINT lineage_obiwan.mk | cut -d\" -f2)

VENDOR_SKIP_FILES_DEVICE=(
    # Audio configs
    "etc/audio/audio_policy_configuration.xml"
    "etc/audio_policy_configuration.xml"
    "etc/audio_policy_configuration_ZS661KS.xml"

    # Demo
    "etc/DemoContent.txt"
    "etc/demo-video-screensaver.mp4"
    "etc/md5CheckValue.md5"

    # SLA Dual Network
    "app/slaservice/slaservice.apk"
    "bin/hw/vendor.qti.sla.service@1.0-service"
    "bin/slad"
    "etc/init/slad.rc"
    "etc/init/vendor.qti.sla.service@1.0-service.rc"
    "etc/sla/slad.conf"
    "etc/sla/slad_data_iface.conf"
    "etc/sla/slad_num_iface.conf"
    "etc/sla/slmAppUseCase.conf"
    "etc/sla/slm_supported_list.xml"
    "lib64/hw/vendor.qti.sla.service@1.0-impl.so"
    "lib64/vendor.qti.sla.service@1.0.so"
    "lib/hw/vendor.qti.sla.service@1.0-impl.so"
    "lib/vendor.qti.sla.service@1.0.so"

    # Misc hals
    "lib64/vendor.ims.airtrigger@1.0.so"
    "lib64/vendor.ims.airtrigger@1.1.so"
    "lib64/vendor.ims.airtrigger@1.2.so"
    "etc/init/vendor.ims.airtrigger@1.2-service.rc"
    "bin/hw/vendor.ims.airtrigger@1.2-service"
    "lib64/vendor.ims.colortemp@1.0.so"
    "etc/init/vendor.ims.colortemp@1.0-service.rc"
    "bin/hw/vendor.ims.colortemp@1.0-service"
    "lib64/vendor.ims.glovemode@1.0.so"
    "etc/init/vendor.ims.glovemode@1.0-service.rc"
    "bin/hw/vendor.ims.glovemode@1.0-service"
    "lib64/vendor.ims.twinviewdock@1.0.so"
    "etc/init/vendor.ims.twinviewdock@1.0-service.rc"
    "bin/hw/vendor.ims.twinviewdock@1.0-service"
    "lib64/vendor.ims.wifiantennamode@1.0.so"
    "etc/init/vendor.ims.wifiantennamode@1.0-service.rc"
    "bin/hw/vendor.ims.wifiantennamode@1.0-service"
    "lib64/vendor.ims.zenmotion@1.0.so"
    "etc/init/vendor.ims.zenmotion@1.0-service.rc"
    "bin/hw/vendor.ims.zenmotion@1.0-service"
    "lib64/hw/vendor.qti.hardware.auralight@1.0-impl.so"
    "lib64/vendor.qti.hardware.auralight@1.0.so"
    "lib/hw/vendor.qti.hardware.auralight@1.0-impl.so"
    "lib/vendor.qti.hardware.auralight@1.0.so"
    "etc/init/vendor.qti.hardware.auralight@1.0-service.rc"
    "bin/hw/vendor.qti.hardware.auralight@1.0-service"
    "lib64/vendor.qti.hardware.ifaa@2.0.so"
    "etc/init/vendor.qti.hardware.ifaa@2.0-service.rc"
    "bin/hw/vendor.qti.hardware.ifaa@2.0-service"
    "etc/init/vendor.ozoaudio.media.c2@1.0-service.rc"
    "bin/hw/vendor.ozoaudio.media.c2@1.0-service"
    "lib64/hw/vendor.asus.hardware.vibratorcontrol@1.0-impl.so"
    "lib64/vendor.asus.hardware.vibratorcontrol@1.0.so"
    "lib/hw/vendor.asus.hardware.vibratorcontrol@1.0-impl.so"
    "lib/vendor.asus.hardware.vibratorcontrol@1.0.so"
    "etc/init/vendor.asus.hardware.vibratorcontrol@1.0-service.rc"
    "bin/hw/vendor.asus.hardware.vibratorcontrol@1.0-service"
    "lib64/hw/android.hardware.vibrator@1.0-impl.so"
    "lib/hw/android.hardware.vibrator@1.0-impl.so"
    "etc/init/android.hardware.vibrator@1.0-service.rc"
    "bin/hw/android.hardware.vibrator@1.0-service"
)

. ../sm8250-common/regen-vendor.sh "$@"

header "# All blobs, unless pinned, are extracted from:\n# $BUILD_FINGERPRINT"