static String getRootDir(String appFilesDir) { return appFilesDir .split("/") .sublist(0, appFilesDir.split("/").length - 4) .join("/"); }