use of com.moro.mtweaks.utils.root.RootFile in project MTweaks-KernelAdiutorMOD by morogoku.
the class FilePickerActivity method onBackPressed.
@Override
public void onBackPressed() {
if (mFragment != null && !mFragment.mPath.equals("/")) {
if (mFragment.mLoadAsyncTask == null) {
mFragment.mPath = new RootFile(mFragment.mPath).getParentFile().toString();
mFragment.reload();
}
} else {
super.onBackPressed();
}
}
use of com.moro.mtweaks.utils.root.RootFile in project MTweaks-KernelAdiutorMOD by morogoku.
the class Buildprop method backup.
public static void backup() {
File data = new File(Utils.getInternalDataStorage());
if (!data.exists()) {
data.mkdirs();
}
new RootFile(BUILD_PROP).cp(data.toString().replace(Environment.getExternalStorageDirectory().toString(), "/sdcard") + "/build.prop");
}
use of com.moro.mtweaks.utils.root.RootFile in project MTweaks-KernelAdiutorMOD by morogoku.
the class Initd method delete.
public static void delete(String file) {
RootUtils.mount(true, "/system");
RootFile f = new RootFile(INITD + "/" + file);
f.delete();
RootUtils.mount(false, "/system");
}
Aggregations