forked from TeamICS/android_device_htc_heroc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopy-files.sh
More file actions
executable file
·32 lines (23 loc) · 735 Bytes
/
Copy pathcopy-files.sh
File metadata and controls
executable file
·32 lines (23 loc) · 735 Bytes
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
31
32
#!/bin/bash
# This script is designed to dynamically read from the extract-files.sh
# script and pull needed proprietary blobs from an extracted device
# system location instead of the device itself.
# The Source location passed should contain the /system/ folder
# for the specific device
if [ $# -lt 1 ]
then
echo "Usage:" $0 "<Source>"
exit
fi
SOURCE=${1//'/'/'\/'}
echo "Starting copy-files.sh"
echo "Creating copy script from extract-files.sh..."
sed s/"adb pull "/"cp -a $SOURCE"/g <extract-files.sh >copy-files_TEMP.sh
echo "Making script executable..."
chmod 755 copy-files_TEMP.sh
echo "Executing script..."
./copy-files_TEMP.sh
echo "Removing script..."
rm -f copy-files_TEMP.sh
echo "Done."
echo ""