我试图在服务器上设置WSO2-EMM。我已经成功地启动了服务器,并使用默认的admin/admin用户名和密码登录到。我使用https连接到EMM (HTTP对我不起作用)。我没有在服务器上的XML文件中更改任何设置。我所做的就是按照步骤创建一个JKS和P12文件,这些文件成功地添加到wso2 JKS文件并上传到服务器。我还成功地创建了一个BKS文件,并在Android项目中覆盖了它。然后,我用以下设置更新了CommonUtilities.java文件:
我的安卓工作室记录:
04-21 09:50:00.174 25086-25168/org.wso2.emm.agent D/ServerUtils:尝试#1注册04-21 09:50:00.174 25086:25168 E/ 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent V/ServerUtils: my_ipPosting '{username=admin,password=admin}‘to ip:9443/emm/api/devices/clientkey 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent V/ServerUtils:将'username=admin&password=admin’发送到ip:9443/emm/api/devices/clientkey 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out:线程-202051(ApacheHTTPLog):从setDefaultValuesToVariables 04-2109:50:00.194 25086-25168/org.wso2.emm.agent I/System.out中读取变量值202051(ApacheHTTPLog):isSBSettingEnabled 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out:线程-202051(ApacheHTTPLog):isShipBuild true 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: ApacheHTTPLog:getDebugLevel 0x4f4c04-2109:50:00.194 25086-25168/org.wso2.emm.agent I/System.out: ApacheHTTPLog-202051(ApacheHTTPLog):智能键连接设置为false 04-21 09:50:00.194 25086-25168/org.wso2.emm.agent I/System.out:线程-202051(ApacheHTTPLog):SmartBonding设置为false,SHIP_BUILD为真,日志到文件为false,DBG为false,DEBUG_LEVEL (1-低,2-中间,3-高)为1 04-21 09:50:00.214 25086-25106/org.wso2.emm.agent D/马里_winsys: new_window_surface返回0x3000,1336x648-格式:1 04-21 09:50:00.224 25086-25086/org.wso2.emm.agent E/ViewRootImpl: sendUserActionEvent() mView == null
发布于 2016-04-28 13:49:52
请解释一下您正在使用的EMM服务器的哪个版本?因为EMM的最新版本(到目前为止)是2.0.1,我想您是在这个版本上。类ServerUtils仅在EMM1.1.0服务器的代理代码中找到。Emm2.x代理代码可以找到here1。此服务器是否托管在公共服务器中?如果您是在本地测试此功能,则您的设备和服务器都需要位于同一个网络中。此外,您可以在SSL调试模式下以- sh wso2server.sh -Djavax.net.debug=all的形式启动服务器,并检查在握手级别发生了什么。
1. https://github.com/wso2/product-emm/tree/master/modules/mobile-agents/android/client
https://stackoverflow.com/questions/36763599
复制相似问题