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 |
यह एक टारगेट तैयार करने वाला टूल है, जो किसी खास ओटीए पैकेज को साइडलोड करता है, पैकेज को लागू करता है, डिवाइस के बूट होने का इंतज़ार करता है, और डिवाइस की बिल्ड प्रॉपर्टी को इंजेक्ट करता है, ताकि उन्हें बिल्ड की जानकारी के तौर पर इस्तेमाल किया जा सके
टारगेट तैयार करने वाला यह टूल यह मानता है कि डिवाइस शुरू होने पर, वह सामान्य adb मोड में होगा. साथ ही, यह पक्का करेगा कि डिवाइस उसी मोड में बंद हो, लेकिन उस पर नया बिल्ड लागू हो. प्रोसेस के दौरान, डिवाइस की स्थिति में होने वाले किसी भी अनचाहे बदलाव की शिकायत TargetSetupError
के तौर पर की जाएगी. यह OTA साइडलोड से जुड़ी किसी भी गड़बड़ी पर भी लागू होता है.
खास जानकारी
पब्लिक कंस्ट्रक्टर | |
---|---|
SideloadOtaTargetPreparer()
|
सुरक्षित तरीके | |
---|---|
File
|
getDeviceUpdateImage()
अपडेट करने के लिए इस्तेमाल की जाने वाली डिवाइस इमेज फ़ाइल को दिखाने वाला |
void
|
performDeviceUpdate(File deviceUpdateImage, ITestDevice device)
OTA पैकेज को साइडलोड करता है |
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 |