6
6
package modules
7
7
8
8
import (
9
- "slices"
10
9
"path/filepath"
10
+ "slices"
11
11
"strings"
12
12
13
13
"github.com/mvt-project/androidqf/acquisition"
@@ -37,9 +37,9 @@ func (m *Mounts) Run(acq *acquisition.Acquisition, fast bool) error {
37
37
38
38
var mountsData []string
39
39
40
- // Run "mount | grep '/system' "
41
- log .Debug ("Running: mount | grep '/system' " )
42
- out1 , err1 := adb .Client .Shell ("mount | grep '/system' " )
40
+ // Run "mount"
41
+ log .Debug ("Running: mount" )
42
+ out1 , err1 := adb .Client .Shell ("mount" )
43
43
if err1 == nil && out1 != "" {
44
44
lines := strings .Split (strings .TrimSpace (out1 ), "\n " )
45
45
for _ , line := range lines {
@@ -48,12 +48,12 @@ func (m *Mounts) Run(acq *acquisition.Acquisition, fast bool) error {
48
48
}
49
49
}
50
50
} else {
51
- log .Debug ("mount | grep '/system' command failed or returned empty result" )
51
+ log .Debug ("mount command failed or returned empty result" )
52
52
}
53
53
54
- // Run "cat /proc/mounts | grep '/system' "
55
- log .Debug ("Running: cat /proc/mounts | grep '/system' " )
56
- out2 , err2 := adb .Client .Shell ("cat /proc/mounts | grep '/system' " )
54
+ // Run "cat /proc/mounts"
55
+ log .Debug ("Running: cat /proc/mounts" )
56
+ out2 , err2 := adb .Client .Shell ("cat /proc/mounts" )
57
57
if err2 == nil && out2 != "" {
58
58
lines := strings .Split (strings .TrimSpace (out2 ), "\n " )
59
59
for _ , line := range lines {
@@ -67,7 +67,7 @@ func (m *Mounts) Run(acq *acquisition.Acquisition, fast bool) error {
67
67
}
68
68
}
69
69
} else {
70
- log .Debug ("cat /proc/mounts | grep '/system' command failed or returned empty result" )
70
+ log .Debug ("cat /proc/mounts command failed or returned empty result" )
71
71
}
72
72
73
73
log .Debugf ("Found %d mount entries" , len (mountsData ))
0 commit comments