am 9ca52e34: am a2307aef: Only restorecon_data once for all users.

* commit '9ca52e34f742f6b8da936733626c334260c6edc8':
  Only restorecon_data once for all users.
This commit is contained in:
Jeff Sharkey 2015-07-21 00:11:39 +00:00 committed by Android Git Automerger
commit 24ac7f320f
1 changed files with 4 additions and 4 deletions

View File

@ -257,11 +257,11 @@ int copy_complete_app(const char *from_uuid, const char *to_uuid,
<< ": status " << rc;
goto fail;
}
}
if (restorecon_data(to_uuid, package_name, seinfo, uid) != 0) {
LOG(ERROR) << "Failed to restorecon " << to;
goto fail;
}
if (restorecon_data(to_uuid, package_name, seinfo, multiuser_get_uid(0, appid)) != 0) {
LOG(ERROR) << "Failed to restorecon";
goto fail;
}
// We let the framework scan the new location and persist that before