forked from CyanogenMod/android_device_hp_tenderloin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unzip-files.sh
executable file
·88 lines (76 loc) · 2.41 KB
/
unzip-files.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/sh
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
DEVICE=tenderloin;
MANUFACTURER=hp;
if [ $1 ]; then
ZIPFILE=$1
else
ZIPFILE=../../../${DEVICE}_update.zip
fi
if [ ! -f "$1" ]; then
echo "Cannot find $ZIPFILE. Try specifify the stock update.zip with $0 <zipfilename>"
exit 1
fi
mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/proprietary
DIRS="
bin
etc
etc/firmware
lib
lib/hw
lib/egl
"
for DIR in $DIRS; do
mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/$DIR
done
#SHARED OBJECT LIBRARIES
unzip -j -o $ZIPFILE -d ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib \
system/lib/libcamera.so \
system/lib/libaudioalsa.so \
system/lib/libaudcal.so \
system/lib/libdiag.so \
system/lib/libgsl.so \
system/lib/libmmipl.so \
system/lib/libmmjpeg.so \
system/lib/libOpenVG.so \
system/lib/libqdp.so \
system/lib/libqmi.so \
system/lib/libqmiservices.so
#EGL
unzip -j -o $ZIPFILE -d ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib/egl \
system/lib/egl/libEGL_adreno200.so \
system/lib/egl/libGLESv1_CM_adreno200.so \
system/lib/egl/libGLESv2_adreno200.so \
system/lib/egl/libq3dtools_adreno200.so
#HW
unzip -j -o $ZIPFILE -d ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib/hw \
system/lib/hw/lights.msm8660.so \
#BIN
unzip -j -o $ZIPFILE -d ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bin \
system/bin/dcvs \
system/bin/dcvsd \
system/bin/mpdecision \
system/bin/mpld \
system/bin/sensord \
system/bin/thermald \
system/bin/usbhub \
system/bin/usbhub_init \
#Firmware
unzip -j -o $ZIPFILE -d ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/etc/firmware \
system/etc/firmware/leia_pfp_470.fw \
system/etc/firmware/leia_pm4_470.fw \
system/etc/firmware/vidc_1080p.fw \
system/etc/firmware/yamato_pfp.fw \
system/etc/firmware/yamato_pm4.fw