-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappObject.py
33 lines (24 loc) · 1.08 KB
/
appObject.py
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
class appObject:
def __init__(self, methodsArray, permissionsArray, stringsArray, category, appName=""):
# Binary array containing 1/0 for presence of a specific api method call in the app
self.binaryMethodsArray = methodsArray
# Binary array containing 1/0 for presence of specific permission in the manifest of the app
self.binaryPermissionsArray = permissionsArray
# Array containing word2vec values for all strings of the app in strings.xml
self.stringsArray = stringsArray
# This is the category of this app
self.category = category
# The name of the app
self.appName = appName
def getMehtodsArray(self):
return self.binaryMethodsArray
def getNumOfMethods(self):
return len(self.binaryMethodsArray)
def getPermissionsArray(self):
return self.binaryPermissionsArray
def getNumOfPermissions(self):
return len(self.binaryPermissionsArray)
def getStringsArray(self):
return self.stringsArray
def getCategory(self):
return self.category