summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-29 19:19:05 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-29 19:19:05 +0100
commit62d7769c27c907845f4066952637fc9732de40fc (patch)
treef47abf2d82f7dc485c2d563b062bec5e2c573231
parent93788fff24362cdf188ac24ba71abe3ea16676c1 (diff)
downloadvendor_replicant-62d7769c27c907845f4066952637fc9732de40fc.zip
vendor_replicant-62d7769c27c907845f4066952637fc9732de40fc.tar.gz
vendor_replicant-62d7769c27c907845f4066952637fc9732de40fc.tar.bz2
sign-build: Galaxy S2 needs special treatment
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rwxr-xr-xsign-build19
1 files changed, 14 insertions, 5 deletions
diff --git a/sign-build b/sign-build
index 0fe7681..d32622f 100755
--- a/sign-build
+++ b/sign-build
@@ -102,11 +102,20 @@ mkdir -p $DIST_OUT_DIR
# -o option replaces the test keys with the created ones
# -p makes sure the script finds signapk.jar
-python $BASEDIR/build/tools/releasetools/sign_target_files_apks \
- -o \
- -p $OUT_DIR/host/linux-x86 \
- -d $KEY_DIR $TARGET_FILES \
- $DIST_OUT_DIR/signed-target_files-$DEVICE.zip
+if [ "$DEVICE" = "i9100" ]
+then
+ python $BASEDIR/device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks \
+ -o \
+ -p $OUT_DIR/host/linux-x86 \
+ -d $KEY_DIR $TARGET_FILES \
+ $DIST_OUT_DIR/signed-target_files-$DEVICE.zip
+else
+ python $BASEDIR/build/tools/releasetools/sign_target_files_apks \
+ -o \
+ -p $OUT_DIR/host/linux-x86 \
+ -d $KEY_DIR $TARGET_FILES \
+ $DIST_OUT_DIR/signed-target_files-$DEVICE.zip
+fi
python $BASEDIR/build/tools/releasetools/ota_from_target_files \
-k $KEY_DIR/releasekey \