From d66c16749a5c07aadcd0eb97b9340d7fa5ea26b0 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 29 Nov 2012 17:29:13 +0100 Subject: Introduce samsungtools to decrypt samsung firmware Samsung provides many firmware upgrade in the format of a .dat file, at least for nearly all YP's (checked for Q2, R0, T10, Z5). This is a simple cyclic xor which a fixed key, a md5 sum and a header specifying the model/version/region. Change-Id: Ib0461a74196383189fd2d8162da444a85a229c60 --- utils/samsungtools/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/samsungtools/Makefile (limited to 'utils/samsungtools/Makefile') diff --git a/utils/samsungtools/Makefile b/utils/samsungtools/Makefile new file mode 100644 index 0000000..97af8bb --- /dev/null +++ b/utils/samsungtools/Makefile @@ -0,0 +1,17 @@ +DEFINES= +CC=gcc +LD=gcc +CFLAGS=-g -std=c99 -W -Wall $(DEFINES) `pkg-config --cflags openssl` +LDFLAGS=`pkg-config --libs openssl` +BINS=fwdecrypt + +all: $(BINS) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $< + +fwdecrypt: fwdecrypt.o samsung.o + $(LD) -o $@ $^ $(LDFLAGS) + +clean: + rm -fr *.o $(BINS) -- cgit v1.1