Fix failure to save master key on new profile

New profiles use the master key of the parent user for keystore.
Unfortunately copyMasterKey only copies the key from the parent to the
user in memory but doesn't save it to disk, causing the child user to be
uninitialized after a reboot.

Bug: 23889443

(cherry picked from commit 79e0f6440aee69659bc01a0669a329dbaeaf471c)

Change-Id: I1f148fde3862d22292dfce217aacdc3f70f9c2ef
1 file changed
tree: d38d1afece977ce4515b9da8f809eb38b40dee6d
  1. keystore/
  2. keystore-engine/
  3. softkeymaster/