summaryrefslogtreecommitdiffstats
path: root/extract-files.sh
blob: 5390e9892c9c313bba75381502e616a706fbd61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

VENDOR=samsung
DEVICE=galaxysmtd
COMMON=aries-common

BASE=../../../vendor/$VENDOR/$DEVICE/proprietary

# Get common files
(cd ../$COMMON && ./extract-files.sh)

echo "Pulling device files..."
for FILE in `cat proprietary-files.txt | grep -v ^# | grep -v ^$`; do
    DIR=`dirname $FILE`
    if [ ! -d $BASE/$DIR ]; then
        mkdir -p $BASE/$DIR
    fi
    adb pull /system/$FILE $BASE/$FILE
done

# Modem
echo "Pulling modem..."
adb pull /radio/modem.bin $BASE/modem.bin

./setup-makefiles.sh