parent
6a7a01b613
commit
948f4ef224
|
@ -269,7 +269,7 @@ install_device_packages = [
|
||||||
# FLASH
|
# FLASH
|
||||||
#
|
#
|
||||||
|
|
||||||
flash_methods = ["fastboot", "heimdall", "0xffff"]
|
flash_methods = ["fastboot", "heimdall", "0xffff", "none"]
|
||||||
|
|
||||||
# These folders will be mounted at the same location into the native
|
# These folders will be mounted at the same location into the native
|
||||||
# chroot, before the flash programs get started.
|
# chroot, before the flash programs get started.
|
||||||
|
|
|
@ -112,6 +112,12 @@ def sideload(args):
|
||||||
|
|
||||||
def frontend(args):
|
def frontend(args):
|
||||||
action = args.action_flasher
|
action = args.action_flasher
|
||||||
|
method = args.flash_method or args.deviceinfo["flash_methods"]
|
||||||
|
|
||||||
|
if method == "none" and action in ["boot", "flash_kernel", "flash_system"]:
|
||||||
|
logging.info("This device doesn't support any flash method.")
|
||||||
|
return
|
||||||
|
|
||||||
if action in ["boot", "flash_kernel"]:
|
if action in ["boot", "flash_kernel"]:
|
||||||
kernel(args)
|
kernel(args)
|
||||||
if action == "flash_system":
|
if action == "flash_system":
|
||||||
|
|
Loading…
Reference in New Issue