diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-01-29 19:19:05 +0100 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2017-01-29 19:19:05 +0100 |
commit | 62d7769c27c907845f4066952637fc9732de40fc (patch) | |
tree | f47abf2d82f7dc485c2d563b062bec5e2c573231 | |
parent | 93788fff24362cdf188ac24ba71abe3ea16676c1 (diff) | |
download | vendor_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-x | sign-build | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -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 \ |