This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adblib: add support for
exec
service
`exec` is the same as `shell`, except `stderr` is discarded. * Also, change `abb_exec` implementation to re-use same code as `shell` and `exec * Also, refactor FakeAdbServer `exec` support to follow same pattern as `shell`, i.e. one sub-class per command supported. Bug: 188067646 Test: Included Change-Id: I3feda1ec39bfb8b0c9232e1447cb9340d518b08d
- Loading branch information
Showing
17 changed files
with
674 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (C) 2022 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.android.adblib | ||
|
||
/** | ||
* Identifier of optional features supported by the ADB host and/or ADB daemon. | ||
* See [AdbHostServices.features]. | ||
*/ | ||
@Suppress("SpellCheckingInspection") | ||
object AdbFeatures { | ||
|
||
/** | ||
* If the result of [AdbHostServices.features] contains this value, the | ||
* [AdbDeviceServices.abb_exec] invocation is supported by the specified device. | ||
*/ | ||
const val ABB_EXEC = "abb_exec" | ||
|
||
/** | ||
* If the result of [AdbHostServices.features] contains this value, the | ||
* [AdbDeviceServices.shellV2] invocation is supported by the specified device. | ||
*/ | ||
const val SHELL_V2 = "shell_v2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.