@u4/adbkit
Version:
A Typescript client for the Android Debug Bridge.
21 lines • 734 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = __importDefault(require("../../command"));
class WaitBootCompleteCommand extends command_1.default {
async execute() {
this.sendCommand('shell:while getprop sys.boot_completed 2>/dev/null; do sleep 1; done');
await this.readOKAY();
try {
await this.parser.searchLine(/^1$/);
}
finally {
this.parser.end();
}
return true;
}
}
exports.default = WaitBootCompleteCommand;
//# sourceMappingURL=waitbootcomplete.js.map