forked from daboynb/playcurlNEXT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomize.sh
57 lines (49 loc) · 2.27 KB
/
customize.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
###################################################################
# Set permissions for the binaries
###################################################################
# Set permissions for fp and fpd binaries
set_perm $MODPATH/system/bin/fp root root 0777
set_perm $MODPATH/system/bin/fpd root root 0777
###################################################################
# Detect and move curl to system
###################################################################
# Move curl binary to system directory and set permissions
mv -f $MODPATH/system/bin/$ABI/curl $MODPATH/system/bin
set_perm $MODPATH/system/bin/curl root root 777
###################################################################
# Remove useless curl binaries
###################################################################
# Remove architecture-specific curl binaries
rm -rf $MODPATH/system/bin/arm64-v8a
rm -rf $MODPATH/system/bin/armeabi-v7a
rm -rf $MODPATH/system/bin/x86
rm -rf $MODPATH/system/bin/x86_64
###################################################################
# Install playcurl
###################################################################
echo "Installing playcurl"
###################################################################
# Removing old app if exists
###################################################################
# Uninstall old playcurl app if installed
su -c "pm uninstall com.playcurl.com" >/dev/null 2>&1
###################################################################
# Remove old playcurl modules
###################################################################
# Remove old playcurl module if it exists
if [ -d "/data/adb/modules/playcurl" ]; then
touch "/data/adb/modules/playcurl/remove"
fi
# Remove old playcurlNEXT module if it exists
if [ -d "/data/adb/modules/playcurlNEXT" ]; then
touch "/data/adb/modules/playcurlNEXT/remove"
fi
###################################################################
# Allow all the scripts to be executable
###################################################################
# Set execute permissions for all .sh scripts in MODPATH
chmod +x $MODPATH/*.sh
###################################################################
# Finalize installation
###################################################################
echo "Done"