forked from Magisk-Modules-Repo/adb-ndk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diffusion_config.sh
71 lines (57 loc) · 1.61 KB
/
diffusion_config.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
# Diffusion Installer Config
# osm0sis @ xda-developers
INST_NAME="ADB Installer Script";
AUTH_NAME="osm0sis @ xda-developers";
USE_ARCH=false
USE_ZIP_OPTS=true
custom_setup() {
return # stub
}
custom_zip_opts() {
return # stub
}
custom_target() {
return # stub
}
custom_install() {
ui_print " ";
set_perm 0 0 755 $BIN/adb $BIN/adb.bin-arm64 $BIN/adb.bin-arm $BIN/adb.bin-armeabi $BIN/fastboot $BIN/fastboot.bin-arm64 $BIN/fastboot.bin-arm $BIN/fastboot.bin-armeabi;
if $BIN/adb.bin-arm64 --version >/dev/null 2>&1; then
ui_print "Installing adb (arm64) to $BIN ...";
mv -f $BIN/adb.bin-arm64 $BIN/adb.bin;
elif $BIN/adb.bin-arm --version >/dev/null 2>&1; then
ui_print "Installing adb (arm) to $BIN ...";
mv -f $BIN/adb.bin-arm $BIN/adb.bin;
else
ui_print "Installing adb (legacy) to $BIN ...";
mv -f $BIN/adb.bin-armeabi $BIN/adb.bin;
fi;
rm -f $BIN/adb.bin-arm*;
if $BIN/fastboot.bin-arm64 --version >/dev/null 2>&1; then
ui_print "Installing fastboot (arm64) to $BIN ...";
mv -f $BIN/fastboot.bin-arm64 $BIN/fastboot.bin;
elif $BIN/fastboot.bin-arm --version >/dev/null 2>&1; then
ui_print "Installing fastboot (arm) to $BIN ...";
mv -f $BIN/fastboot.bin-arm $BIN/fastboot.bin;
else
ui_print "Installing fastboot (legacy) to $BIN ...";
mv -f $BIN/fastboot.bin-armeabi $BIN/fastboot.bin;
fi;
rm -f $BIN/fastboot.bin-arm*;
}
custom_postinstall() {
return # stub
}
custom_uninstall() {
return # stub
}
custom_postuninstall() {
return # stub
}
custom_cleanup() {
return # stub
}
custom_exitmsg() {
return # stub
}
# additional custom functions