-
Notifications
You must be signed in to change notification settings - Fork 17
/
ota_preprocess.mokee
executable file
·30 lines (28 loc) · 1.2 KB
/
ota_preprocess.mokee
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
#
# Copyright (C) 2015 The MoKee OpenSource Project
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
FILES="app/NfcNci lib/libnfc-nci.so lib/libnfc_nci_jni.so lib/libnfc_ndef.so lib/nfc_nci.bcm2079x.default.so etc/permissions/android.hardware.nfc.hce.xml etc/permissions/android.hardware.nfc.xml etc/permissions/com.mokee.nfc.enhanced.xml etc/libnfc-brcm-20791b05.conf etc/libnfc-brcm.conf etc/nfcee_access.xml"
for i in $FILES;do
if [ -e z2/system/$i ];then
mkdirp `dirname out/system/$i` 2> /dev/null
cp -R z2/system/$i out/system/$i
rm -r z2/system/$i
fi
if [ -e z1/system/$i ];then
rm -r z1/system/$i
fi
done