forked from len0rd/rockbox
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
This commit is contained in:
parent
ee36a396cd
commit
d66c16749a
4 changed files with 353 additions and 0 deletions
17
utils/samsungtools/Makefile
Normal file
17
utils/samsungtools/Makefile
Normal file
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue