Skip to content

Add DeviceInfo overloads to AndroidAccountManager. - #7641

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1033283994
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1033283994

Conversation

@copybara-service

Copy link
Copy Markdown

Add DeviceInfo overloads to AndroidAccountManager.

Callers that hold a decoupled DeviceInfo rather than a runner-managed Device and run concurrently across requests cannot directly reuse AndroidAccountManager methods that require Device and mutable forceInstallSignedVersion state.

Add DeviceInfo overloads for AndroidAccountManager.addAccount and AndroidAccountManager.prepareAddAndroidAccount, add AddAccountArgs.forceInstallSignedApks for stateless per-call signed-APK selection, and resolve the concrete device class from Dimension.Name.DEVICE_CLASS_NAME when calling SystemStateManager.becomeRoot. Existing Device-based methods preserve unchanged behavior.

Callers that hold a decoupled `DeviceInfo` rather than a runner-managed `Device` and run concurrently across requests cannot directly reuse `AndroidAccountManager` methods that require `Device` and mutable `forceInstallSignedVersion` state.

Add `DeviceInfo` overloads for `AndroidAccountManager.addAccount` and `AndroidAccountManager.prepareAddAndroidAccount`, add `AddAccountArgs.forceInstallSignedApks` for stateless per-call signed-APK selection, and resolve the concrete device class from `Dimension.Name.DEVICE_CLASS_NAME` when calling `SystemStateManager.becomeRoot`. Existing `Device`-based methods preserve unchanged behavior.

PiperOrigin-RevId: 1033283994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants