Skip to content

Commit

Permalink
Added : build tools for S10e
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindu644 committed Mar 12, 2024
1 parent 945e913 commit 83e5358
Show file tree
Hide file tree
Showing 132 changed files with 3,011 additions and 0 deletions.
75 changes: 75 additions & 0 deletions binaries/AIK/authors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
mkbootimg, unpackbootimg:
https://github.com/CyanogenMod/android_system_core/tree/cm-10.2/mkbootimg (initial sources)
https://github.com/huaixzk/unpackbootimg (makefiles)
https://github.com/osm0sis/mkbootimg (patches)

pxa-mkbootimg, pxa-unpackbootimg:
https://github.com/AKuHAK/pxa-mkbootimg (initial source)
https://github.com/osm0sis/pxa-mkbootimg (patches)

elftool:
https://bitbucket.org/srl3gx/elftool (initial source)
https://github.com/osm0sis/elftool (patches)

unpackelf:
https://github.com/tobiaswaldvogel/and_boot_tools/tree/master/bootimg (initial source)
https://github.com/osm0sis/unpackelf (patches)

mboot:
https://github.com/osm0sis/mboot

dumpimage, mkimage:
https://www.denx.de/wiki/U-Boot/WebHome

mkmtkhdr:
https://github.com/omnirom/android_device_oppo_r819/tree/android-4.4/mkmtkbootimg (initial source)
https://github.com/osm0sis/mkmtkhdr (patches)

loki_tool:
https://github.com/djrbliss/loki

futility:
https://github.com/jcadduono/platform_external_vboot_reference (initial source)
https://github.com/osm0sis/futility (patches)

boot_signer.jar (requires JRE 8+):
https://forum.xda-developers.com/android/software-hacking/signing-boot-images-android-verified-t3600606

blobpack, blobunpack:
https://github.com/AndroidRoot/BlobTools

dhtbsign:
https://github.com/chiefwigms/degas-mkbootimg/tree/galaxy_tab_a_smt285 (initial source)
https://github.com/osm0sis/dhtbsign (patches)

rkcrc:
https://github.com/rockchip-linux/rkflashtool

sony_dump:
https://forum.xda-developers.com/crossdevice-dev/sony/tool-unpack-format-sony-kernel-image-t3530077

lz4:
https://lz4.github.io/lz4/

magic:
https://www.darwinsys.com/file/

cpio, dd, file, lzop, tail, truncate, xz;
libiconv.2, libintl.8, liblzma.5, liblzo2.2, libmagic.1 (macOS):
https://www.macports.org/

gzip, bzip2, lzop, xz;
awk, basename, bash, cpio, cut, dd, dirname, env, file, find, grep, hexdump, java, printf, rev, sed, stat, sudo, tail, truncate, wc (Linux):
(required system packages/commands)

androidbootimg.magic:
osm0sis @ xda-developers

shell scripts:
osm0sis @ xda-developers (scripting)
Peteragent5, alansj & iridaki @ xda-developers (general method)
SuperR. & tobias.waldvogel @ xda-developers (kernel.elf to boot.img general method)
_that & rayman @ xda-developers (boot.blob general method)
Chainfire @ xda-developers (ChromeOS and SEAndroid general methods)
cybojenix @ xda-developers (Bump general method)
xyz` & k4y0z @ xda-developers (amonet general method)
111 changes: 111 additions & 0 deletions binaries/AIK/bin/androidbootimg.magic
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
#------------------------------------------------------------------------------
# Various Android OEM non-standard boot image related magic entries
# osm0sis @ xda-developers
#------------------------------------------------------------------------------

# ASUS Blob Signature
0 string -SIGNED-BY-SIGNBLOB- BLOB signing

# Barnes & Noble Nook Signature
64 string Red\x20Loader NOOK signing (red loader)
64 string Green\x20Loader NOOK signing (green loader)
64 string Green\x20Recovery NOOK signing (green recovery)
64 string eMMC\x20boot.img+secondloader NOOK signing (emmc boot)
64 string eMMC\x20recovery.img+secondloader NOOK signing (emmc recovery)
48 string BauwksBoot NOOKTAB signing (bauwks)

# Google ChromeOS Signature
0 string CHROMEOS CHROMEOS signing

# Samsung/Spreadtrum DHTB Signature
0 string DHTB\x01\x00\x00 DHTB signing

# Sony SIN Packaging/Signature
0 string \x01\x00\x00\x00 SINv1 signing
0 string \x02\x00\x00\x00 SINv2 signing
0 string \x03SIN SINv3 signing

# Google Pixel/Nexus/AOSP Standard
# [test "x" as workaround to odd file/magic behavior not allowing search here]
0 string x
>0 search ANDROID! AOSP bootimg
>>36 string \x00\x00\x00\x02 \b, PXA variant (020)
>>36 string \x00\x00\x80\x02 \b, PXA variant (028)
>>36 string \x00\x00\x00\x03 \b, PXA variant (030)
>>96 search microloader
>>>1024 string ANDROID! \b, AMONET header
>>1024 string LOKI \b, LOKI header
>>>1028 string \x00 \b (boot)
>>>1028 string \x01 \b (recovery)
>>2048 search \x88\x16\x88\x58 \b, MTK headers
!:strength * 3

# Google Pixel/AOSP Vendor Standard
# [test "x" as workaround to odd file/magic behavior not allowing search here]
0 string x
>0 search VNDRBOOT AOSP_VNDR bootimg
!:strength * 3

# DENX U-Boot
0 string \x27\x05\x19\x56 U-Boot bootimg

# Intel OSIP
1000 search \xFC\xFA\xBC\x00 OSIP bootimg (headerless)
!:strength / 15
0 string $OS$\x00\x00\x01 OSIP bootimg
>52 string \x00\x00\x00\x00 \b, boot (signed)
>52 string \x01\x00\x00\x00 \b, boot (unsigned)
>52 string \x0C\x00\x00\x00 \b, recovery (signed)
>52 string \x0D\x00\x00\x00 \b, recovery (unsigned)

# Rockchip KRNL
0 string KRNL KRNL bootimg

# Sony ELF
0 string \x7FELF ELF
>5 string \x01\x01\x61 bootimg
>18 string \x28 (ARM
>18 string \x03 (x86_
>18 string \x08 (MIPS
>4 string \x01 \b)
>4 string \x02 \b64)
>0 search \x88\x16\x88\x58 \b, MTK headers

# MediaTek MTK
# [for detection after boot image has already been split]
0 search \x88\x16\x88\x58 MTK header
>0 search KERNEL \b, kernel type
>0 search ROOTFS \b, rootfs type
>0 search RECOVERY \b, recovery type
!:strength / 20

# Qualcomm Device Tree
# [for detection after boot image has already been split]
0 string QCDT QCDT header
!:strength / 20

# Google Android Verified Boot 1.0 Signature
# [for detection with the tail of the boot image]
0 search \x02\x01\x01\x30\x82 AVBv1 signing footer
>0 search /boot \b, boot type
>0 search /recovery \b, recovery type
!:strength / 20

# Google Android Verified Boot 2.0 Signature
# [for detection with the tail of the boot image]
# [test "x" as workaround to odd file/magic behavior not allowing search here]
0 string x
>0 search AVBf AVBv2 signing footer
!:strength / 20

# LG Bump
# [for detection with the tail of the boot image]
0 search \x41\xA9\xE4\x67\x74\x4D\x1D\x1B\xA4\x29\xF2\xEC\xEA\x65\x52\x79 Bump footer
!:strength / 20

# Samsung SEAndroid
# [for detection with the tail of the boot image]
# [test "x" as workaround to odd file/magic behavior not allowing search here]
0 string x
>0 search SEANDROIDENFORCE SEAndroid footer
!:strength / 20
Binary file added binaries/AIK/bin/avb/verity.pk8
Binary file not shown.
24 changes: 24 additions & 0 deletions binaries/AIK/bin/avb/verity.x509.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-----BEGIN CERTIFICATE-----
MIID/TCCAuWgAwIBAgIJAJcPmDkJqolJMA0GCSqGSIb3DQEBBQUAMIGUMQswCQYD
VQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNTW91bnRhaW4g
VmlldzEQMA4GA1UECgwHQW5kcm9pZDEQMA4GA1UECwwHQW5kcm9pZDEQMA4GA1UE
AwwHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAe
Fw0xNDExMDYxOTA3NDBaFw00MjAzMjQxOTA3NDBaMIGUMQswCQYDVQQGEwJVUzET
MBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNTW91bnRhaW4gVmlldzEQMA4G
A1UECgwHQW5kcm9pZDEQMA4GA1UECwwHQW5kcm9pZDEQMA4GA1UEAwwHQW5kcm9p
ZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAOjreE0vTVSRenuzO9vnaWfk0eQzYab0gqpi
6xAzi6dmD+ugoEKJmbPiuE5Dwf21isZ9uhUUu0dQM46dK4ocKxMRrcnmGxydFn6o
fs3ODJMXOkv2gKXL/FdbEPdDbxzdu8z3yk+W67udM/fW7WbaQ3DO0knu+izKak/3
T41c5uoXmQ81UNtAzRGzGchNVXMmWuTGOkg6U+0I2Td7K8yvUMWhAWPPpKLtVH9r
AL5TzjYNR92izdKcz3AjRsI3CTjtpiVABGeX0TcjRSuZB7K9EK56HV+OFNS6I1NP
jdD7FIShyGlqqZdUOkAUZYanbpgeT5N7QL6uuqcGpoTOkalu6kkCAwEAAaNQME4w
HQYDVR0OBBYEFH5DM/m7oArf4O3peeKO0ZIEkrQPMB8GA1UdIwQYMBaAFH5DM/m7
oArf4O3peeKO0ZIEkrQPMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEB
AHO3NSvDE5jFvMehGGtS8BnFYdFKRIglDMc4niWSzhzOVYRH4WajxdtBWc5fx0ix
NF/+hVKVhP6AIOQa+++sk+HIi7RvioPPbhjcsVlZe7cUEGrLSSveGouQyc+j0+m6
JF84kszIl5GGNMTnx0XRPO+g8t6h5LWfnVydgZfpGRRg+WHewk1U2HlvTjIceb0N
dcoJ8WKJAFWdcuE7VIm4w+vF/DYX/A2Oyzr2+QRhmYSv1cusgAeC1tvH4ap+J1Lg
UnOu5Kh/FqPLLSwNVQp4Bu7b9QFfqK8Moj84bj88NqRGZgDyqzuTrFxn6FW7dmyA
yttuAJAEAymk1mipd9+zp38=
-----END CERTIFICATE-----
Binary file added binaries/AIK/bin/boot_signer.jar
Binary file not shown.
1 change: 1 addition & 0 deletions binaries/AIK/bin/chromeos/empty
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added binaries/AIK/bin/chromeos/kernel.keyblock
Binary file not shown.
Binary file added binaries/AIK/bin/chromeos/kernel_data_key.vbprivk
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/blobpack
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/blobunpack
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/dhtbsign
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/dumpimage
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/elftool
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/futility
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/kernel_dump
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/loki_tool
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/lz4
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/mboot
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/mkimage
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/mkmtkhdr
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/pxa-mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/pxa-unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/rkcrc
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/sony_dump
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/i686/unpackelf
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/blobpack
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/blobunpack
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/dhtbsign
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/dumpimage
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/elftool
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/futility
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/kernel_dump
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/loki_tool
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/lz4
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/mboot
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/mkimage
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/mkmtkhdr
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/pxa-mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/pxa-unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/rkcrc
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/sony_dump
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/linux/x86_64/unpackelf
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/blobpack
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/blobunpack
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/cpio
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/dd
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/dhtbsign
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/dumpimage
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/elftool
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/file
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/futility
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/kernel_dump
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/libiconv.2.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/libintl.8.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/liblzma.5.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/liblzo2.2.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/libmagic.1.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/loki_tool
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/lz4
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/lzop
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/mboot
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/mkimage
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/mkmtkhdr
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/pxa-mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/pxa-unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/rkcrc
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/sony_dump
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/tail
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/truncate
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/unpackelf
Binary file not shown.
Binary file added binaries/AIK/bin/macos/i386/xz
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/blobpack
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/blobunpack
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/cpio
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/dd
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/dhtbsign
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/dumpimage
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/elftool
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/file
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/futility
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/kernel_dump
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/libiconv.2.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/libintl.8.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/liblzma.5.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/liblzo2.2.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/libmagic.1.dylib
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/loki_tool
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/lz4
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/lzop
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/mboot
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/mkimage
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/mkmtkhdr
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/pxa-mkbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/pxa-unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/rkcrc
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/sony_dump
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/tail
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/truncate
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/unpackbootimg
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/unpackelf
Binary file not shown.
Binary file added binaries/AIK/bin/macos/x86_64/xz
Binary file not shown.
Loading

0 comments on commit 83e5358

Please sign in to comment.