Revert "Convert AFDO mutators to TransitionMutator"
Revert submission 2925209 Reason for revert: b/323975183 Reverted changes: /q/submissionid:2925209 Change-Id: Ie907d23081817d601a1a2083347b5f683829a36c
This commit is contained in:
@@ -1462,18 +1462,18 @@ func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
|
||||
}
|
||||
|
||||
// AfdoProfile returns fully qualified path associated to the given module name
|
||||
func (c *deviceConfig) AfdoProfile(name string) (string, error) {
|
||||
func (c *deviceConfig) AfdoProfile(name string) (*string, error) {
|
||||
for _, afdoProfile := range c.config.productVariables.AfdoProfiles {
|
||||
split := strings.Split(afdoProfile, ":")
|
||||
if len(split) != 3 {
|
||||
return "", fmt.Errorf("AFDO_PROFILES has invalid value: %s. "+
|
||||
return nil, fmt.Errorf("AFDO_PROFILES has invalid value: %s. "+
|
||||
"The expected format is <module>:<fully-qualified-path-to-fdo_profile>", afdoProfile)
|
||||
}
|
||||
if split[0] == name {
|
||||
return strings.Join([]string{split[1], split[2]}, ":"), nil
|
||||
return proptools.StringPtr(strings.Join([]string{split[1], split[2]}, ":")), nil
|
||||
}
|
||||
}
|
||||
return "", nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *deviceConfig) VendorSepolicyDirs() []string {
|
||||
|
Reference in New Issue
Block a user