diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2012-04-01 14:36:08 +0700 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2012-04-01 14:36:08 +0700 |
commit | d5e709ec4cc505912f0ec4b2427a68a936b68962 (patch) | |
tree | 63c65c9680a620ca334459955b7792e1fc7f955a | |
parent | ea797e99ce4299c26678eae8ac7cd74e541c04e1 (diff) | |
download | device_samsung_aries-common-d5e709ec4cc505912f0ec4b2427a68a936b68962.zip device_samsung_aries-common-d5e709ec4cc505912f0ec4b2427a68a936b68962.tar.gz device_samsung_aries-common-d5e709ec4cc505912f0ec4b2427a68a936b68962.tar.bz2 |
aries-common: Fix releasetools backup/restore
Also added modelidcfg to keep in sync with global
-rw-r--r-- | releasetools/aries_edify_generator.py | 3 | ||||
-rwxr-xr-x | releasetools/aries_ota_from_target_files | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/releasetools/aries_edify_generator.py b/releasetools/aries_edify_generator.py index 3261b44..4685b77 100644 --- a/releasetools/aries_edify_generator.py +++ b/releasetools/aries_edify_generator.py @@ -56,6 +56,9 @@ class EdifyGenerator(edify_generator.EdifyGenerator): def RunBackup(self, command): edify_generator.EdifyGenerator.RunBackup(self, command) + def RunConfig(self, command): + edify_generator.EdifyGenerator.RunConfig(self, command) + def WriteBMLoverMTD(self, partition, partition_start_block, reservoirpartition, reservoir_start_block, image): """Write the given package file into the given partition.""" diff --git a/releasetools/aries_ota_from_target_files b/releasetools/aries_ota_from_target_files index e5f4acd..6c3b1e3 100755 --- a/releasetools/aries_ota_from_target_files +++ b/releasetools/aries_ota_from_target_files @@ -103,6 +103,13 @@ def WriteFullOTAPackage(input_zip, output_zip): script.ShowProgress(0.15, 5) Item.Get("system").SetPermissions(script) + if OPTIONS.backuptool: + script.ShowProgress(0.2, 10) + script.RunBackup("restore") + + if OPTIONS.modelidcfg: + script.RunConfig("") + CopyBootFiles(input_zip, output_zip) CopyBMLoverMTD(output_zip) |