@u4/adbkit
Version:
A Typescript client for the Android Debug Bridge.
15 lines • 459 B
JavaScript
import Command from '../../command.js';
export default class WaitBootCompleteCommand extends Command {
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;
}
}
//# sourceMappingURL=waitbootcomplete.js.map