Project

General

Profile

sign-build script absent

Added by Fil Lupin 9 months ago

Hello,
signing image is not possible since script is not found anywhere in the repo.

./vendor/replicant/sign-build i9100

This seems to not depend on the device.
Do you know where we can find this script?

I created an issue there to solve this: https://redmine.replicant.us/issues/1857

Happy new year.


Replies (10)

RE: sign-build script absent - Added by Fil Lupin 6 months ago

Up in case someone has an answer..

RE: sign-build script absent - Added by Fil Lupin 6 months ago

Thank you Art.
It seems the script is on line now and after test, it is found.

I got an error when I launch this step (see issue https://redmine.replicant.us/issues/1876).

$ ./vendor/replicant/sign-build i9100
rewriting BOOT/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/release-keys
rewriting RECOVERY/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/release-keys
  replace:  ro.build.display.id=replicant_i9100-userdebug 6.0.1 MOI10E eng.debian.20180101.161037 test-keys
     with:  ro.build.display.id=replicant_i9100-userdebug 6.0.1 MOI10E eng.debian.20180101.161037
  replace:  ro.build.tags=test-keys
     with:  ro.build.tags=release-keys
    signing: org.cyanogenmod.platform-res.apk (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
java.io.FileNotFoundException: /home/debian/replicant/replicant-6.0/vendor/replicant-security/platform.x509.pem (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at com.android.signapk.SignApk.readPublicKey(SignApk.java:160)
    at com.android.signapk.SignApk.main(SignApk.java:908)
()
   ERROR: signapk.jar failed: return code 1
()

However, I see a file:

$ ll out/dist/i9100/
total 24640
-rw-r--r-- 1 debian debian 25230860 Apr  3 13:57 signed-target_files-i9100.zip

If you have any idea, I am interested. :)
Thank you.

RE: sign-build script absent - Added by Art Os 6 months ago

platform.x509.pem is absent,
delete /home/debian/replicant/replicant-6.0/vendor/replicant-security dir before launch sign-build script, it will recreate certificates and privates keys, all infos (organisation name, email…) must be filled otherwise certificate generation will fail

RE: sign-build script absent - Added by Fil Lupin 6 months ago

Good thing to precise that all info must be filled, I did not read this before, this was probably the reason why I never succeed into signing my build.

However, it failed again:

$> ./vendor/replicant/sign-build i9100
No keys present. Generating them now.

You are about to be asked to enter information that will be incorporated
into your certificate requests.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank.
For some fields there will be a default value.
Country Name (2 letter code) [AU]:FR
State or Province Name (full name) [Some-State]:France
Locality Name (eg, city) []:Paris
Organization Name (eg, company) [Internet Widgits Pty Ltd]F.Society            D
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. your name) []:Fil
Email Address []:fil@fil.org
Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey.pk8 with no password
Generating RSA private key, 2048 bit long modulus
.....................................................................+++
........................................+++
e is 65537 (0x10001)

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/platform.pk8 with no password
Generating RSA private key, 2048 bit long modulus
......+++
............+++
e is 65537 (0x10001)

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/shared.pk8 with no password
Generating RSA private key, 2048 bit long modulus
...........+++
............................+++
e is 65537 (0x10001)

Enter password for '/home/debian/replicant/replicant-6.0/vendor/replicant-security/media' (blank for none; password will be visible): 
creating /home/debian/replicant/replicant-6.0/vendor/replicant-security/media.pk8 with no password
Generating RSA private key, 2048 bit long modulus
.+++
....................+++
e is 65537 (0x10001)

rewriting BOOT/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/release-keys
rewriting RECOVERY/RAMDISK/default.prop:
  replace:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/test-keys
     with:  ro.bootimage.build.fingerprint=replicant_i9100:6.0.1/MOI10E/eng.debian.20180101.161037:userdebug/release-keys
  replace:  ro.build.display.id=replicant_i9100-userdebug 6.0.1 MOI10E eng.debian.20180101.161037 test-keys
     with:  ro.build.display.id=replicant_i9100-userdebug 6.0.1 MOI10E eng.debian.20180101.161037
  replace:  ro.build.tags=test-keys
     with:  ro.build.tags=release-keys
    signing: org.cyanogenmod.platform-res.apk (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: framework-res.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: LegacyCamera.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: BluetoothMidiService.apk         (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CaptivePortalLogin.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: messaging.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: DocumentsUI.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
NOT signing: F-Droid.apk
    signing: BasicDreams.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: ExactCalculator.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: PacProcessor.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ReplicantWallpapers.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: PicoTts.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Browser.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Calendar.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: telresources.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: KeyChain.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: UserDictionaryProvider.apk       (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: AdvancedDisplay.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Bluetooth.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Development.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CMFileManager.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Terminal.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LiveWallpapersPicker.apk         (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Stk.apk                          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SoundRecorder.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Email.apk                        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LatinIME.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: Exchange2.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: webview.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: HTMLViewer.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LockClock.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: WAPPushManager.apk               (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Gallery.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: DeskClock.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: PrintSpooler.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Profiles.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SamsungServiceMode.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: WallpaperPicker.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Provision.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: DownloadProviderUi.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: CertInstaller.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: RepWifi.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
rewriting SYSTEM/etc/security/mac_permissions.xml with new keys.
rewriting SYSTEM/etc/permissions/ with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.livedisplay.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.hardware.xml with new keys.
rewriting SYSTEM/etc/permissions/permissions_org.fdroid.fdroid.privileged.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.webview.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.audio.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.wifi.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.sip.voip.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.partner.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.appsuggest.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.front.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.profiles.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.touchscreen.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.location.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.bluetooth_le.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.accelerometer.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.telephony.xml with new keys.
rewriting SYSTEM/etc/permissions/platform.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.media.remotedisplay.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.wifi.direct.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.usb.accessory.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.livelockscreen.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.weather.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.platform.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.compass.xml with new keys.
rewriting SYSTEM/etc/permissions/handheld_core_hardware.xml with new keys.
rewriting SYSTEM/etc/permissions/com.cyanogenmod.android.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.live_wallpaper.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.flash-autofocus.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.camera.autofocus.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.statusbar.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.theme.xml with new keys.
rewriting SYSTEM/etc/permissions/android.software.sip.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.gyroscope.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.touchscreen.multitouch.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.proximity.xml with new keys.
rewriting SYSTEM/etc/permissions/org.cyanogenmod.performance.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.telephony.gsm.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.usb.host.xml with new keys.
rewriting SYSTEM/etc/permissions/android.hardware.sensor.light.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.location.provider.xml with new keys.
rewriting SYSTEM/etc/permissions/com.android.mediadrm.signer.xml with new keys.
rewriting SYSTEM/build.prop:
  replace:  ro.build.display.id=replicant_i9100-userdebug 6.0.1 MOI10E eng.debian.20180101.161037 test-keys
     with:  ro.build.display.id=replicant_i9100-userdebug 6.0.1 MOI10E eng.debian.20180101.161037
  replace:  ro.build.tags=test-keys
     with:  ro.build.tags=release-keys
    signing: CallLogBackup.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: CellBroadcastReceiver.apk        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SettingsProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CalendarProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Trebuchet.apk                    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: WeatherManagerService.apk        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: DownloadProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: ThemeChooser.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: DataUsageProvider.apk            (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CarrierConfig.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Telecom.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ManagedProvisioning.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SystemUI.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CMAudioService.apk               (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: LiveLockScreenService.apk        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Eleven.apk                       (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: AudioFX.apk                      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: PackageInstaller.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CyanogenSetupWizard.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ContactsProvider.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: TeleService.apk                  (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: SharedStorageBackup.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: WallpaperCropper.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: StatementService.apk             (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: FusedLocation.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: OneTimeInitializer.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: Screencast.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: BackupRestoreConfirmation.apk    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Shell.apk                        (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Settings.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ExternalStorageProvider.apk      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: MmsService.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: CMSettingsProvider.apk           (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ProxyHandler.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Dialer.apk                       (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: InputDevices.apk                 (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ThemeManagerService.apk          (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: VpnDialogs.apk                   (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: TelephonyProvider.apk            (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: Contacts.apk                     (/home/debian/replicant/replicant-6.0/vendor/replicant-security/shared)
    signing: DefaultContainerService.apk      (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: MediaProvider.apk                (/home/debian/replicant/replicant-6.0/vendor/replicant-security/media)
    signing: FDroidPrivilegedExtension.apk    (/home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey)
    signing: WeatherProvider.apk              (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
    signing: ThemesProvider.apk               (/home/debian/replicant/replicant-6.0/vendor/replicant-security/platform)
META/otakeys.txt has no keys; using /home/debian/replicant/replicant-6.0/vendor/replicant-security/releasekey.x509.pem
/home/debian/replicant/replicant-6.0/build/tools/releasetools/common.py:1054: UserWarning: Duplicate name: 'META/releasekey.txt'
  zip_file.writestr(zinfo, data)
Traceback (most recent call last):
  File "/home/debian/replicant/replicant-6.0/device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks", line 90, in <module>
    main(sys.argv[1:])
  File "/home/debian/replicant/replicant-6.0/build/tools/releasetools/sign_target_files_apks", line 516, in main
    apk_key_map, key_passwords)
  File "/home/debian/replicant/replicant-6.0/build/tools/releasetools/sign_target_files_apks", line 256, in ProcessTargetFiles
    "recovery.img", "recovery.img", tmpdir, "RECOVERY", info_dict=misc_info)
  File "/home/debian/replicant/replicant-6.0/device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks", line 84, in GetBootableImage
    return RebuildBootableImage(name, prebuilt_name, unpack_dir, tree_subdir)
  File "/home/debian/replicant/replicant-6.0/device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks", line 44, in RebuildBootableImage
    ramdisk_cpio = os.path.join(TARGET_DIR, "ramdisk-recovery.cpio")
  File "/usr/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

RE: sign-build script absent - Added by Art Os 6 months ago

I don't know, visibly a path problem,
all files are always present in /home/debian/replicant/replicant-6.0/out/target/product/i9100/ ,
specially ramdisk-recovery.cpio ?

RE: sign-build script absent - Added by Fil Lupin 6 months ago

It seems so. I have to say I am a bit lost there... :s
Here is the output of an "ls -la":

replicant-6.0$ ls -la out/target/product/i9100/
total 1359008
drwxr-xr-x 12 debian debian      4096 Apr  3 13:15 .
drwxr-xr-x  3 debian debian      4096 Jan  1 16:11 ..
-rw-r--r--  1 debian debian        62 Jan  1 16:12 android-info.txt
-rwxr-xr-x  1 debian debian   5566520 Apr  3 13:04 boot.img
-rw-r--r--  1 debian debian     69915 Apr  3 12:16 clean_steps.mk
drwxr-xr-x  3 debian debian      4096 Jan  1 17:34 data
drwxr-xr-x  2 debian debian      4096 Jan  1 16:59 fake_packages
drwxr-xr-x  5 debian debian      4096 Jan  1 16:42 gen
drwxr-xr-x  3 debian debian      4096 Jan  1 16:42 install
-rw-r--r--  1 debian debian     78102 Apr  3 13:12 installed-files.txt
-rwxr-xr-x  1 debian debian   5566520 Apr  3 13:03 kernel
-rwxr-xr-x  1 debian debian   5039148 Apr  3 13:04 kernel-recovery
drwxr-xr-x 16 debian debian      4096 Jan  1 17:52 obj
-rw-r--r--  1 debian debian        49 Apr  3 13:14 ota_script_path
drwxr-xr-x  7 debian debian      4096 Jan  1 17:52 ota_temp
-rw-r--r--  1 debian debian       803 Apr  3 12:16 previous_build_config.mk
-rw-r--r--  1 debian debian   1509120 Apr  3 13:01 ramdisk.cpio
-rw-r--r--  1 debian debian    836289 Apr  3 13:00 ramdisk.img
-rw-r--r--  1 debian debian   5132032 Apr  3 13:01 ramdisk-recovery.cpio
-rw-r--r--  1 debian debian   3200887 Apr  3 13:01 ramdisk-recovery.img
drwxr-xr-x  3 debian debian      4096 Jan  1 16:42 recovery
-rwxr-xr-x  1 debian debian   5039148 Apr  3 13:06 recovery.img
-rw-r--r--  3 debian debian 280921891 Apr  3 13:15 replicant-6.0-0003.zip
-rw-r--r--  3 debian debian 280921891 Apr  3 13:15 replicant-6.0.zip
-rw-r--r--  1 debian debian       114 Apr  3 13:15 replicant-6.0.zip.md5sum
-rw-r--r--  3 debian debian 280921891 Apr  3 13:15 replicant_i9100-ota-eng.debian.zip
drwxr-xr-x 10 debian debian      4096 Apr  3 13:00 root
drwxr-xr-x  7 debian debian      4096 Jan  1 17:34 symbols
drwxr-xr-x 15 debian debian      4096 Apr  3 13:12 system
-rw-r--r--  1 debian debian 479906636 Apr  3 13:12 system.img
-rw-r--r--  1 debian debian  36807428 Apr  3 13:10 userdata.img

RE: sign-build script absent - Added by Art Os 6 months ago

visibly, TARGET_DIR variable in device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks is empty, I don’t know why, maybe sign script must be run after build in same session ?

another solution maybe (?) to write «hard» correct path in device/samsung/galaxys2-common/releasetools/galaxys2_sign_target_files_apks , at bottom replace TARGET_DIR = os.getenv('OUT') by TARGET_DIR="/home/debian/replicant/replicant-6.0/out/target/product/i9100/"

It's a supposition…

RE: sign-build script absent - Added by Fil Lupin 6 months ago

I rebuilt the entire system from the beginning to check your hypothesis, and it seems to work: .
Thank you for your help Art! :)

I got

$ ll out/dist/i9100/
total 859768
-rw-r--r-- 1 debian debian   5040356 Jan  1  2009 recovery-i9100.img
-rw-r--r-- 1 debian debian 287076258 Apr  5 21:58 replicant-6.0-i9100.zip
-rw-r--r-- 1 debian debian  10606552 Apr  5 21:58 signed-img-i9100.zip
-rw-r--r-- 1 debian debian 577664553 Apr  5 21:57 signed-target_files-i9100.zip

Since the 2 first images are normal images, I understand signed-* are signed images, but why are these files 2 times bigger than unsigned images?

RE: sign-build script absent - Added by Art Os 6 months ago

You're welcome,
zip signed files contains partitions image necessarily bigger than directory, userdata.img is present I recommand you to backup this part before flashing,
and logically flash first recovery (small signed zip) that contain your public certificates if you want to check signature :-)

    (1-10/10)