From 1d33f1cb0251591ca808c49f80c75359d618ba86 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Thu, 16 Dec 2021 19:57:28 -0800 Subject: [PATCH] state: Add device name to state --- src/config/system-state.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/config/system-state.ts b/src/config/system-state.ts index a6bb873..948c441 100644 --- a/src/config/system-state.ts +++ b/src/config/system-state.ts @@ -8,14 +8,19 @@ import { withSpinner } from "../util/cli" import { readFile } from "../util/fs" import { ALL_SYS_PARTITIONS } from "../util/partitions" -const STATE_VERSION = 2 +const STATE_VERSION = 3 export interface SystemState { + deviceInfo: { + name: string + } + partitionFiles: { [part: string]: Array } partitionProps: PartitionProps partitionSecontexts: SelinuxPartContexts partitionOverlays: PartResValues partitionVintfInfo: PartitionVintfInfo + moduleInfo: SoongModuleInfo } @@ -63,6 +68,9 @@ export async function collectSystemState(device: string, outRoot: string, aapt2P let systemRoot = `${outRoot}/target/product/${device}` let moduleInfoPath = `${systemRoot}/module-info.json` let state = { + deviceInfo: { + name: device, + }, partitionFiles: {}, } as SystemState