← Back to team overview

ubuntu-phone team mailing list archive

Re: Wiping phone after testing

 

On miércoles 2 de julio de 2014 04h'50:50 ART, Martin Pitt wrote:
Hello all,

with autopkgtest now being able to run click tests on the phone [1]
I'd like to fine-tune the ADB setup script to require less manual
action.

One outstanding issue is that I'd like to implement the ssh setup
script's "revert" action. This can be used to reset the phone if there
is something more efficient than re-flashing it from scratch.

I've heard that we have some magic with using
/cache/recovery/ubuntu_commands. There's nothing in the wiki, just
some allusions that it exists [2].

apt-get install ubuntu-device-do
ubuntu-device-do factory-reset

So can I write something in there

Yes, echo format data > /cache/recovery/ubuntu_commands

which uninstalls all locally installed clicks, resets $HOME and config
changes? I. e. essentially all writable parts, except for the network
configuration? It's fine (and would even make things easier) if that
would also skip the intro screen, but we can programmatically skip
that too if necessary. If it wipes everything including networking,
the setup script could also certainly save the network config, wipe,
and restore the network config.

Thanks for any insights!

Martin

[1] http://www.piware.de/2014/07/deb-click-schroot-lxc-qemu-phone-cloud-one-autopkgtest-to-rule-them-all/
[2] https://wiki.ubuntu.com/Touch/Customization/Installation



Follow ups

References