Search in sources :

Example 11 with RootFile

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();
    }
}
Also used : RootFile(com.moro.mtweaks.utils.root.RootFile)

Example 12 with RootFile

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");
}
Also used : RootFile(com.moro.mtweaks.utils.root.RootFile) RootFile(com.moro.mtweaks.utils.root.RootFile) File(java.io.File)

Example 13 with RootFile

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");
}
Also used : RootFile(com.moro.mtweaks.utils.root.RootFile)

Aggregations

RootFile (com.moro.mtweaks.utils.root.RootFile)13 File (java.io.File)3 IOException (java.io.IOException)3 DialogInterface (android.content.DialogInterface)2 Recovery (com.moro.mtweaks.utils.tools.Recovery)2 FileNotFoundException (java.io.FileNotFoundException)2 ArrayList (java.util.ArrayList)2 NotificationManager (android.app.NotificationManager)1 PendingIntent (android.app.PendingIntent)1 ActivityNotFoundException (android.content.ActivityNotFoundException)1 Intent (android.content.Intent)1 Handler (android.os.Handler)1 NotificationCompat (android.support.v4.app.NotificationCompat)1 View (android.view.View)1 TextView (android.widget.TextView)1 Settings (com.moro.mtweaks.database.Settings)1 Controls (com.moro.mtweaks.database.tools.customcontrols.Controls)1 Profiles (com.moro.mtweaks.database.tools.profiles.Profiles)1 CPUFreq (com.moro.mtweaks.utils.kernel.cpu.CPUFreq)1 RootUtils (com.moro.mtweaks.utils.root.RootUtils)1