public class IntentFirewall extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
IntentFirewall.AMSInterface
This interface contains the methods we need from ActivityManagerService.
|
Constructor and Description |
---|
IntentFirewall(IntentFirewall.AMSInterface ams,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkBroadcast(Intent intent,
int callerUid,
int callerPid,
String resolvedType,
int receivingUid) |
boolean |
checkIntent(com.android.server.firewall.IntentFirewall.FirewallIntentResolver resolver,
ComponentName resolvedComponent,
int intentType,
Intent intent,
int callerUid,
int callerPid,
String resolvedType,
int receivingUid) |
boolean |
checkService(ComponentName resolvedService,
Intent intent,
int callerUid,
int callerPid,
String resolvedType,
ApplicationInfo resolvedApp) |
boolean |
checkStartActivity(Intent intent,
int callerUid,
int callerPid,
String resolvedType,
ApplicationInfo resolvedApp)
This is called from ActivityManager to check if a start activity intent should be allowed.
|
static File |
getRulesDir() |
public IntentFirewall(IntentFirewall.AMSInterface ams, Handler handler)
public boolean checkStartActivity(Intent intent, int callerUid, int callerPid, String resolvedType, ApplicationInfo resolvedApp)
public boolean checkService(ComponentName resolvedService, Intent intent, int callerUid, int callerPid, String resolvedType, ApplicationInfo resolvedApp)
public boolean checkBroadcast(Intent intent, int callerUid, int callerPid, String resolvedType, int receivingUid)
public boolean checkIntent(com.android.server.firewall.IntentFirewall.FirewallIntentResolver resolver, ComponentName resolvedComponent, int intentType, Intent intent, int callerUid, int callerPid, String resolvedType, int receivingUid)
public static File getRulesDir()