summaryrefslogtreecommitdiffstats
path: root/updater_sample/src/com/example/android/systemupdatersample/util
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-05-18 19:15:31 +0200
committerZhomart Mukhamejanov <zhomart@google.com>2018-05-24 00:37:43 +0200
commit6f26e71263fcbf634f858fe97d1a6e56a908c64f (patch)
treef646dd503527e3b3b6835c392744bf72296b20de /updater_sample/src/com/example/android/systemupdatersample/util
parentMerge "updater: Use a bool to indicate if allowed to skip a command." (diff)
downloadandroid_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.tar
android_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.tar.gz
android_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.tar.bz2
android_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.tar.lz
android_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.tar.xz
android_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.tar.zst
android_bootable_recovery-6f26e71263fcbf634f858fe97d1a6e56a908c64f.zip
Diffstat (limited to 'updater_sample/src/com/example/android/systemupdatersample/util')
-rw-r--r--updater_sample/src/com/example/android/systemupdatersample/util/PayloadSpecs.java4
-rw-r--r--updater_sample/src/com/example/android/systemupdatersample/util/UpdateEngineErrorCodes.java1
2 files changed, 4 insertions, 1 deletions
diff --git a/updater_sample/src/com/example/android/systemupdatersample/util/PayloadSpecs.java b/updater_sample/src/com/example/android/systemupdatersample/util/PayloadSpecs.java
index b98b97c37..f06231726 100644
--- a/updater_sample/src/com/example/android/systemupdatersample/util/PayloadSpecs.java
+++ b/updater_sample/src/com/example/android/systemupdatersample/util/PayloadSpecs.java
@@ -32,7 +32,9 @@ import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
/** The helper class that creates {@link PayloadSpec}. */
-public final class PayloadSpecs {
+public class PayloadSpecs {
+
+ public PayloadSpecs() {}
/**
* The payload PAYLOAD_ENTRY is stored in the zip package to comply with the Android OTA package
diff --git a/updater_sample/src/com/example/android/systemupdatersample/util/UpdateEngineErrorCodes.java b/updater_sample/src/com/example/android/systemupdatersample/util/UpdateEngineErrorCodes.java
index 6d319c5af..f06ddf7fc 100644
--- a/updater_sample/src/com/example/android/systemupdatersample/util/UpdateEngineErrorCodes.java
+++ b/updater_sample/src/com/example/android/systemupdatersample/util/UpdateEngineErrorCodes.java
@@ -34,6 +34,7 @@ public final class UpdateEngineErrorCodes {
* Error code from the update engine. Values must agree with the ones in
* system/update_engine/common/error_code.h.
*/
+ public static final int UNKNOWN = -1;
public static final int UPDATED_BUT_NOT_ACTIVE = 52;
private static final SparseArray<String> CODE_TO_NAME_MAP = new SparseArray<>();