aconfig: add flag type in flag table and remove info byte from value
array 1, add flag type to the flag table. Before flag table only stores the mapping from (package id, flag name) to (flag id u32). The original intent is to do bitmasking on the top byte of flag id to indicate flag type. Now split the flag id u32 to two u16, the first represent flag type, the second represent flag id. So after the change, the flag table now shows the following mapping: (package id, flag name) -> (flag type as u16, flag id as u16) 2, originally we plan to store a info byte together with each flag value. The info byte is used by storage service damemon to mark up the flag status, such as if it is accepting server side flag push. After internal discussion, it is better to just create the info bytes as another file by storage service damemon. So that the value file is purely a flag value array. Bug: b/312243587 test: atest aconfig.test Change-Id: I7f953076b4269cf786bc23723078290e5ebe10bc
Loading
Please register or sign in to comment