-
Notifications
You must be signed in to change notification settings - Fork 0
SystemManager
Jordan Samhi edited this page Aug 22, 2023
·
1 revision
SystemManager
is a singleton class designed to manage system classes by checking for system class membership of given Soot classes. It loads the list of system classes from a configuration file at startup and is part of the AndroSpecter library.
SystemManager
provides a way to manage and check whether specific classes are system classes in an Android application. It utilizes the Soot framework.
Accesses the singleton instance of the SystemManager
class.
Usage:
SystemManager manager = SystemManager.v();
Checks whether the given SootClass is a system class.
Parameters:
-
sc
(SootClass): TheSootClass
to check for system class membership.
Return Value:
-
boolean
:true
if theSootClass
is a system class,false
otherwise.
SootClass androidClass = ... // Get or create a SootClass representing an Android class
SystemManager manager = SystemManager.v();
boolean isAndroidSystemClass = manager.isSystemClass(androidClass); // Returns true
These examples showcase how to use SystemManager
to manage and inspect system classes in Android applications.