diff --git a/client/android/profile_manager.go b/client/android/profile_manager.go index df4cf097c..87c001396 100644 --- a/client/android/profile_manager.go +++ b/client/android/profile_manager.go @@ -203,10 +203,11 @@ func (pm *ProfileManager) RemoveProfile(id string) error { // getProfileConfigPath returns the config file path for a profile // This is needed for Android-specific path handling (netbird.cfg for default profile) func (pm *ProfileManager) getProfileConfigPath(id string) (string, error) { - if id == "" || id == profilemanager.DefaultProfileName { - if !profilemanager.IsValidProfileFilenameStem(profilemanager.ID(id)) { - return "", fmt.Errorf("id %q is not valid", id) - } + if !profilemanager.IsValidProfileFilenameStem(profilemanager.ID(id)) { + return "", fmt.Errorf("id %q is not valid", id) + } + + if id == profilemanager.DefaultProfileName { // Android uses netbird.cfg for default profile instead of default.json // Default profile is stored in root configDir, not in profiles/ return filepath.Join(pm.configDir, defaultConfigFilename), nil diff --git a/ui b/ui deleted file mode 100755 index f6f1c7b4d..000000000 Binary files a/ui and /dev/null differ