1#!/system/bin/sh -e
2ADB_KEYS_FILE="/data/misc/adb/adb_keys"
3
4if [[ -f "$ADB_KEYS_FILE" ]]; then
5    echo "$0: '$ADB_KEYS_FILE' already exists, skipping"
6else
7    KEY=`getprop ro.boot.qemu.adb.pubkey`
8    echo "$KEY" > "$ADB_KEYS_FILE"
9    chmod 0640 "$ADB_KEYS_FILE"
10fi
11