summaryrefslogtreecommitdiffstats
path: root/extract-gapps-files
blob: ef99e529433b09649ffa08010fee828223df7f3b (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
26
27
28
29
30
#!/bin/bash
#
# Extract gapps files from downloaded zip file.
#
# Just a replacement for get-google-files script.
#

usage() {
    cat << EOF
Usage: $0 <path-to-gapp-zip-file>
EOF
}

if [ $# -lt 1 ]; then
    usage
    exit 1
fi

GAPPS="$1"

cd `dirname $0`

mkdir -p proprietary
mkdir tmp

unzip -q -o -d tmp $GAPPS

find tmp/system -type f -exec mv -v -f {} proprietary/ \;

rm -rf tmp