Extras数据:Bundle[{_wxapi_sendauth_resp_state=weixinlogin, _wxapi_sendauth_resp_token=023z6q000PuBkP13H3100Z8Hh03z6q06, _mmessage_appPackage=com.tencent.mm, _wxapi_baseresp_transaction=null, _wxapi_sendauth_resp_lang=zh_CN, _wxapi_command_type=1, _mmessage_content=null, _wxapi_sendauth_resp_country=CN, _mmessage_checksum=[B@816d9c2, wx_token_key=com.tencent.mm.openapi.token, _wxapi_sendauth_resp_auth_result=true, _wxapi_sendauth_resp_url=wx0c3254305fc16258://oauth?code=023z6q000PuBkP13H3100Z8Hh03z6q06&state=weixinlogin, _mmessage_sdkVersion=621086464, _wxapi_baseresp_errcode=0, _wxapi_baseresp_errstr=null, _wxapi_baseresp_openId=null}]
这是hook出来的 Intent 实现跳转登录
app.startActivity({
className:'.wxapi.WXEntryActivity',
packageName:'com.kugou.fanxing',
dat:"wx0c3254305fc16258://oauth?code=023z6q000PuBkP13H3100Z8Hh03z6q06&state=weixinlogin",
root:true
});
app.startActivity({
className:'.wxapi.WXEntryActivity',
packageName:'com.kugou.fanxing',
extras:{_wxapi_sendauth_resp_state:'weixinlogin',
_wxapi_sendauth_resp_token:'023z6q000PuBkP13H3100Z8Hh03z6q06',
_mmessage_appPackage:'com.tencent.mm',
_wxapi_baseresp_transaction:'',
_wxapi_sendauth_resp_lang:'zh_CN',
_wxapi_command_type:1,
_mmessage_content:'',
_wxapi_sendauth_resp_country:'CN',
_mmessage_checksum:'[B@816d9c2',
wx_token_key:'com.tencent.mm.openapi.token',
_wxapi_sendauth_resp_auth_result:true,
_wxapi_sendauth_resp_url:'wx0c3254305fc16258://oauth?code:023z6q000PuBkP13H3100Z8Hh03z6q06&state:weixinlogin',
_mmessage_sdkVersion:621086464,
_wxapi_baseresp_errcode:0,
_wxapi_baseresp_errstr:'',
_wxapi_baseresp_openId:''},
root:true
});
你应该使用 startActivityForResult 才能获取登录之后的结果
那你应该需要知道你要唤醒的那个app的登陆界面的intent是多少才可以吧。或者在那个app还未登陆的情况下,通过app的包名也可以,startIntent跳过去。前提是那个app默认的界面是登陆界面
提供参考实例【使用Intent实现页面跳转】,链接:https://www.cnblogs.com/crazyzx/articles/5240146.html
根据你提供的信息,你想要实现的是在应用内打开网页进行扫码登录,然后使用得到的wx链接唤醒指定app进行登录。
首先,你需要在应用内打开网页进行扫码登录,获取到wx链接。
其次,使用唤醒指定app进行登录。你可以使用 Intent 实现。在代码中,使用 Intent.ACTION_VIEW 和 Uri.parse() 方法打开指定的wx链接。
例如:
String wxLink = "wx0c3254305fc16258://oauth?code=023z6q000PuBkP13H3100Z8Hh03z6q06&state=weixinlogin";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(wxLink));
startActivity(intent);
你需要确保wx链接是正确的并且能够被指定的app打开。
注意:上面的代码是用java写的,如果你使用的是其他语言,请根据语言的语法自行调整。
不知道你这个问题是否已经解决, 如果还没有解决的话:正常打开,如果获取到的wx链接正确,那么使用Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(wxLink));就可以正常打开对应的app的,对应的app的默认页面的话,需要通过AS反编译看一下页面是否export属性是true,如果是true,那么就肯定可以打开了