Create the checkin subdirectory under misc_ce
We need some storage on the device to backup the token for checkin services. So users won't lose the checkin tokens when they clear the app's storage. If the device accidentally loses the token without backup, it won't be able to checkin again until factory reset. Because we want the token to be user specific, put it under misc_ce and let vold create the sub-directory. Bug: 197636740 Test: boot device, check selinux label of the dir Change-Id: I0e19dcb7f4feb98fd9d1013cfd84b56ff1325373
This commit is contained in:
parent
eb3182f040
commit
570f0585b9
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int fla
|
|||
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/vold")) return false;
|
||||
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/storaged")) return false;
|
||||
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/rollback")) return false;
|
||||
if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/checkin")) return false;
|
||||
|
||||
// TODO: Return false if this returns false once sure this should succeed.
|
||||
prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/apexrollback");
|
||||
|
|
Loading…
Reference in a new issue