Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 2aad413

Browse files
authored
Update FastbootInstall.java
francescotescari#103
1 parent ed4dd3a commit 2aad413

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/xiaomitool/v2/procedure/install/FastbootInstall.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public void run(ProcedureRunner runner)
271271
InstallException.Code.INFO_RETRIVE_FAILED);
272272
}
273273
}
274-
String token = FastbootCommons.getvar("token", device.getSerial());
274+
String token = FastbootCommons.getUnlockToken(device.getSerial());
275275
Thread.sleep(400);
276276
if (token == null) {
277277
throw new InstallException(
@@ -325,7 +325,7 @@ public void run(ProcedureRunner runner)
325325
}
326326
Log.info("Unlock request confirmation success");
327327
while (true) {
328-
token = FastbootCommons.getvar("token", device.getSerial());
328+
token = FastbootCommons.getUnlockToken(device.getSerial());
329329
if (token == null) {
330330
throw new InstallException(
331331
"Failed to get the device unlock token",

0 commit comments

Comments
 (0)