Do not restore file system on data/media devices

Change-Id: I600e7e9ce89621400531bceb472387aafc0d6ed8
This commit is contained in:
Ethan Yonker
2014-06-13 08:57:48 -05:00
parent 0ea3be665a
commit 5eac222cfe
2 changed files with 21 additions and 3 deletions
+4
View File
@@ -117,6 +117,10 @@ int fixPermissions::fixDataInternalContexts(void) {
dir = "/data/media/0";
else
dir = "/data/media";
if (!TWFunc::Path_Exists(dir)) {
LOGINFO("fixDataInternalContexts: '%s' does not exist!\n", dir.c_str());
return 0;
}
LOGINFO("Fixing %s contexts\n", dir.c_str());
restorecon(dir, &sb);
d = opendir(dir.c_str());