public void unregisterReceiver(BroadcastReceiver receiver) {
        if (RePluginFramework.mHostInitialized) {
            try {
                ProxyLocalBroadcastManagerVar.unregisterReceiver.call(sOrigInstance, receiver);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return;
        }
        synchronized (mReceivers) {
            ArrayList<IntentFilter> filters = mReceivers.remove(receiver);
            if (filters == null) {
                return;
            }
            for (int i=0; i<filters.size(); i++) {
                IntentFilter filter = filters.get(i);
                for (int j=0; j<filter.countActions(); j++) {
                    String action = filter.getAction(j);
                    ArrayList<ReceiverRecord> receivers = mActions.get(action);
                    if (receivers != null) {
                        for (int k=0; k<receivers.size(); k++) {
                            if (receivers.get(k).receiver == receiver) {
                                receivers.remove(k);
                                k--;
                            }
                        }
                        if (receivers.size() <= 0) {
                            mActions.remove(action);
                        }
                    }
                }
            }
        }
    }
Unregister a previously registered BroadcastReceiver.  <em>All</em>
filters that have been registered for this BroadcastReceiver will be
removed.

@param receiver The BroadcastReceiver to unregister.

@see #registerReceiver
replugin-plugin-library/replugin-plugin-lib/src/main/java/com/qihoo360/replugin/loader/b/PluginLocalBroadcastManager.java