Create a copy of the zips on encrypted devices

On encrypted devices, uncrypt modifies the zip so that it can be
read without mounting the filesystem. Instead of installing the zip
downloaded, create a copy of it which will be deleted. This will
allow to re-install the zip multiple times or export it after
installing it.
This commit is contained in:
Gabriele M
2017-07-21 01:17:19 +02:00
parent 09968f1b25
commit 20ea513684
5 changed files with 136 additions and 3 deletions

View File

@@ -26,6 +26,8 @@ public final class Constants {
public static final String PREF_LAST_UPDATE_CHECK = "last_update_check";
public static final String PREF_AUTO_UPDATES_CHECK = "auto_updates_check";
public static final String UNCRYPT_FILE_EXT = ".uncrypt";
public static final String PROP_BUILD_DATE = "ro.build.date.utc";
public static final String PROP_BUILD_VERSION = "ro.cm.build.version";
public static final String PROP_BUILD_VERSION_INCREMENTAL = "ro.build.version.incremental";