summaryrefslogtreecommitdiffstats
path: root/extract-files.sh
blob: 11ca22d2175d6dade5f2d205e198ef19ff37e56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

VENDOR=samsung
DEVICE=aries-common

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

echo "Pulling common 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

./setup-makefiles.sh