public class DroidTracerService
extends Service
| Modifier and Type | Class and Description |
|---|---|
class |
DroidTracerService.LocalBinder |
| Constructor and Description |
|---|
DroidTracerService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addServiceToBlacklist(java.lang.String service)
Never intercept any system events of a service.
|
boolean |
addServiceToWhitelist(java.lang.String service)
Always intercept system events of a service, even for apps that are not monitored.
|
IBinder |
onBind(Intent intent) |
void |
onCreate() |
void |
onDestroy() |
void |
onEvent(int time,
int uid,
java.lang.String service,
java.lang.String method,
java.util.List<java.lang.Object> params)
Callback method that is triggered if a new system event occurs.
|
int |
onStartCommand(Intent intent,
int flags,
int startId) |
boolean |
removeServiceFromBlacklist(java.lang.String service)
Never intercept any system events of a service.
|
boolean |
removeServiceFromWhitelist(java.lang.String service)
Always intercept system events of a service (e.g., com.android.internal.telephony.ISms), even for apps that are not monitored.
|
boolean |
startInterceptingApp(int uid)
Notify kernel module to start intercepting system events of an app.
|
boolean |
stopInterceptingApp(int uid)
Notify kernel module to stop intercepting system events of an app.
|
public void onCreate()
public void onEvent(int time,
int uid,
java.lang.String service,
java.lang.String method,
java.util.List<java.lang.Object> params)
time - Unix time stamp (seconds since 1970).uid - Linux UID, which identifies an app.service - name of service called (e.g., com.android.internal.telephony.ISms).method - name of method called (e.g., sendText() if SMS was sent).params - unmarshalled method parameters.public void onDestroy()
public int onStartCommand(Intent intent,
int flags,
int startId)
public IBinder onBind(Intent intent)
public boolean startInterceptingApp(int uid)
uid - Linux UID, which identifies an app.public boolean stopInterceptingApp(int uid)
uid - Linux UID, which identifies an app.public boolean addServiceToBlacklist(java.lang.String service)
service - interface, which identifies a service (e.g., android.view.IWindowSession).public boolean removeServiceFromBlacklist(java.lang.String service)
service - interface, which identifies a service (e.g., android.view.IWindowSession).public boolean addServiceToWhitelist(java.lang.String service)
service - interface, which identifies a service (e.g., com.android.internal.telephony.ISms).public boolean removeServiceFromWhitelist(java.lang.String service)
service - interface, which identifies a service (e.g., com.android.internal.telephony.ISms).