public boolean setKey(@NonNull final String key) {
        if (getNetworkLiveData().getMeshNetwork().updateAppKey(appKey, key)) {
            selectAppKey(appKey.getKeyIndex());
            return true;
        }
        return false;
    }
Sets the application key

@param key Key
@return true if successful or false otherwise
app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/EditAppKeyViewModel.java