| #include "gui/rapidxml.hpp" |
| #include "twrp-functions.hpp" |
| int fixPerms(bool enable_debug, bool remove_data_for_missing_apps); |
| int fixDataInternalContexts(void); |
| int pchown(std::string fn, int puid, int pgid); |
| int pchmod(std::string fn, string mode); |
| vector <string> listAllDirectories(std::string path); |
| vector <string> listAllFiles(std::string path); |
| int fixAllFiles(string directory, int gid, int uid, string file_perms); |
| int fixDataData(string dataDir); |
| int restorecon(std::string entry, struct stat *sb); |
| int fixDataDataContexts(void); |
| int fixContextsRecursively(std::string path, int level); |