static final String attachProcess(int pid, String process, int index, IBinder binder, IPluginClient client, String def, PluginManagerServer pms) {
        final String plugin = getDefaultPluginName(pid, index, binder, client, def);
        final ProcessClientRecord pr = new ProcessClientRecord(process, plugin, pid, index, binder, client, pms);
        try {
            pr.binder.linkToDeath(pr, 0);
        } catch (Throwable e) {
            if (LOGR) {
                LogRelease.e(PLUGIN_TAG, "ap l2d: " + e.getMessage(), e);
            }
        }
        writeProcessClientLock(new Action<Void>() {
            @Override
            public Void call() {
                ALL.put(pr.name, pr);
                return null;
            }
        });
        return plugin;
    }
@param pid
@param index
@param plugin
@param activity
@param container
@return
replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/PluginProcessMain.java