forked from CyanogenMod/android_device_motorola_omap4-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extract-files and setup-makefiles
Change-Id: Ie59fb5bd40fa82bf398bd6380cd202fbcccb910a
- Loading branch information
dhacker29
committed
Jul 16, 2013
1 parent
c2df46e
commit bb9cdba
Showing
7 changed files
with
560 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# LTE RIL files need for maserati, spyder and targa | ||
bin/base64 | ||
bin/extract-embedded-files | ||
bin/logcatd | ||
bin/logcatd-blan | ||
bin/mm-wrigley-qc-dump.sh | ||
bin/oem-iptables-init.sh | ||
bin/vril-dump | ||
bin/wrigley-diag.sh | ||
bin/wrigley-dump.sh | ||
bin/wrigley-fetch-mpr.sh | ||
bin/wrigley-iptables.sh | ||
lib/libb64.so | ||
lib/libbabysit.so | ||
lib/libmotdb.so | ||
lib/lib-mot-lte-ril.so | ||
lib/libmoto_mdmctrl.so | ||
lib/libmoto_nwif_ril.so | ||
lib/libmoto_qmi_ril.so | ||
lib/libmoto_ril.so | ||
lib/librds_util.so | ||
lib/libril_rds.so | ||
lib/moto-ril-multimode.so | ||
lib/libims_client_jni.so | ||
lib/libmotricity.so | ||
etc/permissions/com.verizon.hardware.telephony.ehrpd.xml | ||
etc/permissions/com.verizon.hardware.telephony.lte.xml | ||
etc/permissions/com.vzw.vzwapnlib.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# VZW blobs | ||
app/appdirectedsmspermission.apk | ||
app/VerizonSSOEngine.apk | ||
app/VZWAPNLib.apk | ||
app/vzwapnpermission.apk | ||
app/VZWAPNService.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
#!/bin/bash | ||
|
||
if [ $# -eq 1 ]; then | ||
COPY_FROM=$1 | ||
test ! -d "$COPY_FROM" && echo error reading dir "$COPY_FROM" && exit 1 | ||
fi | ||
|
||
test -z "$DEVICE" && echo device not set && exit 2 | ||
test -z "$VENDOR" && echo vendor not set && exit 2 | ||
test -z "$VENDORDEVICEDIR" && VENDORDEVICEDIR=$DEVICE | ||
export VENDORDEVICEDIR | ||
|
||
BASE=../../../vendor/$VENDOR/$VENDORDEVICEDIR/proprietary | ||
rm -rf $BASE/* | ||
rm -rf $BASE/../packages 2> /dev/null | ||
|
||
for FILE in `egrep -v '(^#|^$)' ../$DEVICE/device-proprietary-files.txt`; do | ||
echo "Extracting /system/$FILE ..." | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=${PARSING_ARRAY[0]} | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -z $DEST ] | ||
then | ||
DEST=$FILE | ||
fi | ||
DIR=`dirname $FILE` | ||
if [ ! -d $BASE/$DIR ]; then | ||
mkdir -p $BASE/$DIR | ||
fi | ||
if [ "$COPY_FROM" = "" ]; then | ||
adb pull /system/$FILE $BASE/$DEST | ||
# if file dot not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
adb pull /system/$DEST $BASE/$DEST | ||
fi | ||
else | ||
cp $COPY_FROM/$FILE $BASE/$DEST | ||
# if file does not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
cp $COPY_FROM/$DEST $BASE/$DEST | ||
fi | ||
fi | ||
done | ||
|
||
for FILE in `egrep -v '(^#|^$)' ../omap4-common/proprietary-files.txt`; do | ||
echo "Extracting /system/$FILE ..." | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=${PARSING_ARRAY[0]} | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -z $DEST ] | ||
then | ||
DEST=$FILE | ||
fi | ||
DIR=`dirname $FILE` | ||
if [ ! -d $BASE/$DIR ]; then | ||
mkdir -p $BASE/$DIR | ||
fi | ||
if [ "$COPY_FROM" = "" ]; then | ||
adb pull /system/$FILE $BASE/$DEST | ||
# if file dot not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
adb pull /system/$DEST $BASE/$DEST | ||
fi | ||
else | ||
cp $COPY_FROM/$FILE $BASE/$DEST | ||
# if file does not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
cp $COPY_FROM/$DEST $BASE/$DEST | ||
fi | ||
fi | ||
done | ||
|
||
BASE=../../../vendor/$VENDOR/omap4-common/proprietary | ||
rm -rf $BASE/* | ||
for FILE in `egrep -v '(^#|^$)' ../omap4-common/common-proprietary-files.txt`; do | ||
echo "Extracting /system/$FILE ..." | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=${PARSING_ARRAY[0]} | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -z $DEST ] | ||
then | ||
DEST=$FILE | ||
fi | ||
DIR=`dirname $FILE` | ||
if [ ! -d $BASE/$DIR ]; then | ||
mkdir -p $BASE/$DIR | ||
fi | ||
if [ "$COPY_FROM" = "" ]; then | ||
adb pull /system/$FILE $BASE/$DEST | ||
# if file dot not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
adb pull /system/$DEST $BASE/$DEST | ||
fi | ||
else | ||
cp $COPY_FROM/$FILE $BASE/$DEST | ||
# if file does not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
cp $COPY_FROM/$DEST $BASE/$DEST | ||
fi | ||
fi | ||
done | ||
|
||
if [ "$DEVICE" != edison ] && [ "$DEVICE" != solana ] && [ "$DEVICE" != umts_spyder ]; then | ||
for FILE in `egrep -v '(^#|^$)' ../omap4-common/common-lte-proprietary-files.txt`; do | ||
echo "Extracting /system/$FILE ..." | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=${PARSING_ARRAY[0]} | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -z $DEST ] | ||
then | ||
DEST=$FILE | ||
fi | ||
DIR=`dirname $FILE` | ||
if [ ! -d $BASE/$DIR ]; then | ||
mkdir -p $BASE/$DIR | ||
fi | ||
if [ "$COPY_FROM" = "" ]; then | ||
adb pull /system/$FILE $BASE/$DEST | ||
# if file dot not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
adb pull /system/$DEST $BASE/$DEST | ||
fi | ||
else | ||
cp $COPY_FROM/$FILE $BASE/$DEST | ||
# if file does not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
cp $COPY_FROM/$DEST $BASE/$DEST | ||
fi | ||
fi | ||
done | ||
|
||
for FILE in `egrep -v '(^#|^$)' ../omap4-common/common-vzw-proprietary-files.txt`; do | ||
echo "Extracting /system/$FILE ..." | ||
OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS | ||
FILE=${PARSING_ARRAY[0]} | ||
DEST=${PARSING_ARRAY[1]} | ||
if [ -z $DEST ] | ||
then | ||
DEST=$FILE | ||
fi | ||
DIR=`dirname $FILE` | ||
if [ ! -d $BASE/$DIR ]; then | ||
mkdir -p $BASE/$DIR | ||
fi | ||
if [ "$COPY_FROM" = "" ]; then | ||
adb pull /system/$FILE $BASE/$DEST | ||
# if file dot not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
adb pull /system/$DEST $BASE/$DEST | ||
fi | ||
else | ||
cp $COPY_FROM/$FILE $BASE/$DEST | ||
# if file does not exist try destination | ||
if [ "$?" != "0" ] | ||
then | ||
cp $COPY_FROM/$DEST $BASE/$DEST | ||
fi | ||
fi | ||
done | ||
fi | ||
|
||
IMGTEC=../../../vendor/$VENDOR/omap4-common/imgtec | ||
if [ ! -d $IMGTEC ]; then | ||
mkdir -p $IMGTEC | ||
fi | ||
echo "Don't forget to add the imgtec blobs from" | ||
echo "http://omapzoom.org/?p=device/ti/proprietary-open.git;a=blob_plain;f=omap4/sgx.tgz;hb=7eef6aa6ef73ce97a9283a89d24a11c0606fd622" | ||
echo "to vendor/motorola/omap4-common" | ||
echo "These scripts will not work properly for solana as it requires some targa blob." | ||
../omap4-common/setup-makefiles.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# put anything that is on all devices, but cannot be in omap4-common because it is device specific | ||
bin/akmd8975 | ||
bin/ap_gain.bin | ||
bin/ap_gain_mmul.bin | ||
etc/firmware/ducati-m3.bin | ||
etc/firmware/TIInit_10.6.15.bts | ||
lib/hw/audio.primary.omap4.so |
Oops, something went wrong.