micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2019 The LineageOS Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | set -e |
| 18 | |
| 19 | # Load extract_utils and do some sanity checks |
| 20 | MY_DIR="${BASH_SOURCE%/*}" |
| 21 | if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi |
| 22 | |
| 23 | OMNI_ROOT="$MY_DIR"/../../.. |
| 24 | |
| 25 | HELPER="$OMNI_ROOT"/vendor/omni/build/tools/extract_utils.sh |
| 26 | |
| 27 | if [ ! -f "$HELPER" ]; then |
| 28 | echo "Unable to find helper script at $HELPER" |
| 29 | exit 1 |
| 30 | fi |
| 31 | . "$HELPER" |
| 32 | |
| 33 | if [ -z "$1" ]; then |
| 34 | echo "No input image supplied" |
| 35 | exit 1 |
| 36 | fi |
| 37 | |
| 38 | if [ -z "$2" ]; then |
| 39 | echo "No output filename supplied" |
| 40 | exit 1 |
| 41 | fi |
| 42 | |
| 43 | VENDOR_SKIP_FILES_COMMON=( |
| 44 | |
| 45 | # Asus setenforce |
| 46 | "bin/sar_setting" |
| 47 | "bin/savelogs.sh" |
| 48 | "bin/savelogmtp.sh" |
| 49 | "bin/setenforce.sh" |
| 50 | |
| 51 | # Audio |
| 52 | "etc/boot_sound/boot_sound_1.wav" |
| 53 | "etc/boot_sound/boot_sound_2.wav" |
| 54 | "etc/boot_sound/boot_sound_3.wav" |
| 55 | "etc/boot_sound/boot_sound_4.wav" |
| 56 | "etc/boot_sound/boot_sound_5.wav" |
| 57 | "etc/boot_sound/boot_sound_6.wav" |
| 58 | "etc/boot_sound/boot_sound_7.wav" |
| 59 | "etc/audio/audio_policy_configuration.xml" |
| 60 | "etc/audio_effects.xml" |
| 61 | "etc/audio_io_policy.conf" |
| 62 | "etc/audio_policy_configuration.xml" |
| 63 | "etc/audio_policy_configuration_ZS670KS.xml" |
| 64 | "etc/audio_policy_volumes.xml" |
| 65 | "etc/audio_policy_volumes_ZS670KS.xml" |
| 66 | "etc/audio_tuning_mixer.txt" |
| 67 | "etc/bluetooth_qti_audio_policy_configuration.xml" |
| 68 | "bin/hw/android.hardware.audio.service" |
| 69 | "etc/init/android.hardware.audio.service.rc" |
| 70 | "lib/android.hardware.audio.common-util.so" |
| 71 | "lib/android.hardware.audio.common@2.0-util.so" |
| 72 | "lib/android.hardware.audio.common@4.0-util.so" |
| 73 | "lib/android.hardware.audio.common@5.0-util.so" |
| 74 | "lib/android.hardware.audio.common@6.0-util.so" |
| 75 | "lib/hw/android.hardware.audio.effect@2.0-impl.so" |
| 76 | "lib/hw/android.hardware.audio.effect@4.0-impl.so" |
| 77 | "lib/hw/android.hardware.audio.effect@5.0-impl.so" |
| 78 | "lib/hw/android.hardware.audio.effect@6.0-impl.so" |
| 79 | "lib/hw/android.hardware.audio@2.0-impl.so" |
| 80 | "lib/hw/android.hardware.audio@4.0-impl.so" |
| 81 | "lib/hw/android.hardware.audio@5.0-impl.so" |
| 82 | "lib/hw/android.hardware.audio@6.0-impl.so" |
| 83 | "lib64/android.hardware.audio.common-util.so" |
| 84 | "lib64/android.hardware.audio.common@2.0-util.so" |
| 85 | "lib64/android.hardware.audio.common@4.0-util.so" |
| 86 | "lib64/android.hardware.audio.common@5.0-util.so" |
| 87 | "lib64/android.hardware.audio.common@6.0-util.so" |
| 88 | "lib64/hw/android.hardware.audio.effect@2.0-impl.so" |
| 89 | "lib64/hw/android.hardware.audio.effect@4.0-impl.so" |
| 90 | "lib64/hw/android.hardware.audio.effect@5.0-impl.so" |
| 91 | "lib64/hw/android.hardware.audio.effect@6.0-impl.so" |
| 92 | "lib64/hw/android.hardware.audio@2.0-impl.so" |
| 93 | "lib64/hw/android.hardware.audio@4.0-impl.so" |
| 94 | "lib64/hw/android.hardware.audio@5.0-impl.so" |
| 95 | "lib64/hw/android.hardware.audio@6.0-impl.so" |
| 96 | "lib/hw/audio.primary.default.so" |
| 97 | "lib64/hw/audio.primary.default.so" |
| 98 | "lib/libeffects.so" |
| 99 | "lib/libeffectsconfig.so" |
| 100 | "lib64/libeffects.so" |
| 101 | "lib64/libeffectsconfig.so" |
| 102 | "lib/libnbaio_mono.so" |
| 103 | "lib64/libnbaio_mono.so" |
| 104 | |
| 105 | # Binary |
| 106 | "bin/acpi" |
| 107 | "bin/applypatch" |
| 108 | "bin/asus_mediaflag.sh" |
| 109 | "bin/base64" |
| 110 | "bin/basename" |
| 111 | "bin/boringssl_self_test32" |
| 112 | "bin/boringssl_self_test64" |
| 113 | "bin/btnvtool" |
| 114 | "bin/blockdev" |
| 115 | "bin/cal" |
| 116 | "bin/cat" |
| 117 | "bin/chattr" |
| 118 | "bin/chcon" |
| 119 | "bin/checkpoint_gc" |
| 120 | "bin/chgrp" |
| 121 | "bin/chmod" |
| 122 | "bin/chown" |
| 123 | "bin/chroot" |
| 124 | "bin/chrt" |
| 125 | "bin/cksum" |
| 126 | "bin/clear" |
| 127 | "bin/cmp" |
| 128 | "bin/comm" |
| 129 | "bin/cp" |
| 130 | "bin/cpio" |
| 131 | "bin/cut" |
| 132 | "bin/country.sh" |
| 133 | "bin/cplay" |
| 134 | "bin/csc/erase_batinfo.sh" |
| 135 | "bin/csc/restore_batinfo.sh" |
| 136 | "bin/cscclearlog.sh" |
| 137 | "bin/ddr_info.sh" |
| 138 | "bin/debug-diag" |
| 139 | "bin/date" |
| 140 | "bin/dd" |
| 141 | "bin/df" |
| 142 | "bin/diff" |
| 143 | "bin/dirname" |
| 144 | "bin/devmem" |
| 145 | "bin/dmesg" |
| 146 | "bin/dos2unix" |
| 147 | "bin/du" |
| 148 | "bin/echo" |
| 149 | "bin/egrep" |
| 150 | "bin/env" |
| 151 | "bin/expand" |
| 152 | "bin/expr" |
| 153 | "bin/fallocate" |
| 154 | "bin/false" |
| 155 | "bin/fastrpc_tests_apps" |
| 156 | "bin/fastrpc_tests_apps32" |
| 157 | "bin/firmware_version.sh" |
| 158 | "bin/fgrep" |
| 159 | "bin/file" |
| 160 | "bin/find" |
| 161 | "bin/flock" |
| 162 | "bin/fmt" |
| 163 | "bin/free" |
| 164 | "bin/fsync" |
| 165 | "bin/getconf" |
| 166 | "bin/getenforce" |
| 167 | "bin/getevent" |
| 168 | "bin/getprop" |
| 169 | "bin/groups" |
| 170 | "bin/gunzip" |
| 171 | "bin/gzip" |
| 172 | "bin/head" |
| 173 | "bin/hostname" |
| 174 | "bin/hwclock" |
| 175 | "bin/i2cdetect" |
| 176 | "bin/i2cdump" |
| 177 | "bin/i2cget" |
| 178 | "bin/i2cset" |
| 179 | "bin/iconv" |
| 180 | "bin/id" |
| 181 | "bin/ifconfig" |
| 182 | "bin/inotifyd" |
| 183 | "bin/insmod" |
| 184 | "bin/install" |
| 185 | "bin/install_key_server" |
| 186 | "bin/ionice" |
| 187 | "bin/iorenice" |
| 188 | "bin/irsc_util" |
| 189 | "bin/is_hdcp_valid" |
| 190 | "bin/kill" |
| 191 | "bin/killall" |
| 192 | "bin/ln" |
| 193 | "bin/load_policy" |
| 194 | "bin/log" |
| 195 | "bin/logname" |
| 196 | "bin/losetup" |
| 197 | "bin/ls" |
| 198 | "bin/lsattr" |
| 199 | "bin/lsmod" |
| 200 | "bin/lsof" |
| 201 | "bin/lspci" |
| 202 | "bin/lsusb" |
| 203 | "bin/md5sum" |
| 204 | "bin/microcom" |
| 205 | "bin/mkdir" |
| 206 | "bin/mkfifo" |
| 207 | "bin/mknod" |
| 208 | "bin/mkswap" |
| 209 | "bin/mktemp" |
| 210 | "bin/modinfo" |
| 211 | "bin/modprobe" |
| 212 | "bin/more" |
| 213 | "bin/mount" |
| 214 | "bin/mountpoint" |
| 215 | "bin/mv" |
| 216 | "bin/nc" |
| 217 | "bin/netcat" |
| 218 | "bin/netstat" |
| 219 | "bin/newfs_msdos" |
| 220 | "bin/nice" |
| 221 | "bin/nl" |
| 222 | "bin/nohup" |
| 223 | "bin/nproc" |
| 224 | "bin/nsenter" |
| 225 | "bin/od" |
| 226 | "bin/paste" |
| 227 | "bin/patch" |
| 228 | "bin/pgrep" |
| 229 | "bin/pidof" |
| 230 | "bin/pkill" |
| 231 | "bin/pmap" |
| 232 | "bin/prepare_asusdebug.sh" |
| 233 | "bin/printenv" |
| 234 | "bin/printf" |
| 235 | "bin/ps" |
| 236 | "bin/pwd" |
| 237 | "bin/qmi-framework-tests/qmi_test_mt_client_init_instance" |
| 238 | "bin/readlink" |
| 239 | "bin/readelf" |
| 240 | "bin/realpath" |
| 241 | "bin/renice" |
| 242 | "bin/restorecon" |
| 243 | "bin/rm" |
| 244 | "bin/rmdir" |
| 245 | "bin/rmmod" |
| 246 | "bin/runcon" |
| 247 | "bin/sed" |
| 248 | "bin/sendevent" |
| 249 | "bin/seq" |
| 250 | "bin/setenforce" |
| 251 | "bin/setprop" |
| 252 | "bin/setsid" |
| 253 | "bin/sha1sum" |
| 254 | "bin/sha224sum" |
| 255 | "bin/sha256sum" |
| 256 | "bin/sha384sum" |
| 257 | "bin/sha512sum" |
| 258 | "bin/sleep" |
| 259 | "bin/sort" |
| 260 | "bin/split" |
| 261 | "bin/start" |
| 262 | "bin/stat" |
| 263 | "bin/stop" |
| 264 | "bin/strings" |
| 265 | "bin/stty" |
| 266 | "bin/swapoff" |
| 267 | "bin/swapon" |
| 268 | "bin/sync" |
| 269 | "bin/sysctl" |
| 270 | "bin/tac" |
| 271 | "bin/tail" |
| 272 | "bin/tar" |
| 273 | "bin/taskset" |
| 274 | "bin/tee" |
| 275 | "bin/test" |
| 276 | "bin/test_BinMerge" |
| 277 | "bin/test_DualCamQcomAECali" |
| 278 | "bin/test_ShadingCaliForQcom" |
| 279 | "bin/test_aeCali" |
| 280 | "bin/test_afCaliDB" |
| 281 | "bin/test_chkCali" |
| 282 | "bin/test_diag" |
| 283 | "bin/test_genCali" |
| 284 | "bin/test_qafCali" |
| 285 | "bin/testapp_diag_senddata" |
| 286 | "bin/time" |
| 287 | "bin/timeout" |
| 288 | "bin/top" |
| 289 | "bin/touch" |
| 290 | "bin/touch_ver.sh" |
| 291 | "bin/tr" |
| 292 | "bin/true" |
| 293 | "bin/truncate" |
| 294 | "bin/tty" |
| 295 | "bin/ulimit" |
| 296 | "bin/umount" |
| 297 | "bin/uname" |
| 298 | "bin/uniq" |
| 299 | "bin/unix2dos" |
| 300 | "bin/unlink" |
| 301 | "bin/unshare" |
| 302 | "bin/uptime" |
| 303 | "bin/usleep" |
| 304 | "bin/uudecode" |
| 305 | "bin/uuencode" |
| 306 | "bin/uuidgen" |
| 307 | "bin/UTSdumpstate.sh" |
| 308 | "bin/UpdateAttestationKey" |
| 309 | "bin/UpdateDeviceName" |
| 310 | "bin/ubwcconvert" |
| 311 | "bin/ufs_info.sh" |
| 312 | "bin/vmstat" |
| 313 | "bin/watch" |
| 314 | "bin/wc" |
| 315 | "bin/which" |
| 316 | "bin/whoami" |
| 317 | "bin/WifiAntenna.sh" |
| 318 | "bin/WifiMac.sh" |
| 319 | "bin/WifiSARPower.sh" |
| 320 | "bin/xargs" |
| 321 | "bin/xxd" |
| 322 | "bin/yes" |
| 323 | "bin/zcat" |
| 324 | |
| 325 | # build.prop for Region specific |
| 326 | "build_eu.prop" |
| 327 | "build_ru_0.prop" |
| 328 | "build_ru_1.prop" |
| 329 | "default.prop" |
| 330 | |
micky387 | f7e957a | 2022-10-27 16:30:59 +0200 | [diff] [blame] | 331 | # Camera |
| 332 | "lib/vendor.qti.hardware.camera.postproc@1.0-service-impl.so" |
| 333 | |
micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 334 | # config.fs |
| 335 | "etc/fs_config_dirs" |
| 336 | "etc/fs_config_files" |
| 337 | "etc/group" |
| 338 | "etc/passwd" |
| 339 | |
| 340 | # Crypto and Km |
| 341 | "bin/hw/android.hardware.keymaster@3.0-service-qti" |
| 342 | "bin/hw/android.hardware.keymaster@4.1-service-qti" |
| 343 | "bin/hw/android.hardware.keymaster@4.0-strongbox-service-qti" |
| 344 | "lib/hw/android.hardware.keymaster@3.0-impl-qti.so" |
| 345 | "lib64/hw/android.hardware.keymaster@3.0-impl-qti.so" |
| 346 | "lib/libkeymasterdeviceutils.so" |
| 347 | "lib/libkeymasterprovision.so" |
| 348 | "lib/libkeymasterutils.so" |
| 349 | "lib/libqtikeymaster4.so" |
| 350 | "lib/libspcom.so" |
| 351 | "bin/hw/vendor.qti.hardware.cryptfshw@1.0-service-qti" |
| 352 | "etc/init/vendor.qti.hardware.cryptfshw@1.0-service-qti.rc" |
| 353 | "lib/libcryptfshwcommon.so" |
| 354 | "lib/libcryptfshwhidl.so" |
| 355 | "lib64/libcryptfshwcommon.so" |
| 356 | "lib64/libcryptfshwhidl.so" |
| 357 | "lib/vendor.qti.hardware.cryptfshw@1.0.so" |
| 358 | "lib64/vendor.qti.hardware.cryptfshw@1.0.so" |
| 359 | |
| 360 | # Display |
| 361 | "lib/libqdMetaData.so" |
| 362 | "lib64/libqdMetaData.so" |
| 363 | "lib/libgralloc.qti.so" |
| 364 | "lib64/libgralloc.qti.so" |
| 365 | "lib/libdisplayconfig.qti.so" |
| 366 | "lib64/libdisplayconfig.qti.so" |
| 367 | "lib/vendor.display.config@1.0.so" |
| 368 | "lib/vendor.display.config@1.1.so" |
| 369 | "lib/vendor.display.config@1.10.so" |
| 370 | "lib/vendor.display.config@1.11.so" |
| 371 | "lib/vendor.display.config@1.2.so" |
| 372 | "lib/vendor.display.config@1.3.so" |
| 373 | "lib/vendor.display.config@1.4.so" |
| 374 | "lib/vendor.display.config@1.5.so" |
| 375 | "lib/vendor.display.config@1.6.so" |
| 376 | "lib/vendor.display.config@1.7.so" |
| 377 | "lib/vendor.display.config@1.8.so" |
| 378 | "lib/vendor.display.config@1.9.so" |
| 379 | "lib/vendor.display.config@2.0.so" |
| 380 | "lib64/vendor.display.config@1.0.so" |
| 381 | "lib64/vendor.display.config@1.1.so" |
| 382 | "lib64/vendor.display.config@1.10.so" |
| 383 | "lib64/vendor.display.config@1.11.so" |
| 384 | "lib64/vendor.display.config@1.2.so" |
| 385 | "lib64/vendor.display.config@1.3.so" |
| 386 | "lib64/vendor.display.config@1.4.so" |
| 387 | "lib64/vendor.display.config@1.5.so" |
| 388 | "lib64/vendor.display.config@1.6.so" |
| 389 | "lib64/vendor.display.config@1.7.so" |
| 390 | "lib64/vendor.display.config@1.8.so" |
| 391 | "lib64/vendor.display.config@1.9.so" |
| 392 | "lib64/vendor.display.config@2.0.so" |
| 393 | |
| 394 | # Health |
| 395 | "bin/hw/android.hardware.health@2.1-service" |
| 396 | "etc/init/android.hardware.health@2.1-service.rc" |
| 397 | "etc/vintf/manifest/android.hardware.health@2.1.xml" |
| 398 | "lib/hw/android.hardware.health@2.0-impl-2.1.so" |
| 399 | "lib64/hw/android.hardware.health@2.0-impl-2.1.so" |
| 400 | |
| 401 | # Init Scripts |
| 402 | "bin/init.asus.check_asdf.sh" |
| 403 | "bin/init.asus.check_last.sh" |
| 404 | "bin/init.asus.checkdevcfg.sh" |
| 405 | "etc/init/init.asus.rc" |
| 406 | "etc/init/hw/init.asus.debugtool.rc" |
| 407 | "etc/init/hw/init.qcom.rc" |
| 408 | "etc/init/hw/init.target.rc" |
| 409 | |
| 410 | # Launcher |
| 411 | "etc/workspace_grid_setting.xml" |
| 412 | "etc/CN/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 413 | "etc/CN/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 414 | "etc/CN/ASUS/Launcher/default_workspace/phone_workspace_single.xml" |
| 415 | "etc/EU/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 416 | "etc/EU/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 417 | "etc/Generic/Launcher/default_workspace/default_allapp.xml" |
| 418 | "etc/Generic/Launcher/default_workspace/phone_workspace.xml" |
| 419 | "etc/ID/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 420 | "etc/ID/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 421 | "etc/JP/ACJ/Launcher/default_workspace/default_allapp.xml" |
| 422 | "etc/JP/ACJ/Launcher/default_workspace/phone_workspace.xml" |
| 423 | "etc/JP/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 424 | "etc/JP/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 425 | "etc/RU/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 426 | "etc/RU/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 427 | "etc/TW/APTG/Launcher/default_workspace/default_allapp.xml" |
| 428 | "etc/TW/APTG/Launcher/default_workspace/phone_workspace.xml" |
| 429 | "etc/TW/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 430 | "etc/TW/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 431 | "etc/US/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 432 | "etc/US/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 433 | "etc/WW/ASUS/Launcher/default_workspace/default_allapp.xml" |
| 434 | "etc/WW/ASUS/Launcher/default_workspace/phone_workspace.xml" |
| 435 | |
| 436 | # Logs |
| 437 | "bin/init.asus.checkdatalog.sh" |
| 438 | "bin/init.asus.checklogsize.sh" |
| 439 | "bin/init.asus.kernelmessage.sh" |
| 440 | |
| 441 | # Manifest |
| 442 | "etc/vintf/manifest.xml" |
| 443 | "etc/vintf/manifest/manifest.xml" |
| 444 | |
| 445 | # Media |
| 446 | "bin/hw/android.hardware.media.omx@1.0-service" |
| 447 | "etc/init/android.hardware.media.omx@1.0-service.rc" |
| 448 | "lib/libstagefright_bufferpool@2.0.1.so" |
| 449 | "lib/libstagefright_soft_aacdec.so" |
| 450 | "lib/libstagefright_soft_aacenc.so" |
| 451 | "lib/libstagefright_soft_amrdec.so" |
| 452 | "lib/libstagefright_soft_amrnbenc.so" |
| 453 | "lib/libstagefright_soft_amrwbenc.so" |
| 454 | "lib/libstagefright_soft_avcdec.so" |
| 455 | "lib/libstagefright_soft_avcenc.so" |
| 456 | "lib/libstagefright_soft_flacdec.so" |
| 457 | "lib/libstagefright_soft_flacenc.so" |
| 458 | "lib/libstagefright_soft_g711dec.so" |
| 459 | "lib/libstagefright_soft_gsmdec.so" |
| 460 | "lib/libstagefright_soft_hevcdec.so" |
| 461 | "lib/libstagefright_soft_mp3dec.so" |
| 462 | "lib/libstagefright_soft_mpeg2dec.so" |
| 463 | "lib/libstagefright_soft_mpeg4dec.so" |
| 464 | "lib/libstagefright_soft_mpeg4enc.so" |
| 465 | "lib/libstagefright_soft_opusdec.so" |
| 466 | "lib/libstagefright_soft_rawdec.so" |
| 467 | "lib/libstagefright_soft_vorbisdec.so" |
| 468 | "lib/libstagefright_soft_vpxdec.so" |
| 469 | "lib/libstagefright_soft_vpxenc.so" |
| 470 | "lib/libstagefright_softomx.so" |
| 471 | "lib/libstagefright_softomx_plugin.so" |
| 472 | "lib64/libstagefright_bufferpool@2.0.1.so" |
| 473 | "lib64/libstagefright_softomx.so" |
| 474 | "lib/vndk/libstagefright_foundation.so" |
| 475 | "lib/vndk/libstagefright_omx.so" |
| 476 | |
| 477 | # Modules |
micky387 | fe65201 | 2022-10-27 18:44:35 +0200 | [diff] [blame] | 478 | "lib/modules/audio_adsp_loader.ko" |
| 479 | "lib/modules/audio_apr.ko" |
| 480 | "lib/modules/audio_bolero_cdc.ko" |
| 481 | "lib/modules/audio_hdmi.ko" |
| 482 | "lib/modules/audio_machine_kona.ko" |
| 483 | "lib/modules/audio_mbhc.ko" |
| 484 | "lib/modules/audio_native.ko" |
| 485 | "lib/modules/audio_pinctrl_lpi.ko" |
| 486 | "lib/modules/audio_pinctrl_wcd.ko" |
| 487 | "lib/modules/audio_platform.ko" |
| 488 | "lib/modules/audio_q6.ko" |
| 489 | "lib/modules/audio_q6_notifier.ko" |
| 490 | "lib/modules/audio_q6_pdr.ko" |
| 491 | "lib/modules/audio_rx_macro.ko" |
| 492 | "lib/modules/audio_snd_event.ko" |
| 493 | "lib/modules/audio_stub.ko" |
| 494 | "lib/modules/audio_swr.ko" |
| 495 | "lib/modules/audio_swr_ctrl.ko" |
| 496 | "lib/modules/audio_tfa9874.ko" |
| 497 | "lib/modules/audio_tx_macro.ko" |
| 498 | "lib/modules/audio_usf.ko" |
| 499 | "lib/modules/audio_va_macro.ko" |
| 500 | "lib/modules/audio_wcd938x.ko" |
| 501 | "lib/modules/audio_wcd938x_slave.ko" |
| 502 | "lib/modules/audio_wcd9xxx.ko" |
| 503 | "lib/modules/audio_wcd_core.ko" |
| 504 | "lib/modules/audio_wsa_macro.ko" |
| 505 | "lib/modules/gspca_main.ko" |
| 506 | "lib/modules/lcd.ko" |
| 507 | "lib/modules/llcc_perfmon.ko" |
| 508 | "lib/modules/modules.alias" |
| 509 | "lib/modules/modules.dep" |
| 510 | "lib/modules/modules.load" |
| 511 | "lib/modules/modules.softdep" |
| 512 | "lib/modules/mpq-adapter.ko" |
| 513 | "lib/modules/mpq-dmx-hw-plugin.ko" |
| 514 | "lib/modules/qca_cld3_qca6390.ko" |
| 515 | "lib/modules/qca_cld3_qca6490.ko" |
| 516 | "lib/modules/rdbg.ko" |
| 517 | "lib/modules/rmnet_perf.ko" |
| 518 | "lib/modules/rmnet_shs.ko" |
| 519 | "lib/modules/texfat.ko" |
| 520 | "lib/modules/tntfs.ko" |
micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 521 | |
| 522 | # Other services |
| 523 | "ueventd.rc" |
| 524 | "bin/asus_osinfo" |
| 525 | "bin/hw/android.hardware.atrace@1.0-service" |
| 526 | "etc/init/android.hardware.atrace@1.0-service.rc" |
| 527 | "etc/vintf/manifest/android.hardware.atrace@1.0-service.xml" |
| 528 | "bin/netutild" |
| 529 | "etc/init/netutild.rc" |
| 530 | "bin/hw/vendor.asus.wifi.netutil@1.0-service" |
| 531 | "etc/init/vendor.asus.wifi.netutil@1.0-service.rc" |
| 532 | "lib64/vendor.asus.wifi.netutil@1.0.so" |
| 533 | "bin/hw/vendor.ims.glovemode@1.0-service" |
| 534 | "etc/init/vendor.ims.glovemode@1.0-service.rc" |
| 535 | "lib64/vendor.ims.glovemode@1.0.so" |
| 536 | "bin/hw/vendor.ims.zenmotion@1.0-service" |
| 537 | "etc/init/vendor.ims.zenmotion@1.0-service.rc" |
| 538 | "lib64/vendor.ims.zenmotion@1.0.so" |
| 539 | "bin/hw/vendor.ims.twinviewdock@1.0-service" |
| 540 | "etc/init/vendor.ims.twinviewdock@1.0-service.rc" |
| 541 | "lib64/vendor.ims.twinviewdock@1.0.so" |
| 542 | "bin/hw/vendor.ims.wifiantennamode@1.0-service" |
| 543 | "etc/init/vendor.ims.wifiantennamode@1.0-service.rc" |
| 544 | "lib64/vendor.ims.wifiantennamode@1.0.so" |
| 545 | "etc/init/vendor_flash_recovery.rc" |
| 546 | "etc/init/vndservicemanager.rc" |
| 547 | "bin/vndservice" |
| 548 | "bin/vndservicemanager" |
| 549 | "etc/ftm_test_config" |
| 550 | "etc/ftm_test_config_qrd" |
| 551 | "lib/libhidltransport.so" |
| 552 | "lib64/libhidltransport.so" |
| 553 | "lib/libhwbinder.so" |
| 554 | "lib64/libhwbinder.so" |
| 555 | "lib/libavservices_minijail.so" |
| 556 | "lib64/libavservices_minijail.so" |
| 557 | "lib/libavservices_minijail_vendor.so" |
| 558 | "etc/init/boringssl_self_test.rc" |
| 559 | "app/CACertService/oat/arm64/CACertService.odex" |
| 560 | "app/CACertService/oat/arm64/CACertService.vdex" |
| 561 | "app/CneApp/oat/arm64/CneApp.odex" |
| 562 | "app/CneApp/oat/arm64/CneApp.vdex" |
| 563 | "app/IWlanService/oat/arm64/IWlanService.odex" |
| 564 | "app/IWlanService/oat/arm64/IWlanService.vdex" |
| 565 | "app/TimeService/oat/arm64/TimeService.odex" |
| 566 | "app/TimeService/oat/arm64/TimeService.vdex" |
| 567 | "app/ifaa_service/oat/arm64/ifaa_service.odex" |
| 568 | "app/ifaa_service/oat/arm64/ifaa_service.vdex" |
| 569 | "bin/hw/vendor.ims.airtrigger@1.2-service" |
| 570 | "etc/init/vendor.ims.airtrigger@1.2-service.rc" |
| 571 | "lib64/vendor.ims.airtrigger@1.0.so" |
| 572 | "lib64/vendor.ims.airtrigger@1.1.so" |
| 573 | "lib64/vendor.ims.airtrigger@1.2.so" |
micky387 | 4ca06d4 | 2022-12-26 15:50:52 +0100 | [diff] [blame^] | 574 | "lib/vendor.qti.hardware.perf@2.0.so" |
| 575 | "lib/vendor.qti.hardware.perf@2.1.so" |
| 576 | "lib/vendor.qti.hardware.perf@2.2.so" |
| 577 | "lib64/vendor.qti.hardware.perf@2.0.so" |
| 578 | "lib64/vendor.qti.hardware.perf@2.1.so" |
| 579 | "lib64/vendor.qti.hardware.perf@2.2.so" |
micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 580 | |
| 581 | # Overlays |
| 582 | "overlay/FrameworksResTarget.apk" |
| 583 | "overlay/WifiResTarget.apk" |
| 584 | |
| 585 | # rfs |
| 586 | "rfs/apq/gnss/hlos" |
| 587 | "rfs/apq/gnss/ramdumps" |
| 588 | "rfs/apq/gnss/readonly/firmware" |
| 589 | "rfs/apq/gnss/readonly/vendor/firmware" |
| 590 | "rfs/apq/gnss/readwrite" |
| 591 | "rfs/apq/gnss/shared" |
| 592 | "rfs/mdm/adsp/hlos" |
| 593 | "rfs/mdm/adsp/ramdumps" |
| 594 | "rfs/mdm/adsp/readonly/firmware" |
| 595 | "rfs/mdm/adsp/readonly/vendor/firmware" |
| 596 | "rfs/mdm/adsp/readwrite" |
| 597 | "rfs/mdm/adsp/shared" |
| 598 | "rfs/mdm/cdsp/hlos" |
| 599 | "rfs/mdm/cdsp/ramdumps" |
| 600 | "rfs/mdm/cdsp/readonly/firmware" |
| 601 | "rfs/mdm/cdsp/readwrite" |
| 602 | "rfs/mdm/cdsp/shared" |
| 603 | "rfs/mdm/mpss/hlos" |
| 604 | "rfs/mdm/mpss/ramdumps" |
| 605 | "rfs/mdm/mpss/readonly/firmware" |
| 606 | "rfs/mdm/mpss/readonly/vendor/firmware" |
| 607 | "rfs/mdm/mpss/readwrite" |
| 608 | "rfs/mdm/mpss/shared" |
| 609 | "rfs/mdm/slpi/hlos" |
| 610 | "rfs/mdm/slpi/ramdumps" |
| 611 | "rfs/mdm/slpi/readonly/firmware" |
| 612 | "rfs/mdm/slpi/readwrite" |
| 613 | "rfs/mdm/slpi/shared" |
| 614 | "rfs/mdm/tn/hlos" |
| 615 | "rfs/mdm/tn/ramdumps" |
| 616 | "rfs/mdm/tn/readonly/firmware" |
| 617 | "rfs/mdm/tn/readwrite" |
| 618 | "rfs/mdm/tn/shared" |
| 619 | "rfs/msm/adsp/hlos" |
| 620 | "rfs/msm/adsp/ramdumps" |
| 621 | "rfs/msm/adsp/readonly/firmware" |
| 622 | "rfs/msm/adsp/readonly/vendor/firmware" |
| 623 | "rfs/msm/adsp/readwrite" |
| 624 | "rfs/msm/adsp/shared" |
| 625 | "rfs/msm/cdsp/hlos" |
| 626 | "rfs/msm/cdsp/ramdumps" |
| 627 | "rfs/msm/cdsp/readonly/firmware" |
| 628 | "rfs/msm/cdsp/readonly/vendor/firmware" |
| 629 | "rfs/msm/cdsp/readwrite" |
| 630 | "rfs/msm/cdsp/shared" |
| 631 | "rfs/msm/mpss/hlos" |
| 632 | "rfs/msm/mpss/ramdumps" |
| 633 | "rfs/msm/mpss/readonly/firmware" |
| 634 | "rfs/msm/mpss/readonly/vendor/firmware" |
| 635 | "rfs/msm/mpss/readwrite" |
| 636 | "rfs/msm/mpss/shared" |
| 637 | "rfs/msm/slpi/hlos" |
| 638 | "rfs/msm/slpi/ramdumps" |
| 639 | "rfs/msm/slpi/readonly/firmware" |
| 640 | "rfs/msm/slpi/readonly/vendor/firmware" |
| 641 | "rfs/msm/slpi/readwrite" |
| 642 | "rfs/msm/slpi/shared" |
| 643 | |
| 644 | # Sepolicy |
| 645 | "etc/selinux/plat_pub_versioned.cil" |
| 646 | "etc/selinux/plat_sepolicy_vers.txt" |
| 647 | "etc/selinux/precompiled_sepolicy" |
| 648 | "etc/selinux/precompiled_sepolicy.plat_sepolicy_and_mapping.sha256" |
| 649 | "etc/selinux/precompiled_sepolicy.product_sepolicy_and_mapping.sha256" |
| 650 | "etc/selinux/precompiled_sepolicy.system_ext_sepolicy_and_mapping.sha256" |
| 651 | "etc/selinux/selinux_denial_metadata" |
| 652 | "etc/selinux/vendor_file_contexts" |
| 653 | "etc/selinux/vendor_hwservice_contexts" |
| 654 | "etc/selinux/vendor_mac_permissions.xml" |
| 655 | "etc/selinux/vendor_property_contexts" |
| 656 | "etc/selinux/vendor_seapp_contexts" |
| 657 | "etc/selinux/vendor_sepolicy.cil" |
| 658 | "etc/selinux/vendor_service_contexts" |
| 659 | "etc/selinux/vndservice_contexts" |
| 660 | |
| 661 | # Symlink |
| 662 | "asusfw" |
| 663 | "factory" |
| 664 | "odm" |
| 665 | |
micky387 | d850896 | 2022-10-27 16:46:50 +0200 | [diff] [blame] | 666 | # Vibrator |
| 667 | "etc/init/vendor.qti.hardware.vibrator.service.rc" |
| 668 | "etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml" |
| 669 | "bin/hw/vendor.qti.hardware.vibrator.service" |
| 670 | "lib64/vendor.qti.hardware.vibrator.impl.so" |
| 671 | |
micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 672 | # Wifi |
| 673 | "bin/wifilearner" |
| 674 | "bin/hw/android.hardware.wifi@1.0-service" |
| 675 | "etc/init/android.hardware.wifi@1.0-service.rc" |
| 676 | "etc/vintf/manifest/android.hardware.wifi@1.0-service.xml" |
| 677 | "etc/init/vendor.qti.hardware.wifi.wifilearner@1.0-service.rc" |
| 678 | "lib64/vendor.qti.hardware.wifi.wifilearner@1.0.so" |
| 679 | "bin/hostapd_cli" |
| 680 | "bin/hw/hostapd" |
| 681 | "etc/hostapd/hostapd.accept" |
| 682 | "etc/hostapd/hostapd.deny" |
| 683 | "etc/hostapd/hostapd_default.conf" |
| 684 | "etc/init/hostapd.android.rc" |
| 685 | "bin/fstman" |
| 686 | "etc/init/vendor.qti.hardware.fstman@1.0-service.rc" |
| 687 | "etc/wifi/fstman.ini" |
| 688 | "lib64/vendor.qti.hardware.fstman@1.0.so" |
| 689 | "etc/wifi/aoa_cldb_falcon.bin" |
| 690 | "etc/wifi/aoa_cldb_swl14.bin" |
| 691 | "etc/wifi/icm.conf" |
| 692 | "etc/wifi/wpa_supplicant_overlay.conf" |
| 693 | "bin/hw/wpa_supplicant" |
| 694 | "lib64/libkeystore-engine-wifi-hidl.so" |
| 695 | "lib64/libkeystore-wifi-hidl.so" |
| 696 | "lib/libwifi-hal-ctrl.so" |
| 697 | "lib/libwifi-hal-qcom.so" |
| 698 | "lib/libwpa_client.so" |
| 699 | "lib64/libwpa_client.so" |
| 700 | "lib64/libwifi-hal.so" |
| 701 | "lib64/libwifi-hal-ctrl.so" |
| 702 | "lib64/libwifi-hal-qcom.so" |
| 703 | |
| 704 | ) |
| 705 | ALL_SKIP_FILES=("${VENDOR_SKIP_FILES_COMMON[@]}" "${VENDOR_SKIP_FILES_DEVICE[@]}") |
| 706 | |
| 707 | generate_prop_list_from_image "$1" "$2" ALL_SKIP_FILES |
| 708 | |
| 709 | # Fixups |
| 710 | _output_file=$2 |
| 711 | function presign() { |
| 712 | sed -i "s|vendor/$1$|vendor/$1;PRESIGNED|g" $_output_file |
| 713 | } |
| 714 | function as_module() { |
| 715 | sed -i "s|vendor/$1$|-vendor/$1|g" $_output_file |
| 716 | } |
| 717 | |
| 718 | presign "app/com.qualcomm.qti.gpudrivers.lahaina.api30/com.qualcomm.qti.gpudrivers.lahaina.api30.apk" |
| 719 | |
| 720 | as_module "etc/vintf/manifest/android.hardware.biometrics.fingerprint@2.1-service.xml" |
| 721 | as_module "etc/vintf/manifest/android.hardware.boot@1.1.xml" |
| 722 | as_module "etc/vintf/manifest/android.hardware.cas@1.2-service.xml" |
| 723 | as_module "etc/vintf/manifest/android.hardware.gnss@2.1-service-qti.xml" |
| 724 | as_module "etc/vintf/manifest/android.hardware.graphics.mapper-impl-qti-display.xml" |
| 725 | as_module "etc/vintf/manifest/android.hardware.lights-qti.xml" |
| 726 | as_module "etc/vintf/manifest/android.hardware.neuralnetworks@1.3-service-qti-hta.xml" |
| 727 | as_module "etc/vintf/manifest/android.hardware.neuralnetworks@1.3-service-qti.xml" |
| 728 | as_module "etc/vintf/manifest/android.hardware.sensors@2.0-multihal.xml" |
| 729 | as_module "etc/vintf/manifest/android.hardware.thermal@2.0-service.qti.xml" |
| 730 | as_module "etc/vintf/manifest/android.hardware.usb@1.2-service.xml" |
| 731 | as_module "etc/vintf/manifest/android.hardware.wifi.hostapd.xml" |
| 732 | as_module "etc/vintf/manifest/c2_manifest_vendor.xml" |
| 733 | as_module "etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml" |
| 734 | as_module "etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.widevine.xml" |
| 735 | as_module "etc/vintf/manifest/power.xml" |
| 736 | as_module "etc/vintf/manifest/vendor.goodix.hardware.biometrics.fingerprint.xml" |
| 737 | as_module "etc/vintf/manifest/vendor.qti.gnss@4.0-service.xml" |
| 738 | as_module "etc/vintf/manifest/vendor.qti.hardware.display.allocator-service.xml" |
| 739 | as_module "etc/vintf/manifest/vendor.qti.hardware.display.composer-service.xml" |
| 740 | as_module "etc/vintf/manifest/vendor.qti.hardware.servicetracker@1.2-service.xml" |
| 741 | as_module "etc/vintf/manifest/vendor.qti.hardware.vibrator.service.xml" |
| 742 | |