File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
app/src/main/java/fuzion24/device/vulnerability/vulnerabilities/system Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import android .content .Context ;
5
5
import android .content .pm .PackageManager ;
6
+ import android .os .Build ;
6
7
7
8
import fuzion24 .device .vulnerability .util .CPUArch ;
8
9
import fuzion24 .device .vulnerability .vulnerabilities .VulnerabilityTest ;
@@ -18,6 +19,9 @@ public List<CPUArch> getSupportedArchitectures() {
18
19
archs .add (CPUArch .ALL );
19
20
return archs ;
20
21
}
22
+ private boolean isHTCPhone (){
23
+ return Build .MANUFACTURER .equals ("htc" );
24
+ }
21
25
22
26
23
27
@ Override
@@ -35,6 +39,10 @@ private boolean thisHasInternetPermission(Context ctx)
35
39
@ Override
36
40
public boolean isVulnerable (Context context ) throws Exception {
37
41
42
+ if (!isHTCPhone ()){
43
+ return false ;
44
+ }
45
+
38
46
if (!thisHasInternetPermission (context ))
39
47
throw new Exception ("No internet permission assigned to app to perform WeakSauce Test" );
40
48
You can’t perform that action at this time.
0 commit comments