| #include "gui/rapidxml.hpp" |
| #include "twrp-functions.hpp" |
| int fixPerms(bool enable_debug, bool remove_data_for_missing_apps); |
| int fixDataInternalContexts(void); |
| int pchown(string fn, int puid, int pgid); |
| int pchmod(string fn, mode_t mode); |
| vector <string> listAllDirectories(string path); |
| vector <string> listAllFiles(string path); |
| int getPackages(const string& packageFile); |
| int fixAllFiles(string directory, int uid, int gid, mode_t file_perms); |
| int fixDir(const string& dir, int diruid, int dirgid, mode_t dirmode, int fileuid, int filegid, mode_t filemode); |
| int fixDataData(string dataDir); |
| int restorecon(string entry, struct stat *sb); |
| int fixDataDataContexts(void); |
| int fixContextsRecursively(string path, int level); |