get_args: process /data/cache/command

Change-Id: I744cdc5a72f53fd1224de242e30ff261e6104900
This commit is contained in:
bigbiff
2021-08-03 18:21:39 -04:00
parent b2cce1055e
commit aed1bdfe59
9 changed files with 50 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright 2013 to 2020 TeamWin
Copyright 2013 to 2021 TeamWin
This file is part of TWRP/TeamWin Recovery Project.
TWRP is free software: you can redistribute it and/or modify
@@ -1779,6 +1779,14 @@ bool TWPartition::Wipe_AndSec(void) {
return true;
}
bool TWPartition::Wipe_Data_Cache(void) {
if (!Mount(true))
return false;
gui_msg(Msg("wiping=Wiping {1}")(Mount_Point + "/cache/"));
TWFunc::removeDir(Mount_Point + "/cache/", true);
return true;
}
bool TWPartition::Can_Repair() {
if (Mount_Read_Only)
return false;