aconfig: update storage read api
Update storage read api to not find storage file location from a pb file, instead directly read from /metadata copy. Previously for package.map and flag.map, we are reading from the respective RO partition. Now we are reading from /metadata/maps dir. This has a few advantages: 1, early flag availability, since /metadata can be mounted much earlier than mainline modules, so it would make mainline flags availabile even before mainline modules are mounted. 2, we no longer need to read from a pb file to find where package.map and flag.map are. Thus the read api can be further simplified and downsized. With this change, we are able to shrink the cc flag read api lib size from 171k to 120k. Bug: b/321077378 Test atest -c Change-Id: Ic9086fe4c49c139a4d1c66a8d472023a88c9dd17
Loading
Please register or sign in to comment