add Lock app.
update Lock.
update Lock settings.