protected boolean distributeKey(@NonNull final byte[] key) {
        if (!Arrays.equals(this.key, oldKey))
            setOldKey(this.key);
        setKey(key);
        return true;
    }
Set the old key

@param oldKey old app key
mesh/src/main/java/no/nordicsemi/android/mesh/MeshKey.java