Add a new field in the declaration to indicate whether the permission can be overridden. When the field “is_fixed_read_only” is set to true, the flag permission will be set as fixed “READ_ONLY”, and the permission should not be changed by Gantry. Bug: 292521627 Test: atest aconfig.test Change-Id: Ic9bcd7823bccb8b947cf05568c7ced3763490a23
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
package: "com.android.aconfig.test"
|
|
|
|
# This flag's final value is calculated from:
|
|
# - test.aconfig: DISABLED + READ_WRITE (default)
|
|
# - first.values: DISABLED + READ_WRITE
|
|
# - second.values: ENABLED + READ_ONLY
|
|
flag {
|
|
name: "enabled_ro"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is ENABLED + READ_ONLY"
|
|
bug: "abc"
|
|
}
|
|
|
|
# This flag's final value is calculated from:
|
|
# - test.aconfig: DISABLED + READ_WRITE (default)
|
|
# - first.values: ENABLED + READ_WRITE
|
|
flag {
|
|
name: "enabled_rw"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is ENABLED + READ_WRITE"
|
|
# for bug fields, the empty string is a discouraged but valid value
|
|
bug: ""
|
|
}
|
|
|
|
# This flag's final value is calculated from:
|
|
# - test.aconfig: DISABLED + READ_WRITE (default)
|
|
# - first.values: DISABLED + READ_ONLY
|
|
flag {
|
|
name: "disabled_ro"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is DISABLED + READ_ONLY"
|
|
bug: "123"
|
|
}
|
|
|
|
# This flag's final value is calculated from:
|
|
# - test.aconfig: DISABLED + READ_WRITE (default)
|
|
flag {
|
|
name: "disabled_rw"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is DISABLED + READ_WRITE"
|
|
bug: "456"
|
|
}
|
|
|
|
# This flag's final value calculated from:
|
|
# - test.aconfig: DISABLED + READ_ONLY
|
|
# - first.values: ENABLED + READ_ONLY
|
|
flag {
|
|
name: "enabled_fixed_ro"
|
|
namespace: "aconfig_test"
|
|
description: "This flag is fixed READ_ONLY + ENABLED"
|
|
bug: ""
|
|
is_fixed_read_only: true
|
|
}
|