SideloadOtaTargetPreparer
public
class
SideloadOtaTargetPreparer
extends DeviceUpdateTargetPreparer
| java.lang.Object | ||||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |||
| ↳ | com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper | |||
| ↳ | com.android.tradefed.targetprep.DeviceUpdateTargetPreparer | |||
| ↳ | com.android.tradefed.targetprep.SideloadOtaTargetPreparer | |||
เครื่องมือเตรียมเป้าหมายที่ดำเนินการโหลดจากภายนอกของแพ็กเกจ OTA ที่ระบุ ใช้แพ็กเกจ รอให้อุปกรณ์บูต และแทรกพร็อพเพอร์ตี้การสร้างอุปกรณ์เพื่อใช้เป็นข้อมูลการสร้าง
เครื่องมือเตรียมเป้าหมายนี้จะถือว่าอุปกรณ์จะอยู่ในโหมด adb ปกติเมื่อเริ่มต้น และตรวจสอบว่าอุปกรณ์จะออกจากโหมดเดียวกันนี้แต่ใช้บิลด์ที่ใหม่กว่า ระบบจะรายงานสถานะอุปกรณ์ที่เปลี่ยนแปลงไปโดยไม่คาดคิดระหว่างกระบวนการเป็น TargetSetupError และระบบจะรายงานข้อผิดพลาดในการโหลด OTA ข้างต้นด้วย
สรุป
ตัวสร้างแบบสาธารณะ | |
|---|---|
SideloadOtaTargetPreparer()
|
|
วิธีการที่มีการป้องกัน | |
|---|---|
File
|
getDeviceUpdateImage()
ระบุอินสแตนซ์ |
void
|
performDeviceUpdate(File deviceUpdateImage, ITestDevice device)
ดำเนินการโหลดแพ็กเกจ OTA โดยไม่ผ่าน Google Play |
void
|
postUpdateActions(File deviceUpdateImage, ITestDevice device)
รอให้อุปกรณ์เปลี่ยนจากการโหลดจากด้านข้างเป็นการกู้คืน แล้วรีบูตไปยังพื้นที่ผู้ใช้ |
void
|
preUpdateActions(File deviceUpdateImage, ITestDevice device)
รีบูตอุปกรณ์เป็นโหมดการโหลดจากด้านข้างเพื่อเตรียมพร้อม |
ตัวสร้างแบบสาธารณะ
SideloadOtaTargetPreparer
public SideloadOtaTargetPreparer ()
วิธีการที่มีการป้องกัน
getDeviceUpdateImage
protected File getDeviceUpdateImage ()
ระบุอินสแตนซ์ ERROR(/File) ที่แสดงไฟล์ภาพอุปกรณ์ที่จะใช้อัปเดต
| คิกรีเทิร์น | |
|---|---|
File |
|
performDeviceUpdate
protected void performDeviceUpdate (File deviceUpdateImage,
ITestDevice device)ดำเนินการโหลดแพ็กเกจ OTA ลงในอุปกรณ์
| การโยน | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
postUpdateActions
protected void postUpdateActions (File deviceUpdateImage,
ITestDevice device)รอให้อุปกรณ์เปลี่ยนจากการติดตั้งจากด้านข้างเป็นการกู้คืน แล้วรีบูตไปยังพื้นที่ผู้ใช้
| การโยน | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
preUpdateActions
protected void preUpdateActions (File deviceUpdateImage,
ITestDevice device)รีบูตอุปกรณ์เป็นโหมดการโหลดจากภายนอกเพื่อเตรียมพร้อม
| การโยน | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|