-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathservice.sh
47 lines (37 loc) · 820 Bytes
/
service.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
#!/system/bin/sh
# Magisk Module: Systemless Debloater v1.5.4a
# Copyright (c) zgfg @ xda, 2020-
# Module's own path (local path)
MODDIR=${0%/*}
# Log file for debugging
LogFile="$MODDIR/service.log"
exec 3>&1 4>&2 2>$LogFile 1>&2
set -x
date +%c
MyVersion=v1.5.4a
# Log Magisk version and magisk --path
magisk -c
magisk --path
# Log dual-slots ROM info
getprop ro.product.cpu.abi
getprop ro.product.cpu.abilist
# List of stock apps for debloating by mounting
cd $MODDIR
MountListFile=./mountList.sh
# Source the MountListFile
MountList=""
if [ -f $MountListFile ]
then
. $MountListFile
fi
# Dummy apk for debloating by mounting
DummyApk=./dummy.apk
touch $DummyApk
#Debloat by mounting
for MountApk in $MountList
do
mount -o bind $DummyApk $MountApk
ls -l $MountApk
done
set +x
exec 1>&3 2>&4 3>&- 4>&-