summaryrefslogtreecommitdiffstats
path: root/releasetools
diff options
context:
space:
mode:
Diffstat (limited to 'releasetools')
-rwxr-xr-xreleasetools/galaxynote_ota_from_target_files15
1 files changed, 10 insertions, 5 deletions
diff --git a/releasetools/galaxynote_ota_from_target_files b/releasetools/galaxynote_ota_from_target_files
index 7cde673..4b6150f 100755
--- a/releasetools/galaxynote_ota_from_target_files
+++ b/releasetools/galaxynote_ota_from_target_files
@@ -73,9 +73,14 @@ def WriteFullOTAPackage(input_zip, output_zip):
script.UnpackPackageDir("recovery", "/system")
script.UnpackPackageDir("system", "/system")
- symlinks = CopySystemFiles(input_zip, output_zip)
+ (symlinks, retouch_files) = CopySystemFiles(input_zip, output_zip)
script.MakeSymlinks(symlinks)
+ if OPTIONS.aslr_mode:
+ script.RetouchBinaries(retouch_files)
+ else:
+ script.UndoRetouchBinaries(retouch_files)
+
CopyBootFiles(input_zip, output_zip)
Item.GetMetadata(input_zip)
@@ -83,11 +88,11 @@ def WriteFullOTAPackage(input_zip, output_zip):
script.ShowProgress(0.2, 0)
- if OPTIONS.backuptool:
- script.ShowProgress(0.2, 10)
- script.RunBackup("restore")
+# if OPTIONS.backuptool:
+# script.ShowProgress(0.2, 10)
+# script.RunBackup("restore")
- script.RunVerifyCachePartitionSize()
+# script.RunVerifyCachePartitionSize()
script.ShowProgress(0.2, 10)
script.EMMCWriteRawImage("/dev/block/mmcblk0p5", "boot.img")