对main函数模拟调用区分了global_init和hapd_init