summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/image_signing/sign_android_image.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/image_signing/sign_android_image.sh b/scripts/image_signing/sign_android_image.sh
index f8a1ed4d..5af1aa69 100755
--- a/scripts/image_signing/sign_android_image.sh
+++ b/scripts/image_signing/sign_android_image.sh
@@ -265,12 +265,6 @@ image_content_integrity_check() {
return 0
}
-list_image_files() {
- local unsquashfs=$1
- local system_img=$2
- sudo "${unsquashfs}" -l "${system_img}" | grep ^squashfs-root
-}
-
sign_android_internal() {
local root_fs_dir=$1
local key_dir=$2
@@ -338,8 +332,6 @@ sign_android_internal() {
local system_mnt="${working_dir}/mnt"
info "Unpacking squashfs system image to ${system_mnt}"
- list_image_files "${unsquashfs}" "${system_img}" > \
- "${working_dir}/image_file_list.orig"
sudo "${unsquashfs}" -no-xattrs -f -no-progress -d "${system_mnt}" "${system_img}"
snapshot_file_properties "${system_mnt}" > "${working_dir}/properties.orig"
@@ -416,14 +408,6 @@ sign_android_internal() {
-no-progress
local new_size=$(stat -c '%s' "${system_img}")
info "Android system image size change: ${old_size} -> ${new_size}"
-
- list_image_files "${unsquashfs}" "${system_img}" > \
- "${working_dir}/image_file_list.new"
- if ! d=$(diff "${working_dir}"/image_file_list.{orig,new}); then
- # Here we have already deleted the original Android image so cannot retry.
- die "Unexpected change of file list\n${d}"
- fi
-
return 0
}