Clean delete of application from device

williamc
2014-01-13
2014-01-13
  • williamc - 2014-01-13

    Hi, I have been tasked to write some script that will ensure when our device ships to customer it is in a clean state (factory default).

    We will load an application on during an automated test and I can't see if there is a command or a method through scripting to delete the application.

    Is there one...or can I just create a blank project for my device and load that? Does that wipe over all files or could there still be files existing from the previous application?

     
  • mkeller - 2014-01-13

    Hello.

    I think reset_origin() should do the trick.

    device = projects.primary.find("Device", False)[0]
    onlineDevice = online.create_online_device(device)
    onlineDevice.reset_origin()
    

    Regards,
    Martin

     

Log in to post a comment.