@Override public List<ActivityInfo> getReceivers(String packageName, int flags) throws RemoteException { try { String pkg = getAndCheckCallingPkg(packageName); if (pkg != null) { PluginPackageParser parser = mPluginCache.get(packageName); if (parser != null) { return new ArrayList<ActivityInfo>(parser.getReceivers()); } } } catch (Exception e) { RemoteException remoteException = new RemoteException(); remoteException.setStackTrace(e.getStackTrace()); throw remoteException; } return new ArrayList<ActivityInfo>(0); }