Decode layer flags

Fix: b/254043362
Test: npm run build:all && npm run test:all
Change-Id: I39f4331be3488881373726f0b3ea7fdf664857f9
8 files changed