|
@@ -16,6 +16,7 @@ public abstract class UpgradePathSource extends UpgradeSource {
|
|
|
|
|
|
private final String path;
|
|
|
|
|
|
+
|
|
|
public UpgradePathSource(@NonNull Context context, String path) {
|
|
|
super(context);
|
|
|
this.path = path;
|
|
@@ -25,6 +26,12 @@ public abstract class UpgradePathSource extends UpgradeSource {
|
|
|
Context.MODE_PRIVATE);
|
|
|
}
|
|
|
|
|
|
+ public synchronized void delete(){
|
|
|
+ this.sharedPreferences.edit().remove(this.path).commit();
|
|
|
+ FileUtils.delete(path);
|
|
|
+ FileUtils.delete(this.libsPath);
|
|
|
+ }
|
|
|
+
|
|
|
public String getApkPath() {
|
|
|
return path;
|
|
|
}
|