May 2017
Beginner to intermediate
470 pages
10h 49m
English
To extend the release tools, we can create a Python module named releasetools.py in our device folder. The build system will check this file in the device folder. If it presents, it will be called:
import common def FullOTA_InstallEnd(info): info.script.Print("Full OTA update, Writing x86vbox images...") # copy the data into the package. x86vbox_dat = info.input_zip.read("RADIO/x86vbox.dat") common.ZipWriteStr(info.output_zip, "x86vbox.dat", x86vbox_dat) # emit the script code to install this data on the device info.script.AppendExtra( """package_extract_file("x86vbox.dat", "/tmp/x86vbox.zip");""") info.script.AppendExtra( """x86vbox.reprogram("/tmp/x86vbox.zip", "/system/android- x86vbox");""") def IncrementalOTA_InstallEnd(info): ...Read now
Unlock full access