diff --git a/client/android/profile_manager.go b/client/android/profile_manager.go index 78d908530..516ed4fa8 100644 --- a/client/android/profile_manager.go +++ b/client/android/profile_manager.go @@ -53,10 +53,10 @@ func (p *ProfileArray) Get(i int) *Profile { ├── state.json ← Default profile state ├── active_profile.json ← Active profile tracker (JSON with Name + Username) └── profiles/ ← Subdirectory for non-default profiles - ├── work.json ← Work profile config - ├── work.state.json ← Work profile state - ├── personal.json ← Personal profile config - └── personal.state.json ← Personal profile state + ├── work.json ← Legacy work profile config + ├── work.state.json ← Legacy work profile state + ├── 4c5f5c8198c3989cffb5b5394f5a7ae0.json ← ID profile config + ├── 4c5f5c8198c3989cffb5b5394f5a7ae0.state.json ← ID profile state */ // ProfileManager manages profiles for Android diff --git a/client/cmd/up.go b/client/cmd/up.go index 9050f50e9..2761cf74a 100644 --- a/client/cmd/up.go +++ b/client/cmd/up.go @@ -288,8 +288,8 @@ func doDaemonUp(ctx context.Context, cmd *cobra.Command, client proto.DaemonServ return fmt.Errorf("setup login request: %v", err) } - handle := activeProf.ID.String() - loginRequest.ProfileName = &handle + profileID := activeProf.ID.String() + loginRequest.ProfileName = &profileID loginRequest.Username = &username profileState, err := pm.GetProfileState(activeProf.ID) @@ -329,7 +329,7 @@ func doDaemonUp(ctx context.Context, cmd *cobra.Command, client proto.DaemonServ } if _, err := client.Up(ctx, &proto.UpRequest{ - ProfileName: &profileName, + ProfileName: &profileID, Username: &username, }); err != nil { return fmt.Errorf("call service up method: %v", err)