summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2014-08-18 14:28:42 -0700
committerBrint E. Kriebel <bekit@cyngn.com>2014-09-04 18:24:07 +0000
commit9d8b59fb3701c2154d359a83ea7314f9897c731e (patch)
tree74cc5ad1b9ce34c1a13541f762f7dd0ca29c047f
parent8b6ded9867073230b1601c1d5eeda0a70a5254d9 (diff)
downloadreplicant_build-9d8b59fb3701c2154d359a83ea7314f9897c731e.zip
replicant_build-9d8b59fb3701c2154d359a83ea7314f9897c731e.tar.gz
replicant_build-9d8b59fb3701c2154d359a83ea7314f9897c731e.tar.bz2
ota_from_target_files: Validate signatures after possible data wipecm-11.0-XNPH44S-bacon-5fa8c79c0b
If the data is being wiped, we want to validate the signature after this step. This is also a good check that the data wipe succeeded. Change-Id: Iaecfddfb2010944de0c97e7bb21d8e581f20deec (cherry picked from commit 43795266f635aa6674f0b6ecc3f4ccc5660a8de1)
-rwxr-xr-xtools/releasetools/ota_from_target_files8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files
index 1664575..beaabc6 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -511,10 +511,6 @@ else if get_stage("%(bcb_dev)s", "stage") == "3/3" then
device_specific.FullOTA_InstallBegin()
- script.Mount("/data")
- script.ValidateSignatures("data")
- script.Unmount("/data")
-
if OPTIONS.backuptool:
script.Mount("/system")
script.RunBackup("backup")
@@ -525,6 +521,10 @@ else if get_stage("%(bcb_dev)s", "stage") == "3/3" then
if OPTIONS.wipe_user_data:
script.FormatPartition("/data")
+ script.Mount("/data")
+ script.ValidateSignatures("data")
+ script.Unmount("/data")
+
if "selinux_fc" in OPTIONS.info_dict:
WritePolicyConfig(OPTIONS.info_dict["selinux_fc"], output_zip)