+#!/bin/bash
+
+mkdir /home/anbox/tmp_vendor
+mount /home/anbox/anbox_arm64_vendor.img /home/anbox/tmp_vendor
+
+SKU=`getprop ro.boot.product.hardware.sku`
+cp -p /vendor/etc/permissions/android.hardware.nfc.* /home/anbox/tmp_vendor/etc/permissions/
+cp -p /vendor/etc/permissions/android.hardware.consumerir.xml /home/anbox/tmp_vendor/etc/permissions/
+cp -p /odm/etc/permissions/android.hardware.nfc.* /home/anbox/tmp_vendor/etc/permissions/
+cp -p /odm/etc/permissions/android.hardware.consumerir.xml /home/anbox/tmp_vendor/etc/permissions/
+if [ ! -z $SKU ]; then
+ cp -p /odm/etc/permissions/sku_${SKU}/android.hardware.nfc.* /home/anbox/tmp_vendor/etc/permissions/
+ cp -p /odm/etc/permissions/sku_${SKU}/android.hardware.consumerir.xml /home/anbox/tmp_vendor/etc/permissions/
+fi
+if [ -f /vendor/lib/libladder.so ] && [ ! -f /home/anbox/tmp_vendor/lib/libladder.so ]; then
+ cd /home/anbox/tmp_vendor/lib
+ wget https://github.com/GS290-dev/gigaset_gs290_dump/raw/full_k63v2_64_bsp-user-10-QP1A.190711.020-1597810494-release-keys/vendor/lib/libladder.so
+ cd ../../..
+fi
+if [ -f /vendor/lib64/libladder.so ] && [ ! -f /home/anbox/tmp_vendor/lib64/libladder.so ]; then
+ cd /home/anbox/tmp_vendor/lib64
+ wget https://github.com/GS290-dev/gigaset_gs290_dump/raw/full_k63v2_64_bsp-user-10-QP1A.190711.020-1597810494-release-keys/vendor/lib64/libladder.so
+ cd ../../..
+fi
+umount /home/anbox/tmp_vendor
+rm -rf /home/anbox/tmp_vendor